@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
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { AgentStopScope, ConnectFeedDetail, WorkloadKind } from '@owlmeans/viable-common';
|
|
2
|
+
import type { ToolAnnotations } from './types.js';
|
|
3
|
+
/** What a production body leaves of a confirmation or consent refusal (`@owlmeans/api` `ApiStatusError`). */
|
|
4
|
+
export declare const BARE_428 = "api:client:status:428";
|
|
5
|
+
/** What a conversion costs, in the words both conversion verbs' descriptions use. */
|
|
6
|
+
export declare const CONVERSION_COST: string;
|
|
7
|
+
/**
|
|
8
|
+
* How much of a drafted field one status answer carries.
|
|
9
|
+
*
|
|
10
|
+
* Generous, because reading the specification IS the confirm step — but bounded, since a tool
|
|
11
|
+
* answer shares one output budget with everything else the host is holding.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DRAFT_CAP = 8000;
|
|
14
|
+
/** What each moderation category refused, in the words the refusal is explained with. */
|
|
15
|
+
export declare const MODERATION: Record<string, string>;
|
|
16
|
+
/** A stack frame, as every runtime prints one. */
|
|
17
|
+
export declare const STACK_FRAME: RegExp;
|
|
18
|
+
/**
|
|
19
|
+
* Wire text a refusal travels as — `package:family:reason`, with any detail after it.
|
|
20
|
+
*
|
|
21
|
+
* What separates an unphrased MARKER from the other things this same field carries: a deadline
|
|
22
|
+
* message, a build warning, a gateway error. Only a marker earns the next-step half, because only
|
|
23
|
+
* a marker is a refusal the parent can neither read nor act on; a build warning is diagnostics
|
|
24
|
+
* somebody asked for and is returned exactly as it stands.
|
|
25
|
+
*/
|
|
26
|
+
export declare const MARKER_SHAPE: RegExp;
|
|
27
|
+
/**
|
|
28
|
+
* Tools the delegated mode's handover leaves alone: the task and question loop itself, and the
|
|
29
|
+
* tools that never reach the platform. Each answers under the ordinary tool deadline.
|
|
30
|
+
*/
|
|
31
|
+
export declare const HANDOVER_EXEMPT: ReadonlySet<string>;
|
|
32
|
+
/** The domain status a parent reads while a tool's call goes on; `project_status` for the rest. */
|
|
33
|
+
export declare const STATUS_TOOL_OF: Readonly<Record<string, string>>;
|
|
34
|
+
/**
|
|
35
|
+
* How often a waiting tool looks again for the session a call may have opened meanwhile — a
|
|
36
|
+
* delegated create opens its unattached session from inside the call it is waiting on.
|
|
37
|
+
*/
|
|
38
|
+
export declare const HANDOVER_SLICE_MS = 1000;
|
|
39
|
+
/** A tool that changes nothing — a read, a description, a status. */
|
|
40
|
+
export declare const READ_ONLY: ToolAnnotations;
|
|
41
|
+
/** A tool that changes something, additively: a second call is a second change. */
|
|
42
|
+
export declare const WRITE: ToolAnnotations;
|
|
43
|
+
/** A tool that sets something to a value: repeating it with the same arguments changes nothing more. */
|
|
44
|
+
export declare const IDEMPOTENT_WRITE: ToolAnnotations;
|
|
45
|
+
/** A tool that deletes or irreversibly replaces something — the host should ask before it runs. */
|
|
46
|
+
export declare const DESTRUCTIVE: ToolAnnotations;
|
|
47
|
+
/** The edits `proceed_conversion` carries — flat in its input, nested in the call's `update`. */
|
|
48
|
+
export declare const PROCEED_UPDATE_FIELDS: readonly ['name', 'description', 'specification', 'vision', 'designSystem'];
|
|
49
|
+
/** How a refused capability is named to a person — by the capability parameter a gate asserts. */
|
|
50
|
+
export declare const CAPABILITY_LABELS: Readonly<Record<string, string>>;
|
|
51
|
+
/** `limit-exhausted:<key>:<used>/<limit>[:<resets at ISO>]` — `LimitExhausted`'s packed body. */
|
|
52
|
+
export declare const LIMIT_EXHAUSTED_FIELDS: RegExp;
|
|
53
|
+
/**
|
|
54
|
+
* How much of one file `read_file` answers with. Generous — a generated source file is far below
|
|
55
|
+
* it — but bounded, since a tool answer shares one output budget with everything else the host holds.
|
|
56
|
+
*/
|
|
57
|
+
export declare const FILE_READ_CAP = 100000;
|
|
58
|
+
/** What `list_files` lists when no `kind` is named: the generated sources. */
|
|
59
|
+
export declare const SOURCES_KIND = "sources";
|
|
60
|
+
/** What `preview_control` can do to the preview workload, in the words of the web's sandbox card. */
|
|
61
|
+
export declare const PREVIEW_ACTIONS: readonly ['start', 'restart', 'stop', 'rebuild'];
|
|
62
|
+
/**
|
|
63
|
+
* The tail of the refusal a protected file is written or deleted with
|
|
64
|
+
* (`target-integrity:<path> is part of the project's build configuration and cannot be edited`).
|
|
65
|
+
*/
|
|
66
|
+
export declare const PROTECTED_FILE_DETAIL = "cannot be edited";
|
|
67
|
+
/** The configuration and settings scopes a tool may name: the preview's set and production's own. */
|
|
68
|
+
export declare const CONFIG_SCOPES: readonly [WorkloadKind.Ephemeral, WorkloadKind.Production];
|
|
69
|
+
/** The level `set_inference_mode` sets: the person's own default, or one project's override. */
|
|
70
|
+
export declare const INFERENCE_LEVELS: readonly ['account', 'project'];
|
|
71
|
+
/** What `set_inference_mode` can set — `inherit` (a project only) unsets the project's override. */
|
|
72
|
+
export declare const INFERENCE_MODES: readonly ['cloud', 'local', 'inherit'];
|
|
73
|
+
/** Who performs the model calls in each mode, in the words every inference answer uses. */
|
|
74
|
+
export declare const INFERENCE_MODE_WORDS: Readonly<Record<string, string>>;
|
|
75
|
+
/**
|
|
76
|
+
* What an inference setting reaches, said by every inference tool: the default of the browser and
|
|
77
|
+
* of connector hosts. A running stdio session retains its resolved mode until restarted.
|
|
78
|
+
*/
|
|
79
|
+
export declare const INFERENCE_REACH: string;
|
|
80
|
+
/** The query parameter of the public site's hand-off address that carries the intent reference. */
|
|
81
|
+
export declare const INTENT_REF_PARAM = "ref";
|
|
82
|
+
/** What `github_sync` does: send the project's commits to GitHub, or bring GitHub's into the project. */
|
|
83
|
+
export declare const GIT_SYNC_DIRECTIONS: readonly ['push', 'pull'];
|
|
84
|
+
/** How many changed paths `git_status` names; the count is always the whole one. */
|
|
85
|
+
export declare const GIT_FILES_SHOWN = 20;
|
|
86
|
+
/** A GitHub connection's status, in the words every git answer uses. */
|
|
87
|
+
export declare const GITHUB_STATUS_WORDS: Readonly<Record<string, string>>;
|
|
88
|
+
/** What each push or pull outcome means, and what to do next. */
|
|
89
|
+
export declare const GIT_SYNC_WORDS: Readonly<Record<string, string>>;
|
|
90
|
+
/** What `production_control` does to the published site: restart it (a stopped one comes back) or stop it. */
|
|
91
|
+
export declare const PRODUCTION_ACTIONS: readonly ['restart', 'stop'];
|
|
92
|
+
/** What `custom_domain` does: attach a domain, ask the provider about its records again, or detach it. */
|
|
93
|
+
export declare const DOMAIN_ACTIONS: readonly ['attach', 'verify', 'detach'];
|
|
94
|
+
/** A production workload's status, in the words every production answer uses. */
|
|
95
|
+
export declare const PRODUCTION_STATUS_WORDS: Readonly<Record<string, string>>;
|
|
96
|
+
/** A custom domain's collapsed status, in the words every domain answer uses. */
|
|
97
|
+
export declare const DOMAIN_STATUS_WORDS: Readonly<Record<string, string>>;
|
|
98
|
+
/** What `manage_app_user` does to an end user of the generated app. */
|
|
99
|
+
export declare const APP_USER_ACTIONS: readonly ['invite', 'update', 'remove'];
|
|
100
|
+
/** What `manage_app_grant` does: grant a permission to one subject, or take it back. */
|
|
101
|
+
export declare const APP_GRANT_ACTIONS: readonly ['assign', 'revoke'];
|
|
102
|
+
/**
|
|
103
|
+
* The grant modes that only take something back — every form (`all`) or the subject's own value
|
|
104
|
+
* (`inherit`) — and so are refused on `manage_app_grant { action: assign }` before any call.
|
|
105
|
+
*/
|
|
106
|
+
export declare const REVOKE_ONLY_GRANT_MODES: readonly string[];
|
|
107
|
+
/** What `manage_app_organization` does to an organization of the generated app and its members. */
|
|
108
|
+
export declare const APP_ORGANIZATION_ACTIONS: readonly ['rename', 'add-member', 'update-member', 'remove-member'];
|
|
109
|
+
/** What `manage_app_group` does to a group of an organization of the generated app. */
|
|
110
|
+
export declare const APP_GROUP_ACTIONS: readonly ['create', 'update', 'delete', 'add-members', 'remove-members'];
|
|
111
|
+
/** How many rows of one IAM listing a tool prints; the structured answer carries them all. */
|
|
112
|
+
export declare const IAM_ROWS_SHOWN = 50;
|
|
113
|
+
/** What a grant listing adds under its rows when some are `restricted: true`. */
|
|
114
|
+
export declare const IAM_RESTRICTED_NOTE: string;
|
|
115
|
+
/** What an `external` IAM listing means — the backend keeps it in a console of its own. */
|
|
116
|
+
export declare const IAM_EXTERNAL: string;
|
|
117
|
+
/** How much of a project's activity `project_activity` reads: what happened, or also the model's words. */
|
|
118
|
+
export declare const FEED_DETAILS: readonly [ConnectFeedDetail.Progress, ConnectFeedDetail.Thinking];
|
|
119
|
+
/** The longest one feed line is printed — the entry itself keeps its excerpt in the structured content. */
|
|
120
|
+
export declare const FEED_LINE_MAX = 400;
|
|
121
|
+
/** An organization notice, in words — the same closed vocabulary the browser phrases as its toasts. */
|
|
122
|
+
export declare const FEED_TOAST_WORDS: Readonly<Record<string, string>>;
|
|
123
|
+
/** What `stop_agent` can address: the run in progress, the story in progress, or the whole batch. */
|
|
124
|
+
export declare const STOP_SCOPES: readonly [AgentStopScope.Run, AgentStopScope.Story, AgentStopScope.Batch];
|
|
125
|
+
/** What became of a story of a batch, in the words every batch answer uses. */
|
|
126
|
+
export declare const BATCH_OUTCOME_WORDS: Readonly<Record<string, string>>;
|
|
127
|
+
/** Why a batch halted when the story it started stopped moving and nothing runs it any more. */
|
|
128
|
+
export declare const BATCH_STALLED_WORDS: string;
|
|
129
|
+
/** What every rolled-back story stop says it does: what is lost, and what is kept. */
|
|
130
|
+
export declare const STORY_STOP_ROLLBACK: string;
|
|
131
|
+
//# sourceMappingURL=consts.local.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.local.d.ts","sourceRoot":"","sources":["../../src/tools/consts.local.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAuD,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC9I,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD,6GAA6G;AAC7G,eAAO,MAAM,QAAQ,0BAA0B,CAAA;AAE/C,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ans/viable-common';
|
|
2
|
+
/** What a production body leaves of a confirmation or consent refusal (`@owlmeans/api` `ApiStatusError`). */
|
|
3
|
+
export const BARE_428 = 'api:client:status:428';
|
|
4
|
+
/** What a conversion costs, in the words both conversion verbs' descriptions use. */
|
|
5
|
+
export const CONVERSION_COST = 'A plan that includes a project conversion covers its AI work up to the'
|
|
6
|
+
+ ' conversion limit (1,000,000 credits); beyond it the organization\'s credit limits are spent first,'
|
|
7
|
+
+ ' then topped-up credits, and every stage has an estimate. A step that would use the plan\'s'
|
|
8
|
+
+ ' conversion or spend credits first answers with what it costs and starts nothing: tell the user,'
|
|
9
|
+
+ ' and repeat the call with confirm: true only after they agree. In the delegated mode every model'
|
|
10
|
+
+ ' call of a conversion is yours to perform, so it spends no credits and is never asked; in the'
|
|
11
|
+
+ ' cloud mode the platform performs all of them.';
|
|
12
|
+
/**
|
|
13
|
+
* How much of a drafted field one status answer carries.
|
|
14
|
+
*
|
|
15
|
+
* Generous, because reading the specification IS the confirm step — but bounded, since a tool
|
|
16
|
+
* answer shares one output budget with everything else the host is holding.
|
|
17
|
+
*/
|
|
18
|
+
export const DRAFT_CAP = 8_000;
|
|
19
|
+
/** What each moderation category refused, in the words the refusal is explained with. */
|
|
20
|
+
export const MODERATION = {
|
|
21
|
+
[ModerationCategory.CredentialHarvesting]: 'collecting other people\'s passwords, one-time codes or card details',
|
|
22
|
+
[ModerationCategory.BrandImpersonation]: 'presenting itself as another company or as a real person',
|
|
23
|
+
[ModerationCategory.PaymentCapture]: 'taking payment details on behalf of a merchant the requester does not run',
|
|
24
|
+
[ModerationCategory.AbuseTooling]: 'abuse — unsolicited bulk messaging, credential stuffing or phishing kits',
|
|
25
|
+
};
|
|
26
|
+
/** A stack frame, as every runtime prints one. */
|
|
27
|
+
export const STACK_FRAME = /^\s+at\s/;
|
|
28
|
+
/**
|
|
29
|
+
* Wire text a refusal travels as — `package:family:reason`, with any detail after it.
|
|
30
|
+
*
|
|
31
|
+
* What separates an unphrased MARKER from the other things this same field carries: a deadline
|
|
32
|
+
* message, a build warning, a gateway error. Only a marker earns the next-step half, because only
|
|
33
|
+
* a marker is a refusal the parent can neither read nor act on; a build warning is diagnostics
|
|
34
|
+
* somebody asked for and is returned exactly as it stands.
|
|
35
|
+
*/
|
|
36
|
+
export const MARKER_SHAPE = /^[a-z][\w-]*(?::[\w.-]+)+/;
|
|
37
|
+
/**
|
|
38
|
+
* Tools the delegated mode's handover leaves alone: the task and question loop itself, and the
|
|
39
|
+
* tools that never reach the platform. Each answers under the ordinary tool deadline.
|
|
40
|
+
*/
|
|
41
|
+
export const HANDOVER_EXEMPT = new Set([
|
|
42
|
+
'next_task', 'submit_task_result', 'next_question', 'answer_question',
|
|
43
|
+
'describe_platform', 'describe_capabilities', 'describe_harness', 'install_harness', 'session_status',
|
|
44
|
+
'local_status', 'run_local', 'stop_local', 'local_setup_guide', 'set_local_service',
|
|
45
|
+
]);
|
|
46
|
+
/** The domain status a parent reads while a tool's call goes on; `project_status` for the rest. */
|
|
47
|
+
export const STATUS_TOOL_OF = {
|
|
48
|
+
create_story: 'story_status',
|
|
49
|
+
reset_story: 'story_status',
|
|
50
|
+
complete_story: 'story_status',
|
|
51
|
+
update_story: 'story_status',
|
|
52
|
+
delete_story: 'story_status',
|
|
53
|
+
develop_story: 'story_status',
|
|
54
|
+
story_status: 'story_status',
|
|
55
|
+
start_story_batch: 'story_batch_status',
|
|
56
|
+
story_batch_status: 'story_batch_status',
|
|
57
|
+
cancel_story_batch: 'story_batch_status',
|
|
58
|
+
stop_agent: 'project_status',
|
|
59
|
+
steer_agent: 'project_status',
|
|
60
|
+
convert_project: 'conversion_status',
|
|
61
|
+
proceed_conversion: 'conversion_status',
|
|
62
|
+
check_convertible: 'conversion_status',
|
|
63
|
+
purge_origin: 'conversion_status',
|
|
64
|
+
conversion_status: 'conversion_status',
|
|
65
|
+
resume_pipeline: 'pipeline_status',
|
|
66
|
+
pipeline_status: 'pipeline_status',
|
|
67
|
+
git_commit: 'git_status',
|
|
68
|
+
git_discard: 'git_status',
|
|
69
|
+
git_revert: 'git_status',
|
|
70
|
+
publish_to_github: 'git_status',
|
|
71
|
+
github_sync: 'git_status',
|
|
72
|
+
publish_production: 'production_status',
|
|
73
|
+
production_control: 'production_status',
|
|
74
|
+
custom_domain: 'production_status',
|
|
75
|
+
manage_app_user: 'app_users',
|
|
76
|
+
set_app_permission_default: 'app_permissions',
|
|
77
|
+
manage_app_grant: 'app_grants',
|
|
78
|
+
manage_app_organization: 'app_organizations',
|
|
79
|
+
manage_app_group: 'app_groups',
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* How often a waiting tool looks again for the session a call may have opened meanwhile — a
|
|
83
|
+
* delegated create opens its unattached session from inside the call it is waiting on.
|
|
84
|
+
*/
|
|
85
|
+
export const HANDOVER_SLICE_MS = 1_000;
|
|
86
|
+
/** A tool that changes nothing — a read, a description, a status. */
|
|
87
|
+
export const READ_ONLY = Object.freeze({
|
|
88
|
+
readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false,
|
|
89
|
+
});
|
|
90
|
+
/** A tool that changes something, additively: a second call is a second change. */
|
|
91
|
+
export const WRITE = Object.freeze({
|
|
92
|
+
readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false,
|
|
93
|
+
});
|
|
94
|
+
/** A tool that sets something to a value: repeating it with the same arguments changes nothing more. */
|
|
95
|
+
export const IDEMPOTENT_WRITE = Object.freeze({
|
|
96
|
+
readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false,
|
|
97
|
+
});
|
|
98
|
+
/** A tool that deletes or irreversibly replaces something — the host should ask before it runs. */
|
|
99
|
+
export const DESTRUCTIVE = Object.freeze({
|
|
100
|
+
readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false,
|
|
101
|
+
});
|
|
102
|
+
/** The edits `proceed_conversion` carries — flat in its input, nested in the call's `update`. */
|
|
103
|
+
export const PROCEED_UPDATE_FIELDS = ['name', 'description', 'specification', 'vision', 'designSystem'];
|
|
104
|
+
/** How a refused capability is named to a person — by the capability parameter a gate asserts. */
|
|
105
|
+
export const CAPABILITY_LABELS = {
|
|
106
|
+
'feature:connect--local-llm': 'the delegated model mode, where your own agent performs the model calls',
|
|
107
|
+
'feature:branding--whitelabel': 'hiding the OwlMeans credit (white label)',
|
|
108
|
+
'feature:domain--custom': 'custom domains',
|
|
109
|
+
'feature:production--standalone': 'a standalone production sign-in',
|
|
110
|
+
};
|
|
111
|
+
/** `limit-exhausted:<key>:<used>/<limit>[:<resets at ISO>]` — `LimitExhausted`'s packed body. */
|
|
112
|
+
export const LIMIT_EXHAUSTED_FIELDS = /^([^:]+):(\d+)\/(\d+)(?::(.+))?$/;
|
|
113
|
+
/**
|
|
114
|
+
* How much of one file `read_file` answers with. Generous — a generated source file is far below
|
|
115
|
+
* it — but bounded, since a tool answer shares one output budget with everything else the host holds.
|
|
116
|
+
*/
|
|
117
|
+
export const FILE_READ_CAP = 100_000;
|
|
118
|
+
/** What `list_files` lists when no `kind` is named: the generated sources. */
|
|
119
|
+
export const SOURCES_KIND = 'sources';
|
|
120
|
+
/** What `preview_control` can do to the preview workload, in the words of the web's sandbox card. */
|
|
121
|
+
export const PREVIEW_ACTIONS = ['start', 'restart', 'stop', 'rebuild'];
|
|
122
|
+
/**
|
|
123
|
+
* The tail of the refusal a protected file is written or deleted with
|
|
124
|
+
* (`target-integrity:<path> is part of the project's build configuration and cannot be edited`).
|
|
125
|
+
*/
|
|
126
|
+
export const PROTECTED_FILE_DETAIL = 'cannot be edited';
|
|
127
|
+
/** The configuration and settings scopes a tool may name: the preview's set and production's own. */
|
|
128
|
+
export const CONFIG_SCOPES = [WorkloadKind.Ephemeral, WorkloadKind.Production];
|
|
129
|
+
/** The level `set_inference_mode` sets: the person's own default, or one project's override. */
|
|
130
|
+
export const INFERENCE_LEVELS = ['account', 'project'];
|
|
131
|
+
/** What `set_inference_mode` can set — `inherit` (a project only) unsets the project's override. */
|
|
132
|
+
export const INFERENCE_MODES = ['cloud', 'local', 'inherit'];
|
|
133
|
+
/** Who performs the model calls in each mode, in the words every inference answer uses. */
|
|
134
|
+
export const INFERENCE_MODE_WORDS = {
|
|
135
|
+
cloud: 'cloud — the platform\'s own models, billed in credits',
|
|
136
|
+
local: 'local — the connected coding agent performs the platform\'s model calls',
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* What an inference setting reaches, said by every inference tool: the default of the browser and
|
|
140
|
+
* of connector hosts. A running stdio session retains its resolved mode until restarted.
|
|
141
|
+
*/
|
|
142
|
+
export const INFERENCE_REACH = 'This is the default the web application and connector hosts use. A'
|
|
143
|
+
+ ' stdio connector already running keeps its resolved mode; restart it to reload this preference.'
|
|
144
|
+
+ ' An explicit --llm or VIABLE_LLM override takes precedence over the account setting.';
|
|
145
|
+
/** The query parameter of the public site's hand-off address that carries the intent reference. */
|
|
146
|
+
export const INTENT_REF_PARAM = 'ref';
|
|
147
|
+
/** What `github_sync` does: send the project's commits to GitHub, or bring GitHub's into the project. */
|
|
148
|
+
export const GIT_SYNC_DIRECTIONS = ['push', 'pull'];
|
|
149
|
+
/** How many changed paths `git_status` names; the count is always the whole one. */
|
|
150
|
+
export const GIT_FILES_SHOWN = 20;
|
|
151
|
+
/** A GitHub connection's status, in the words every git answer uses. */
|
|
152
|
+
export const GITHUB_STATUS_WORDS = {
|
|
153
|
+
connected: 'connected, not published yet — publish_to_github creates or picks the repository',
|
|
154
|
+
published: 'published — github_sync pushes and pulls',
|
|
155
|
+
invalid: 'INVALID — GitHub refused the stored access; connect_github again',
|
|
156
|
+
};
|
|
157
|
+
/** What each push or pull outcome means, and what to do next. */
|
|
158
|
+
export const GIT_SYNC_WORDS = {
|
|
159
|
+
ok: 'done',
|
|
160
|
+
'up-to-date': 'nothing to do — already in step with GitHub',
|
|
161
|
+
conflict: 'refused: GitHub\'s changes conflict with the project\'s, so the merge was aborted and nothing'
|
|
162
|
+
+ ' changed. Resolve it on GitHub (or revert the conflicting commit there), then pull again',
|
|
163
|
+
rejected: 'refused: GitHub has commits the project does not — pull first, then push',
|
|
164
|
+
'no-remote': 'refused: the project is not published to a repository — publish_to_github first',
|
|
165
|
+
'auth-failed': 'refused: GitHub no longer accepts the stored access, so the connection is now invalid —'
|
|
166
|
+
+ ' connect_github again, then retry',
|
|
167
|
+
};
|
|
168
|
+
/** What `production_control` does to the published site: restart it (a stopped one comes back) or stop it. */
|
|
169
|
+
export const PRODUCTION_ACTIONS = ['restart', 'stop'];
|
|
170
|
+
/** What `custom_domain` does: attach a domain, ask the provider about its records again, or detach it. */
|
|
171
|
+
export const DOMAIN_ACTIONS = ['attach', 'verify', 'detach'];
|
|
172
|
+
/** A production workload's status, in the words every production answer uses. */
|
|
173
|
+
export const PRODUCTION_STATUS_WORDS = {
|
|
174
|
+
'not-deployed': 'not running — never published, or stopped',
|
|
175
|
+
building: 'building — the published site is being built from the current sources',
|
|
176
|
+
deploying: 'deploying — it goes live once its address answers',
|
|
177
|
+
live: 'live',
|
|
178
|
+
error: 'error — the last publish or start failed',
|
|
179
|
+
};
|
|
180
|
+
/** A custom domain's collapsed status, in the words every domain answer uses. */
|
|
181
|
+
export const DOMAIN_STATUS_WORDS = {
|
|
182
|
+
none: 'not attached',
|
|
183
|
+
pending: 'registered — waiting for the DNS records',
|
|
184
|
+
pending_validation: 'waiting for the DNS records and the certificate',
|
|
185
|
+
verified: 'verified — the certificate is being issued',
|
|
186
|
+
linked: 'active — the site answers on it',
|
|
187
|
+
error: 'error',
|
|
188
|
+
};
|
|
189
|
+
/** What `manage_app_user` does to an end user of the generated app. */
|
|
190
|
+
export const APP_USER_ACTIONS = ['invite', 'update', 'remove'];
|
|
191
|
+
/** What `manage_app_grant` does: grant a permission to one subject, or take it back. */
|
|
192
|
+
export const APP_GRANT_ACTIONS = ['assign', 'revoke'];
|
|
193
|
+
/**
|
|
194
|
+
* The grant modes that only take something back — every form (`all`) or the subject's own value
|
|
195
|
+
* (`inherit`) — and so are refused on `manage_app_grant { action: assign }` before any call.
|
|
196
|
+
*/
|
|
197
|
+
export const REVOKE_ONLY_GRANT_MODES = [IamGrantMode.All, IamGrantMode.Inherit];
|
|
198
|
+
/** What `manage_app_organization` does to an organization of the generated app and its members. */
|
|
199
|
+
export const APP_ORGANIZATION_ACTIONS = ['rename', 'add-member', 'update-member', 'remove-member'];
|
|
200
|
+
/** What `manage_app_group` does to a group of an organization of the generated app. */
|
|
201
|
+
export const APP_GROUP_ACTIONS = ['create', 'update', 'delete', 'add-members', 'remove-members'];
|
|
202
|
+
/** How many rows of one IAM listing a tool prints; the structured answer carries them all. */
|
|
203
|
+
export const IAM_ROWS_SHOWN = 50;
|
|
204
|
+
/** What a grant listing adds under its rows when some are `restricted: true`. */
|
|
205
|
+
export const IAM_RESTRICTED_NOTE = ' restricted = inherited (a default, a group or a bundle) but withheld by the subject\'s own'
|
|
206
|
+
+ ' restriction — not held; manage_app_grant { action: revoke, mode: inherit } lifts it.';
|
|
207
|
+
/** What an `external` IAM listing means — the backend keeps it in a console of its own. */
|
|
208
|
+
export const IAM_EXTERNAL = 'This application\'s sign-in is managed in a console of its own (an external'
|
|
209
|
+
+ ' identity provider), so the platform lists nothing here — manage it there.';
|
|
210
|
+
/** How much of a project's activity `project_activity` reads: what happened, or also the model's words. */
|
|
211
|
+
export const FEED_DETAILS = [ConnectFeedDetail.Progress, ConnectFeedDetail.Thinking];
|
|
212
|
+
/** The longest one feed line is printed — the entry itself keeps its excerpt in the structured content. */
|
|
213
|
+
export const FEED_LINE_MAX = 400;
|
|
214
|
+
/** An organization notice, in words — the same closed vocabulary the browser phrases as its toasts. */
|
|
215
|
+
export const FEED_TOAST_WORDS = {
|
|
216
|
+
'out-of-tokens': 'a run stopped: the organization ran out of credits — the user tops up in the web application\'s Billing',
|
|
217
|
+
'allowance-exhausted': 'a run stopped: the plan allowance it started on is used up — the user reads their plan in Billing',
|
|
218
|
+
};
|
|
219
|
+
/** What `stop_agent` can address: the run in progress, the story in progress, or the whole batch. */
|
|
220
|
+
export const STOP_SCOPES = [AgentStopScope.Run, AgentStopScope.Story, AgentStopScope.Batch];
|
|
221
|
+
/** What became of a story of a batch, in the words every batch answer uses. */
|
|
222
|
+
export const BATCH_OUTCOME_WORDS = {
|
|
223
|
+
[StoryBatchOutcome.Completed]: 'completed',
|
|
224
|
+
[StoryBatchOutcome.Failed]: 'failed — story_status says why; the batch went on with the next one',
|
|
225
|
+
[StoryBatchOutcome.Stopped]: 'stopped by a person — its changes were rolled back and it is planned again',
|
|
226
|
+
[StoryBatchOutcome.Skipped]: 'skipped — it left the project before its turn',
|
|
227
|
+
[StoryBatchOutcome.Refused]: 'refused — its start was refused; the batch went on with the next one',
|
|
228
|
+
};
|
|
229
|
+
/** Why a batch halted when the story it started stopped moving and nothing runs it any more. */
|
|
230
|
+
export const BATCH_STALLED_WORDS = 'the story it started stopped moving and nothing runs it any more'
|
|
231
|
+
+ ' (the run behind it ended without finishing it)';
|
|
232
|
+
/** What every rolled-back story stop says it does: what is lost, and what is kept. */
|
|
233
|
+
export const STORY_STOP_ROLLBACK = 'the story in progress stops at its next step, and every change made since'
|
|
234
|
+
+ ' that run started — edits saved in the web editor meanwhile included — is rolled back; the story returns'
|
|
235
|
+
+ ' to planned';
|
|
236
|
+
//# sourceMappingURL=consts.local.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.local.js","sourceRoot":"","sources":["../../src/tools/consts.local.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAG9I,6GAA6G;AAC7G,MAAM,CAAC,MAAM,QAAQ,GAAG,uBAAuB,CAAA;AAE/C,qFAAqF;AACrF,MAAM,CAAC,MAAM,eAAe,GAAG,wEAAwE;MACnG,qGAAqG;MACrG,6FAA6F;MAC7F,kGAAkG;MAClG,kGAAkG;MAClG,+FAA+F;MAC/F,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AAE,cAAc,CAAC,KAAK,CAAU,CAAA;AAEpG,+EAA+E;AAC/E,MAAM,CAAC,MAAM,mBAAmB,GAAqC;IACnE,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,WAAW;IAC1C,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,qEAAqE;IACjG,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,4EAA4E;IACzG,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,+CAA+C;IAC5E,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,sEAAsE;CACpG,CAAA;AAED,gGAAgG;AAChG,MAAM,CAAC,MAAM,mBAAmB,GAAG,kEAAkE;MACjG,iDAAiD,CAAA;AAErD,sFAAsF;AACtF,MAAM,CAAC,MAAM,mBAAmB,GAAG,2EAA2E;MAC1G,0GAA0G;MAC1G,aAAa,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AgentSteerResult, AgentStopScope, ConnectAgentLock, StoryBatchView } from '@owlmeans/viable-common';
|
|
2
|
+
/** How the agent's controls — stopping it, steering it, cancelling a story batch — are put into words. */
|
|
3
|
+
export interface ControlToolHelper {
|
|
4
|
+
/** Whether a stop of this scope rolls code back, so a person must have agreed (`confirm: true`). */
|
|
5
|
+
stopNeedsConfirm: (scope?: AgentStopScope) => boolean;
|
|
6
|
+
/** The answer to a stop that rolls code back and was not confirmed: what it would do, ask first. */
|
|
7
|
+
unconfirmedStop: (scope?: AgentStopScope) => string;
|
|
8
|
+
/** The answer to a batch cancel that was not confirmed. */
|
|
9
|
+
unconfirmedCancel: () => string;
|
|
10
|
+
/** What a requested stop does from here, and how to follow it. */
|
|
11
|
+
renderStop: (projectId: string, lock: ConnectAgentLock, scope?: AgentStopScope) => string;
|
|
12
|
+
/** A queued steering message, and when the agent reads it. */
|
|
13
|
+
renderSteer: (projectId: string, result: AgentSteerResult) => string;
|
|
14
|
+
/** A cancelled batch, led by whether the story it was implementing was stopped too. */
|
|
15
|
+
renderCancel: (view: StoryBatchView, storyStopped: boolean) => string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/tools/control/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAEjH,0GAA0G;AAC1G,MAAM,WAAW,iBAAiB;IAChC,oGAAoG;IACpG,gBAAgB,EAAE,CAAC,KAAK,CAAC,EAAE,cAAc,KAAK,OAAO,CAAA;IACrD,oGAAoG;IACpG,eAAe,EAAE,CAAC,KAAK,CAAC,EAAE,cAAc,KAAK,MAAM,CAAA;IACnD,2DAA2D;IAC3D,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B,kEAAkE;IAClE,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,cAAc,KAAK,MAAM,CAAA;IACzF,8DAA8D;IAC9D,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,KAAK,MAAM,CAAA;IACpE,uFAAuF;IACvF,YAAY,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,YAAY,EAAE,OAAO,KAAK,MAAM,CAAA;CACtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/tools/control/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../../src/tools/control.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,eAAO,MAAM,uBAAuB,QAAO,iBA+C1C,CAAA;AAED,eAAO,MAAM,iBAAiB,mBAA4B,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AgentStopScope } from '@owlmeans/viable-common';
|
|
2
|
+
import { statusTextHelper } from './status.js';
|
|
3
|
+
import { STORY_STOP_ROLLBACK as ROLLBACK } from './consts.local.js';
|
|
4
|
+
export const createControlToolHelper = () => {
|
|
5
|
+
const stopNeedsConfirm = (scope) => scope !== AgentStopScope.Run;
|
|
6
|
+
const unconfirmedStop = (scope) => {
|
|
7
|
+
const what = scope === AgentStopScope.Batch
|
|
8
|
+
? `No further story of the batch starts, and ${ROLLBACK}.`
|
|
9
|
+
: scope === AgentStopScope.Story
|
|
10
|
+
? `${ROLLBACK.charAt(0).toUpperCase()}${ROLLBACK.slice(1)}.`
|
|
11
|
+
: `When a story is being implemented, ${ROLLBACK}; an open-ended change stops and keeps its edits.`;
|
|
12
|
+
return `Not done. ${what} Ask the user, then call it again with confirm: true — or with scope: run for an`
|
|
13
|
+
+ ' open-ended change, which rolls nothing back.';
|
|
14
|
+
};
|
|
15
|
+
const unconfirmedCancel = () => 'Not done. Cancelling the batch starts no further story, and'
|
|
16
|
+
+ ` ${ROLLBACK}. Ask the user, then call it again with confirm: true.`;
|
|
17
|
+
const renderStop = (projectId, lock, scope) => {
|
|
18
|
+
const lead = !lock.locked
|
|
19
|
+
? 'The run has already ended — nothing is running on the project now.'
|
|
20
|
+
: scope === AgentStopScope.Run
|
|
21
|
+
? 'Stop requested: the open-ended change stops once the model\'s current answer arrives — nothing'
|
|
22
|
+
+ ' further runs — and ends with a short summary of what it changed and what is left. Its edits stay.'
|
|
23
|
+
: scope === AgentStopScope.Batch
|
|
24
|
+
? `Stop requested: no further story of the batch starts, and ${ROLLBACK}.`
|
|
25
|
+
: scope === AgentStopScope.Story
|
|
26
|
+
? `Stop requested: ${ROLLBACK}.`
|
|
27
|
+
: `Stop requested${lock.task != null ? ` (${lock.task})` : ''}: a story run stops at its next step and is`
|
|
28
|
+
+ ' rolled back to where that run started; an open-ended change stops once the model\'s current'
|
|
29
|
+
+ ' answer arrives and keeps its edits.';
|
|
30
|
+
return `${lead}\nnext: project_status { "projectId": "${projectId}" } until the agent is idle`;
|
|
31
|
+
};
|
|
32
|
+
const renderSteer = (projectId, result) => `Message ${result.id} queued: the agent reads it before its next model call. Its edits so far stay;`
|
|
33
|
+
+ ' the message steers what it does next.'
|
|
34
|
+
+ `\nnext: project_status { "projectId": "${projectId}" }`;
|
|
35
|
+
const renderCancel = (view, storyStopped) => [
|
|
36
|
+
storyStopped
|
|
37
|
+
? `The batch is cancelled: no further story starts, and ${ROLLBACK}.`
|
|
38
|
+
: 'The batch is cancelled: no further story starts. No story of it was being implemented.',
|
|
39
|
+
statusTextHelper.renderBatchStatus(view),
|
|
40
|
+
].join('\n\n');
|
|
41
|
+
return { stopNeedsConfirm, unconfirmedStop, unconfirmedCancel, renderStop, renderSteer, renderCancel };
|
|
42
|
+
};
|
|
43
|
+
export const controlToolHelper = createControlToolHelper();
|
|
44
|
+
//# sourceMappingURL=control.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../src/tools/control.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqE,MAAM,yBAAyB,CAAA;AAC3H,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,EAAE,mBAAmB,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAGnE,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAsB,EAAE;IAC7D,MAAM,gBAAgB,GAAG,CAAC,KAAsB,EAAW,EAAE,CAAC,KAAK,KAAK,cAAc,CAAC,GAAG,CAAA;IAE1F,MAAM,eAAe,GAAG,CAAC,KAAsB,EAAU,EAAE;QACzD,MAAM,IAAI,GAAG,KAAK,KAAK,cAAc,CAAC,KAAK;YACzC,CAAC,CAAC,6CAA6C,QAAQ,GAAG;YAC1D,CAAC,CAAC,KAAK,KAAK,cAAc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AU,EAAE,CAAC;QAC5E,YAAY;YACV,CAAC,CAAC,wDAAwD,QAAQ,GAAG;YACrE,CAAC,CAAC,wFAAwF;QAC5F,gBAAgB,CAAC,iBAAiB,CAAC,IAAI,CAAC;KACzC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAEd,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,CAAA;AACxG,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,uBAAuB,EAAE,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ConnectFeedEntry, ConnectFeedPage } from '@owlmeans/viable-common';
|
|
2
|
+
/** What a feed read's answer is told about where it came from and how to read on. */
|
|
3
|
+
export interface FeedPageOptions {
|
|
4
|
+
/** The sentence for a read that found nothing new, e.g. `No new activity.` */
|
|
5
|
+
empty: string;
|
|
6
|
+
/** The exact call that reads on from the cursor this page answered. */
|
|
7
|
+
next: string;
|
|
8
|
+
}
|
|
9
|
+
/** How the feed tools put a page of entries into words. */
|
|
10
|
+
export interface FeedToolHelper {
|
|
11
|
+
/** One entry as one line: its time, what happened and the detail that matters. */
|
|
12
|
+
renderEntry: (entry: ConnectFeedEntry) => string;
|
|
13
|
+
/**
|
|
14
|
+
* A page: a dropped stretch first (with where the work's status is read instead), the entries,
|
|
15
|
+
* then the cursor and the exact call that reads on.
|
|
16
|
+
*/
|
|
17
|
+
renderPage: (page: ConnectFeedPage, opts: FeedPageOptions) => string;
|
|
18
|
+
/** The call that reads on from a cursor: `<tool> {"…":…,"after":"<cursor>","wait":20}`. */
|
|
19
|
+
nextCall: (tool: string, args: Record<string, unknown>, cursor: string) => string;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/tools/feed/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAEhF,qFAAqF;AACrF,MAAM,WAAW,eAAe;IAC9B,8EAA8E;IAC9E,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAA;CACb;AAED,2DAA2D;AAC3D,MAAM,WAAW,cAAc;IAC7B,kFAAkF;IAClF,WAAW,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,MAAM,CAAA;IAChD;;;OAGG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,eAAe,KAAK,MAAM,CAAA;IACpE,2FAA2F;IAC3F,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,CAAA;CAClF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/tools/feed/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../src/tools/feed.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,eAAO,MAAM,oBAAoB,QAAO,cA8EvC,CAAA;AAED,eAAO,MAAM,cAAc,gBAAyB,CAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { CONNECT_FEED_WAIT_MAX_SEC, ConnectFeedKind } from '@owlmeans/viable-common';
|
|
2
|
+
import { FEED_LINE_MAX, FEED_TOAST_WORDS } from './consts.local.js';
|
|
3
|
+
export const createFeedToolHelper = () => {
|
|
4
|
+
/** One line, whatever the entry carried: whitespace folded, cut at {@link FEED_LINE_MAX}. */
|
|
5
|
+
const line = (text) => {
|
|
6
|
+
const folded = text.replace(/\s+/g, ' ').trim();
|
|
7
|
+
return folded.length > FEED_LINE_MAX ? `${folded.slice(0, FEED_LINE_MAX - 1)}…` : folded;
|
|
8
|
+
};
|
|
9
|
+
const str = (value) => typeof value === 'string' && value !== '' ? value : null;
|
|
10
|
+
const num = (value) => typeof value === 'number' && Number.isFinite(value) ? value : null;
|
|
11
|
+
const describe = (entry) => {
|
|
12
|
+
const data = entry.data ?? {};
|
|
13
|
+
const action = entry.action ?? 'work';
|
|
14
|
+
switch (entry.kind) {
|
|
15
|
+
case ConnectFeedKind.RunStart:
|
|
16
|
+
return `started ${action}${entry.agent != null ? ` (${entry.agent})` : ''}`;
|
|
17
|
+
case ConnectFeedKind.RunStop:
|
|
18
|
+
return `finished ${action}`;
|
|
19
|
+
case ConnectFeedKind.Message:
|
|
20
|
+
return `${action}: ${entry.text ?? ''}`;
|
|
21
|
+
case ConnectFeedKind.Thinking:
|
|
22
|
+
return `model (${action}): ${entry.text ?? ''}`;
|
|
23
|
+
case ConnectFeedKind.Step: {
|
|
24
|
+
const index = num(data.index);
|
|
25
|
+
const total = num(data.total);
|
|
26
|
+
return `step ${index ?? '?'}/${total ?? '?'} ${str(data.step) ?? ''} of ${str(data.pipeline) ?? 'a pipeline'}`
|
|
27
|
+
+ (data.skipped === true ? ' (already done)' : '')
|
|
28
|
+
+ (entry.text != null && entry.text !== '' ? ` — ${entry.text}` : '');
|
|
29
|
+
}
|
|
30
|
+
case ConnectFeedKind.Card:
|
|
31
|
+
return `${str(data.kind) === 'project' ? 'project' : 'story'}${str(data.code) != null ? ` ${str(data.code)}` : ''}`
|
|
32
|
+
+ `${str(data.title) != null ? ` "${str(data.title)}"` : ''} is ${str(data.status) ?? 'updated'}`;
|
|
33
|
+
case ConnectFeedKind.Slot: {
|
|
34
|
+
const warnings = [data.lastError, data.buildWarning, data.backendWarning].map(str).filter(text => text != null);
|
|
35
|
+
return `${str(data.kind) ?? 'workload'} ${str(data.status) ?? 'updated'}`
|
|
36
|
+
+ (warnings.length > 0 ? ` — warning: ${warnings.join('; ')}` : '');
|
|
37
|
+
}
|
|
38
|
+
case ConnectFeedKind.Conversion:
|
|
39
|
+
return `conversion ${str(data.stage) ?? ''}: ${str(data.status) ?? 'updated'}`
|
|
40
|
+
+ (str(data.decision) != null ? ` (decision: ${str(data.decision)})` : '');
|
|
41
|
+
case ConnectFeedKind.GitProposal:
|
|
42
|
+
return `${num(data.files) ?? 'some'} file(s) changed and not committed — git_commit keeps them, git_discard drops them`
|
|
43
|
+
+ (str(data.suggestedMessage) != null ? ` (suggested message: "${str(data.suggestedMessage)}")` : '');
|
|
44
|
+
case ConnectFeedKind.ToolResult:
|
|
45
|
+
return `tool ${str(data.name) ?? '?'}: ${str(data.status) ?? 'done'}`
|
|
46
|
+
+ (num(data.lines) != null ? `, ${num(data.lines)} line(s)` : '')
|
|
47
|
+
+ (num(data.entries) != null ? `, ${num(data.entries)} entr(ies)` : '')
|
|
48
|
+
+ (data.empty === true ? ', empty' : '');
|
|
49
|
+
case ConnectFeedKind.Lock:
|
|
50
|
+
return data.locked === true
|
|
51
|
+
? `the agent took the project${str(data.task) != null ? ` (${str(data.task)})` : ''}`
|
|
52
|
+
: 'the agent released the project';
|
|
53
|
+
case ConnectFeedKind.Toast:
|
|
54
|
+
return FEED_TOAST_WORDS[str(data.toast) ?? ''] ?? `notice: ${str(data.toast) ?? action}`;
|
|
55
|
+
case ConnectFeedKind.File:
|
|
56
|
+
return `${str(data.event) ?? 'changed'} ${str(data.path) ?? '?'}`;
|
|
57
|
+
default:
|
|
58
|
+
return `${entry.kind}${entry.text != null ? `: ${entry.text}` : ''}`;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const renderEntry = entry => line(`${entry.at.length >= 19 ? entry.at.slice(11, 19) : entry.at} ${describe(entry)}`);
|
|
62
|
+
const nextCall = (tool, args, cursor) => `${tool} ${JSON.stringify({ ...args, after: cursor, wait: CONNECT_FEED_WAIT_MAX_SEC })}`;
|
|
63
|
+
const renderPage = (page, opts) => [
|
|
64
|
+
...(page.gap
|
|
65
|
+
? ['Some entries after your cursor were dropped before this read (a feed keeps a bounded recent tail) —'
|
|
66
|
+
+ ' read the domain status (project_status, story_status, conversion_status) for where the work stands.']
|
|
67
|
+
: []),
|
|
68
|
+
...(page.entries.length > 0 ? page.entries.map(renderEntry) : [opts.empty]),
|
|
69
|
+
`cursor: ${page.cursor}`,
|
|
70
|
+
`next: ${opts.next} — holds up to ${CONNECT_FEED_WAIT_MAX_SEC} s for what comes next; keep passing the cursor each call answers.`,
|
|
71
|
+
].join('\n');
|
|
72
|
+
return { renderEntry, renderPage, nextCall };
|
|
73
|
+
};
|
|
74
|
+
export const feedToolHelper = createFeedToolHelper();
|
|
75
|
+
//# sourceMappingURL=feed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feed.js","sourceRoot":"","sources":["../../src/tools/feed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAyB,MAAM,yBAAyB,CAAA;AAC3G,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAGnE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAmB,EAAE;IACvD,6FAA6F;IAC7F,MAAM,IAAI,GAAG,CAAC,IAAY,EAAU,EAAE;QACpC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAA;QAE/C,OAAO,MAAM,CAAC,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAA;IAC1F,CAAC,CAAA;IACD,MAAM,GAAG,GAAG,CAAC,KAAc,EAAiB,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,KAA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