feat: add unstable-procedure submodule for high-level functions#248
Closed
takker99 wants to merge 1 commit into
Closed
feat: add unstable-procedure submodule for high-level functions#248takker99 wants to merge 1 commit into
takker99 wants to merge 1 commit into
Conversation
…adToGCS Move high-level functions from unstable-api/ and rest/ into a new unstable-procedure/ submodule, converting stream functions from throw-based error handling to Result type. - unstable-procedure/list-pages-stream.ts: migrated from api/pages/project.ts (throw → Result yield) - unstable-procedure/get-links-stream.ts: migrated from api/pages/project/search/titles.ts (throw → Result yield) - unstable-procedure/upload-to-gcs.ts: migrated from rest/uploadToGCS.ts (unchanged, Result-based) - api/pages/project.ts: add @deprecated re-export - api/pages/project/search/titles.ts: add @deprecated re-export - rest/mod.ts: remove uploadToGCS export - rest/uploadToGCS.ts: deleted - deno.jsonc: add ./unstable-procedure export
Owner
Author
|
OpenCodeが誤ってmainにdirect pushしてしまった (6fdcf9b )。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Create a new
unstable-procedure/submodule for high-level functions that compose multiple API requests, separating them from the thin fetch wrapperunstable-api/.Changes
New module:
unstable-procedure/list-pages-stream.ts: Migrated fromapi/pages/project.ts. Changed error handling from throw toResulttype (option-t), yieldingcreateErron failure and returning.get-links-stream.ts: Migrated fromapi/pages/project/search/titles.ts. Same throw →Resultconversion.upload-to-gcs.ts: Migrated fromrest/uploadToGCS.ts. Logic unchanged; only import paths updated.Modified files
api/pages/project.ts:listPagesStream/ensureResponseremoved,@deprecatedre-export addedapi/pages/project/search/titles.ts:getLinksStreamremoved,@deprecatedre-export addedrest/mod.ts:uploadToGCSexport removeddeno.jsonc:./unstable-procedureexport addedDeleted
rest/uploadToGCS.ts: Moved tounstable-procedure/upload-to-gcs.tsDesign
unstable-api/unstable-procedure/