@owlmeans/viable-sdk 0.1.18-rc.8 → 0.1.18
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 +29 -11
- package/agent-meta/manifest.json +16 -0
- package/agent-meta/skills/viable-sdk/SKILL.md +1033 -0
- package/build/api/collect/types.d.ts +30 -0
- package/build/api/collect/types.d.ts.map +1 -0
- package/build/api/collect/types.js +2 -0
- package/build/api/collect/types.js.map +1 -0
- package/build/api/collect.d.ts +14 -0
- package/build/api/collect.d.ts.map +1 -0
- package/build/api/collect.js +132 -0
- package/build/api/collect.js.map +1 -0
- package/build/api/consts.local.d.ts +21 -0
- package/build/api/consts.local.d.ts.map +1 -0
- package/build/api/consts.local.js +25 -0
- package/build/api/consts.local.js.map +1 -0
- package/build/api/index.d.ts +5 -0
- package/build/api/index.d.ts.map +1 -1
- package/build/api/index.js +2 -0
- package/build/api/index.js.map +1 -1
- package/build/api/remote.d.ts +13 -6
- package/build/api/remote.d.ts.map +1 -1
- package/build/api/remote.js +302 -35
- package/build/api/remote.js.map +1 -1
- package/build/api/transport/types.d.ts +14 -0
- package/build/api/transport/types.d.ts.map +1 -0
- package/build/api/transport/types.js +2 -0
- package/build/api/transport/types.js.map +1 -0
- package/build/api/transport.d.ts +4 -0
- package/build/api/transport.d.ts.map +1 -0
- package/build/api/transport.js +32 -0
- package/build/api/transport.js.map +1 -0
- package/build/api/types.d.ts +9 -0
- package/build/api/types.d.ts.map +1 -0
- package/build/api/types.js +2 -0
- package/build/api/types.js.map +1 -0
- package/build/api/types.local.d.ts +3 -0
- package/build/api/types.local.d.ts.map +1 -0
- package/build/api/types.local.js +2 -0
- package/build/api/types.local.js.map +1 -0
- package/build/consts.d.ts +29 -14
- package/build/consts.d.ts.map +1 -1
- package/build/consts.js +30 -14
- package/build/consts.js.map +1 -1
- package/build/context/consts.local.d.ts +18 -0
- package/build/context/consts.local.d.ts.map +1 -0
- package/build/context/consts.local.js +18 -0
- package/build/context/consts.local.js.map +1 -0
- package/build/context/index.d.ts +3 -7
- package/build/context/index.d.ts.map +1 -1
- package/build/context/index.js +58 -25
- package/build/context/index.js.map +1 -1
- package/build/context/types.d.ts +26 -0
- package/build/context/types.d.ts.map +1 -0
- package/build/context/types.js +2 -0
- package/build/context/types.js.map +1 -0
- package/build/executor/boot-check.d.ts +1 -40
- package/build/executor/boot-check.d.ts.map +1 -1
- package/build/executor/boot-check.js +22 -19
- package/build/executor/boot-check.js.map +1 -1
- package/build/executor/consts.d.ts +55 -0
- package/build/executor/consts.d.ts.map +1 -0
- package/build/executor/consts.js +66 -0
- package/build/executor/consts.js.map +1 -0
- package/build/executor/consts.local.d.ts +63 -0
- package/build/executor/consts.local.d.ts.map +1 -0
- package/build/executor/consts.local.js +69 -0
- package/build/executor/consts.local.js.map +1 -0
- package/build/executor/env/types.d.ts +40 -0
- package/build/executor/env/types.d.ts.map +1 -0
- package/build/executor/env/types.js +2 -0
- package/build/executor/env/types.js.map +1 -0
- package/build/executor/env.d.ts +11 -20
- package/build/executor/env.d.ts.map +1 -1
- package/build/executor/env.js +39 -59
- package/build/executor/env.js.map +1 -1
- package/build/executor/errors.d.ts +15 -0
- package/build/executor/errors.d.ts.map +1 -1
- package/build/executor/errors.js +19 -2
- package/build/executor/errors.js.map +1 -1
- package/build/executor/files/types.d.ts +106 -0
- package/build/executor/files/types.d.ts.map +1 -0
- package/build/executor/files/types.js +2 -0
- package/build/executor/files/types.js.map +1 -0
- package/build/executor/files.d.ts +2 -50
- package/build/executor/files.d.ts.map +1 -1
- package/build/executor/files.js +225 -68
- package/build/executor/files.js.map +1 -1
- package/build/executor/git/types.d.ts +19 -0
- package/build/executor/git/types.d.ts.map +1 -0
- package/build/executor/git/types.js +2 -0
- package/build/executor/git/types.js.map +1 -0
- package/build/executor/git.d.ts +4 -36
- package/build/executor/git.d.ts.map +1 -1
- package/build/executor/git.js +206 -241
- package/build/executor/git.js.map +1 -1
- package/build/executor/glob/types.d.ts +12 -0
- package/build/executor/glob/types.d.ts.map +1 -0
- package/build/executor/glob/types.js +2 -0
- package/build/executor/glob/types.js.map +1 -0
- package/build/executor/glob.d.ts +4 -0
- package/build/executor/glob.d.ts.map +1 -0
- package/build/executor/glob.js +11 -0
- package/build/executor/glob.js.map +1 -0
- package/build/executor/health/types.d.ts +39 -0
- package/build/executor/health/types.d.ts.map +1 -0
- package/build/executor/health/types.js +2 -0
- package/build/executor/health/types.js.map +1 -0
- package/build/executor/health.d.ts +3 -83
- package/build/executor/health.d.ts.map +1 -1
- package/build/executor/health.js +76 -91
- package/build/executor/health.js.map +1 -1
- package/build/executor/index.d.ts +14 -15
- package/build/executor/index.d.ts.map +1 -1
- package/build/executor/index.js +36 -18
- package/build/executor/index.js.map +1 -1
- package/build/executor/integrity/types.d.ts +25 -0
- package/build/executor/integrity/types.d.ts.map +1 -0
- package/build/executor/integrity/types.js +2 -0
- package/build/executor/integrity/types.js.map +1 -0
- package/build/executor/integrity.d.ts +5 -15
- package/build/executor/integrity.d.ts.map +1 -1
- package/build/executor/integrity.js +28 -39
- package/build/executor/integrity.js.map +1 -1
- package/build/executor/layout/types.d.ts +69 -0
- package/build/executor/layout/types.d.ts.map +1 -0
- package/build/executor/layout/types.js +2 -0
- package/build/executor/layout/types.js.map +1 -0
- package/build/executor/layout.d.ts +9 -56
- package/build/executor/layout.d.ts.map +1 -1
- package/build/executor/layout.js +35 -82
- package/build/executor/layout.js.map +1 -1
- package/build/executor/shell/types.d.ts +76 -0
- package/build/executor/shell/types.d.ts.map +1 -0
- package/build/executor/shell/types.js +2 -0
- package/build/executor/shell/types.js.map +1 -0
- package/build/executor/shell.d.ts +3 -78
- package/build/executor/shell.d.ts.map +1 -1
- package/build/executor/shell.js +61 -91
- package/build/executor/shell.js.map +1 -1
- package/build/executor/spawn/types.d.ts +98 -0
- package/build/executor/spawn/types.d.ts.map +1 -0
- package/build/executor/spawn/types.js +2 -0
- package/build/executor/spawn/types.js.map +1 -0
- package/build/executor/spawn.d.ts +3 -103
- package/build/executor/spawn.d.ts.map +1 -1
- package/build/executor/spawn.js +192 -274
- package/build/executor/spawn.js.map +1 -1
- package/build/executor/types.d.ts +123 -0
- package/build/executor/types.d.ts.map +1 -0
- package/build/executor/types.js +2 -0
- package/build/executor/types.js.map +1 -0
- package/build/executor/types.local.d.ts +6 -0
- package/build/executor/types.local.d.ts.map +1 -0
- package/build/executor/types.local.js +2 -0
- package/build/executor/types.local.js.map +1 -0
- package/build/index.d.ts +14 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +5 -1
- package/build/index.js.map +1 -1
- package/build/project/consts.d.ts +17 -0
- package/build/project/consts.d.ts.map +1 -0
- package/build/project/consts.js +17 -0
- package/build/project/consts.js.map +1 -0
- package/build/project/consts.local.d.ts +4 -0
- package/build/project/consts.local.d.ts.map +1 -0
- package/build/project/consts.local.js +4 -0
- package/build/project/consts.local.js.map +1 -0
- package/build/project/dotenv/types.d.ts +39 -0
- package/build/project/dotenv/types.d.ts.map +1 -0
- package/build/project/dotenv/types.js +2 -0
- package/build/project/dotenv/types.js.map +1 -0
- package/build/project/dotenv.d.ts +4 -0
- package/build/project/dotenv.d.ts.map +1 -0
- package/build/project/dotenv.js +56 -0
- package/build/project/dotenv.js.map +1 -0
- package/build/project/env/types.d.ts +40 -0
- package/build/project/env/types.d.ts.map +1 -0
- package/build/project/env/types.js +2 -0
- package/build/project/env/types.js.map +1 -0
- package/build/project/env.d.ts +2 -98
- package/build/project/env.d.ts.map +1 -1
- package/build/project/env.js +63 -215
- package/build/project/env.js.map +1 -1
- package/build/project/marker/types.d.ts +33 -0
- package/build/project/marker/types.d.ts.map +1 -0
- package/build/project/marker/types.js +2 -0
- package/build/project/marker/types.js.map +1 -0
- package/build/project/marker.d.ts +4 -25
- package/build/project/marker.d.ts.map +1 -1
- package/build/project/marker.js +40 -43
- package/build/project/marker.js.map +1 -1
- package/build/project/probe/types.d.ts +22 -0
- package/build/project/probe/types.d.ts.map +1 -0
- package/build/project/probe/types.js +2 -0
- package/build/project/probe/types.js.map +1 -0
- package/build/project/probe.d.ts +4 -0
- package/build/project/probe.d.ts.map +1 -0
- package/build/project/probe.js +39 -0
- package/build/project/probe.js.map +1 -0
- package/build/project/report/types.d.ts +18 -0
- package/build/project/report/types.d.ts.map +1 -0
- package/build/project/report/types.js +2 -0
- package/build/project/report/types.js.map +1 -0
- package/build/project/report.d.ts +7 -0
- package/build/project/report.d.ts.map +1 -0
- package/build/project/report.js +68 -0
- package/build/project/report.js.map +1 -0
- package/build/project/setup/types.d.ts +32 -0
- package/build/project/setup/types.d.ts.map +1 -0
- package/build/project/setup/types.js +2 -0
- package/build/project/setup/types.js.map +1 -0
- package/build/project/setup.d.ts +4 -53
- package/build/project/setup.d.ts.map +1 -1
- package/build/project/setup.js +112 -175
- package/build/project/setup.js.map +1 -1
- package/build/project/types.d.ts +37 -0
- package/build/project/types.d.ts.map +1 -0
- package/build/project/types.js +2 -0
- package/build/project/types.js.map +1 -0
- package/build/run/consts.local.d.ts +3 -0
- package/build/run/consts.local.d.ts.map +1 -0
- package/build/run/consts.local.js +26 -0
- package/build/run/consts.local.js.map +1 -0
- package/build/run/index.d.ts +11 -69
- package/build/run/index.d.ts.map +1 -1
- package/build/run/index.js +9 -147
- package/build/run/index.js.map +1 -1
- package/build/run/local/types.d.ts +39 -0
- package/build/run/local/types.d.ts.map +1 -0
- package/build/run/local/types.js +2 -0
- package/build/run/local/types.js.map +1 -0
- package/build/run/local.d.ts +3 -0
- package/build/run/local.d.ts.map +1 -0
- package/build/run/local.js +130 -0
- package/build/run/local.js.map +1 -0
- package/build/run/process/types.d.ts +15 -0
- package/build/run/process/types.d.ts.map +1 -0
- package/build/run/process/types.js +2 -0
- package/build/run/process/types.js.map +1 -0
- package/build/run/process.d.ts +4 -0
- package/build/run/process.d.ts.map +1 -0
- package/build/run/process.js +20 -0
- package/build/run/process.js.map +1 -0
- package/build/run/serve.d.ts +14 -9
- package/build/run/serve.d.ts.map +1 -1
- package/build/run/serve.js +1 -25
- package/build/run/serve.js.map +1 -1
- package/build/run/state/types.d.ts +35 -0
- package/build/run/state/types.d.ts.map +1 -0
- package/build/run/state/types.js +2 -0
- package/build/run/state/types.js.map +1 -0
- package/build/run/state.d.ts +3 -62
- package/build/run/state.d.ts.map +1 -1
- package/build/run/state.js +96 -123
- package/build/run/state.js.map +1 -1
- package/build/run/types.d.ts +78 -0
- package/build/run/types.d.ts.map +1 -0
- package/build/run/types.js +2 -0
- package/build/run/types.js.map +1 -0
- package/build/session/consts.local.d.ts +5 -0
- package/build/session/consts.local.d.ts.map +1 -0
- package/build/session/consts.local.js +5 -0
- package/build/session/consts.local.js.map +1 -0
- package/build/session/index.d.ts +5 -10
- package/build/session/index.d.ts.map +1 -1
- package/build/session/index.js +84 -15
- package/build/session/index.js.map +1 -1
- package/build/session/questions.d.ts +16 -0
- package/build/session/questions.d.ts.map +1 -0
- package/build/session/questions.js +17 -0
- package/build/session/questions.js.map +1 -0
- package/build/session/queue.d.ts +61 -0
- package/build/session/queue.d.ts.map +1 -0
- package/build/session/queue.js +156 -0
- package/build/session/queue.js.map +1 -0
- package/build/session/tasks.d.ts +11 -30
- package/build/session/tasks.d.ts.map +1 -1
- package/build/session/tasks.js +18 -78
- package/build/session/tasks.js.map +1 -1
- package/build/session/types.d.ts +20 -0
- package/build/session/types.d.ts.map +1 -0
- package/build/session/types.js +2 -0
- package/build/session/types.js.map +1 -0
- package/build/task/consts.d.ts +12 -0
- package/build/task/consts.d.ts.map +1 -0
- package/build/task/consts.js +12 -0
- package/build/task/consts.js.map +1 -0
- package/build/task/consts.local.d.ts +19 -0
- package/build/task/consts.local.d.ts.map +1 -0
- package/build/task/consts.local.js +72 -0
- package/build/task/consts.local.js.map +1 -0
- package/build/task/driver.d.ts +1 -28
- package/build/task/driver.d.ts.map +1 -1
- package/build/task/driver.js +2 -9
- package/build/task/driver.js.map +1 -1
- package/build/task/envelope/types.d.ts +29 -0
- package/build/task/envelope/types.d.ts.map +1 -0
- package/build/task/envelope/types.js +2 -0
- package/build/task/envelope/types.js.map +1 -0
- package/build/task/envelope.d.ts +4 -34
- package/build/task/envelope.d.ts.map +1 -1
- package/build/task/envelope.js +103 -165
- package/build/task/envelope.js.map +1 -1
- package/build/task/index.d.ts +5 -0
- package/build/task/index.d.ts.map +1 -1
- package/build/task/index.js +2 -0
- package/build/task/index.js.map +1 -1
- package/build/task/inquiry/types.d.ts +38 -0
- package/build/task/inquiry/types.d.ts.map +1 -0
- package/build/task/inquiry/types.js +2 -0
- package/build/task/inquiry/types.js.map +1 -0
- package/build/task/inquiry.d.ts +5 -0
- package/build/task/inquiry.d.ts.map +1 -0
- package/build/task/inquiry.js +188 -0
- package/build/task/inquiry.js.map +1 -0
- package/build/task/types.d.ts +48 -0
- package/build/task/types.d.ts.map +1 -0
- package/build/task/types.js +2 -0
- package/build/task/types.js.map +1 -0
- package/build/tools/account/types.d.ts +24 -0
- package/build/tools/account/types.d.ts.map +1 -0
- package/build/tools/account/types.js +2 -0
- package/build/tools/account/types.js.map +1 -0
- package/build/tools/account.d.ts +4 -0
- package/build/tools/account.d.ts.map +1 -0
- package/build/tools/account.js +72 -0
- package/build/tools/account.js.map +1 -0
- package/build/tools/blueprints/types.d.ts +5 -0
- package/build/tools/blueprints/types.d.ts.map +1 -0
- package/build/tools/blueprints/types.js +2 -0
- package/build/tools/blueprints/types.js.map +1 -0
- package/build/tools/blueprints.d.ts +4 -0
- package/build/tools/blueprints.d.ts.map +1 -0
- package/build/tools/blueprints.js +23 -0
- package/build/tools/blueprints.js.map +1 -0
- package/build/tools/catalogue/types.d.ts +8 -0
- package/build/tools/catalogue/types.d.ts.map +1 -0
- package/build/tools/catalogue/types.js +2 -0
- package/build/tools/catalogue/types.js.map +1 -0
- package/build/tools/catalogue.d.ts +8 -6
- package/build/tools/catalogue.d.ts.map +1 -1
- package/build/tools/catalogue.js +2565 -213
- package/build/tools/catalogue.js.map +1 -1
- package/build/tools/config/types.d.ts +19 -0
- package/build/tools/config/types.d.ts.map +1 -0
- package/build/tools/config/types.js +2 -0
- package/build/tools/config/types.js.map +1 -0
- package/build/tools/config.d.ts +4 -0
- package/build/tools/config.d.ts.map +1 -0
- package/build/tools/config.js +42 -0
- package/build/tools/config.js.map +1 -0
- package/build/tools/consts.d.ts +61 -0
- package/build/tools/consts.d.ts.map +1 -0
- package/build/tools/consts.js +515 -0
- package/build/tools/consts.js.map +1 -0
- package/build/tools/consts.local.d.ts +131 -0
- package/build/tools/consts.local.d.ts.map +1 -0
- package/build/tools/consts.local.js +236 -0
- package/build/tools/consts.local.js.map +1 -0
- package/build/tools/control/types.d.ts +17 -0
- package/build/tools/control/types.d.ts.map +1 -0
- package/build/tools/control/types.js +2 -0
- package/build/tools/control/types.js.map +1 -0
- package/build/tools/control.d.ts +4 -0
- package/build/tools/control.d.ts.map +1 -0
- package/build/tools/control.js +44 -0
- package/build/tools/control.js.map +1 -0
- package/build/tools/feed/types.d.ts +21 -0
- package/build/tools/feed/types.d.ts.map +1 -0
- package/build/tools/feed/types.js +2 -0
- package/build/tools/feed/types.js.map +1 -0
- package/build/tools/feed.d.ts +4 -0
- package/build/tools/feed.d.ts.map +1 -0
- package/build/tools/feed.js +75 -0
- package/build/tools/feed.js.map +1 -0
- package/build/tools/git/types.d.ts +25 -0
- package/build/tools/git/types.d.ts.map +1 -0
- package/build/tools/git/types.js +2 -0
- package/build/tools/git/types.js.map +1 -0
- package/build/tools/git.d.ts +4 -0
- package/build/tools/git.d.ts.map +1 -0
- package/build/tools/git.js +83 -0
- package/build/tools/git.js.map +1 -0
- package/build/tools/handover/types.d.ts +49 -0
- package/build/tools/handover/types.d.ts.map +1 -0
- package/build/tools/handover/types.js +2 -0
- package/build/tools/handover/types.js.map +1 -0
- package/build/tools/handover.d.ts +8 -0
- package/build/tools/handover.d.ts.map +1 -0
- package/build/tools/handover.js +138 -0
- package/build/tools/handover.js.map +1 -0
- package/build/tools/host/types.d.ts +34 -0
- package/build/tools/host/types.d.ts.map +1 -0
- package/build/tools/host/types.js +2 -0
- package/build/tools/host/types.js.map +1 -0
- package/build/tools/host.d.ts +4 -0
- package/build/tools/host.d.ts.map +1 -0
- package/build/tools/host.js +13 -0
- package/build/tools/host.js.map +1 -0
- package/build/tools/iam/types.d.ts +44 -0
- package/build/tools/iam/types.d.ts.map +1 -0
- package/build/tools/iam/types.js +2 -0
- package/build/tools/iam/types.js.map +1 -0
- package/build/tools/iam.d.ts +4 -0
- package/build/tools/iam.d.ts.map +1 -0
- package/build/tools/iam.js +229 -0
- package/build/tools/iam.js.map +1 -0
- package/build/tools/index.d.ts +27 -1
- package/build/tools/index.d.ts.map +1 -1
- package/build/tools/index.js +14 -1
- package/build/tools/index.js.map +1 -1
- package/build/tools/inflight/types.d.ts +47 -0
- package/build/tools/inflight/types.d.ts.map +1 -0
- package/build/tools/inflight/types.js +2 -0
- package/build/tools/inflight/types.js.map +1 -0
- package/build/tools/inflight.d.ts +3 -0
- package/build/tools/inflight.d.ts.map +1 -0
- package/build/tools/inflight.js +88 -0
- package/build/tools/inflight.js.map +1 -0
- package/build/tools/kits/types.d.ts +12 -0
- package/build/tools/kits/types.d.ts.map +1 -0
- package/build/tools/kits/types.js +2 -0
- package/build/tools/kits/types.js.map +1 -0
- package/build/tools/kits.d.ts +4 -0
- package/build/tools/kits.d.ts.map +1 -0
- package/build/tools/kits.js +33 -0
- package/build/tools/kits.js.map +1 -0
- package/build/tools/mcp.d.ts +13 -19
- package/build/tools/mcp.d.ts.map +1 -1
- package/build/tools/mcp.js +117 -38
- package/build/tools/mcp.js.map +1 -1
- package/build/tools/platform.d.ts +14 -0
- package/build/tools/platform.d.ts.map +1 -0
- package/build/tools/platform.js +90 -0
- package/build/tools/platform.js.map +1 -0
- package/build/tools/production/types.d.ts +22 -0
- package/build/tools/production/types.d.ts.map +1 -0
- package/build/tools/production/types.js +2 -0
- package/build/tools/production/types.js.map +1 -0
- package/build/tools/production.d.ts +4 -0
- package/build/tools/production.d.ts.map +1 -0
- package/build/tools/production.js +80 -0
- package/build/tools/production.js.map +1 -0
- package/build/tools/refusal/types.d.ts +95 -0
- package/build/tools/refusal/types.d.ts.map +1 -0
- package/build/tools/refusal/types.js +2 -0
- package/build/tools/refusal/types.js.map +1 -0
- package/build/tools/refusal.d.ts +4 -0
- package/build/tools/refusal.d.ts.map +1 -0
- package/build/tools/refusal.js +663 -0
- package/build/tools/refusal.js.map +1 -0
- package/build/tools/settings/types.d.ts +42 -0
- package/build/tools/settings/types.d.ts.map +1 -0
- package/build/tools/settings/types.js +2 -0
- package/build/tools/settings/types.js.map +1 -0
- package/build/tools/settings.d.ts +4 -0
- package/build/tools/settings.d.ts.map +1 -0
- package/build/tools/settings.js +71 -0
- package/build/tools/settings.js.map +1 -0
- package/build/tools/status/types.d.ts +25 -0
- package/build/tools/status/types.d.ts.map +1 -0
- package/build/tools/status/types.js +2 -0
- package/build/tools/status/types.js.map +1 -0
- package/build/tools/status.d.ts +4 -0
- package/build/tools/status.d.ts.map +1 -0
- package/build/tools/status.js +183 -0
- package/build/tools/status.js.map +1 -0
- package/build/tools/stories/types.d.ts +48 -0
- package/build/tools/stories/types.d.ts.map +1 -0
- package/build/tools/stories/types.js +2 -0
- package/build/tools/stories/types.js.map +1 -0
- package/build/tools/stories.d.ts +8 -0
- package/build/tools/stories.d.ts.map +1 -0
- package/build/tools/stories.js +79 -0
- package/build/tools/stories.js.map +1 -0
- package/build/tools/types.d.ts +177 -26
- package/build/tools/types.d.ts.map +1 -1
- package/build/tools/types.js +1 -32
- package/build/tools/types.js.map +1 -1
- package/build/types.d.ts +391 -26
- package/build/types.d.ts.map +1 -1
- package/build/utils.d.ts +8 -0
- package/build/utils.d.ts.map +1 -0
- package/build/utils.js +12 -0
- package/build/utils.js.map +1 -0
- package/package.json +30 -34
- package/build/harness/index.d.ts +0 -28
- package/build/harness/index.d.ts.map +0 -1
- package/build/harness/index.js +0 -83
- package/build/harness/index.js.map +0 -1
- package/build/harness/templates.d.ts +0 -30
- package/build/harness/templates.d.ts.map +0 -1
- package/build/harness/templates.js +0 -154
- package/build/harness/templates.js.map +0 -1
- package/build/tools/jobs.d.ts +0 -12
- package/build/tools/jobs.d.ts.map +0 -1
- package/build/tools/jobs.js +0 -47
- package/build/tools/jobs.js.map +0 -1
package/build/tools/types.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import type
|
|
2
|
+
import { type ConnectHarness, type ConnectLlm, type ConnectTarget, ConnectWaitReason, type ConnectProjectBrandingFields } from '@owlmeans/viable-common';
|
|
3
3
|
import type { ConnectorApi, LocalExecutor, SessionRuntime } from '../types.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/** The npx server, on the user's machine, with a local executor. */
|
|
7
|
-
Stdio = "stdio",
|
|
8
|
-
/** The platform's own URL-configured endpoint. No machine, no executor. */
|
|
9
|
-
Http = "http"
|
|
10
|
-
}
|
|
4
|
+
import { ToolHostKind } from './consts.js';
|
|
5
|
+
import type { InflightCalls } from './inflight/types.js';
|
|
11
6
|
export interface ToolHost {
|
|
12
7
|
kind: ToolHostKind;
|
|
13
8
|
target: ConnectTarget;
|
|
@@ -15,6 +10,12 @@ export interface ToolHost {
|
|
|
15
10
|
harness: ConnectHarness;
|
|
16
11
|
/** Whether this host can execute anything on a disk. False for the URL-configured one. */
|
|
17
12
|
hasExecutor: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Tools the hosting process adds beyond the built-in catalogue — the agent-setup tools of
|
|
15
|
+
* `@owlmeans/viable-harness`, for one. They are listed, filtered by their own `availability` and
|
|
16
|
+
* registered exactly like the catalogue's own, so a host that passes none offers none of them.
|
|
17
|
+
*/
|
|
18
|
+
extensions?: ToolDefinition[];
|
|
18
19
|
}
|
|
19
20
|
export interface ToolDeps {
|
|
20
21
|
api: ConnectorApi;
|
|
@@ -29,7 +30,34 @@ export interface ToolDeps {
|
|
|
29
30
|
/** What project the connector is currently working on, and how it is remembered. */
|
|
30
31
|
attached: () => string | null;
|
|
31
32
|
attach: (projectId: string) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Forget the attached project, so the next `session()` opens an UNATTACHED session — what a
|
|
35
|
+
* delegated create sends as its `sessionId`. Absent on a host that holds no session.
|
|
36
|
+
*/
|
|
37
|
+
detach?: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* Close the held session and forget it, so nothing is delivered to a project that is going away.
|
|
40
|
+
* Absent on a host that holds no session; where it is absent but a session is current, a tool
|
|
41
|
+
* closes that session itself.
|
|
42
|
+
*/
|
|
43
|
+
release?: () => Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* The platform calls still running after their tool answered — the delegated mode's handover.
|
|
46
|
+
*
|
|
47
|
+
* Held here, beside the server, and never on the session: a session is reopened whenever the
|
|
48
|
+
* connector moves to another project, and a call outliving that move is exactly the one whose
|
|
49
|
+
* answer must still reach the parent. `registerCatalogue` supplies one when the host passes none.
|
|
50
|
+
*/
|
|
51
|
+
inflight?: InflightCalls;
|
|
32
52
|
log: (line: string) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Push a message to the host's own channel, independent of the tool result text.
|
|
55
|
+
*
|
|
56
|
+
* Only the stdio host can act on this (an MCP `notifications/message`, gated on the server
|
|
57
|
+
* declaring the `logging` capability) — the platform's stateless `/mcp` host has no channel to
|
|
58
|
+
* push through and simply omits it. Every caller must treat it as best-effort.
|
|
59
|
+
*/
|
|
60
|
+
notify?: (level: 'warning' | 'error', text: string) => void;
|
|
33
61
|
}
|
|
34
62
|
export interface ToolResult {
|
|
35
63
|
text: string;
|
|
@@ -49,30 +77,153 @@ export interface ToolDefinition<I extends z.ZodRawShape = z.ZodRawShape> {
|
|
|
49
77
|
* things that work in its mode.
|
|
50
78
|
*/
|
|
51
79
|
availability: (host: ToolHost) => boolean;
|
|
80
|
+
/**
|
|
81
|
+
* What the tool does to the world, as the MCP host shows it to the person approving a call: a
|
|
82
|
+
* read, an irreversible change, a change that may be repeated safely. Hints only — every refusal
|
|
83
|
+
* that matters is still the platform's — but a host that asks before a destructive call asks here.
|
|
84
|
+
*/
|
|
85
|
+
annotations: ToolAnnotations;
|
|
52
86
|
run: (args: Record<string, unknown>, deps: ToolDeps) => Promise<ToolResult>;
|
|
53
87
|
}
|
|
54
|
-
|
|
55
|
-
export
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
88
|
+
/** The MCP tool annotations a catalogue entry declares (`ToolAnnotations` in the MCP schema). */
|
|
89
|
+
export interface ToolAnnotations {
|
|
90
|
+
/** It changes nothing. */
|
|
91
|
+
readOnlyHint?: boolean;
|
|
92
|
+
/** It may destroy or irreversibly replace something — the host should confirm it. */
|
|
93
|
+
destructiveHint?: boolean;
|
|
94
|
+
/** Repeating it with the same arguments does nothing more. */
|
|
95
|
+
idempotentHint?: boolean;
|
|
96
|
+
/** It reaches beyond the platform this server talks to. */
|
|
97
|
+
openWorldHint?: boolean;
|
|
98
|
+
}
|
|
99
|
+
/** What one tool call answers on the MCP wire. */
|
|
100
|
+
export interface McpToolAnswer {
|
|
101
|
+
content: Array<{
|
|
102
|
+
type: 'text';
|
|
103
|
+
text: string;
|
|
104
|
+
}>;
|
|
105
|
+
structuredContent?: object;
|
|
106
|
+
isError?: boolean;
|
|
107
|
+
}
|
|
108
|
+
/** The minimum of an MCP server this adapter needs. Typed structurally so the SDK stays optional. */
|
|
109
|
+
export interface McpServerLike {
|
|
110
|
+
registerTool: (name: string, config: {
|
|
111
|
+
title?: string;
|
|
112
|
+
description?: string;
|
|
113
|
+
inputSchema?: unknown;
|
|
114
|
+
annotations?: ToolAnnotations;
|
|
115
|
+
}, cb: (args: Record<string, unknown>) => Promise<McpToolAnswer>) => unknown;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* One long-running thing the platform does, described for a parent agent.
|
|
119
|
+
*
|
|
120
|
+
* A pipeline, not a tool: what a parent needs before it starts anything is what the platform is
|
|
121
|
+
* ABLE to do and roughly what each of those costs it in waiting — which is exactly what a tool
|
|
122
|
+
* list, read one description at a time, never says. `startedBy` names the tools that begin it, so
|
|
123
|
+
* a parent reading this can act on it without a second lookup.
|
|
124
|
+
*/
|
|
125
|
+
export interface PlatformPipeline {
|
|
126
|
+
id: string;
|
|
127
|
+
title: string;
|
|
128
|
+
what: string;
|
|
129
|
+
/** Tool names in this SDK's own catalogue. A test pins that every one of them exists. */
|
|
130
|
+
startedBy: string[];
|
|
131
|
+
stages?: string[];
|
|
132
|
+
/** Whether a crashed run is picked up where it stopped rather than started over. */
|
|
133
|
+
resumable: boolean;
|
|
134
|
+
/** What a run of it can stop and wait for. */
|
|
135
|
+
waitsFor?: ConnectWaitReason[];
|
|
136
|
+
}
|
|
59
137
|
/**
|
|
60
|
-
*
|
|
138
|
+
* A group of tools that answer one need, and what a host must be for them to work.
|
|
61
139
|
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* it, and be abandoned before the first operation was delivered.
|
|
140
|
+
* Grouped rather than listed flat because the answer a parent wants is "can this session do X",
|
|
141
|
+
* and X is never one tool. `absent` is what a host that hides the group is told INSTEAD of it —
|
|
142
|
+
* a parent that reads only a shorter list concludes the platform cannot do the thing at all, and
|
|
143
|
+
* proposes a path around it.
|
|
67
144
|
*/
|
|
68
|
-
export
|
|
145
|
+
export interface PlatformCapability {
|
|
146
|
+
id: string;
|
|
147
|
+
title: string;
|
|
148
|
+
what: string;
|
|
149
|
+
tools: string[];
|
|
150
|
+
/** Why this session does not have it. Rendered only where the group is hidden. */
|
|
151
|
+
absent: string;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Something every application the platform generates carries, described for a parent agent.
|
|
155
|
+
*
|
|
156
|
+
* Neither a pipeline nor a tool: a fact about the PRODUCT the runs produce, which a parent needs in
|
|
157
|
+
* order to describe it truthfully to the person it works for, and to not "add" by hand what the
|
|
158
|
+
* platform already generates. `tools` names what reads or changes it, where anything does.
|
|
159
|
+
*/
|
|
160
|
+
export interface PlatformFeature {
|
|
161
|
+
id: string;
|
|
162
|
+
title: string;
|
|
163
|
+
what: string;
|
|
164
|
+
/** Tool names in this SDK's own catalogue. A test pins that every one of them exists. */
|
|
165
|
+
tools?: string[];
|
|
166
|
+
}
|
|
167
|
+
export interface PlatformCatalogue {
|
|
168
|
+
pipelines: PlatformPipeline[];
|
|
169
|
+
features: PlatformFeature[];
|
|
170
|
+
capabilities: PlatformCapability[];
|
|
171
|
+
limits: {
|
|
172
|
+
toolDeadlineMs: number;
|
|
173
|
+
nextTaskWaitMs: number;
|
|
174
|
+
nextQuestionWaitMs: number;
|
|
175
|
+
};
|
|
176
|
+
modes: {
|
|
177
|
+
targets: ConnectTarget[];
|
|
178
|
+
llms: ConnectLlm[];
|
|
179
|
+
};
|
|
180
|
+
}
|
|
69
181
|
/**
|
|
70
|
-
*
|
|
182
|
+
* One refusal: the marker it travels as, and the sentence a parent agent reads instead of it.
|
|
71
183
|
*
|
|
72
|
-
* The
|
|
73
|
-
* the
|
|
74
|
-
*
|
|
75
|
-
*
|
|
184
|
+
* The marker is matched as a SUBSTRING of the error's own message, never by class. Every refusal
|
|
185
|
+
* the platform raises is declared in a package this one does not depend on — the conversion family
|
|
186
|
+
* in the platform's `viable-common`, the converter's own in `@owlmeans/viable-converter` — so an
|
|
187
|
+
* `instanceof` here is impossible, and `ResilientError.ensure` rebuilds an unregistered class as a
|
|
188
|
+
* bare error carrying the whole marshalled string. The same rule the browser follows for the same
|
|
189
|
+
* reason: a refusal arrives thrown from a call AND stored as text on a run that failed, and only
|
|
190
|
+
* the marker survives both.
|
|
76
191
|
*/
|
|
77
|
-
export
|
|
192
|
+
export interface RefusalPhrase {
|
|
193
|
+
/** The marker as it appears inside the message, without the package prefix where that is safe. */
|
|
194
|
+
marker: string;
|
|
195
|
+
/** The sentence, given whatever followed the marker (`''` where nothing did). */
|
|
196
|
+
phrase: (detail: string) => string;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* One project setting, as a parent agent reads and writes it.
|
|
200
|
+
*
|
|
201
|
+
* `rule` is what the PLATFORM accepts, stated in words: the connector never checks a value itself,
|
|
202
|
+
* because a second copy of the web save's validation is a second answer that drifts from the first.
|
|
203
|
+
* The same words are used by the tool's description and by the refusal a rejected value comes back
|
|
204
|
+
* as, so a parent is told the rule before it tries and again, for the one field, when it broke it.
|
|
205
|
+
*/
|
|
206
|
+
export interface ProjectSetting {
|
|
207
|
+
key: keyof ConnectProjectBrandingFields;
|
|
208
|
+
/** How a status line names it. */
|
|
209
|
+
label: string;
|
|
210
|
+
rule: string;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* What the story tools know about a story beyond its domain status.
|
|
214
|
+
*
|
|
215
|
+
* Read off the planning CARD the tool resolved before it asked for the status — the status route
|
|
216
|
+
* carries the run and the question, not the card's fields — so a new fact needs no second call and
|
|
217
|
+
* no change to the wire.
|
|
218
|
+
*/
|
|
219
|
+
export interface StoryStatusExtra {
|
|
220
|
+
/** The project's landing gate story (`fields.landing`). */
|
|
221
|
+
landing?: boolean;
|
|
222
|
+
}
|
|
223
|
+
/** What a story tool filters a project's stories by. */
|
|
224
|
+
export interface StoryFilter {
|
|
225
|
+
status?: string;
|
|
226
|
+
area?: string;
|
|
227
|
+
q?: string;
|
|
228
|
+
}
|
|
78
229
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/tools/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/tools/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,iBAAiB,EAAE,KAAK,4BAA4B,EAAE,MAAM,yBAAyB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AA;KAC3B,CAAA;IACD,KAAK,EAAE;QAAE,OAAO,EAAE,aAAa,EAAE,CAAC;QAAC,IAAI,EAAE,UAAU,EAAE,CAAA;KAAE,CAAA;CACxD;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,aAAa;IAC5B,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAA;IACd,iFAAiF;IACjF,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAA;CACnC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,4BAA4B,CAAA;IACvC,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,2DAA2D;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wDAAwD;AACxD,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,CAAC,CAAC,EAAE,MAAM,CAAA;CACX"}
|
package/build/tools/types.js
CHANGED
|
@@ -1,33 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export var ToolHostKind;
|
|
3
|
-
(function (ToolHostKind) {
|
|
4
|
-
/** The npx server, on the user's machine, with a local executor. */
|
|
5
|
-
ToolHostKind["Stdio"] = "stdio";
|
|
6
|
-
/** The platform's own URL-configured endpoint. No machine, no executor. */
|
|
7
|
-
ToolHostKind["Http"] = "http";
|
|
8
|
-
})(ToolHostKind || (ToolHostKind = {}));
|
|
9
|
-
export const anyHost = () => true;
|
|
10
|
-
export const localTarget = (host) => host.target === 'local';
|
|
11
|
-
export const cloudTarget = (host) => host.target === 'cloud';
|
|
12
|
-
export const withExecutor = (host) => host.hasExecutor;
|
|
13
|
-
export const delegatedLlm = (host) => host.llm === 'local';
|
|
14
|
-
/**
|
|
15
|
-
* Whether this host can hold a connector SESSION across calls.
|
|
16
|
-
*
|
|
17
|
-
* A session is a connector ATTACHED: a process that stays, drains the project's operations and
|
|
18
|
-
* keeps the model tasks handed to it until the parent agent answers them. The stdio server is
|
|
19
|
-
* exactly that. The URL-configured host answers one request and forgets — opening a session there
|
|
20
|
-
* would claim the project's single connector slot, supersede the connector legitimately holding
|
|
21
|
-
* it, and be abandoned before the first operation was delivered.
|
|
22
|
-
*/
|
|
23
|
-
export const sessionCapable = (host) => host.kind === ToolHostKind.Stdio;
|
|
24
|
-
/**
|
|
25
|
-
* Whether the parent agent performs the platform's model calls on THIS host.
|
|
26
|
-
*
|
|
27
|
-
* The delegated mode needs two things at once — the account setting, and a connector able to drain
|
|
28
|
-
* the tasks it produces. A host that cannot hold a session can never do the draining, so it must
|
|
29
|
-
* neither offer `next_task`/`submit_task_result` nor tell a parent to call them, whatever the
|
|
30
|
-
* account setting says.
|
|
31
|
-
*/
|
|
32
|
-
export const performsModelTasks = (host) => delegatedLlm(host) && sessionCapable(host);
|
|
1
|
+
export {};
|
|
33
2
|
//# sourceMappingURL=types.js.map
|
package/build/tools/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/tools/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/tools/types.ts"],"names":[],"mappings":""}
|