@botiverse/oar 0.120.0 → 0.122.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 +16 -5
- 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/session.d.ts.map +1 -1
- package/dist/community/morph/session.js +10 -16
- package/dist/community/morph/session.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/failure.d.ts +6 -4
- package/dist/contracts/failure.d.ts.map +1 -1
- package/dist/contracts/index.d.ts +4 -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/placement.d.ts +5 -0
- package/dist/contracts/placement.d.ts.map +1 -1
- package/dist/contracts/placement.js.map +1 -1
- package/dist/contracts/records.d.ts +3 -2
- package/dist/contracts/records.d.ts.map +1 -1
- package/dist/contracts/runtime.d.ts +73 -5
- 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 +40 -8
- package/dist/contracts/session-options.d.ts.map +1 -1
- package/dist/contracts/session.d.ts +1 -1
- package/dist/contracts/session.d.ts.map +1 -1
- package/dist/contracts/status.d.ts +5 -0
- package/dist/contracts/status.d.ts.map +1 -1
- package/dist/observe/agent-status.d.ts.map +1 -1
- package/dist/observe/agent-status.js +28 -27
- package/dist/observe/agent-status.js.map +1 -1
- package/dist/observe/index.d.ts +1 -1
- package/dist/observe/index.d.ts.map +1 -1
- package/dist/observe/session-view-events.js +4 -4
- package/dist/observe/session-view-events.js.map +1 -1
- package/dist/observe/session-view-fold.d.ts +10 -2
- package/dist/observe/session-view-fold.d.ts.map +1 -1
- package/dist/observe/session-view-fold.js +39 -5
- package/dist/observe/session-view-fold.js.map +1 -1
- package/dist/observe/session-view-tools.d.ts +1 -1
- package/dist/observe/session-view-tools.d.ts.map +1 -1
- package/dist/observe/session-view-tools.js +5 -5
- package/dist/observe/session-view-tools.js.map +1 -1
- package/dist/observe/session-view.d.ts +24 -18
- package/dist/observe/session-view.d.ts.map +1 -1
- package/dist/observe/session-view.js +1 -3
- package/dist/observe/session-view.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/account-usage.d.ts.map +1 -1
- package/dist/runtimes/antigravity/account-usage.js +4 -1
- package/dist/runtimes/antigravity/account-usage.js.map +1 -1
- package/dist/runtimes/antigravity/index.d.ts +4 -1
- package/dist/runtimes/antigravity/index.d.ts.map +1 -1
- package/dist/runtimes/antigravity/index.js +2 -1
- package/dist/runtimes/antigravity/index.js.map +1 -1
- package/dist/runtimes/antigravity/list-models.d.ts.map +1 -1
- package/dist/runtimes/antigravity/list-models.js +38 -40
- package/dist/runtimes/antigravity/list-models.js.map +1 -1
- package/dist/runtimes/antigravity/logout.d.ts.map +1 -1
- package/dist/runtimes/antigravity/logout.js +3 -1
- package/dist/runtimes/antigravity/logout.js.map +1 -1
- package/dist/runtimes/antigravity/options.d.ts.map +1 -1
- package/dist/runtimes/antigravity/options.js +1 -0
- package/dist/runtimes/antigravity/options.js.map +1 -1
- package/dist/runtimes/antigravity/quota.d.ts +6 -0
- package/dist/runtimes/antigravity/quota.d.ts.map +1 -0
- package/dist/runtimes/antigravity/quota.js +50 -0
- package/dist/runtimes/antigravity/quota.js.map +1 -0
- package/dist/runtimes/antigravity/session.d.ts.map +1 -1
- package/dist/runtimes/antigravity/session.js +6 -0
- package/dist/runtimes/antigravity/session.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/fork-identity.d.ts +8 -0
- package/dist/runtimes/claude/fork-identity.d.ts.map +1 -0
- package/dist/runtimes/claude/fork-identity.js +56 -0
- package/dist/runtimes/claude/fork-identity.js.map +1 -0
- 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 +4 -1
- package/dist/runtimes/claude/index.d.ts.map +1 -1
- package/dist/runtimes/claude/index.js +2 -1
- package/dist/runtimes/claude/index.js.map +1 -1
- package/dist/runtimes/claude/inventory.d.ts +5 -3
- package/dist/runtimes/claude/inventory.d.ts.map +1 -1
- package/dist/runtimes/claude/inventory.js +127 -62
- package/dist/runtimes/claude/inventory.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 +7 -0
- package/dist/runtimes/claude/launch-args.d.ts.map +1 -1
- package/dist/runtimes/claude/launch-args.js +16 -3
- package/dist/runtimes/claude/launch-args.js.map +1 -1
- package/dist/runtimes/claude/launch.d.ts +15 -1
- package/dist/runtimes/claude/launch.d.ts.map +1 -1
- package/dist/runtimes/claude/launch.js +29 -5
- 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/list-models.d.ts.map +1 -1
- package/dist/runtimes/claude/list-models.js +29 -35
- package/dist/runtimes/claude/list-models.js.map +1 -1
- package/dist/runtimes/claude/open-settings.d.ts +2 -0
- package/dist/runtimes/claude/open-settings.d.ts.map +1 -1
- package/dist/runtimes/claude/open-settings.js +42 -3
- package/dist/runtimes/claude/open-settings.js.map +1 -1
- package/dist/runtimes/claude/projection.d.ts +15 -0
- package/dist/runtimes/claude/projection.d.ts.map +1 -1
- package/dist/runtimes/claude/projection.js +24 -4
- 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 +7 -1
- package/dist/runtimes/claude/session.js.map +1 -1
- package/dist/runtimes/claude/skill-file.d.ts +13 -0
- package/dist/runtimes/claude/skill-file.d.ts.map +1 -0
- package/dist/runtimes/claude/skill-file.js +25 -0
- package/dist/runtimes/claude/skill-file.js.map +1 -0
- package/dist/runtimes/codebuddy/index.d.ts +4 -1
- package/dist/runtimes/codebuddy/index.d.ts.map +1 -1
- package/dist/runtimes/codebuddy/index.js +2 -1
- package/dist/runtimes/codebuddy/index.js.map +1 -1
- package/dist/runtimes/codebuddy/list-models.d.ts.map +1 -1
- package/dist/runtimes/codebuddy/list-models.js +26 -28
- package/dist/runtimes/codebuddy/list-models.js.map +1 -1
- package/dist/runtimes/codebuddy/login.d.ts.map +1 -1
- package/dist/runtimes/codebuddy/login.js +2 -1
- package/dist/runtimes/codebuddy/login.js.map +1 -1
- package/dist/runtimes/codebuddy/options.d.ts.map +1 -1
- package/dist/runtimes/codebuddy/options.js +1 -0
- package/dist/runtimes/codebuddy/options.js.map +1 -1
- package/dist/runtimes/codex/account-request.d.ts.map +1 -1
- package/dist/runtimes/codex/account-request.js +23 -31
- package/dist/runtimes/codex/account-request.js.map +1 -1
- package/dist/runtimes/codex/failure.d.ts.map +1 -1
- package/dist/runtimes/codex/failure.js +16 -2
- package/dist/runtimes/codex/failure.js.map +1 -1
- package/dist/runtimes/codex/index.d.ts +4 -1
- package/dist/runtimes/codex/index.d.ts.map +1 -1
- package/dist/runtimes/codex/index.js +2 -1
- package/dist/runtimes/codex/index.js.map +1 -1
- package/dist/runtimes/codex/inventory.d.ts.map +1 -1
- package/dist/runtimes/codex/inventory.js +12 -17
- package/dist/runtimes/codex/inventory.js.map +1 -1
- package/dist/runtimes/codex/list-models.d.ts.map +1 -1
- package/dist/runtimes/codex/list-models.js +28 -32
- package/dist/runtimes/codex/list-models.js.map +1 -1
- package/dist/runtimes/codex/open.d.ts +8 -7
- package/dist/runtimes/codex/open.d.ts.map +1 -1
- package/dist/runtimes/codex/open.js +43 -7
- package/dist/runtimes/codex/open.js.map +1 -1
- package/dist/runtimes/codex/projection.d.ts +6 -1
- package/dist/runtimes/codex/projection.d.ts.map +1 -1
- package/dist/runtimes/codex/projection.js +20 -11
- package/dist/runtimes/codex/projection.js.map +1 -1
- package/dist/runtimes/codex/quota-reset.d.ts +15 -0
- package/dist/runtimes/codex/quota-reset.d.ts.map +1 -0
- package/dist/runtimes/codex/quota-reset.js +55 -0
- package/dist/runtimes/codex/quota-reset.js.map +1 -0
- package/dist/runtimes/codex/refusal.d.ts +11 -0
- package/dist/runtimes/codex/refusal.d.ts.map +1 -1
- package/dist/runtimes/codex/refusal.js +17 -0
- package/dist/runtimes/codex/refusal.js.map +1 -1
- package/dist/runtimes/codex/rpc-control.d.ts +5 -2
- package/dist/runtimes/codex/rpc-control.d.ts.map +1 -1
- package/dist/runtimes/codex/rpc-control.js +8 -3
- package/dist/runtimes/codex/rpc-control.js.map +1 -1
- package/dist/runtimes/codex/session.d.ts.map +1 -1
- package/dist/runtimes/codex/session.js +10 -19
- package/dist/runtimes/codex/session.js.map +1 -1
- package/dist/runtimes/codex/turn-processes.d.ts.map +1 -1
- package/dist/runtimes/codex/turn-processes.js +4 -2
- package/dist/runtimes/codex/turn-processes.js.map +1 -1
- package/dist/runtimes/cursor/access.d.ts +3 -2
- package/dist/runtimes/cursor/access.d.ts.map +1 -1
- package/dist/runtimes/cursor/access.js +4 -4
- package/dist/runtimes/cursor/access.js.map +1 -1
- package/dist/runtimes/cursor/auth-status.js +2 -2
- 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 +0 -1
- package/dist/runtimes/cursor/index.js.map +1 -1
- package/dist/runtimes/cursor/list-models.d.ts.map +1 -1
- package/dist/runtimes/cursor/list-models.js +11 -21
- package/dist/runtimes/cursor/list-models.js.map +1 -1
- package/dist/runtimes/cursor/model.d.ts.map +1 -1
- package/dist/runtimes/cursor/model.js +1 -0
- package/dist/runtimes/cursor/model.js.map +1 -1
- package/dist/runtimes/cursor/session-process.d.ts +1 -3
- package/dist/runtimes/cursor/session-process.d.ts.map +1 -1
- package/dist/runtimes/cursor/session-process.js +6 -26
- package/dist/runtimes/cursor/session-process.js.map +1 -1
- package/dist/runtimes/cursor/session.d.ts.map +1 -1
- package/dist/runtimes/cursor/session.js +21 -26
- package/dist/runtimes/cursor/session.js.map +1 -1
- package/dist/runtimes/cursor/skills.js +5 -8
- package/dist/runtimes/cursor/skills.js.map +1 -1
- package/dist/runtimes/cursor/subprocess/channel.d.ts +2 -1
- package/dist/runtimes/cursor/subprocess/channel.d.ts.map +1 -1
- package/dist/runtimes/cursor/subprocess/channel.js +3 -2
- 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/devin/list-models.d.ts.map +1 -1
- package/dist/runtimes/devin/list-models.js +25 -39
- package/dist/runtimes/devin/list-models.js.map +1 -1
- package/dist/runtimes/devin/options.d.ts.map +1 -1
- package/dist/runtimes/devin/options.js +1 -0
- package/dist/runtimes/devin/options.js.map +1 -1
- package/dist/runtimes/devin/skills.d.ts.map +1 -1
- package/dist/runtimes/devin/skills.js +16 -24
- package/dist/runtimes/devin/skills.js.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-input.d.ts +3 -0
- package/dist/runtimes/dsh/bridge-input.d.ts.map +1 -0
- package/dist/runtimes/dsh/bridge-input.js +51 -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 +24 -52
- 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 +1 -1
- package/dist/runtimes/dsh/control.d.ts.map +1 -1
- package/dist/runtimes/dsh/control.js +1 -1
- package/dist/runtimes/dsh/control.js.map +1 -1
- package/dist/runtimes/dsh/index.d.ts +39 -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/list-models.d.ts.map +1 -1
- package/dist/runtimes/dsh/list-models.js +31 -28
- package/dist/runtimes/dsh/list-models.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 +12 -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 +6 -1
- 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 +40 -24
- package/dist/runtimes/dsh/session.js.map +1 -1
- package/dist/runtimes/dsh/skills.js +32 -38
- package/dist/runtimes/dsh/skills.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.d.ts.map +1 -1
- package/dist/runtimes/factory/account.js +16 -14
- package/dist/runtimes/factory/account.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/index.d.ts +4 -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/list-models.d.ts.map +1 -1
- package/dist/runtimes/factory/list-models.js +7 -12
- package/dist/runtimes/factory/list-models.js.map +1 -1
- package/dist/runtimes/factory/options.d.ts.map +1 -1
- package/dist/runtimes/factory/options.js +1 -0
- package/dist/runtimes/factory/options.js.map +1 -1
- package/dist/runtimes/factory/session.d.ts.map +1 -1
- package/dist/runtimes/factory/session.js +33 -34
- package/dist/runtimes/factory/session.js.map +1 -1
- package/dist/runtimes/factory/skills.d.ts.map +1 -1
- package/dist/runtimes/factory/skills.js +20 -28
- package/dist/runtimes/factory/skills.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/index.d.ts +4 -1
- package/dist/runtimes/grok/index.d.ts.map +1 -1
- package/dist/runtimes/grok/index.js +2 -1
- package/dist/runtimes/grok/index.js.map +1 -1
- package/dist/runtimes/grok/inventory.d.ts.map +1 -1
- package/dist/runtimes/grok/inventory.js +16 -21
- package/dist/runtimes/grok/inventory.js.map +1 -1
- package/dist/runtimes/grok/list-models.d.ts.map +1 -1
- package/dist/runtimes/grok/list-models.js +24 -26
- package/dist/runtimes/grok/list-models.js.map +1 -1
- package/dist/runtimes/grok/options.d.ts.map +1 -1
- package/dist/runtimes/grok/options.js +1 -0
- package/dist/runtimes/grok/options.js.map +1 -1
- package/dist/runtimes/kimi/auth-status.d.ts +5 -9
- package/dist/runtimes/kimi/auth-status.d.ts.map +1 -1
- package/dist/runtimes/kimi/auth-status.js +4 -9
- package/dist/runtimes/kimi/auth-status.js.map +1 -1
- package/dist/runtimes/kimi/index.d.ts +5 -2
- package/dist/runtimes/kimi/index.d.ts.map +1 -1
- package/dist/runtimes/kimi/index.js +2 -1
- package/dist/runtimes/kimi/index.js.map +1 -1
- package/dist/runtimes/kimi/list-models.d.ts.map +1 -1
- package/dist/runtimes/kimi/list-models.js +34 -35
- package/dist/runtimes/kimi/list-models.js.map +1 -1
- package/dist/runtimes/kimi/login.js +1 -1
- package/dist/runtimes/kimi/login.js.map +1 -1
- package/dist/runtimes/kimi/logout.js +1 -1
- package/dist/runtimes/kimi/logout.js.map +1 -1
- package/dist/runtimes/kimi/options.d.ts.map +1 -1
- package/dist/runtimes/kimi/options.js +1 -0
- package/dist/runtimes/kimi/options.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/list-models.d.ts.map +1 -1
- package/dist/runtimes/opencode/list-models.js +26 -20
- package/dist/runtimes/opencode/list-models.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 +34 -0
- 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/provider-auth-facade.js +1 -1
- package/dist/runtimes/opencode/provider-auth-facade.js.map +1 -1
- package/dist/runtimes/opencode/provider-auth-server.d.ts +2 -0
- package/dist/runtimes/opencode/provider-auth-server.d.ts.map +1 -1
- package/dist/runtimes/opencode/provider-auth-server.js +64 -87
- package/dist/runtimes/opencode/provider-auth-server.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/skills.d.ts.map +1 -1
- package/dist/runtimes/opencode/skills.js +28 -47
- package/dist/runtimes/opencode/skills.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 +1 -0
- package/dist/runtimes/opencode/version.d.ts.map +1 -1
- package/dist/runtimes/opencode/version.js +1 -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 +2 -1
- package/dist/runtimes/pi/index.js.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/open.d.ts.map +1 -1
- package/dist/runtimes/pi/open.js +1 -0
- package/dist/runtimes/pi/open.js.map +1 -1
- package/dist/runtimes/pi/rpc/open.d.ts +2 -0
- package/dist/runtimes/pi/rpc/open.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/open.js +2 -6
- package/dist/runtimes/pi/rpc/open.js.map +1 -1
- package/dist/runtimes/pi/rpc/read.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/read.js +8 -21
- package/dist/runtimes/pi/rpc/read.js.map +1 -1
- package/dist/runtimes/pi/rpc/session.d.ts.map +1 -1
- package/dist/runtimes/pi/rpc/session.js +3 -7
- package/dist/runtimes/pi/rpc/session.js.map +1 -1
- package/dist/runtimes/pi/session.d.ts.map +1 -1
- package/dist/runtimes/pi/session.js +11 -14
- 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 +2 -1
- package/dist/runtimes/pi-durable/index.js.map +1 -1
- package/dist/runtimes/pi-durable/options.d.ts.map +1 -1
- package/dist/runtimes/pi-durable/options.js +1 -0
- package/dist/runtimes/pi-durable/options.js.map +1 -1
- package/dist/runtimes/pi-durable/session.d.ts.map +1 -1
- package/dist/runtimes/pi-durable/session.js +5 -8
- package/dist/runtimes/pi-durable/session.js.map +1 -1
- package/dist/runtimes/qoder/index.d.ts +4 -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 +5 -1
- package/dist/runtimes/qoder/launch.d.ts.map +1 -1
- package/dist/runtimes/qoder/launch.js +5 -3
- 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 +21 -7
- 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 +1 -0
- 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/qwen/index.d.ts +4 -1
- package/dist/runtimes/qwen/index.d.ts.map +1 -1
- package/dist/runtimes/qwen/index.js +2 -1
- 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/list-models.d.ts.map +1 -1
- package/dist/runtimes/qwen/list-models.js +37 -33
- package/dist/runtimes/qwen/list-models.js.map +1 -1
- package/dist/runtimes/qwen/options.d.ts.map +1 -1
- package/dist/runtimes/qwen/options.js +1 -0
- package/dist/runtimes/qwen/options.js.map +1 -1
- package/dist/runtimes/qwen/skills.d.ts.map +1 -1
- package/dist/runtimes/qwen/skills.js +28 -36
- package/dist/runtimes/qwen/skills.js.map +1 -1
- package/dist/shared/acp/auth-query.d.ts +14 -9
- package/dist/shared/acp/auth-query.d.ts.map +1 -1
- package/dist/shared/acp/auth-query.js +43 -43
- package/dist/shared/acp/auth-query.js.map +1 -1
- package/dist/shared/acp/failure.d.ts +2 -2
- package/dist/shared/acp/failure.d.ts.map +1 -1
- package/dist/shared/acp/failure.js +2 -2
- package/dist/shared/acp/failure.js.map +1 -1
- package/dist/shared/acp/profile.d.ts +7 -5
- 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/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 +20 -35
- 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 +8 -3
- package/dist/shared/acp/token-usage.d.ts.map +1 -1
- package/dist/shared/acp/token-usage.js +28 -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.map +1 -1
- package/dist/shared/acp/turns.js +6 -4
- package/dist/shared/acp/turns.js.map +1 -1
- package/dist/shared/executable/ownership.d.ts +11 -1
- package/dist/shared/executable/ownership.d.ts.map +1 -1
- package/dist/shared/executable/ownership.js +70 -31
- package/dist/shared/executable/ownership.js.map +1 -1
- package/dist/shared/executable/pipe-close.d.ts +40 -0
- package/dist/shared/executable/pipe-close.d.ts.map +1 -0
- package/dist/shared/executable/pipe-close.js +171 -0
- package/dist/shared/executable/pipe-close.js.map +1 -0
- package/dist/shared/executable/probe-cleanup.d.ts +6 -2
- package/dist/shared/executable/probe-cleanup.d.ts.map +1 -1
- package/dist/shared/executable/probe-cleanup.js +22 -11
- package/dist/shared/executable/probe-cleanup.js.map +1 -1
- package/dist/shared/executable/process-cleanup-diagnostics.d.ts +30 -1
- package/dist/shared/executable/process-cleanup-diagnostics.d.ts.map +1 -1
- package/dist/shared/executable/process-cleanup-diagnostics.js +16 -2
- package/dist/shared/executable/process-cleanup-diagnostics.js.map +1 -1
- package/dist/shared/executable/process-cleanup.d.ts +1 -1
- package/dist/shared/executable/process-cleanup.d.ts.map +1 -1
- package/dist/shared/executable/process-cleanup.js +1 -1
- package/dist/shared/executable/process-cleanup.js.map +1 -1
- package/dist/shared/executable/process-tree.d.ts +3 -1
- package/dist/shared/executable/process-tree.d.ts.map +1 -1
- package/dist/shared/executable/process-tree.js +7 -3
- package/dist/shared/executable/process-tree.js.map +1 -1
- package/dist/shared/executable/process.d.ts +6 -0
- package/dist/shared/executable/process.d.ts.map +1 -1
- package/dist/shared/executable/process.js +18 -3
- package/dist/shared/executable/process.js.map +1 -1
- package/dist/shared/executable/query.d.ts +14 -8
- package/dist/shared/executable/query.d.ts.map +1 -1
- package/dist/shared/executable/query.js +62 -14
- package/dist/shared/executable/query.js.map +1 -1
- package/dist/shared/executable/run.d.ts +5 -0
- package/dist/shared/executable/run.d.ts.map +1 -1
- package/dist/shared/executable/run.js +62 -1
- package/dist/shared/executable/run.js.map +1 -1
- package/dist/shared/executable/version.d.ts +1 -1
- package/dist/shared/executable/version.d.ts.map +1 -1
- package/dist/shared/executable/version.js +2 -2
- package/dist/shared/executable/version.js.map +1 -1
- package/dist/shared/inventory.d.ts +3 -2
- package/dist/shared/inventory.d.ts.map +1 -1
- package/dist/shared/inventory.js +4 -12
- package/dist/shared/inventory.js.map +1 -1
- package/dist/shared/login.d.ts +1 -1
- package/dist/shared/login.d.ts.map +1 -1
- package/dist/shared/login.js +13 -26
- package/dist/shared/login.js.map +1 -1
- package/dist/shared/manual-compaction.js +2 -2
- package/dist/shared/manual-compaction.js.map +1 -1
- 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 +2 -1
- package/dist/shared/process-session.d.ts.map +1 -1
- package/dist/shared/process-session.js +23 -48
- package/dist/shared/process-session.js.map +1 -1
- package/dist/shared/semver.d.ts +10 -0
- package/dist/shared/semver.d.ts.map +1 -0
- package/dist/shared/semver.js +46 -0
- package/dist/shared/semver.js.map +1 -0
- package/dist/shared/session-kernel.d.ts +4 -0
- package/dist/shared/session-kernel.d.ts.map +1 -1
- package/dist/shared/session-kernel.js +39 -0
- package/dist/shared/session-kernel.js.map +1 -1
- package/dist/shared/session-options.d.ts +7 -1
- package/dist/shared/session-options.d.ts.map +1 -1
- package/dist/shared/session-options.js +36 -2
- package/dist/shared/session-options.js.map +1 -1
- package/dist/shared/stream-json/profile.d.ts +6 -0
- 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 +32 -4
- 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 +17 -27
- package/dist/shared/stream-json/session.js.map +1 -1
- package/dist/shared/stream-json/state.d.ts +2 -1
- 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/testing/scripted-runtime.d.ts.map +1 -1
- package/dist/testing/scripted-runtime.js +12 -15
- package/dist/testing/scripted-runtime.js.map +1 -1
- package/package.json +1 -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
|
|
@@ -166,7 +167,7 @@ Brand SVG files are exported at `@botiverse/oar/assets/brands/<runtime-id>.svg`.
|
|
|
166
167
|
|
|
167
168
|
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
169
|
|
|
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
|
|
170
|
+
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
171
|
|
|
171
172
|
**Pi Azure provider (since Pi 1.0.3):** the provider is `azure`, not
|
|
172
173
|
`azure-openai-responses`; use that prefix in native provider configuration and
|
|
@@ -286,9 +287,19 @@ the user's app, holds it); codex reports both. See
|
|
|
286
287
|
resume never replaces a name the session has. See
|
|
287
288
|
[session name](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#session-name).
|
|
288
289
|
|
|
290
|
+
`SessionOptions.fork` with `resume` opens a NEW session that starts as a
|
|
291
|
+
copy of the saved one, leaving the original untouched; `Session.id` is the
|
|
292
|
+
copy's. `fork.through` keeps only the turns through one turn: pass the
|
|
293
|
+
`forkAnchor` of that turn's root `turn_ended` event (`ViewTurn.forkAnchor` in
|
|
294
|
+
the session view); a turn without one cannot be a cut point (claude names
|
|
295
|
+
none for a turn that ends on a tool call or was aborted). Claude and Codex
|
|
296
|
+
support anchored copies (`through` from Codex 0.143.0). OpenCode v2 supports
|
|
297
|
+
whole-session copies when ACP advertises `fork` and refuses `through`. See
|
|
298
|
+
[forking a session](https://github.com/botiverse/oar/blob/main/docs/spec/runtime-matrix.md#forking-a-session).
|
|
299
|
+
|
|
289
300
|
`SessionOptions.additionalDirectories` adds native workspace paths, resolved
|
|
290
301
|
relative to `cwd`. Claude, Codex, Cursor, Kimi (new sessions only),
|
|
291
|
-
OpenCode v2, Qwen and
|
|
302
|
+
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
|
|
292
303
|
override. It keeps the primary `cwd` and does not change the sandbox mode.
|
|
293
304
|
Project rules or instruction files in those directories may or may not load:
|
|
294
305
|
the option does not guarantee it. Resume and configuration rules differ by runtime; see
|
|
@@ -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=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sources":["../../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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
|
+
{"version":3,"file":"projection.js","sources":["../../../src/community/cybion/projection.ts"],"names":[],"mappings":"AAEA,O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D,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"}
|