@botiverse/oar 0.121.0 → 0.123.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -8
- package/dist/capabilities.d.ts +10 -0
- package/dist/capabilities.d.ts.map +1 -0
- package/dist/capabilities.js +7 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/community/cybion/client.d.ts +24 -0
- package/dist/community/cybion/client.d.ts.map +1 -0
- package/dist/community/cybion/client.js +42 -0
- package/dist/community/cybion/client.js.map +1 -0
- package/dist/community/cybion/index.d.ts +14 -0
- package/dist/community/cybion/index.d.ts.map +1 -0
- package/dist/community/cybion/index.js +30 -0
- package/dist/community/cybion/index.js.map +1 -0
- package/dist/community/cybion/projection.d.ts +7 -0
- package/dist/community/cybion/projection.d.ts.map +1 -0
- package/dist/community/cybion/projection.js +100 -0
- package/dist/community/cybion/projection.js.map +1 -0
- package/dist/community/cybion/refusal.d.ts +19 -0
- package/dist/community/cybion/refusal.d.ts.map +1 -0
- package/dist/community/cybion/refusal.js +23 -0
- package/dist/community/cybion/refusal.js.map +1 -0
- package/dist/community/cybion/refused-options.d.ts +4 -0
- package/dist/community/cybion/refused-options.d.ts.map +1 -0
- package/dist/community/cybion/refused-options.js +17 -0
- package/dist/community/cybion/refused-options.js.map +1 -0
- package/dist/community/cybion/session.d.ts +8 -0
- package/dist/community/cybion/session.d.ts.map +1 -0
- package/dist/community/cybion/session.js +283 -0
- package/dist/community/cybion/session.js.map +1 -0
- package/dist/community/cybion/thread.d.ts +75 -0
- package/dist/community/cybion/thread.d.ts.map +1 -0
- package/dist/community/cybion/thread.js +192 -0
- package/dist/community/cybion/thread.js.map +1 -0
- package/dist/community/cybion/tracker-facts.d.ts +38 -0
- package/dist/community/cybion/tracker-facts.d.ts.map +1 -0
- package/dist/community/cybion/tracker-facts.js +44 -0
- package/dist/community/cybion/tracker-facts.js.map +1 -0
- package/dist/community/cybion/tracker.d.ts +76 -0
- package/dist/community/cybion/tracker.d.ts.map +1 -0
- package/dist/community/cybion/tracker.js +244 -0
- package/dist/community/cybion/tracker.js.map +1 -0
- package/dist/community/index.d.ts +1 -0
- package/dist/community/index.d.ts.map +1 -1
- package/dist/community/index.js +1 -0
- package/dist/community/index.js.map +1 -1
- package/dist/community/morph/projection.d.ts.map +1 -1
- package/dist/community/morph/projection.js +14 -2
- package/dist/community/morph/projection.js.map +1 -1
- package/dist/community/morph/tracker.d.ts.map +1 -1
- package/dist/community/morph/tracker.js +18 -6
- package/dist/community/morph/tracker.js.map +1 -1
- package/dist/contracts/account-usage.d.ts +3 -1
- package/dist/contracts/account-usage.d.ts.map +1 -1
- package/dist/contracts/context-usage.d.ts +10 -0
- package/dist/contracts/context-usage.d.ts.map +1 -1
- package/dist/contracts/failure.d.ts +4 -1
- package/dist/contracts/failure.d.ts.map +1 -1
- package/dist/contracts/graph.d.ts +1 -1
- package/dist/contracts/graph.d.ts.map +1 -1
- package/dist/contracts/index.d.ts +5 -4
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +1 -1
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/login.d.ts +6 -0
- package/dist/contracts/login.d.ts.map +1 -1
- package/dist/contracts/orientation.d.ts +5 -0
- package/dist/contracts/orientation.d.ts.map +1 -1
- package/dist/contracts/records.d.ts +12 -11
- package/dist/contracts/records.d.ts.map +1 -1
- package/dist/contracts/runtime.d.ts +77 -6
- package/dist/contracts/runtime.d.ts.map +1 -1
- package/dist/contracts/runtime.js +25 -0
- package/dist/contracts/runtime.js.map +1 -1
- package/dist/contracts/session-options.d.ts +22 -22
- package/dist/contracts/session-options.d.ts.map +1 -1
- package/dist/contracts/session.d.ts +2 -2
- package/dist/contracts/session.d.ts.map +1 -1
- package/dist/forms/fields.d.ts +6 -3
- package/dist/forms/fields.d.ts.map +1 -1
- package/dist/forms/fields.js +44 -5
- package/dist/forms/fields.js.map +1 -1
- package/dist/forms/map.d.ts.map +1 -1
- package/dist/forms/map.js +18 -14
- package/dist/forms/map.js.map +1 -1
- package/dist/forms/types.d.ts +1 -1
- package/dist/forms/types.d.ts.map +1 -1
- package/dist/forms/validate.d.ts.map +1 -1
- package/dist/forms/validate.js +8 -15
- package/dist/forms/validate.js.map +1 -1
- package/dist/observe/conversation.d.ts.map +1 -1
- package/dist/observe/conversation.js +2 -8
- package/dist/observe/conversation.js.map +1 -1
- package/dist/observe/cursor.d.ts +6 -0
- package/dist/observe/cursor.d.ts.map +1 -0
- package/dist/observe/cursor.js +19 -0
- package/dist/observe/cursor.js.map +1 -0
- package/dist/observe/display-text.d.ts.map +1 -1
- package/dist/observe/display-text.js +1 -0
- package/dist/observe/display-text.js.map +1 -1
- package/dist/observe/events.d.ts +1 -1
- package/dist/observe/events.d.ts.map +1 -1
- package/dist/observe/events.js +5 -3
- package/dist/observe/events.js.map +1 -1
- package/dist/observe/failure-advice.d.ts.map +1 -1
- package/dist/observe/failure-advice.js +1 -0
- package/dist/observe/failure-advice.js.map +1 -1
- package/dist/observe/graph.d.ts +2 -0
- package/dist/observe/graph.d.ts.map +1 -1
- package/dist/observe/graph.js +17 -1
- package/dist/observe/graph.js.map +1 -1
- package/dist/observe/session-view-events.d.ts.map +1 -1
- package/dist/observe/session-view-events.js +6 -7
- package/dist/observe/session-view-events.js.map +1 -1
- package/dist/observe/session-view-fold.d.ts +1 -0
- package/dist/observe/session-view-fold.d.ts.map +1 -1
- package/dist/observe/session-view-fold.js +2 -0
- package/dist/observe/session-view-fold.js.map +1 -1
- package/dist/observe/session-view-root.d.ts +8 -0
- package/dist/observe/session-view-root.d.ts.map +1 -0
- package/dist/observe/session-view-root.js +69 -0
- package/dist/observe/session-view-root.js.map +1 -0
- package/dist/observe/session-view.d.ts +6 -7
- package/dist/observe/session-view.d.ts.map +1 -1
- package/dist/observe/session-view.js +19 -27
- package/dist/observe/session-view.js.map +1 -1
- package/dist/observe/usage-totals.d.ts +0 -2
- package/dist/observe/usage-totals.d.ts.map +1 -1
- package/dist/observe/usage-totals.js +1 -15
- package/dist/observe/usage-totals.js.map +1 -1
- package/dist/observe/usage.js +2 -2
- package/dist/observe/usage.js.map +1 -1
- package/dist/platforms.d.ts +25 -0
- package/dist/platforms.d.ts.map +1 -0
- package/dist/platforms.js +16 -0
- package/dist/platforms.js.map +1 -0
- package/dist/runtimes/antigravity/index.d.ts +8 -1
- package/dist/runtimes/antigravity/index.d.ts.map +1 -1
- package/dist/runtimes/antigravity/index.js +3 -2
- package/dist/runtimes/antigravity/index.js.map +1 -1
- package/dist/runtimes/antigravity/skill-files.d.ts.map +1 -1
- package/dist/runtimes/antigravity/skill-files.js +44 -18
- package/dist/runtimes/antigravity/skill-files.js.map +1 -1
- package/dist/runtimes/antigravity/skill-manifests.d.ts +2 -0
- package/dist/runtimes/antigravity/skill-manifests.d.ts.map +1 -1
- package/dist/runtimes/antigravity/skill-manifests.js +11 -16
- package/dist/runtimes/antigravity/skill-manifests.js.map +1 -1
- package/dist/runtimes/claude/account-usage.d.ts.map +1 -1
- package/dist/runtimes/claude/account-usage.js +9 -7
- package/dist/runtimes/claude/account-usage.js.map +1 -1
- package/dist/runtimes/claude/auth-status.d.ts.map +1 -1
- package/dist/runtimes/claude/auth-status.js +6 -1
- package/dist/runtimes/claude/auth-status.js.map +1 -1
- package/dist/runtimes/claude/context-usage.d.ts +8 -4
- package/dist/runtimes/claude/context-usage.d.ts.map +1 -1
- package/dist/runtimes/claude/context-usage.js +24 -4
- package/dist/runtimes/claude/context-usage.js.map +1 -1
- package/dist/runtimes/claude/credentials.d.ts +4 -0
- package/dist/runtimes/claude/credentials.d.ts.map +1 -0
- package/dist/runtimes/claude/credentials.js +62 -0
- package/dist/runtimes/claude/credentials.js.map +1 -0
- package/dist/runtimes/claude/failure.d.ts +4 -0
- package/dist/runtimes/claude/failure.d.ts.map +1 -1
- package/dist/runtimes/claude/failure.js +14 -2
- package/dist/runtimes/claude/failure.js.map +1 -1
- package/dist/runtimes/claude/fork-identity.d.ts +2 -2
- package/dist/runtimes/claude/fork-identity.d.ts.map +1 -1
- package/dist/runtimes/claude/fork-identity.js +21 -16
- package/dist/runtimes/claude/fork-identity.js.map +1 -1
- package/dist/runtimes/claude/global-config.d.ts +3 -0
- package/dist/runtimes/claude/global-config.d.ts.map +1 -0
- package/dist/runtimes/claude/global-config.js +36 -0
- package/dist/runtimes/claude/global-config.js.map +1 -0
- package/dist/runtimes/claude/index.d.ts +9 -1
- package/dist/runtimes/claude/index.d.ts.map +1 -1
- package/dist/runtimes/claude/index.js +5 -2
- package/dist/runtimes/claude/index.js.map +1 -1
- package/dist/runtimes/claude/last-account.d.ts +4 -0
- package/dist/runtimes/claude/last-account.d.ts.map +1 -0
- package/dist/runtimes/claude/last-account.js +15 -0
- package/dist/runtimes/claude/last-account.js.map +1 -0
- package/dist/runtimes/claude/launch-args.d.ts.map +1 -1
- package/dist/runtimes/claude/launch-args.js +16 -8
- package/dist/runtimes/claude/launch-args.js.map +1 -1
- package/dist/runtimes/claude/launch.js +3 -3
- package/dist/runtimes/claude/launch.js.map +1 -1
- package/dist/runtimes/claude/limit-reset/driver.d.ts.map +1 -1
- package/dist/runtimes/claude/limit-reset/driver.js +6 -34
- package/dist/runtimes/claude/limit-reset/driver.js.map +1 -1
- package/dist/runtimes/claude/open-settings.d.ts +2 -2
- package/dist/runtimes/claude/open-settings.d.ts.map +1 -1
- package/dist/runtimes/claude/open-settings.js +13 -6
- package/dist/runtimes/claude/open-settings.js.map +1 -1
- package/dist/runtimes/claude/projection.d.ts +2 -1
- package/dist/runtimes/claude/projection.d.ts.map +1 -1
- package/dist/runtimes/claude/projection.js +45 -14
- package/dist/runtimes/claude/projection.js.map +1 -1
- package/dist/runtimes/claude/session.d.ts.map +1 -1
- package/dist/runtimes/claude/session.js +4 -3
- package/dist/runtimes/claude/session.js.map +1 -1
- package/dist/runtimes/claude/update.d.ts.map +1 -1
- package/dist/runtimes/claude/update.js +8 -0
- package/dist/runtimes/claude/update.js.map +1 -1
- package/dist/runtimes/claude/user-configuration.d.ts.map +1 -1
- package/dist/runtimes/claude/user-configuration.js +13 -6
- package/dist/runtimes/claude/user-configuration.js.map +1 -1
- package/dist/runtimes/codebuddy/failure.d.ts.map +1 -1
- package/dist/runtimes/codebuddy/failure.js +4 -0
- package/dist/runtimes/codebuddy/failure.js.map +1 -1
- package/dist/runtimes/codebuddy/index.d.ts +8 -1
- package/dist/runtimes/codebuddy/index.d.ts.map +1 -1
- package/dist/runtimes/codebuddy/index.js +3 -2
- package/dist/runtimes/codebuddy/index.js.map +1 -1
- package/dist/runtimes/codebuddy/options.d.ts.map +1 -1
- package/dist/runtimes/codebuddy/options.js +8 -9
- package/dist/runtimes/codebuddy/options.js.map +1 -1
- package/dist/runtimes/codex/app-server-client.d.ts.map +1 -1
- package/dist/runtimes/codex/app-server-client.js +2 -1
- package/dist/runtimes/codex/app-server-client.js.map +1 -1
- package/dist/runtimes/codex/index.d.ts +9 -2
- package/dist/runtimes/codex/index.d.ts.map +1 -1
- package/dist/runtimes/codex/index.js +7 -2
- package/dist/runtimes/codex/index.js.map +1 -1
- package/dist/runtimes/cursor/access.d.ts +4 -3
- package/dist/runtimes/cursor/access.d.ts.map +1 -1
- package/dist/runtimes/cursor/access.js +12 -8
- package/dist/runtimes/cursor/access.js.map +1 -1
- package/dist/runtimes/cursor/auth-status.js +1 -1
- package/dist/runtimes/cursor/auth-status.js.map +1 -1
- package/dist/runtimes/cursor/index.d.ts.map +1 -1
- package/dist/runtimes/cursor/index.js +1 -2
- package/dist/runtimes/cursor/index.js.map +1 -1
- package/dist/runtimes/cursor/list-models.js +1 -1
- package/dist/runtimes/cursor/list-models.js.map +1 -1
- package/dist/runtimes/cursor/login.js +1 -1
- package/dist/runtimes/cursor/login.js.map +1 -1
- package/dist/runtimes/cursor/logout.js +1 -1
- package/dist/runtimes/cursor/logout.js.map +1 -1
- package/dist/runtimes/cursor/model.d.ts.map +1 -1
- package/dist/runtimes/cursor/model.js +3 -1
- package/dist/runtimes/cursor/model.js.map +1 -1
- package/dist/runtimes/cursor/session.d.ts.map +1 -1
- package/dist/runtimes/cursor/session.js +5 -4
- package/dist/runtimes/cursor/session.js.map +1 -1
- package/dist/runtimes/cursor/subprocess/channel.d.ts +1 -1
- package/dist/runtimes/cursor/subprocess/channel.d.ts.map +1 -1
- package/dist/runtimes/cursor/subprocess/channel.js +7 -7
- package/dist/runtimes/cursor/subprocess/channel.js.map +1 -1
- package/dist/runtimes/devin/index.d.ts +3 -1
- package/dist/runtimes/devin/index.d.ts.map +1 -1
- package/dist/runtimes/dsh/bridge-controls.d.ts +3 -0
- package/dist/runtimes/dsh/bridge-controls.d.ts.map +1 -0
- package/dist/runtimes/dsh/bridge-controls.js +67 -0
- package/dist/runtimes/dsh/bridge-controls.js.map +1 -0
- package/dist/runtimes/dsh/bridge-goal.d.ts.map +1 -1
- package/dist/runtimes/dsh/bridge-goal.js +9 -5
- package/dist/runtimes/dsh/bridge-goal.js.map +1 -1
- package/dist/runtimes/dsh/bridge-input.d.ts +3 -0
- package/dist/runtimes/dsh/bridge-input.d.ts.map +1 -0
- package/dist/runtimes/dsh/bridge-input.js +77 -0
- package/dist/runtimes/dsh/bridge-input.js.map +1 -0
- package/dist/runtimes/dsh/bridge.d.ts.map +1 -1
- package/dist/runtimes/dsh/bridge.js +30 -55
- package/dist/runtimes/dsh/bridge.js.map +1 -1
- package/dist/runtimes/dsh/compaction.d.ts +5 -0
- package/dist/runtimes/dsh/compaction.d.ts.map +1 -0
- package/dist/runtimes/dsh/compaction.js +73 -0
- package/dist/runtimes/dsh/compaction.js.map +1 -0
- package/dist/runtimes/dsh/control.d.ts +2 -2
- package/dist/runtimes/dsh/control.d.ts.map +1 -1
- package/dist/runtimes/dsh/control.js +7 -5
- package/dist/runtimes/dsh/control.js.map +1 -1
- package/dist/runtimes/dsh/index.d.ts +43 -3
- package/dist/runtimes/dsh/index.d.ts.map +1 -1
- package/dist/runtimes/dsh/index.js +13 -2
- package/dist/runtimes/dsh/index.js.map +1 -1
- package/dist/runtimes/dsh/jobs.d.ts +3 -1
- package/dist/runtimes/dsh/jobs.d.ts.map +1 -1
- package/dist/runtimes/dsh/jobs.js +20 -1
- package/dist/runtimes/dsh/jobs.js.map +1 -1
- package/dist/runtimes/dsh/launch.d.ts +0 -2
- package/dist/runtimes/dsh/launch.d.ts.map +1 -1
- package/dist/runtimes/dsh/launch.js +1 -6
- package/dist/runtimes/dsh/launch.js.map +1 -1
- package/dist/runtimes/dsh/options.d.ts +2 -0
- package/dist/runtimes/dsh/options.d.ts.map +1 -1
- package/dist/runtimes/dsh/options.js +11 -1
- package/dist/runtimes/dsh/options.js.map +1 -1
- package/dist/runtimes/dsh/projection.d.ts.map +1 -1
- package/dist/runtimes/dsh/projection.js +7 -2
- package/dist/runtimes/dsh/projection.js.map +1 -1
- package/dist/runtimes/dsh/session.d.ts.map +1 -1
- package/dist/runtimes/dsh/session.js +38 -12
- package/dist/runtimes/dsh/session.js.map +1 -1
- package/dist/runtimes/dsh/version.d.ts +1 -2
- package/dist/runtimes/dsh/version.d.ts.map +1 -1
- package/dist/runtimes/dsh/version.js +3 -46
- package/dist/runtimes/dsh/version.js.map +1 -1
- package/dist/runtimes/factory/account-credential.d.ts +2 -1
- package/dist/runtimes/factory/account-credential.d.ts.map +1 -1
- package/dist/runtimes/factory/account-credential.js +5 -2
- package/dist/runtimes/factory/account-credential.js.map +1 -1
- package/dist/runtimes/factory/account-usage.d.ts.map +1 -1
- package/dist/runtimes/factory/account-usage.js +4 -2
- package/dist/runtimes/factory/account-usage.js.map +1 -1
- package/dist/runtimes/factory/client.d.ts.map +1 -1
- package/dist/runtimes/factory/client.js +2 -1
- package/dist/runtimes/factory/client.js.map +1 -1
- package/dist/runtimes/factory/compaction.d.ts +1 -1
- package/dist/runtimes/factory/compaction.d.ts.map +1 -1
- package/dist/runtimes/factory/compaction.js +35 -51
- package/dist/runtimes/factory/compaction.js.map +1 -1
- package/dist/runtimes/factory/context-usage.d.ts +15 -0
- package/dist/runtimes/factory/context-usage.d.ts.map +1 -0
- package/dist/runtimes/factory/context-usage.js +75 -0
- package/dist/runtimes/factory/context-usage.js.map +1 -0
- package/dist/runtimes/factory/index.d.ts +8 -1
- package/dist/runtimes/factory/index.d.ts.map +1 -1
- package/dist/runtimes/factory/index.js +2 -1
- package/dist/runtimes/factory/index.js.map +1 -1
- package/dist/runtimes/factory/options.d.ts.map +1 -1
- package/dist/runtimes/factory/options.js +3 -8
- package/dist/runtimes/factory/options.js.map +1 -1
- package/dist/runtimes/factory/session-state.d.ts +2 -0
- package/dist/runtimes/factory/session-state.d.ts.map +1 -1
- package/dist/runtimes/factory/session-state.js.map +1 -1
- package/dist/runtimes/factory/session.d.ts.map +1 -1
- package/dist/runtimes/factory/session.js +76 -45
- package/dist/runtimes/factory/session.js.map +1 -1
- package/dist/runtimes/grok/account-info.d.ts +11 -0
- package/dist/runtimes/grok/account-info.d.ts.map +1 -0
- package/dist/runtimes/grok/account-info.js +60 -0
- package/dist/runtimes/grok/account-info.js.map +1 -0
- package/dist/runtimes/grok/account-usage.d.ts +0 -2
- package/dist/runtimes/grok/account-usage.d.ts.map +1 -1
- package/dist/runtimes/grok/account-usage.js +30 -48
- package/dist/runtimes/grok/account-usage.js.map +1 -1
- package/dist/runtimes/grok/auth.d.ts.map +1 -1
- package/dist/runtimes/grok/auth.js +9 -2
- package/dist/runtimes/grok/auth.js.map +1 -1
- package/dist/runtimes/grok/failure.d.ts.map +1 -1
- package/dist/runtimes/grok/failure.js +4 -2
- package/dist/runtimes/grok/failure.js.map +1 -1
- package/dist/runtimes/grok/index.d.ts +8 -1
- package/dist/runtimes/grok/index.d.ts.map +1 -1
- package/dist/runtimes/grok/index.js +3 -2
- package/dist/runtimes/grok/index.js.map +1 -1
- package/dist/runtimes/kimi/index.d.ts +8 -1
- package/dist/runtimes/kimi/index.d.ts.map +1 -1
- package/dist/runtimes/kimi/index.js +3 -2
- package/dist/runtimes/kimi/index.js.map +1 -1
- package/dist/runtimes/opencode/index.d.ts +7 -6
- package/dist/runtimes/opencode/index.d.ts.map +1 -1
- package/dist/runtimes/opencode/index.js +6 -5
- package/dist/runtimes/opencode/index.js.map +1 -1
- package/dist/runtimes/opencode/options.d.ts +5 -1
- package/dist/runtimes/opencode/options.d.ts.map +1 -1
- package/dist/runtimes/opencode/options.js +24 -1
- package/dist/runtimes/opencode/options.js.map +1 -1
- package/dist/runtimes/opencode/prompt-config-v2.d.ts +15 -0
- package/dist/runtimes/opencode/prompt-config-v2.d.ts.map +1 -0
- package/dist/runtimes/opencode/prompt-config-v2.js +75 -0
- package/dist/runtimes/opencode/prompt-config-v2.js.map +1 -0
- package/dist/runtimes/opencode/prompt-config.d.ts +12 -0
- package/dist/runtimes/opencode/prompt-config.d.ts.map +1 -1
- package/dist/runtimes/opencode/prompt-config.js +32 -19
- package/dist/runtimes/opencode/prompt-config.js.map +1 -1
- package/dist/runtimes/opencode/retry.d.ts +5 -0
- package/dist/runtimes/opencode/retry.d.ts.map +1 -0
- package/dist/runtimes/opencode/retry.js +20 -0
- package/dist/runtimes/opencode/retry.js.map +1 -0
- package/dist/runtimes/opencode/session.d.ts +1 -0
- package/dist/runtimes/opencode/session.d.ts.map +1 -1
- package/dist/runtimes/opencode/session.js +31 -8
- package/dist/runtimes/opencode/session.js.map +1 -1
- package/dist/runtimes/opencode/shared-session.d.ts.map +1 -1
- package/dist/runtimes/opencode/shared-session.js +7 -2
- package/dist/runtimes/opencode/shared-session.js.map +1 -1
- package/dist/runtimes/opencode/token-usage.d.ts +5 -0
- package/dist/runtimes/opencode/token-usage.d.ts.map +1 -0
- package/dist/runtimes/opencode/token-usage.js +31 -0
- package/dist/runtimes/opencode/token-usage.js.map +1 -0
- package/dist/runtimes/opencode/upgrade.d.ts +4 -0
- package/dist/runtimes/opencode/upgrade.d.ts.map +1 -0
- package/dist/runtimes/opencode/upgrade.js +21 -0
- package/dist/runtimes/opencode/upgrade.js.map +1 -0
- package/dist/runtimes/opencode/version.d.ts +5 -0
- package/dist/runtimes/opencode/version.d.ts.map +1 -1
- package/dist/runtimes/opencode/version.js +14 -1
- package/dist/runtimes/opencode/version.js.map +1 -1
- package/dist/runtimes/pi/index.d.ts.map +1 -1
- package/dist/runtimes/pi/index.js +3 -2
- package/dist/runtimes/pi/index.js.map +1 -1
- package/dist/runtimes/pi/input-disposition.d.ts +1 -1
- package/dist/runtimes/pi/input-disposition.d.ts.map +1 -1
- package/dist/runtimes/pi/inventory.d.ts.map +1 -1
- package/dist/runtimes/pi/inventory.js +5 -2
- package/dist/runtimes/pi/inventory.js.map +1 -1
- package/dist/runtimes/pi/projection.d.ts.map +1 -1
- package/dist/runtimes/pi/projection.js +5 -1
- package/dist/runtimes/pi/projection.js.map +1 -1
- package/dist/runtimes/pi/rpc/control.d.ts +1 -1
- package/dist/runtimes/pi/rpc/control.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/control.js +5 -3
- package/dist/runtimes/pi/rpc/control.js.map +1 -1
- package/dist/runtimes/pi/rpc/open.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/open.js +4 -2
- package/dist/runtimes/pi/rpc/open.js.map +1 -1
- package/dist/runtimes/pi/rpc/session.js +4 -4
- package/dist/runtimes/pi/rpc/session.js.map +1 -1
- package/dist/runtimes/pi/session.js +4 -4
- package/dist/runtimes/pi/session.js.map +1 -1
- package/dist/runtimes/pi-durable/index.d.ts.map +1 -1
- package/dist/runtimes/pi-durable/index.js +3 -2
- package/dist/runtimes/pi-durable/index.js.map +1 -1
- package/dist/runtimes/pi-durable/session.d.ts.map +1 -1
- package/dist/runtimes/pi-durable/session.js +53 -12
- package/dist/runtimes/pi-durable/session.js.map +1 -1
- package/dist/runtimes/qoder/daemon.d.ts +2 -1
- package/dist/runtimes/qoder/daemon.d.ts.map +1 -1
- package/dist/runtimes/qoder/daemon.js +12 -6
- package/dist/runtimes/qoder/daemon.js.map +1 -1
- package/dist/runtimes/qoder/index.d.ts +8 -1
- package/dist/runtimes/qoder/index.d.ts.map +1 -1
- package/dist/runtimes/qoder/index.js +2 -1
- package/dist/runtimes/qoder/index.js.map +1 -1
- package/dist/runtimes/qoder/launch.d.ts +2 -1
- package/dist/runtimes/qoder/launch.d.ts.map +1 -1
- package/dist/runtimes/qoder/launch.js +8 -4
- package/dist/runtimes/qoder/launch.js.map +1 -1
- package/dist/runtimes/qoder/list-models.d.ts.map +1 -1
- package/dist/runtimes/qoder/list-models.js +20 -13
- package/dist/runtimes/qoder/list-models.js.map +1 -1
- package/dist/runtimes/qoder/options.d.ts.map +1 -1
- package/dist/runtimes/qoder/options.js +13 -10
- package/dist/runtimes/qoder/options.js.map +1 -1
- package/dist/runtimes/qoder/projection.d.ts.map +1 -1
- package/dist/runtimes/qoder/projection.js +2 -1
- package/dist/runtimes/qoder/projection.js.map +1 -1
- package/dist/runtimes/qoder/protocol.d.ts +3 -1
- package/dist/runtimes/qoder/protocol.d.ts.map +1 -1
- package/dist/runtimes/qoder/protocol.js +6 -4
- package/dist/runtimes/qoder/protocol.js.map +1 -1
- package/dist/runtimes/qoder/session.js +1 -1
- package/dist/runtimes/qoder/session.js.map +1 -1
- package/dist/runtimes/qwen/index.d.ts +9 -2
- package/dist/runtimes/qwen/index.d.ts.map +1 -1
- package/dist/runtimes/qwen/index.js +7 -2
- package/dist/runtimes/qwen/index.js.map +1 -1
- package/dist/runtimes/qwen/launch.js +1 -1
- package/dist/runtimes/qwen/launch.js.map +1 -1
- package/dist/runtimes/qwen/options.d.ts.map +1 -1
- package/dist/runtimes/qwen/options.js +11 -17
- package/dist/runtimes/qwen/options.js.map +1 -1
- package/dist/shared/acp/errors.d.ts.map +1 -1
- package/dist/shared/acp/errors.js +2 -1
- package/dist/shared/acp/errors.js.map +1 -1
- package/dist/shared/acp/profile.d.ts +5 -3
- package/dist/shared/acp/profile.d.ts.map +1 -1
- package/dist/shared/acp/profile.js +34 -17
- package/dist/shared/acp/profile.js.map +1 -1
- package/dist/shared/acp/projection.js +7 -3
- package/dist/shared/acp/projection.js.map +1 -1
- package/dist/shared/acp/records.js +9 -9
- package/dist/shared/acp/records.js.map +1 -1
- package/dist/shared/acp/session.d.ts +3 -2
- package/dist/shared/acp/session.d.ts.map +1 -1
- package/dist/shared/acp/session.js +95 -52
- package/dist/shared/acp/session.js.map +1 -1
- package/dist/shared/acp/shared-session.d.ts.map +1 -1
- package/dist/shared/acp/shared-session.js +8 -2
- package/dist/shared/acp/shared-session.js.map +1 -1
- package/dist/shared/acp/token-usage.d.ts +1 -1
- package/dist/shared/acp/token-usage.d.ts.map +1 -1
- package/dist/shared/acp/token-usage.js +2 -2
- package/dist/shared/acp/token-usage.js.map +1 -1
- package/dist/shared/acp/turn-terminals.d.ts.map +1 -1
- package/dist/shared/acp/turn-terminals.js +59 -48
- package/dist/shared/acp/turn-terminals.js.map +1 -1
- package/dist/shared/acp/turns.d.ts +1 -1
- package/dist/shared/acp/turns.d.ts.map +1 -1
- package/dist/shared/acp/turns.js +11 -7
- package/dist/shared/acp/turns.js.map +1 -1
- package/dist/shared/credential-redactor.d.ts +8 -0
- package/dist/shared/credential-redactor.d.ts.map +1 -1
- package/dist/shared/credential-redactor.js +22 -0
- package/dist/shared/credential-redactor.js.map +1 -1
- package/dist/shared/executable/diagnostics.d.ts +6 -0
- package/dist/shared/executable/diagnostics.d.ts.map +1 -1
- package/dist/shared/executable/diagnostics.js +9 -0
- package/dist/shared/executable/diagnostics.js.map +1 -1
- package/dist/shared/executable/node-script.d.ts +1 -0
- package/dist/shared/executable/node-script.d.ts.map +1 -1
- package/dist/shared/executable/node-script.js +1 -1
- package/dist/shared/executable/node-script.js.map +1 -1
- package/dist/shared/executable/process.js +1 -1
- package/dist/shared/executable/process.js.map +1 -1
- package/dist/shared/executable/reported-stderr.d.ts +10 -0
- package/dist/shared/executable/reported-stderr.d.ts.map +1 -0
- package/dist/shared/executable/reported-stderr.js +28 -0
- package/dist/shared/executable/reported-stderr.js.map +1 -0
- package/dist/shared/held-input.d.ts +9 -0
- package/dist/shared/held-input.d.ts.map +1 -1
- package/dist/shared/held-input.js +8 -0
- package/dist/shared/held-input.js.map +1 -1
- package/dist/shared/launch-args.d.ts +7 -0
- package/dist/shared/launch-args.d.ts.map +1 -0
- package/dist/shared/launch-args.js +25 -0
- package/dist/shared/launch-args.js.map +1 -0
- package/dist/shared/orientation/index.d.ts.map +1 -1
- package/dist/shared/orientation/index.js +7 -2
- package/dist/shared/orientation/index.js.map +1 -1
- package/dist/shared/process-session.d.ts +3 -2
- package/dist/shared/process-session.d.ts.map +1 -1
- package/dist/shared/process-session.js +13 -11
- package/dist/shared/process-session.js.map +1 -1
- package/dist/shared/seal-session.d.ts.map +1 -1
- package/dist/shared/seal-session.js +2 -1
- package/dist/shared/seal-session.js.map +1 -1
- package/dist/shared/semver.d.ts +12 -0
- package/dist/shared/semver.d.ts.map +1 -0
- package/dist/shared/semver.js +52 -0
- package/dist/shared/semver.js.map +1 -0
- package/dist/shared/session-options.d.ts +6 -0
- package/dist/shared/session-options.d.ts.map +1 -1
- package/dist/shared/session-options.js +22 -4
- package/dist/shared/session-options.js.map +1 -1
- package/dist/shared/stream-json/profile.d.ts +5 -1
- package/dist/shared/stream-json/profile.d.ts.map +1 -1
- package/dist/shared/stream-json/projection.d.ts.map +1 -1
- package/dist/shared/stream-json/projection.js +34 -3
- package/dist/shared/stream-json/projection.js.map +1 -1
- package/dist/shared/stream-json/session.d.ts.map +1 -1
- package/dist/shared/stream-json/session.js +12 -5
- package/dist/shared/stream-json/session.js.map +1 -1
- package/dist/shared/stream-json/state.d.ts +2 -0
- package/dist/shared/stream-json/state.d.ts.map +1 -1
- package/dist/shared/stream-json/state.js +1 -0
- package/dist/shared/stream-json/state.js.map +1 -1
- package/dist/shared/update.d.ts +2 -0
- package/dist/shared/update.d.ts.map +1 -1
- package/dist/shared/update.js +6 -2
- package/dist/shared/update.js.map +1 -1
- package/dist/shared/user-configuration.d.ts +5 -0
- package/dist/shared/user-configuration.d.ts.map +1 -0
- package/dist/shared/user-configuration.js +19 -0
- package/dist/shared/user-configuration.js.map +1 -0
- package/dist/testing/scripted-runtime.d.ts.map +1 -1
- package/dist/testing/scripted-runtime.js +3 -2
- package/dist/testing/scripted-runtime.js.map +1 -1
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -86,9 +86,10 @@ codebuddy, devin and kimi sessions have none, nor opencode v2 sessions whose
|
|
|
86
86
|
[session controls](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#session-controls)),
|
|
87
87
|
so a host offers a steer control by reading the member, never a runtime
|
|
88
88
|
name; `deliver` and `steerOrQueue` queue where it is absent. Before any session
|
|
89
|
-
exists, `runtime.sessionCapabilities?.(installation)` answers
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
exists, `runtime.sessionCapabilities?.(installation)` answers synchronously
|
|
90
|
+
what that installation will offer: `steer`, `images`, the options it refuses,
|
|
91
|
+
manual compaction and compaction events, where known without opening one; an
|
|
92
|
+
absent field is unknown, not false
|
|
92
93
|
([before open](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#session-capabilities-before-open)).
|
|
93
94
|
`session.withdraw(inputId)` takes a queued input back before it is
|
|
94
95
|
sent (`accepted`), or answers `not_queued` once it went; with it a UI offers
|
|
@@ -161,12 +162,13 @@ The package has these public entry points, plus `@botiverse/oar/pi-durable` ([be
|
|
|
161
162
|
- `@botiverse/oar/agents/report`: `formatReport`, `parseReport`, `reportOrigin` and their types, with no Node or adapter imports, for a host forwarding or displaying reports. `parseReport` reads the existing report format into header fields, a structured outcome and the original body, or returns `null`. `@botiverse/oar/agents` loads every built-in runtime, because `createSubagents` defaults to them.
|
|
162
163
|
- `@botiverse/oar/testing`: `scriptedRuntime({ turn })`, a ready-made runtime on the kernel SPI whose model is a script. It yields a real `Session` (same records, folds and control semantics) with no binary, login or provider, for hosts' tests and demos. A script can also start tasks (`turn.task`) that end after the turn, like a background command, and make the runtime's process exit on its own (`turn.exit`, during the turn or kept for later, while idle), recorded as a vendor process's unexpected exit is. Node-only.
|
|
163
164
|
- `@botiverse/oar/forms`: runtime config forms for a host's agent-creation UI, as plain data (`configForms`, keyed by runtime id; grok only so far) and shared form types. Hosts validate and map selected values to session options. A form states what the runtime accepts; a host may only narrow it. Loads no runtime SDK and does nothing on import, so it runs in a browser. See [config form](https://github.com/botiverse/oar/blob/main/docs/spec/config-form.md).
|
|
165
|
+
- `@botiverse/oar/capabilities`: `installedSessionCapabilities` and its session-capability contract types (`SessionCapabilityDeclaration`, `CompactionEvents`, `ManualCompaction`, `RefusedSessionOptions`, `RefusableSessionOption`, `AvailableInstallation`, `Runtime`). Loads only contract modules, no runtime adapters or native SDKs, for hosts that avoid the root entry to keep memory low.
|
|
164
166
|
|
|
165
167
|
Brand SVG files are exported at `@botiverse/oar/assets/brands/<runtime-id>.svg`. Any other deep import (`@botiverse/oar/dist/...`, source paths) is internal and may break without notice.
|
|
166
168
|
|
|
167
169
|
Antigravity, CodeBuddy, Devin, Grok, Kimi, and OpenCode share an internal ACP v1 transport and session kernel, but only their concrete runtime identities are public. The registry deliberately does not expose a generic `acp` runtime. The pi SDK (`@earendil-works/pi-coding-agent`) is a dependency of this package. `@cursor/sdk` is an optional peer dependency, and cursor is not in `defaultRuntimes`: install the SDK (`npm install @cursor/sdk@1.4.1`) and hand it over, `createRuntimeRegistry([...defaultRuntimes.list(), createCursorRuntime({ sdk: () => import("@cursor/sdk") })])`. Written in your code, that import fails your compile if the package is missing. It is Cursor's own package under Cursor's terms, and it signs in with `CURSOR_API_KEY` or its own `Cursor.auth.login()`. `createCursorRuntime({ execution: "subprocess", sdkModule: import.meta.resolve("@cursor/sdk") })` instead runs the SDK in a Node child per session, which takes `SessionOptions.env` and whose crash is recorded as `exited` ([execution modes](https://github.com/botiverse/oar/blob/main/docs/runtimes/cursor.md#execution-modes)).
|
|
168
170
|
|
|
169
|
-
Community runtimes are contributed and maintained outside the core team (each maintainer is named on its runtime page). They ship in this package from a separate entry point, `@botiverse/oar/community`, and are not in `defaultRuntimes`: `createRuntimeRegistry([...defaultRuntimes.list(), createMorphRuntime()])` adds [Mister Morph](https://github.com/botiverse/oar/blob/main/docs/runtimes/morph.md), driven through its Console Runtime API. The `oar` CLI
|
|
171
|
+
Community runtimes are contributed and maintained outside the core team (each maintainer is named on its runtime page). They ship in this package from a separate entry point, `@botiverse/oar/community`, and are not in `defaultRuntimes`: `createRuntimeRegistry([...defaultRuntimes.list(), createMorphRuntime()])` adds [Mister Morph](https://github.com/botiverse/oar/blob/main/docs/runtimes/morph.md), driven through its Console Runtime API, and `createCybionRuntime({ baseUrl, apiKey })` adds [Cybion](https://github.com/botiverse/oar/blob/main/docs/runtimes/cybion.md), which drives a server-side Thread through its Agent API. The `oar` CLI adds Mister Morph; it leaves Cybion out, because a Cybion runtime needs a deployment URL and an API key that only the embedding host has.
|
|
170
172
|
|
|
171
173
|
**Pi Azure provider (since Pi 1.0.3):** the provider is `azure`, not
|
|
172
174
|
`azure-openai-responses`; use that prefix in native provider configuration and
|
|
@@ -292,12 +294,13 @@ copy's. `fork.through` keeps only the turns through one turn: pass the
|
|
|
292
294
|
`forkAnchor` of that turn's root `turn_ended` event (`ViewTurn.forkAnchor` in
|
|
293
295
|
the session view); a turn without one cannot be a cut point (claude names
|
|
294
296
|
none for a turn that ends on a tool call or was aborted). Claude and Codex
|
|
295
|
-
(`through` from Codex 0.143.0)
|
|
297
|
+
support anchored copies (`through` from Codex 0.143.0). OpenCode v2 supports
|
|
298
|
+
whole-session copies when ACP advertises `fork` and refuses `through`. See
|
|
296
299
|
[forking a session](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#forking-a-session).
|
|
297
300
|
|
|
298
301
|
`SessionOptions.additionalDirectories` adds native workspace paths, resolved
|
|
299
302
|
relative to `cwd`. Claude, Codex, Cursor, Kimi (new sessions only),
|
|
300
|
-
OpenCode v2, Qwen and
|
|
303
|
+
OpenCode v2, Qwen, Qoder and DSH 0.2.2-rc.3+ (Linux and macOS) support it; other runtimes refuse it. Empty or omitted adds no
|
|
301
304
|
override. It keeps the primary `cwd` and does not change the sandbox mode.
|
|
302
305
|
Project rules or instruction files in those directories may or may not load:
|
|
303
306
|
the option does not guarantee it. Resume and configuration rules differ by runtime; see
|
|
@@ -308,7 +311,9 @@ skills, commands, agents, MCP servers, hooks, memory and settings while
|
|
|
308
311
|
keeping the native login and session history, so a host can offer a clean
|
|
309
312
|
configuration without a new login or losing resume. It is not a sandbox, and
|
|
310
313
|
project configuration stays runtime-specific. Claude and Cursor support it;
|
|
311
|
-
other runtimes refuse it.
|
|
314
|
+
other runtimes refuse it. On Claude, `{ exclude: ["instructions"] }` leaves
|
|
315
|
+
settings and MCP active. You can combine `settings`, `mcp` and `instructions`.
|
|
316
|
+
Give the option again on resume. See
|
|
312
317
|
[user configuration](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#user-configuration).
|
|
313
318
|
|
|
314
319
|
`SessionOptions.endTurnProcessesOnAbort: true` (Codex in an isolated
|
|
@@ -569,7 +574,7 @@ const runtime = createPiDurableRuntime({ harness, models });
|
|
|
569
574
|
const session = await runtime.session({ kind: "available", via: "bundled" }, {
|
|
570
575
|
cwd: "/workspace", model: "provider/model",
|
|
571
576
|
});
|
|
572
|
-
let view = initialSessionView();
|
|
577
|
+
let view = initialSessionView(session.id);
|
|
573
578
|
session.rawEvents(record => {
|
|
574
579
|
view = reduceSessionView(view, record, session.id);
|
|
575
580
|
render(view);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lightweight session-capability entry: resolves an installation's
|
|
3
|
+
* `SessionCapabilityDeclaration` (`installedSessionCapabilities`) without
|
|
4
|
+
* loading any runtime adapter or native SDK.
|
|
5
|
+
*/
|
|
6
|
+
export { installedSessionCapabilities } from "./contracts/runtime.js";
|
|
7
|
+
export type { CompactionEvents, RefusableSessionOption, RefusedSessionOptions, Runtime, SessionCapabilityDeclaration, } from "./contracts/runtime.js";
|
|
8
|
+
export type { AvailableInstallation } from "./contracts/installation.js";
|
|
9
|
+
export type { ManualCompaction } from "./contracts/compaction.js";
|
|
10
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACtE,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,OAAO,EACP,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC;AAChC,YAAY,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lightweight session-capability entry: resolves an installation's
|
|
3
|
+
* `SessionCapabilityDeclaration` (`installedSessionCapabilities`) without
|
|
4
|
+
* loading any runtime adapter or native SDK.
|
|
5
|
+
*/
|
|
6
|
+
export { installedSessionCapabilities } from "./contracts/runtime.js";
|
|
7
|
+
//# sourceMappingURL=capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.js","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type CybionReply } from "./refusal.js";
|
|
2
|
+
/** How a Cybion runtime reaches its deployment. */
|
|
3
|
+
export interface CybionOptions {
|
|
4
|
+
/** Base URL of the Cybion deployment, e.g. `https://cybion.ntnl.io`. */
|
|
5
|
+
readonly baseUrl: string;
|
|
6
|
+
/** An Agent API key (`cyb_<user id>_<secret>`), minted in Cybion's own API-key settings. */
|
|
7
|
+
readonly apiKey: string;
|
|
8
|
+
}
|
|
9
|
+
/** The `error` text of a Cybion body, when the body carries one. */
|
|
10
|
+
export declare function errorText(body: unknown): string | null;
|
|
11
|
+
/**
|
|
12
|
+
* The Cybion Agent API client (`/v1/threads`, docs/runtimes/cybion.md): a
|
|
13
|
+
* bearer API key and JSON. Cybion answers every control with a plain JSON
|
|
14
|
+
* body, so nothing here streams.
|
|
15
|
+
*/
|
|
16
|
+
export declare class CybionClient {
|
|
17
|
+
#private;
|
|
18
|
+
readonly baseUrl: string;
|
|
19
|
+
constructor(options: CybionOptions);
|
|
20
|
+
call(method: string, path: string, body?: unknown): Promise<CybionReply>;
|
|
21
|
+
/** The answer body, or an Error naming what Cybion answered. */
|
|
22
|
+
expect(method: string, path: string, body?: unknown): Promise<unknown>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sources":["../../../src/community/cybion/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAE9D,mDAAmD;AACnD,MAAM,WAAW,aAAa;IAC5B,wEAAwE;IACxE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,4FAA4F;IAC5F,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,oEAAoE;AACpE,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAGtD;AAED;;;;GAIG;AACH,qBAAa,YAAY;;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAGzB,YAAY,OAAO,EAAE,aAAa,EAGjC;IAEK,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAY7E;IAED,gEAAgE;IAC1D,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAM3E;CACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { asRecord, parseJson } from "../../shared/json.js";
|
|
2
|
+
import { replyMessage } from "./refusal.js";
|
|
3
|
+
/** The `error` text of a Cybion body, when the body carries one. */
|
|
4
|
+
export function errorText(body) {
|
|
5
|
+
const value = asRecord(body)?.error;
|
|
6
|
+
return typeof value === "string" && value !== "" ? value : null;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The Cybion Agent API client (`/v1/threads`, docs/runtimes/cybion.md): a
|
|
10
|
+
* bearer API key and JSON. Cybion answers every control with a plain JSON
|
|
11
|
+
* body, so nothing here streams.
|
|
12
|
+
*/
|
|
13
|
+
export class CybionClient {
|
|
14
|
+
baseUrl;
|
|
15
|
+
#apiKey;
|
|
16
|
+
constructor(options) {
|
|
17
|
+
this.baseUrl = options.baseUrl.replace(/\/+$/u, "");
|
|
18
|
+
this.#apiKey = options.apiKey;
|
|
19
|
+
}
|
|
20
|
+
async call(method, path, body) {
|
|
21
|
+
const response = await fetch(`${this.baseUrl}${path}`, {
|
|
22
|
+
method,
|
|
23
|
+
headers: {
|
|
24
|
+
authorization: `Bearer ${this.#apiKey}`,
|
|
25
|
+
accept: "application/json",
|
|
26
|
+
...(body === undefined ? {} : { "content-type": "application/json" }),
|
|
27
|
+
},
|
|
28
|
+
...(body === undefined ? {} : { body: JSON.stringify(body) }),
|
|
29
|
+
});
|
|
30
|
+
const text = await response.text();
|
|
31
|
+
return { status: response.status, body: text === "" ? null : parseJson(text) };
|
|
32
|
+
}
|
|
33
|
+
/** The answer body, or an Error naming what Cybion answered. */
|
|
34
|
+
async expect(method, path, body) {
|
|
35
|
+
const reply = await this.call(method, path, body);
|
|
36
|
+
if (reply.status < 200 || reply.status >= 300) {
|
|
37
|
+
throw new Error(`cybion ${method} ${path} answered ${String(reply.status)}: ${replyMessage(reply)}`);
|
|
38
|
+
}
|
|
39
|
+
return reply.body;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL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,CAAC;SAC9D,CAAC,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;IACjF,CAAC;IAED,gEAAgE;IAChE,KAAK,CAAC,MAAM,CAAC,MAAc,EAAE,IAAY,EAAE,IAAc;QACvD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAClD,IAAI,KAAK,CAAC,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC,MAAM,IAAI,GAAG,EAAE,CAAC;YAC9C,MAAM,IAAI,KAAK,CAAC,UAAU,MAAM,IAAI,IAAI,aAAa,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACvG,CAAC;QACD,OAAO,KAAK,CAAC,IAAI,CAAC;IACpB,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Runtime } from "../../contracts/runtime.js";
|
|
2
|
+
import { type CybionOptions } from "./client.js";
|
|
3
|
+
export type { CybionOptions } from "./client.js";
|
|
4
|
+
/** A cybion runtime: its installation fact and refusals are always there. */
|
|
5
|
+
export type CybionRuntime = Runtime & Required<Pick<Runtime, "installation" | "refusedSessionOptions">>;
|
|
6
|
+
/**
|
|
7
|
+
* Cybion, driven through its Agent API (`/v1/threads`; docs/runtimes/cybion.md).
|
|
8
|
+
* A community runtime: not in the built-in `runtimes` registry; a host adds it
|
|
9
|
+
* with `createRuntimeRegistry([...defaultRuntimes.list(), createCybionRuntime({
|
|
10
|
+
* baseUrl, apiKey })])`. The deployment and its API key are the host's, so they
|
|
11
|
+
* are constructor inputs: the adapter holds no credential of its own.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createCybionRuntime(options: CybionOptions): CybionRuntime;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../src/community/cybion/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAI/D,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAWjD,6EAA6E;AAC7E,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,GAAG,uBAAuB,CAAC,CAAC,CAAC;AAExG;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,CAUzE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineRuntime } from "../../contracts/runtime.js";
|
|
2
|
+
import { CybionClient } from "./client.js";
|
|
3
|
+
import { cybionRefusedSessionOptions } from "./refused-options.js";
|
|
4
|
+
import { cybionSessionWith } from "./session.js";
|
|
5
|
+
/** Cybion ships no mark in this repository, so the brand carries its name and no icon. */
|
|
6
|
+
const cybionBrand = { name: "Cybion", icon: null };
|
|
7
|
+
/** The adapter drives a deployment over HTTP: there is no local executable to probe. */
|
|
8
|
+
const cybionInstallation = async () => {
|
|
9
|
+
await Promise.resolve();
|
|
10
|
+
return { kind: "available", via: "bundled" };
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Cybion, driven through its Agent API (`/v1/threads`; docs/runtimes/cybion.md).
|
|
14
|
+
* A community runtime: not in the built-in `runtimes` registry; a host adds it
|
|
15
|
+
* with `createRuntimeRegistry([...defaultRuntimes.list(), createCybionRuntime({
|
|
16
|
+
* baseUrl, apiKey })])`. The deployment and its API key are the host's, so they
|
|
17
|
+
* are constructor inputs: the adapter holds no credential of its own.
|
|
18
|
+
*/
|
|
19
|
+
export function createCybionRuntime(options) {
|
|
20
|
+
const client = new CybionClient(options);
|
|
21
|
+
return defineRuntime({
|
|
22
|
+
id: "cybion",
|
|
23
|
+
sessionCapabilities: () => ({ steer: true, images: true }),
|
|
24
|
+
brand: cybionBrand,
|
|
25
|
+
installation: cybionInstallation,
|
|
26
|
+
session: cybionSessionWith(client),
|
|
27
|
+
refusedSessionOptions: cybionRefusedSessionOptions,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/community/cybion/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAgB,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,YAAY,EAAsB,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAIjD,0FAA0F;AAC1F,MAAM,WAAW,GAAiB,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAEjE,wFAAwF;AACxF,MAAM,kBAAkB,GAAsB,KAAK,IAAI,EAAE;IACvD,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;IACxB,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;AAC/C,CAAC,CAAC;AAKF;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAsB;IACxD,MAAM,MAAM,GAAG,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC;IACzC,OAAO,aAAa,CAAC;QACnB,EAAE,EAAE,QAAQ;QACZ,mBAAmB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAC1D,KAAK,EAAE,WAAW;QAClB,YAAY,EAAE,kBAAkB;QAChC,OAAO,EAAE,iBAAiB,CAAC,MAAM,CAAC;QAClC,qBAAqB,EAAE,2BAA2B;KACnD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RuntimeEventBody } from "../../contracts/records.js";
|
|
2
|
+
import { type CybionHistoryRecord } from "./thread.js";
|
|
3
|
+
/** What oar reads out of one history record, in the record's own terms. */
|
|
4
|
+
export declare function eventsOfHistory(record: CybionHistoryRecord): readonly RuntimeEventBody[];
|
|
5
|
+
/** The frame type one history record is recorded under: its own kind and item type. */
|
|
6
|
+
export declare function frameTypeOf(record: CybionHistoryRecord): string;
|
|
7
|
+
//# sourceMappingURL=projection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projection.d.ts","sources":["../../../src/community/cybion/projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAgB,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAsFrE,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,MAAM,EAAE,mBAAmB,GAAG,SAAS,gBAAgB,EAAE,CAWxF;AAED,uFAAuF;AACvF,wBAAgB,WAAW,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAK/D"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { asRecordList } from "../../shared/json.js";
|
|
2
|
+
import { outputTextOf } from "./thread.js";
|
|
3
|
+
/*
|
|
4
|
+
* A Cybion Thread's history is append-only and already the conversation:
|
|
5
|
+
* `input` (a user message), `response_output` (one Responses API output item:
|
|
6
|
+
* a message, a reasoning item, a function call) and `tool_output` (the result
|
|
7
|
+
* of one call, as the Worker answered it). The mapping below reads the kinds
|
|
8
|
+
* it knows and nothing more: an item it does not interpret still enters the
|
|
9
|
+
* stream as a frame with its own `type` and no events, never as a guess.
|
|
10
|
+
*/
|
|
11
|
+
function messageId(record) {
|
|
12
|
+
const id = record.payload.id;
|
|
13
|
+
return typeof id === "string" && id !== "" ? id : `cybion-record-${String(record.id)}`;
|
|
14
|
+
}
|
|
15
|
+
function userMessage(record) {
|
|
16
|
+
const content = record.payload.content;
|
|
17
|
+
const input = typeof content === "string"
|
|
18
|
+
? content
|
|
19
|
+
: asRecordList(content)
|
|
20
|
+
.map((part) => (typeof part.text === "string" ? part.text : ""))
|
|
21
|
+
.join("");
|
|
22
|
+
return [{ kind: "user_message", input, nativeMessageId: messageId(record), evidence: "conversation" }];
|
|
23
|
+
}
|
|
24
|
+
function reasoningOf(payload) {
|
|
25
|
+
const summary = asRecordList(payload.summary)
|
|
26
|
+
.map((part) => (typeof part.text === "string" ? part.text : ""))
|
|
27
|
+
.join("");
|
|
28
|
+
if (summary !== "") {
|
|
29
|
+
return summary;
|
|
30
|
+
}
|
|
31
|
+
return asRecordList(payload.content)
|
|
32
|
+
.map((part) => (typeof part.text === "string" ? part.text : ""))
|
|
33
|
+
.join("");
|
|
34
|
+
}
|
|
35
|
+
function outputEvents(record) {
|
|
36
|
+
const payload = record.payload;
|
|
37
|
+
switch (payload.type) {
|
|
38
|
+
case "message": {
|
|
39
|
+
const text = outputTextOf(payload);
|
|
40
|
+
return text === "" ? [] : [{ kind: "text_delta", text, messageId: messageId(record) }];
|
|
41
|
+
}
|
|
42
|
+
case "reasoning": {
|
|
43
|
+
const text = reasoningOf(payload);
|
|
44
|
+
const content = text === "" ? { kind: "empty" } : { kind: "text", text };
|
|
45
|
+
return [{ kind: "reasoning", content, messageId: messageId(record) }];
|
|
46
|
+
}
|
|
47
|
+
case "function_call":
|
|
48
|
+
case "custom_tool_call": {
|
|
49
|
+
const callId = payload.call_id;
|
|
50
|
+
const tool = payload.name;
|
|
51
|
+
if (typeof callId !== "string" || callId === "" || typeof tool !== "string" || tool === "") {
|
|
52
|
+
return [];
|
|
53
|
+
}
|
|
54
|
+
const input = payload.arguments ?? payload.input;
|
|
55
|
+
return [{
|
|
56
|
+
kind: "tool_call_started",
|
|
57
|
+
callId,
|
|
58
|
+
tool,
|
|
59
|
+
...(input === undefined ? {} : { input: typeof input === "string" ? input : JSON.stringify(input) }),
|
|
60
|
+
}];
|
|
61
|
+
}
|
|
62
|
+
default:
|
|
63
|
+
return [];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function toolOutputPart(output) {
|
|
67
|
+
if (typeof output === "string") {
|
|
68
|
+
return [{ type: "text", text: output }];
|
|
69
|
+
}
|
|
70
|
+
return output === undefined ? [] : [{ type: "other", value: output }];
|
|
71
|
+
}
|
|
72
|
+
function toolOutputEvents(record) {
|
|
73
|
+
const callId = record.payload.call_id;
|
|
74
|
+
if (typeof callId !== "string" || callId === "") {
|
|
75
|
+
return [];
|
|
76
|
+
}
|
|
77
|
+
const content = toolOutputPart(record.payload.output);
|
|
78
|
+
return [{ kind: "tool_call_ended", callId, ...(content.length === 0 ? {} : { content }) }];
|
|
79
|
+
}
|
|
80
|
+
/** What oar reads out of one history record, in the record's own terms. */
|
|
81
|
+
export function eventsOfHistory(record) {
|
|
82
|
+
switch (record.kind) {
|
|
83
|
+
case "input":
|
|
84
|
+
return userMessage(record);
|
|
85
|
+
case "response_output":
|
|
86
|
+
return outputEvents(record);
|
|
87
|
+
case "tool_output":
|
|
88
|
+
return toolOutputEvents(record);
|
|
89
|
+
default:
|
|
90
|
+
return [];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/** The frame type one history record is recorded under: its own kind and item type. */
|
|
94
|
+
export function frameTypeOf(record) {
|
|
95
|
+
const item = record.payload.type;
|
|
96
|
+
return record.kind === "response_output" && typeof item === "string" && item !== ""
|
|
97
|
+
? `history/${record.kind}/${item}`
|
|
98
|
+
: `history/${record.kind}`;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=projection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|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AAO,GAAG,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACtD,OAAO,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;AAC7F,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,eAAe,CAAC,MAA2B;IACzD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,OAAO;YACV,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;QAC7B,KAAK,iBAAiB;YACpB,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;QAC9B,KAAK,aAAa;YAChB,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAClC;YACE,OAAO,EAAE,CAAC;IACd,CAAC;AACH,CAAC;AAED,uFAAuF;AACvF,MAAM,UAAU,WAAW,CAAC,MAA2B;IACrD,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;IACjC,OAAO,MAAM,CAAC,IAAI,KAAK,iBAAiB,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,EAAE;QACjF,CAAC,CAAC,WAAW,MAAM,CAAC,IAAI,IAAI,IAAI,EAAE;QAClC,CAAC,CAAC,WAAW,MAAM,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** One HTTP answer from Cybion, whatever its status. */
|
|
2
|
+
export interface CybionReply {
|
|
3
|
+
readonly status: number;
|
|
4
|
+
readonly body: unknown;
|
|
5
|
+
}
|
|
6
|
+
/** The message a Cybion answer carries: its `error` field, or the status alone. */
|
|
7
|
+
export declare function replyMessage(reply: CybionReply): string;
|
|
8
|
+
/**
|
|
9
|
+
* An input Cybion itself refused (a 4xx) rather than a transport failure:
|
|
10
|
+
* `refused` separates "the runtime said no" from "the call did not arrive".
|
|
11
|
+
*/
|
|
12
|
+
export declare class CybionRefusalError extends Error {
|
|
13
|
+
readonly name = "CybionRefusalError";
|
|
14
|
+
readonly native: unknown;
|
|
15
|
+
readonly refused: boolean;
|
|
16
|
+
readonly status: number;
|
|
17
|
+
constructor(reply: CybionReply);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=refusal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refusal.d.ts","sources":["../../../src/community/cybion/refusal.ts"],"names":[],"mappings":"AAEA,wDAAwD;AACxD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACxB;AAED,mFAAmF;AACnF,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAGvD;AAED;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,SAAkB,IAAI,wBAAwB;IAC9C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,YAAY,KAAK,EAAE,WAAW,EAK7B;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { asRecord } from "../../shared/json.js";
|
|
2
|
+
/** The message a Cybion answer carries: its `error` field, or the status alone. */
|
|
3
|
+
export function replyMessage(reply) {
|
|
4
|
+
const error = asRecord(reply.body)?.error;
|
|
5
|
+
return typeof error === "string" && error !== "" ? error : `HTTP ${String(reply.status)}`;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* An input Cybion itself refused (a 4xx) rather than a transport failure:
|
|
9
|
+
* `refused` separates "the runtime said no" from "the call did not arrive".
|
|
10
|
+
*/
|
|
11
|
+
export class CybionRefusalError extends Error {
|
|
12
|
+
name = "CybionRefusalError";
|
|
13
|
+
native;
|
|
14
|
+
refused;
|
|
15
|
+
status;
|
|
16
|
+
constructor(reply) {
|
|
17
|
+
super(replyMessage(reply));
|
|
18
|
+
this.native = reply.body;
|
|
19
|
+
this.refused = reply.status >= 400 && reply.status < 500;
|
|
20
|
+
this.status = reply.status;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=refusal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refusal.js","sources":["../../../src/community/cybion/refusal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAQhD,mFAAmF;AACnF,MAAM,UAAU,YAAY,CAAC,KAAkB;IAC7C,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC;IAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;AAC5F,CAAC;AAED;;;GAGG;AACH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IACzB,IAAI,GAAG,oBAAoB,CAAC;IACrC,MAAM,CAAU;IAChB,OAAO,CAAU;IACjB,MAAM,CAAS;IAExB,YAAY,KAAkB;QAC5B,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC;QACzD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RefusedSessionOptions } from "../../contracts/runtime.js";
|
|
2
|
+
/** Options a Cybion session refuses, each with the reason the Agent API gives none. */
|
|
3
|
+
export declare const cybionRefusedSessionOptions: RefusedSessionOptions;
|
|
4
|
+
//# sourceMappingURL=refused-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refused-options.d.ts","sources":["../../../src/community/cybion/refused-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAExE,uFAAuF;AACvF,eAAO,MAAM,2BAA2B,EAAE,qBAczC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Options a Cybion session refuses, each with the reason the Agent API gives none. */
|
|
2
|
+
export const cybionRefusedSessionOptions = {
|
|
3
|
+
systemPrompt: "A Cybion Thread takes no per-session system prompt: its instructions are the Manuals Cybion loads for it",
|
|
4
|
+
appendSystemPrompt: "A Cybion Thread takes no per-session system prompt: its instructions are the Manuals Cybion loads for it",
|
|
5
|
+
env: "A Cybion Thread runs on its owner's Workers, not in this process",
|
|
6
|
+
mcpServers: "Cybion's Agent API has no route that attaches an MCP server to a Thread",
|
|
7
|
+
mcpServerCredentials: "Cybion's Agent API has no route that attaches an MCP server to a Thread",
|
|
8
|
+
disallowedTools: "Cybion's Agent API has no per-Thread tool filter",
|
|
9
|
+
launchArgs: "A Cybion Thread is a server-side object; a session launches no process",
|
|
10
|
+
serviceTier: "Cybion's Agent API exposes a boolean fast-tier flag, not a named service tier",
|
|
11
|
+
additionalDirectories: "A Cybion Thread runs on its owner's Workers, so a host directory means nothing to it",
|
|
12
|
+
outputSchema: "Cybion's Agent API has no per-Thread structured output setting",
|
|
13
|
+
userConfiguration: "A Cybion Thread always runs with its owner's configuration, which cannot be excluded",
|
|
14
|
+
goals: "Cybion's Agent API exposes no structured goal controls",
|
|
15
|
+
endTurnProcessesOnAbort: "Cybion cancels a turn, but exposes no per-turn control over the processes it started",
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=refused-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refused-options.js","sources":["../../../src/community/cybion/refused-options.ts"],"names":[],"mappings":"AAEA,uFAAuF;AACvF,MAAM,CAAC,MAAM,2BAA2B,GAA0B;IAChE,YAAY,EAAE,0GAA0G;IACxH,kBAAkB,EAAE,0GAA0G;IAC9H,GAAG,EAAE,kEAAkE;IACvE,UAAU,EAAE,yEAAyE;IACrF,oBAAoB,EAAE,yEAAyE;IAC/F,eAAe,EAAE,kDAAkD;IACnE,UAAU,EAAE,wEAAwE;IACpF,WAAW,EAAE,+EAA+E;IAC5F,qBAAqB,EAAE,sFAAsF;IAC7G,YAAY,EAAE,gEAAgE;IAC9E,iBAAiB,EAAE,sFAAsF;IACzG,KAAK,EAAE,wDAAwD;IAC/D,uBAAuB,EAAE,sFAAsF;CAChH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StartSession } from "../../contracts/session.js";
|
|
2
|
+
import { openThread } from "./thread.js";
|
|
3
|
+
/**
|
|
4
|
+
* A session over `client`. The transport is injected so a test drives a
|
|
5
|
+
* scripted deployment without a network.
|
|
6
|
+
*/
|
|
7
|
+
export declare function cybionSessionWith(client: Parameters<typeof openThread>[0]): StartSession;
|
|
8
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sources":["../../../src/community/cybion/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAQlI,OAAO,EAAkE,UAAU,EAA0B,MAAM,aAAa,CAAC;AAoCjI;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CA2PxF"}
|