Skip to content

feat(logs): logs get, clean, settings set, write - #89

Merged
Domantas merged 3 commits into
mainfrom
feat/logs-stage-a
Oct 21, 2026
Merged

Domantas merged 3 commits into
mainfrom
feat/logs-stage-a

Conversation

@Domantas

Copy link
Copy Markdown
Contributor

What changed

  • @norbix.ai/ts ^4.31.0 (request fields regenerated).
  • New: logs get <id>, logs clean (asks; --yes skips), 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 --file JSON array; prints accepted: n; a 429 prints the Retry-After seconds, exit 8).
  • tests/logs.test.ts covers every logs command (incl. existing list / trail / settings) through the real transport with fetch replaced.

Tests

npm test 40 files / 1091 tests green · npx tsc --noEmit green.

Expected version

next minor (feat).

🤖 Generated with Claude Code

Domantas and others added 3 commits October 21, 2026 21:25
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>
@Domantas
Domantas merged commit 74e6169 into main Oct 21, 2026
11 checks passed
@Domantas
Domantas deleted the feat/logs-stage-a branch October 21, 2026 18:35
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.39.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant