@owlmeans/viable-sdk 0.1.18-rc.9 → 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 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/executor/git/types.ts"],"names":[],"mappings":""}
|
package/build/executor/git.d.ts
CHANGED
|
@@ -1,39 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { LocalGitHelper } from './git/types.js';
|
|
2
|
+
export { CLONE_REFUSAL, IGNORE_BASELINE, REMOTE_REFUSAL } from './consts.js';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
* output, secrets or the connector's own scratch files.
|
|
5
|
-
*
|
|
6
|
-
* `.viable/connect.json` is deliberately NOT here: it is the project's identity, it holds no
|
|
7
|
-
* secret, and a developer who clones their own repository elsewhere should find it. The two files
|
|
8
|
-
* beside it are — a run record names pids on one machine, and the local keypair is a credential.
|
|
4
|
+
* Git in ONE local project directory, answered the way the publisher answers a slot's git commands.
|
|
9
5
|
*/
|
|
10
|
-
declare const
|
|
11
|
-
/**
|
|
12
|
-
* Why a local repository is never pushed, pulled or given a remote.
|
|
13
|
-
*
|
|
14
|
-
* DELIBERATE DIFFERENCE from the publisher, which does all three against a token the platform
|
|
15
|
-
* holds. A slot's volume is the platform's and its remote is a repository the platform created;
|
|
16
|
-
* a developer's checkout is THEIRS, its remote is whatever they configured, and pushing to it
|
|
17
|
-
* would mean the platform writing to a repository nobody here was asked about — with the
|
|
18
|
-
* developer's own credential helper supplying the authentication. So the platform touches none
|
|
19
|
-
* of it: whoever owns the directory owns its remotes.
|
|
20
|
-
*/
|
|
21
|
-
declare const REMOTE_REFUSAL: string;
|
|
22
|
-
/**
|
|
23
|
-
* Make the directory a repository the platform can work in, and change nothing else.
|
|
24
|
-
*
|
|
25
|
-
* DELIBERATE DIFFERENCE from the publisher on two points, both because this history belongs to a
|
|
26
|
-
* person rather than to a slot:
|
|
27
|
-
*
|
|
28
|
-
* - **No baseline commit.** The publisher snapshots a pre-git slot into a first commit so its
|
|
29
|
-
* history starts clean. Here the first commit is the developer's to make (or not) — a tool that
|
|
30
|
-
* committed a working tree it found is a tool that decided what their project's history says.
|
|
31
|
-
* - **An identity only when there is none.** `git config user.name` consults local, global and
|
|
32
|
-
* system, so a developer with a global identity keeps authoring as themselves. Writing the
|
|
33
|
-
* platform's name unconditionally would rewrite the author of every commit made in that
|
|
34
|
-
* directory afterwards, including ones the platform had nothing to do with.
|
|
35
|
-
*/
|
|
36
|
-
declare const ensure: (dir: string) => Promise<void>;
|
|
37
|
-
export declare const dispatchGitCommand: (dir: string, command: SlotGitCommand, args?: Record<string, any>) => Promise<Record<string, unknown>>;
|
|
38
|
-
export { ensure as ensureGitRepo, IGNORE_BASELINE, REMOTE_REFUSAL };
|
|
6
|
+
export declare const makeLocalGitHelper: (dir: string) => LocalGitHelper;
|
|
39
7
|
//# sourceMappingURL=git.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/executor/git.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/executor/git.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAsF5E;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAS,MAAM,KAAG,cAuQhD,CAAA"}
|
package/build/executor/git.js
CHANGED
|
@@ -3,51 +3,9 @@ import fsp from 'node:fs/promises';
|
|
|
3
3
|
import p from 'node:path';
|
|
4
4
|
import { SlotGitCommand } from '@owlmeans/viable-common';
|
|
5
5
|
import { GitDirtyTree, LocalGitError } from './errors.js';
|
|
6
|
-
import { MAX_OUTPUT_BUFFER } from './
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* The platform's own implementation is `@owlmeans/git`, which is private and carries `simple-git`
|
|
11
|
-
* and a GitHub client — neither of which may reach a package a developer installs to drive their
|
|
12
|
-
* own machine. So the semantics are ported and the two constants below are copied, with this
|
|
13
|
-
* comment as the record of where they came from: a connector that invented its own author name
|
|
14
|
-
* would produce a history that does not match what the platform writes for the same project in a
|
|
15
|
-
* slot.
|
|
16
|
-
*/
|
|
17
|
-
const DEFAULT_BRANCH = 'main';
|
|
18
|
-
const DEFAULT_GIT_USER_NAME = 'OwlMeans Viable';
|
|
19
|
-
const DEFAULT_GIT_USER_EMAIL = 'agent@owlmeans.com';
|
|
20
|
-
const LOG_LIMIT = 20;
|
|
21
|
-
const STATUS_FILES_CAP = 50;
|
|
22
|
-
/**
|
|
23
|
-
* The runtime safety net `ensure` appends, so a first commit never captures dependencies, build
|
|
24
|
-
* output, secrets or the connector's own scratch files.
|
|
25
|
-
*
|
|
26
|
-
* `.viable/connect.json` is deliberately NOT here: it is the project's identity, it holds no
|
|
27
|
-
* secret, and a developer who clones their own repository elsewhere should find it. The two files
|
|
28
|
-
* beside it are — a run record names pids on one machine, and the local keypair is a credential.
|
|
29
|
-
*/
|
|
30
|
-
const IGNORE_BASELINE = [
|
|
31
|
-
'node_modules/',
|
|
32
|
-
'dist/',
|
|
33
|
-
'build/',
|
|
34
|
-
'.env',
|
|
35
|
-
'.viable/run.json',
|
|
36
|
-
'.viable/local.json',
|
|
37
|
-
'tsconfig.tsbuildinfo',
|
|
38
|
-
];
|
|
39
|
-
/**
|
|
40
|
-
* Why a local repository is never pushed, pulled or given a remote.
|
|
41
|
-
*
|
|
42
|
-
* DELIBERATE DIFFERENCE from the publisher, which does all three against a token the platform
|
|
43
|
-
* holds. A slot's volume is the platform's and its remote is a repository the platform created;
|
|
44
|
-
* a developer's checkout is THEIRS, its remote is whatever they configured, and pushing to it
|
|
45
|
-
* would mean the platform writing to a repository nobody here was asked about — with the
|
|
46
|
-
* developer's own credential helper supplying the authentication. So the platform touches none
|
|
47
|
-
* of it: whoever owns the directory owns its remotes.
|
|
48
|
-
*/
|
|
49
|
-
const REMOTE_REFUSAL = 'This project lives on your own machine, so the platform does not touch its '
|
|
50
|
-
+ 'git remotes. Push, pull and remote configuration are yours to run.';
|
|
6
|
+
import { MAX_OUTPUT_BUFFER, CLONE_REFUSAL, IGNORE_BASELINE, REMOTE_REFUSAL } from './consts.js';
|
|
7
|
+
import { DEFAULT_BRANCH, DEFAULT_GIT_USER_EMAIL, DEFAULT_GIT_USER_NAME, LOG_FORMAT, LOG_LIMIT, STATUS_FILES_CAP } from './consts.local.js';
|
|
8
|
+
export { CLONE_REFUSAL, IGNORE_BASELINE, REMOTE_REFUSAL } from './consts.js';
|
|
51
9
|
/**
|
|
52
10
|
* Tail of the serialization chain per working directory.
|
|
53
11
|
*
|
|
@@ -73,23 +31,6 @@ const serialize = async (dir, op) => {
|
|
|
73
31
|
});
|
|
74
32
|
return await result;
|
|
75
33
|
};
|
|
76
|
-
/**
|
|
77
|
-
* Run one git command.
|
|
78
|
-
*
|
|
79
|
-
* `core.quotePath=false` so a path with a non-ASCII character comes back as itself rather than as
|
|
80
|
-
* an escaped C string nothing downstream un-escapes. `GIT_TERMINAL_PROMPT=0` so a command that
|
|
81
|
-
* wants credentials fails instead of blocking on a prompt no one can answer.
|
|
82
|
-
*/
|
|
83
|
-
const git = async (dir, args) => await new Promise(resolve => {
|
|
84
|
-
execFile('git', ['-c', 'core.quotePath=false', ...args], {
|
|
85
|
-
cwd: dir,
|
|
86
|
-
maxBuffer: MAX_OUTPUT_BUFFER,
|
|
87
|
-
env: { ...process.env, GIT_TERMINAL_PROMPT: '0' },
|
|
88
|
-
}, (error, stdout, stderr) => resolve({ ok: error == null, out: stdout, err: stderr }));
|
|
89
|
-
});
|
|
90
|
-
// Unit separator: it cannot appear in any of the fields, so a subject with tabs or spaces in it
|
|
91
|
-
// still parses.
|
|
92
|
-
const LOG_FORMAT = '--format=%H%x1f%h%x1f%an%x1f%ae%x1f%cI%x1f%s';
|
|
93
34
|
const parseCommits = (out) => out
|
|
94
35
|
.split('\n')
|
|
95
36
|
.map(line => line.trim())
|
|
@@ -100,20 +41,6 @@ const parseCommits = (out) => out
|
|
|
100
41
|
hash, shortHash, authorName, authorEmail, committedAt, subject: subject.join('\x1f'),
|
|
101
42
|
};
|
|
102
43
|
});
|
|
103
|
-
const headInfo = async (dir) => {
|
|
104
|
-
const result = await git(dir, ['log', '-1', LOG_FORMAT]);
|
|
105
|
-
return result.ok ? parseCommits(result.out)[0] ?? null : null;
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Whether the tree has anything uncommitted, untracked files included.
|
|
109
|
-
*
|
|
110
|
-
* Asked before `add -A` rather than after, so a clean tree is reported as clean instead of
|
|
111
|
-
* producing an empty commit.
|
|
112
|
-
*/
|
|
113
|
-
const isDirty = async (dir) => {
|
|
114
|
-
const result = await git(dir, ['status', '--porcelain', '-u']);
|
|
115
|
-
return result.out.trim() !== '';
|
|
116
|
-
};
|
|
117
44
|
const parseStatus = (out) => {
|
|
118
45
|
const lines = out.split('\n').filter(line => line !== '');
|
|
119
46
|
let branch = DEFAULT_BRANCH;
|
|
@@ -153,182 +80,220 @@ const parseStatus = (out) => {
|
|
|
153
80
|
return { branch, files, ahead, behind };
|
|
154
81
|
};
|
|
155
82
|
/**
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* A branch with no upstream configured still has an `origin/<branch>` ref after a fetch, and that
|
|
159
|
-
* is what a caller wants to know about.
|
|
83
|
+
* Git in ONE local project directory, answered the way the publisher answers a slot's git commands.
|
|
160
84
|
*/
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
]) {
|
|
203
|
-
const current = await git(dir, ['config', '--get', key]);
|
|
204
|
-
if (!current.ok || current.out.trim() === '') {
|
|
205
|
-
await git(dir, ['config', '--local', key, value]);
|
|
85
|
+
export const makeLocalGitHelper = (dir) => {
|
|
86
|
+
/**
|
|
87
|
+
* Run one git command.
|
|
88
|
+
*
|
|
89
|
+
* `core.quotePath=false` so a path with a non-ASCII character comes back as itself rather than as
|
|
90
|
+
* an escaped C string nothing downstream un-escapes. `GIT_TERMINAL_PROMPT=0` so a command that
|
|
91
|
+
* wants credentials fails instead of blocking on a prompt no one can answer.
|
|
92
|
+
*/
|
|
93
|
+
const git = async (args) => await new Promise(resolve => {
|
|
94
|
+
execFile('git', ['-c', 'core.quotePath=false', ...args], {
|
|
95
|
+
cwd: dir,
|
|
96
|
+
maxBuffer: MAX_OUTPUT_BUFFER,
|
|
97
|
+
env: { ...process.env, GIT_TERMINAL_PROMPT: '0' },
|
|
98
|
+
}, (error, stdout, stderr) => resolve({ ok: error == null, out: stdout, err: stderr }));
|
|
99
|
+
});
|
|
100
|
+
const headInfo = async () => {
|
|
101
|
+
const result = await git(['log', '-1', LOG_FORMAT]);
|
|
102
|
+
return result.ok ? parseCommits(result.out)[0] ?? null : null;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Whether the tree has anything uncommitted, untracked files included.
|
|
106
|
+
*
|
|
107
|
+
* Asked before `add -A` rather than after, so a clean tree is reported as clean instead of
|
|
108
|
+
* producing an empty commit.
|
|
109
|
+
*/
|
|
110
|
+
const isDirty = async () => {
|
|
111
|
+
const result = await git(['status', '--porcelain', '-u']);
|
|
112
|
+
return result.out.trim() !== '';
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Ahead/behind against the remote-tracking ref, when porcelain did not say.
|
|
116
|
+
*
|
|
117
|
+
* A branch with no upstream configured still has an `origin/<branch>` ref after a fetch, and that
|
|
118
|
+
* is what a caller wants to know about.
|
|
119
|
+
*/
|
|
120
|
+
const localCounts = async (branch) => {
|
|
121
|
+
const result = await git([
|
|
122
|
+
'rev-list', '--left-right', '--count', `${branch}...origin/${branch}`
|
|
123
|
+
]);
|
|
124
|
+
if (!result.ok) {
|
|
125
|
+
return { ahead: null, behind: null };
|
|
206
126
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
const missing = IGNORE_BASELINE.filter(entry => !lines.has(entry));
|
|
212
|
-
if (missing.length > 0) {
|
|
213
|
-
const prefix = existing === '' || existing.endsWith('\n') ? existing : `${existing}\n`;
|
|
214
|
-
await fsp.writeFile(ignorePath, `${prefix}${missing.join('\n')}\n`);
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
const status = async (dir) => {
|
|
218
|
-
const porcelain = await git(dir, ['status', '--porcelain=v1', '-b', '-u']);
|
|
219
|
-
const { branch, files, ahead, behind } = parseStatus(porcelain.out);
|
|
220
|
-
const remote = await git(dir, ['remote', 'get-url', 'origin']);
|
|
221
|
-
const remoteUrl = remote.ok && remote.out.trim() !== '' ? remote.out.trim() : null;
|
|
222
|
-
const counts = ahead != null || behind != null
|
|
223
|
-
? { ahead, behind }
|
|
224
|
-
: await localCounts(dir, branch);
|
|
225
|
-
return {
|
|
226
|
-
initialized: true,
|
|
227
|
-
head: await headInfo(dir),
|
|
228
|
-
branch,
|
|
229
|
-
dirty: files.length > 0,
|
|
230
|
-
changedFiles: files.length,
|
|
231
|
-
files: files.slice(0, STATUS_FILES_CAP),
|
|
232
|
-
remoteUrl,
|
|
233
|
-
ahead: counts.ahead,
|
|
234
|
-
behind: counts.behind,
|
|
127
|
+
const parts = result.out.trim().split(/\s+/);
|
|
128
|
+
return parts.length === 2
|
|
129
|
+
? { ahead: parseInt(parts[0]), behind: parseInt(parts[1]) }
|
|
130
|
+
: { ahead: null, behind: null };
|
|
235
131
|
};
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
132
|
+
/**
|
|
133
|
+
* Make the directory a repository the platform can work in, and change nothing else.
|
|
134
|
+
*
|
|
135
|
+
* DELIBERATE DIFFERENCE from the publisher on two points, both because this history belongs to a
|
|
136
|
+
* person rather than to a slot:
|
|
137
|
+
*
|
|
138
|
+
* - **No baseline commit.** The publisher snapshots a pre-git slot into a first commit so its
|
|
139
|
+
* history starts clean. Here the first commit is the developer's to make (or not) — a tool that
|
|
140
|
+
* committed a working tree it found is a tool that decided what their project's history says.
|
|
141
|
+
* - **An identity only when there is none.** `git config user.name` consults local, global and
|
|
142
|
+
* system, so a developer with a global identity keeps authoring as themselves. Writing the
|
|
143
|
+
* platform's name unconditionally would rewrite the author of every commit made in that
|
|
144
|
+
* directory afterwards, including ones the platform had nothing to do with.
|
|
145
|
+
*/
|
|
146
|
+
const ensure = async () => {
|
|
147
|
+
const created = await fsp.stat(p.join(dir, '.git')).then(() => false, () => true);
|
|
148
|
+
if (created) {
|
|
149
|
+
const init = await git(['init', '-b', DEFAULT_BRANCH]);
|
|
150
|
+
if (!init.ok) {
|
|
151
|
+
// `-b` arrived in git 2.28; an older one still initializes and is then pointed at `main`.
|
|
152
|
+
const fallback = await git(['init']);
|
|
153
|
+
if (!fallback.ok) {
|
|
154
|
+
throw new LocalGitError(`git init failed in ${dir}: ${fallback.err.trim()}`);
|
|
155
|
+
}
|
|
156
|
+
await git(['symbolic-ref', 'HEAD', `refs/heads/${DEFAULT_BRANCH}`]);
|
|
261
157
|
}
|
|
262
|
-
return { commit: await headInfo(dir) };
|
|
263
|
-
}
|
|
264
|
-
case SlotGitCommand.Log: {
|
|
265
|
-
await ensure(dir);
|
|
266
|
-
const result = await git(dir, ['log', `--max-count=${LOG_LIMIT}`, LOG_FORMAT]);
|
|
267
|
-
return { commits: result.ok ? parseCommits(result.out) : [] };
|
|
268
158
|
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
if (
|
|
274
|
-
|
|
159
|
+
for (const [key, value] of [
|
|
160
|
+
['user.name', DEFAULT_GIT_USER_NAME], ['user.email', DEFAULT_GIT_USER_EMAIL]
|
|
161
|
+
]) {
|
|
162
|
+
const current = await git(['config', '--get', key]);
|
|
163
|
+
if (!current.ok || current.out.trim() === '') {
|
|
164
|
+
await git(['config', '--local', key, value]);
|
|
275
165
|
}
|
|
276
|
-
await git(dir, ['reset', '--hard', 'HEAD']);
|
|
277
|
-
// `.viable/` is excluded by name: the marker is what identifies this directory as a
|
|
278
|
-
// platform project at all, it is untracked until someone commits it, and a discard that
|
|
279
|
-
// swept it would leave a tree no connector can recognize afterwards.
|
|
280
|
-
await git(dir, ['clean', '-fd', '-e', '.viable']);
|
|
281
|
-
return await status(dir);
|
|
282
166
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
167
|
+
const ignorePath = p.join(dir, '.gitignore');
|
|
168
|
+
const existing = await fsp.readFile(ignorePath, 'utf8').catch(() => '');
|
|
169
|
+
const lines = new Set(existing.split('\n').map(line => line.trim()));
|
|
170
|
+
const missing = IGNORE_BASELINE.filter(entry => !lines.has(entry));
|
|
171
|
+
if (missing.length > 0) {
|
|
172
|
+
const prefix = existing === '' || existing.endsWith('\n') ? existing : `${existing}\n`;
|
|
173
|
+
await fsp.writeFile(ignorePath, `${prefix}${missing.join('\n')}\n`);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
const status = async () => {
|
|
177
|
+
const porcelain = await git(['status', '--porcelain=v1', '-b', '-u']);
|
|
178
|
+
const { branch, files, ahead, behind } = parseStatus(porcelain.out);
|
|
179
|
+
const remote = await git(['remote', 'get-url', 'origin']);
|
|
180
|
+
const remoteUrl = remote.ok && remote.out.trim() !== '' ? remote.out.trim() : null;
|
|
181
|
+
const counts = ahead != null || behind != null
|
|
182
|
+
? { ahead, behind }
|
|
183
|
+
: await localCounts(branch);
|
|
184
|
+
return {
|
|
185
|
+
initialized: true,
|
|
186
|
+
head: await headInfo(),
|
|
187
|
+
branch,
|
|
188
|
+
dirty: files.length > 0,
|
|
189
|
+
changedFiles: files.length,
|
|
190
|
+
files: files.slice(0, STATUS_FILES_CAP),
|
|
191
|
+
remoteUrl,
|
|
192
|
+
ahead: counts.ahead,
|
|
193
|
+
behind: counts.behind,
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
const _dispatch = async (command, args) => {
|
|
197
|
+
switch (command) {
|
|
198
|
+
case SlotGitCommand.Ensure:
|
|
199
|
+
await ensure();
|
|
200
|
+
return {};
|
|
201
|
+
case SlotGitCommand.Status:
|
|
202
|
+
await ensure();
|
|
203
|
+
return await status();
|
|
204
|
+
case SlotGitCommand.Commit: {
|
|
205
|
+
await ensure();
|
|
206
|
+
if (!await isDirty()) {
|
|
207
|
+
return { commit: null };
|
|
208
|
+
}
|
|
209
|
+
const add = await git(['add', '-A']);
|
|
210
|
+
if (!add.ok) {
|
|
211
|
+
throw new LocalGitError(`git add failed: ${add.err.trim()}`);
|
|
212
|
+
}
|
|
213
|
+
const message = typeof args?.message === 'string' && args.message !== ''
|
|
214
|
+
? args.message
|
|
215
|
+
: 'chore: update project';
|
|
216
|
+
const commit = await git(['commit', '-m', message]);
|
|
217
|
+
if (!commit.ok) {
|
|
218
|
+
throw new LocalGitError(`git commit failed: ${(commit.err || commit.out).trim()}`);
|
|
219
|
+
}
|
|
220
|
+
return { commit: await headInfo() };
|
|
305
221
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
return {
|
|
222
|
+
case SlotGitCommand.Log: {
|
|
223
|
+
await ensure();
|
|
224
|
+
const result = await git(['log', `--max-count=${LOG_LIMIT}`, LOG_FORMAT]);
|
|
225
|
+
return { commits: result.ok ? parseCommits(result.out) : [] };
|
|
310
226
|
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
227
|
+
case SlotGitCommand.Discard: {
|
|
228
|
+
await ensure();
|
|
229
|
+
// On an unborn branch HEAD does not exist — there is nothing to reset to, and a `clean`
|
|
230
|
+
// there would delete a tree nobody has committed yet.
|
|
231
|
+
if (await headInfo() == null) {
|
|
232
|
+
return await status();
|
|
233
|
+
}
|
|
234
|
+
await git(['reset', '--hard', 'HEAD']);
|
|
235
|
+
// `.viable/` is excluded by name: the marker is what identifies this directory as a
|
|
236
|
+
// platform project at all, it is untracked until someone commits it, and a discard that
|
|
237
|
+
// swept it would leave a tree no connector can recognize afterwards.
|
|
238
|
+
await git(['clean', '-fd', '-e', '.viable']);
|
|
239
|
+
return await status();
|
|
314
240
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
241
|
+
case SlotGitCommand.RevertTo: {
|
|
242
|
+
await ensure();
|
|
243
|
+
const hash = typeof args?.hash === 'string' ? args.hash : '';
|
|
244
|
+
if (hash === '') {
|
|
245
|
+
throw new LocalGitError('revert-no-hash');
|
|
246
|
+
}
|
|
247
|
+
// A revert overwrites the working tree, so uncommitted work would be lost with no way back.
|
|
248
|
+
if (await isDirty()) {
|
|
249
|
+
throw new GitDirtyTree(dir);
|
|
250
|
+
}
|
|
251
|
+
const target = await git(['log', '-1', '--format=%h%x1f%s', hash]);
|
|
252
|
+
if (!target.ok) {
|
|
253
|
+
throw new LocalGitError(`invalid-hash:${hash}`);
|
|
254
|
+
}
|
|
255
|
+
const [shortHash, ...subjectParts] = target.out.trim().split('\x1f');
|
|
256
|
+
const subject = subjectParts.join('\x1f');
|
|
257
|
+
// APPEND-ONLY. `read-tree` restores the old content as a NEW commit on top of the current
|
|
258
|
+
// history, so nothing that ever happened is unmade — a reset would rewrite history a person
|
|
259
|
+
// may already have pushed or be working from.
|
|
260
|
+
const read = await git(['read-tree', '-u', '--reset', hash]);
|
|
261
|
+
if (!read.ok) {
|
|
262
|
+
throw new LocalGitError(`revert-failed: ${read.err.trim()}`);
|
|
263
|
+
}
|
|
264
|
+
// Reverting to what HEAD already holds changes nothing; answering with the current head is
|
|
265
|
+
// the honest result, and an empty commit would only add noise to the history.
|
|
266
|
+
if (!await isDirty()) {
|
|
267
|
+
return { commit: await headInfo() };
|
|
268
|
+
}
|
|
269
|
+
const commit = await git(['commit', '-m', `revert: restore ${shortHash} — ${subject}`]);
|
|
270
|
+
if (!commit.ok) {
|
|
271
|
+
throw new LocalGitError(`revert-commit-failed: ${(commit.err || commit.out).trim()}`);
|
|
272
|
+
}
|
|
273
|
+
const head = await headInfo();
|
|
274
|
+
if (head == null) {
|
|
275
|
+
throw new LocalGitError('revert-no-head');
|
|
276
|
+
}
|
|
277
|
+
return { commit: head };
|
|
318
278
|
}
|
|
319
|
-
|
|
279
|
+
// The three that touch a remote. Answered as TEXT rather than thrown: this is a policy, not a
|
|
280
|
+
// failure, and a caller that treats it as an error would retry something that can never
|
|
281
|
+
// succeed. The `GitSyncResult` fields travel beside it so a caller reading that shape finds
|
|
282
|
+
// the fields it expects instead of `undefined`.
|
|
283
|
+
case SlotGitCommand.SetRemote:
|
|
284
|
+
case SlotGitCommand.Push:
|
|
285
|
+
case SlotGitCommand.Pull:
|
|
286
|
+
return { result: REMOTE_REFUSAL, status: 'no-remote', ahead: null, behind: null, message: REMOTE_REFUSAL };
|
|
287
|
+
// The fourth, refused in the same shape and for the same reason — see CLONE_REFUSAL. The
|
|
288
|
+
// convert pipeline skips its clone step on a local target, so this is the belt to that
|
|
289
|
+
// braces: a command that arrives anyway answers a fact rather than failing a run.
|
|
290
|
+
case SlotGitCommand.Clone:
|
|
291
|
+
return { cloned: false, branch: '', head: null, result: CLONE_REFUSAL };
|
|
292
|
+
default:
|
|
293
|
+
throw new LocalGitError(`Unknown git command: ${String(command)}`);
|
|
320
294
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
// the fields it expects instead of `undefined`.
|
|
325
|
-
case SlotGitCommand.SetRemote:
|
|
326
|
-
case SlotGitCommand.Push:
|
|
327
|
-
case SlotGitCommand.Pull:
|
|
328
|
-
return { result: REMOTE_REFUSAL, status: 'no-remote', ahead: null, behind: null, message: REMOTE_REFUSAL };
|
|
329
|
-
default:
|
|
330
|
-
throw new LocalGitError(`Unknown git command: ${String(command)}`);
|
|
331
|
-
}
|
|
295
|
+
};
|
|
296
|
+
const dispatchGitCommand = async (command, args) => await serialize(dir, async () => await _dispatch(command, args));
|
|
297
|
+
return { dispatchGitCommand, ensureGitRepo: ensure };
|
|
332
298
|
};
|
|
333
|
-
export { ensure as ensureGitRepo, IGNORE_BASELINE, REMOTE_REFUSAL };
|
|
334
299
|
//# sourceMappingURL=git.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../src/executor/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO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IAElE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,EAAE,CAAA;AACtD,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Options } from 'globby';
|
|
2
|
+
export interface GlobHelper {
|
|
3
|
+
/**
|
|
4
|
+
* `globby` with its negated patterns handed over as `ignore` entries.
|
|
5
|
+
*
|
|
6
|
+
* Since globby 16 a negated pattern anchored at an absolute path (`!/sandbox/dist/**`) is silently not
|
|
7
|
+
* applied, while the same pattern given as an `ignore` entry is. Every caller here anchors its patterns at
|
|
8
|
+
* the sandbox root, so the split restores what the patterns always meant.
|
|
9
|
+
*/
|
|
10
|
+
list: (patterns: string | string[], options?: Options) => Promise<string[]>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/executor/glob/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAErC,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAA;CAC5E"}
|