Repository navigation
feat(logs): logs get, clean, settings set, write - #89
Merged
Merged
Conversation
Bumps the SDK floor to ^4.31.0 and regenerates src/generated/request-fields.json (717 methods): api.logs.writeLogs, hub.logs.getLog, SaveLogSettings fields optional, plus the refactoringV2 methods the SDK release brought. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- logs get <id>: one entry (GET /logs/{Id}).
- logs clean: deletes every stored entry; asks first, --yes skips (in the
destructive list of the agent-mode test).
- logs settings set --skip-cloud/--skip-body/--ai-chat <true|false>: sends
only the flags given (the gateway contract is absent = unchanged).
- logs write: one line from --title (+ --level, --message, --event-code,
--correlation-id, --timestamp, repeatable --meta key=value) or a JSON array
from --file (path, @path, -); prints `accepted: n`; a 429 says how many
seconds to wait (Retry-After) in the message, hint and context, exit 8.
- tests/logs.test.ts: every logs command (list, trail, get, settings,
settings set, clean, write) through oclif and the real transport with fetch
replaced — host, verb, path, query and body.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🎉 This PR is included in version 1.39.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
What changed
@norbix.ai/ts^4.31.0 (request fields regenerated).logs get <id>,logs clean(asks;--yesskips),logs settings set --skip-cloud/--skip-body/--ai-chat <true|false>(only the given flags are sent),logs write(--title+--level/--message/--event-code/--correlation-id/--timestamp/--meta k=v, or--fileJSON array; printsaccepted: n; a 429 prints the Retry-After seconds, exit 8).tests/logs.test.tscovers every logs command (incl. existing list / trail / settings) through the real transport withfetchreplaced.Tests
npm test40 files / 1091 tests green ·npx tsc --noEmitgreen.Expected version
next minor (feat).
🤖 Generated with Claude Code