Repository navigation
feat(core): clearSuspensionRecord helper, cleared after CLI creates - #166
Merged
Merged
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
Member
Author
Research ReviewVerified
Needs Verification
Potential Guesses Detected
Adjacent Stubs Detected
Orphaned Files Detected
Escape Hatch Coverage
Object Shape Verification
Contract diff
Existing consumers
Impact Analysis
Risks Not Tested
Research Suggestions
VerdictNo blocking issues found. Reviewed by PR Research Validator. This review checks whether code is based on verified sources rather than assumptions. |
7 tasks
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.
Closes #163
Summary
@osaas/client-core: new exportedclearSuspensionRecord(context, serviceId, name): Promise<void>. It sendsDELETE https://deploy.svc.<env>.osaas.io/mysuspended/{serviceId}/{name}with the context PAT asx-pat-jwtand noContent-Type. A 404 is a no-op, any other error is logged at debug and swallowed, and it never throws. The endpoint exists in osaas-deploy-managersrc/api_mysuspended.ts(PAT JWT, 200{message}/ 404 / 500), verified on current main. No new timeout constant.@osaas/cli: calls the helper after each successful create:osc create(user/cmd.ts), andweb config-createfor both thevalkey-io-valkeyandeyevinn-app-config-svccreates. The grep from the directions found no othercreateInstance/createJob/create*Instance/setupDatabasecall sites inpackages/cli/src. The valkey create is already guarded bygetInstance, so the helper runs only when an instance was actually created. Output and exit codes are unchanged.@osaas/client-coreas^0.26.0, while the workspace core is 0.28.0, so npm installed a nested published 0.26.0 in each package and the CLI could not see the new export. All ranges are now^0.28.0(lockfile drops the nested copies and links the workspace). Bumping only the CLI broke typechecking because the sibling packages returned a differentContexttype. No version bump or release commit.Impact on existing consumers:
createInstanceandcreateJobare untouched (the diff does not changepackages/core/src/core.tsorjob.ts), so deploy-manager'srecreateInstance, osaas-ai,@osaas/client-servicesand@osaas/client-dbbehave exactly as before. The only change to the public surface of client-core is one added export.Tests
packages/core/src/suspension.test.ts: 200 (URL,x-pat-jwt, no Content-Type), 404, 500, network error.packages/cli/src/web/config-create.test.ts: success clears for both creates; an existing instance does not clear; a failed create does not clear.Lessons
Package ranges of
^0.26.0on a 0.x workspace package are not satisfied by the 0.28.0 workspace version, so npm silently installs a nested published copy and a new core export is invisible to the CLI (and a partial bump causes duplicateContexttype errors). Bump all dependents together. After merge, the helper only reaches CLI users once a human releases client-core and the CLI.🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com