@vellumai/cli 0.10.5 → 0.10.6-dev.202607062124.26c976d
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/node_modules/@vellumai/environments/tsconfig.json +1 -1
- package/node_modules/@vellumai/local-mode/node_modules/@vellumai/environments/package.json +18 -0
- package/node_modules/@vellumai/local-mode/node_modules/@vellumai/environments/src/__tests__/package-boundary.test.ts +95 -0
- package/node_modules/@vellumai/local-mode/node_modules/@vellumai/environments/src/index.ts +11 -0
- package/node_modules/@vellumai/local-mode/node_modules/@vellumai/environments/src/seeds.ts +70 -0
- package/node_modules/@vellumai/local-mode/node_modules/@vellumai/environments/src/types.ts +70 -0
- package/node_modules/@vellumai/local-mode/node_modules/@vellumai/environments/tsconfig.json +20 -0
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/README.md +18 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/locales/package.json +1 -2
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/mini/package.json +1 -2
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/package.json +1 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/all-errors.test.ts +3 -3
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/object.test.ts +5 -5
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/partials.test.ts +3 -3
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/errors.ts +2 -2
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/external.ts +0 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/from-json-schema.ts +23 -39
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/parse.ts +6 -6
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/schemas.ts +151 -414
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/assignability.test.ts +0 -6
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/catch.test.ts +0 -50
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/codec.test.ts +1 -142
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/continuability.test.ts +1 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/datetime.test.ts +1 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/default.test.ts +0 -44
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/discriminated-unions.test.ts +1 -34
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/error-utils.test.ts +2 -214
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/from-json-schema.test.ts +0 -161
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/function.test.ts +6 -6
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/index.test.ts +2 -2
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/number.test.ts +0 -55
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/object.test.ts +6 -83
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/optional.test.ts +4 -114
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/partial.test.ts +1 -24
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/prefault.test.ts +1 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/preprocess.test.ts +0 -69
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/record.test.ts +0 -85
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/recursive-types.test.ts +0 -49
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/refine.test.ts +0 -63
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/string.test.ts +1 -50
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/template-literal.test.ts +4 -4
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/to-json-schema.test.ts +15 -150
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/transform.test.ts +0 -17
- package/node_modules/@vellumai/local-mode/node_modules/zod/src/v4/classic/tests/tuple.test.ts +183 -0
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/union.test.ts +0 -54
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/api.ts +6 -31
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/checks.ts +1 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/core.ts +2 -17
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/errors.ts +24 -31
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/json-schema-processors.ts +18 -17
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/parse.ts +7 -7
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/regexes.ts +1 -8
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/schemas.ts +71 -263
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/tests/locales/uz.test.ts +0 -22
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/tests/record-constructor.test.ts +0 -58
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/to-json-schema.ts +1 -10
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/util.ts +35 -52
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/versions.ts +2 -2
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/en.ts +0 -4
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/fr.ts +8 -24
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/index.ts +0 -3
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/it.ts +1 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/ka.ts +8 -8
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/uz.ts +0 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/external.ts +0 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/schemas.ts +25 -56
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/codec.test.ts +0 -19
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/index.test.ts +2 -32
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/object.test.ts +9 -9
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/recursive-types.test.ts +1 -51
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/string.test.ts +0 -5
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/package.json +1 -2
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/errors.js +2 -2
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/external.d.cts +0 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/external.d.ts +0 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/from-json-schema.cjs +16 -31
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/from-json-schema.js +16 -31
- package/node_modules/@vellumai/local-mode/node_modules/zod/v4/classic/package.json +6 -0
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/schemas.cjs +119 -358
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/schemas.d.cts +14 -42
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/schemas.d.ts +14 -42
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/schemas.js +118 -356
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/api.cjs +2 -7
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/api.d.cts +5 -26
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/api.d.ts +5 -26
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/api.js +2 -7
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/checks.d.cts +1 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/checks.d.ts +1 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/core.cjs +1 -3
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/core.js +2 -4
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/errors.cjs +23 -26
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/errors.d.cts +0 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/errors.d.ts +0 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/errors.js +23 -26
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/json-schema-processors.cjs +20 -16
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/json-schema-processors.js +20 -16
- package/node_modules/@vellumai/local-mode/node_modules/zod/v4/core/package.json +6 -0
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/parse.cjs +7 -7
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/parse.js +7 -7
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/regexes.cjs +3 -9
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/regexes.d.cts +0 -6
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/regexes.d.ts +0 -6
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/regexes.js +1 -7
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/schemas.cjs +65 -211
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/schemas.d.cts +1 -39
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/schemas.d.ts +1 -39
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/schemas.js +64 -210
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/to-json-schema.cjs +1 -12
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/to-json-schema.js +1 -12
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/util.cjs +30 -54
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/util.d.cts +0 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/util.d.ts +0 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/util.js +32 -55
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/versions.cjs +2 -2
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/versions.d.cts +1 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/versions.d.ts +1 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/versions.js +2 -2
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/en.cjs +0 -4
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/en.js +0 -4
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fr.cjs +7 -24
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fr.js +7 -24
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/index.cjs +1 -8
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/index.d.cts +0 -3
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/index.d.ts +0 -3
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/index.js +0 -3
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/it.cjs +1 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/it.js +1 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ka.cjs +8 -8
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ka.js +8 -8
- package/node_modules/@vellumai/local-mode/node_modules/zod/v4/locales/package.json +6 -0
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/uz.cjs +0 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/uz.js +0 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/external.d.cts +0 -1
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/external.d.ts +0 -1
- package/node_modules/@vellumai/local-mode/node_modules/zod/v4/mini/package.json +6 -0
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/schemas.cjs +4 -41
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/schemas.d.cts +10 -28
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/schemas.d.ts +10 -28
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/schemas.js +4 -40
- package/node_modules/@vellumai/local-mode/node_modules/zod/v4/package.json +6 -0
- package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4-mini/package.json +1 -2
- package/node_modules/@vellumai/local-mode/src/__tests__/upgrade.test.ts +128 -0
- package/node_modules/@vellumai/local-mode/src/index.ts +1 -1
- package/node_modules/@vellumai/local-mode/src/upgrade.ts +43 -0
- package/node_modules/@vellumai/local-mode/tsconfig.json +1 -1
- package/package.json +1 -4
- package/src/__tests__/local-runtime-version.test.ts +42 -0
- package/src/__tests__/retire-local.test.ts +157 -0
- package/src/__tests__/sleep.test.ts +10 -2
- package/src/__tests__/wake.test.ts +34 -0
- package/src/commands/hatch.ts +1 -1
- package/src/commands/recover.ts +9 -3
- package/src/commands/sleep.ts +12 -0
- package/src/commands/upgrade.ts +11 -3
- package/src/commands/wake.ts +32 -3
- package/src/index.ts +59 -0
- package/src/lib/docker.ts +39 -1
- package/src/lib/hatch-local.ts +12 -4
- package/src/lib/local.ts +215 -0
- package/src/lib/process.ts +1 -1
- package/src/lib/retire-local.ts +12 -0
- package/tsconfig.json +1 -1
- package/bun.lock +0 -411
- package/bunfig.toml +0 -6
- package/node_modules/@vellumai/environments/bun.lock +0 -24
- package/node_modules/@vellumai/local-mode/bun.lock +0 -32
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -197
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -39
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -46
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -496
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -215
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
- package/node_modules/zod/src/v4/locales/el.ts +0 -121
- package/node_modules/zod/src/v4/locales/hr.ts +0 -131
- package/node_modules/zod/src/v4/locales/ro.ts +0 -129
- package/node_modules/zod/v4/classic/package.json +0 -7
- package/node_modules/zod/v4/core/package.json +0 -7
- package/node_modules/zod/v4/locales/el.cjs +0 -136
- package/node_modules/zod/v4/locales/el.d.cts +0 -5
- package/node_modules/zod/v4/locales/el.d.ts +0 -4
- package/node_modules/zod/v4/locales/el.js +0 -109
- package/node_modules/zod/v4/locales/hr.cjs +0 -149
- package/node_modules/zod/v4/locales/hr.d.cts +0 -5
- package/node_modules/zod/v4/locales/hr.d.ts +0 -4
- package/node_modules/zod/v4/locales/hr.js +0 -122
- package/node_modules/zod/v4/locales/package.json +0 -7
- package/node_modules/zod/v4/locales/ro.cjs +0 -146
- package/node_modules/zod/v4/locales/ro.d.cts +0 -5
- package/node_modules/zod/v4/locales/ro.d.ts +0 -4
- package/node_modules/zod/v4/locales/ro.js +0 -119
- package/node_modules/zod/v4/mini/package.json +0 -7
- package/node_modules/zod/v4/package.json +0 -7
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/LICENSE +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/index.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/index.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/index.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/index.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/locales/index.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/locales/index.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/locales/index.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/locales/index.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/mini/index.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/mini/index.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/mini/index.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/mini/index.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/index.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/locales/index.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/mini/index.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/ZodError.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/benchmarks/datetime.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/benchmarks/discriminatedUnion.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/benchmarks/index.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/benchmarks/ipv4.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/benchmarks/object.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/benchmarks/primitives.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/benchmarks/realworld.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/benchmarks/string.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/benchmarks/union.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/errors.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/external.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/helpers/enumUtil.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/helpers/errorUtil.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/helpers/parseUtil.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/helpers/partialUtil.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/helpers/typeAliases.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/helpers/util.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/index.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/locales/en.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/standard-schema.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/Mocker.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/anyunknown.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/array.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/async-parsing.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/async-refinements.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/base.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/bigint.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/branded.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/catch.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/coerce.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/complex.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/custom.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/date.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/deepmasking.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/default.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/description.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/discriminated-unions.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/enum.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/error.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/firstparty.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/firstpartyschematypes.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/function.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/generics.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/instanceof.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/intersection.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/language-server.source.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/language-server.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/literal.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/map.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/masking.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/mocker.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/nan.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/nativeEnum.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/nullable.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/number.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/object-augmentation.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/object-in-es5-env.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/optional.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/parseUtil.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/parser.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/pickomit.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/pipeline.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/preprocess.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/primitive.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/promise.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/readonly.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/record.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/recursive.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/refine.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/safeparse.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/set.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/standard-schema.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/string.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/transformer.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/tuple.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/unions.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/validations.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/tests/void.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v3/types.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/checks.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/coerce.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/compat.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/index.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/iso.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/anyunknown.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/apply.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/array.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/async-parsing.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/async-refinements.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/base.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/bigint.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/brand.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/coalesce.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/codec-examples.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/coerce.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/custom.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/date.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/describe-meta-checks.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/description.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/enum.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/error.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/file.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/firstparty.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/fix-json-issue.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/generics.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/hash.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/instanceof.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/intersection.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/json.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/lazy.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/literal.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/map.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/nan.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/nested-refine.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/nonoptional.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/nullable.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/pickomit.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/pipe.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/primitive.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/promise.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/prototypes.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/readonly.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/registries.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/set.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/standard-schema.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/string-formats.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/stringbool.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/url.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/validations.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/classic/tests/void.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/config.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/doc.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/index.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/json-schema-generator.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/json-schema.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/registries.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/standard-schema.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/tests/extend.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/tests/index.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/tests/locales/be.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/tests/locales/en.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/tests/locales/es.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/tests/locales/he.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/tests/locales/nl.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/tests/locales/ru.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/tests/locales/tr.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/tests/recursive-tuples.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/core/zsf.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/index.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/ar.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/az.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/be.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/bg.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/ca.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/cs.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/da.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/de.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/eo.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/es.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/fa.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/fi.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/fr-CA.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/he.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/hu.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/hy.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/id.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/is.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/ja.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/kh.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/km.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/ko.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/lt.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/mk.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/ms.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/nl.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/no.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/ota.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/pl.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/ps.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/pt.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/ru.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/sl.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/sv.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/ta.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/th.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/tr.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/ua.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/uk.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/ur.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/vi.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/yo.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/zh-CN.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/locales/zh-TW.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/checks.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/coerce.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/index.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/iso.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/parse.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/apply.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/assignability.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/brand.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/checks.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/computed.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/error.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/functions.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/number.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/prototypes.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4/mini/tests/standard-schema.test.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/src/v4-mini/index.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/ZodError.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/ZodError.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/ZodError.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/ZodError.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/errors.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/errors.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/errors.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/errors.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/external.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/external.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/external.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/external.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/enumUtil.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/enumUtil.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/enumUtil.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/enumUtil.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/errorUtil.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/errorUtil.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/errorUtil.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/errorUtil.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/parseUtil.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/parseUtil.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/parseUtil.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/parseUtil.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/partialUtil.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/partialUtil.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/partialUtil.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/partialUtil.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/typeAliases.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/typeAliases.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/typeAliases.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/typeAliases.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/util.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/util.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/util.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/helpers/util.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/index.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/index.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/index.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/index.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/locales/en.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/locales/en.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/locales/en.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/locales/en.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/standard-schema.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/standard-schema.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/standard-schema.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/standard-schema.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/types.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/types.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/types.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v3/types.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/checks.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/checks.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/checks.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/checks.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/coerce.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/coerce.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/coerce.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/coerce.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/compat.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/compat.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/compat.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/compat.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/errors.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/errors.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/errors.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/external.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/external.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/from-json-schema.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/from-json-schema.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/index.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/index.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/index.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/index.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/iso.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/iso.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/iso.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/iso.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/parse.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/parse.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/parse.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/classic/parse.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/checks.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/checks.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/core.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/core.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/doc.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/doc.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/doc.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/doc.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/index.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/index.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/index.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/index.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/json-schema-generator.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/json-schema-generator.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/json-schema-generator.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/json-schema-generator.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/json-schema-processors.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/json-schema-processors.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/json-schema.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/json-schema.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/json-schema.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/json-schema.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/parse.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/parse.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/registries.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/registries.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/registries.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/registries.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/standard-schema.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/standard-schema.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/standard-schema.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/standard-schema.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/to-json-schema.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/core/to-json-schema.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/index.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/index.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/index.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/index.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ar.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ar.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ar.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ar.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/az.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/az.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/az.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/az.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/be.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/be.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/be.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/be.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/bg.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/bg.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/bg.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/bg.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ca.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ca.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ca.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ca.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/cs.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/cs.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/cs.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/cs.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/da.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/da.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/da.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/da.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/de.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/de.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/de.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/de.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/en.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/en.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/eo.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/eo.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/eo.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/eo.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/es.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/es.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/es.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/es.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fa.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fa.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fa.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fa.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fi.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fi.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fi.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fi.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fr-CA.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fr-CA.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fr-CA.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fr-CA.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fr.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/fr.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/he.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/he.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/he.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/he.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/hu.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/hu.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/hu.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/hu.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/hy.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/hy.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/hy.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/hy.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/id.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/id.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/id.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/id.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/is.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/is.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/is.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/is.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/it.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/it.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ja.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ja.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ja.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ja.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ka.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ka.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/kh.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/kh.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/kh.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/kh.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/km.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/km.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/km.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/km.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ko.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ko.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ko.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ko.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/lt.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/lt.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/lt.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/lt.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/mk.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/mk.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/mk.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/mk.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ms.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ms.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ms.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ms.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/nl.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/nl.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/nl.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/nl.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/no.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/no.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/no.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/no.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ota.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ota.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ota.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ota.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/pl.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/pl.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/pl.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/pl.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ps.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ps.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ps.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ps.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/pt.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/pt.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/pt.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/pt.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ru.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ru.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ru.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ru.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/sl.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/sl.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/sl.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/sl.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/sv.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/sv.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/sv.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/sv.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ta.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ta.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ta.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ta.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/th.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/th.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/th.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/th.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/tr.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/tr.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/tr.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/tr.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ua.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ua.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ua.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ua.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/uk.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/uk.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/uk.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/uk.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ur.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ur.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ur.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/ur.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/uz.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/uz.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/vi.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/vi.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/vi.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/vi.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/yo.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/yo.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/yo.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/yo.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/zh-CN.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/zh-CN.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/zh-CN.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/zh-CN.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/zh-TW.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/zh-TW.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/zh-TW.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/locales/zh-TW.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/checks.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/checks.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/checks.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/checks.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/coerce.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/coerce.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/coerce.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/coerce.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/external.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/external.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/index.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/index.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/index.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/index.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/iso.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/iso.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/iso.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/iso.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/parse.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/parse.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/parse.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4/mini/parse.js +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4-mini/index.cjs +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4-mini/index.d.cts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4-mini/index.d.ts +0 -0
- /package/node_modules/{zod → @vellumai/local-mode/node_modules/zod}/v4-mini/index.js +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { afterEach, beforeAll, describe, expect, mock, test } from "bun:test";
|
|
2
|
+
import { EventEmitter } from "node:events";
|
|
3
|
+
|
|
4
|
+
import type { CliInvocation } from "../util";
|
|
5
|
+
|
|
6
|
+
class FakeChild extends EventEmitter {
|
|
7
|
+
stdout = new EventEmitter();
|
|
8
|
+
stderr = new EventEmitter();
|
|
9
|
+
kill = mock(() => true);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
let lastChild: FakeChild;
|
|
13
|
+
const spawnArgs: Array<
|
|
14
|
+
[string, string[], { env?: NodeJS.ProcessEnv; stdio?: unknown }]
|
|
15
|
+
> = [];
|
|
16
|
+
const spawnMock = mock(
|
|
17
|
+
(
|
|
18
|
+
command: string,
|
|
19
|
+
args: string[],
|
|
20
|
+
options: { env?: NodeJS.ProcessEnv; stdio?: unknown },
|
|
21
|
+
) => {
|
|
22
|
+
spawnArgs.push([command, args, options]);
|
|
23
|
+
lastChild = new FakeChild();
|
|
24
|
+
return lastChild;
|
|
25
|
+
},
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
mock.module("node:child_process", () => ({ spawn: spawnMock }));
|
|
29
|
+
|
|
30
|
+
let runUpgrade: typeof import("../upgrade").runUpgrade;
|
|
31
|
+
let isValidReleaseVersion: typeof import("../upgrade").isValidReleaseVersion;
|
|
32
|
+
|
|
33
|
+
beforeAll(async () => {
|
|
34
|
+
({ runUpgrade, isValidReleaseVersion } = await import("../upgrade"));
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
afterEach(() => {
|
|
38
|
+
spawnArgs.length = 0;
|
|
39
|
+
spawnMock.mockClear();
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const invocation: CliInvocation = { command: "bun", baseArgs: ["run", "cli"] };
|
|
43
|
+
|
|
44
|
+
describe("isValidReleaseVersion", () => {
|
|
45
|
+
test("accepts release tags, staying lenient about semver shape", () => {
|
|
46
|
+
for (const version of [
|
|
47
|
+
"latest",
|
|
48
|
+
"v1.2.3",
|
|
49
|
+
"V1.2.3", // uppercase prefix
|
|
50
|
+
"1.2.3",
|
|
51
|
+
"1.2", // two-part
|
|
52
|
+
"1.2.3.4", // four-part
|
|
53
|
+
"0.6.0-staging.5",
|
|
54
|
+
"1.2.3-rc.1+build.7",
|
|
55
|
+
]) {
|
|
56
|
+
expect(isValidReleaseVersion(version)).toBe(true);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
test("rejects package specs and path-traversal input", () => {
|
|
61
|
+
for (const version of [
|
|
62
|
+
"npm:@attacker/evil@1.0.0",
|
|
63
|
+
"https://evil.example/x.tgz",
|
|
64
|
+
"git+https://evil.example/x.git",
|
|
65
|
+
"github:attacker/vellum",
|
|
66
|
+
"file:/tmp/evil",
|
|
67
|
+
"../../../../tmp/evil",
|
|
68
|
+
"1.2.3-..", // no consecutive dots (would be a traversal segment)
|
|
69
|
+
"1.2.3-a..b",
|
|
70
|
+
"..",
|
|
71
|
+
"",
|
|
72
|
+
"vellum@1.2.3",
|
|
73
|
+
]) {
|
|
74
|
+
expect(isValidReleaseVersion(version)).toBe(false);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
describe("runUpgrade", () => {
|
|
80
|
+
test("spawns the CLI upgrade command for a release tag", async () => {
|
|
81
|
+
const pending = runUpgrade(invocation, "asst-42", { version: "v1.2.3" });
|
|
82
|
+
lastChild.emit("close", 0);
|
|
83
|
+
|
|
84
|
+
expect(await pending).toEqual({ ok: true });
|
|
85
|
+
expect(spawnArgs[0]).toEqual([
|
|
86
|
+
"bun",
|
|
87
|
+
["run", "cli", "upgrade", "asst-42", "--version", "v1.2.3"],
|
|
88
|
+
{ stdio: ["ignore", "pipe", "pipe"] },
|
|
89
|
+
]);
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
test("spawns the CLI upgrade command for --latest", async () => {
|
|
93
|
+
const pending = runUpgrade(invocation, "asst-42", { latest: true });
|
|
94
|
+
lastChild.emit("close", 0);
|
|
95
|
+
|
|
96
|
+
expect(await pending).toEqual({ ok: true });
|
|
97
|
+
expect(spawnArgs[0]?.[1]).toEqual([
|
|
98
|
+
"run",
|
|
99
|
+
"cli",
|
|
100
|
+
"upgrade",
|
|
101
|
+
"asst-42",
|
|
102
|
+
"--latest",
|
|
103
|
+
]);
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
test("rejects a malicious version without spawning", async () => {
|
|
107
|
+
const result = await runUpgrade(invocation, "asst-42", {
|
|
108
|
+
version: "npm:@attacker/evil@1.0.0",
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
expect(result).toEqual({
|
|
112
|
+
ok: false,
|
|
113
|
+
status: 400,
|
|
114
|
+
error:
|
|
115
|
+
"Invalid upgrade version 'npm:@attacker/evil@1.0.0': expected a release tag like v1.2.3 or 'latest'.",
|
|
116
|
+
});
|
|
117
|
+
expect(spawnArgs.length).toBe(0);
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
test("rejects a path-traversal version without spawning", async () => {
|
|
121
|
+
const result = await runUpgrade(invocation, "asst-42", {
|
|
122
|
+
version: "../../../../tmp/evil",
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
expect(result.ok).toBe(false);
|
|
126
|
+
expect(spawnArgs.length).toBe(0);
|
|
127
|
+
});
|
|
128
|
+
});
|
|
@@ -48,7 +48,7 @@ export { runSleep } from "./sleep";
|
|
|
48
48
|
export type { SleepResult } from "./sleep";
|
|
49
49
|
export { runWake } from "./wake";
|
|
50
50
|
export type { WakeOptions, WakeResult } from "./wake";
|
|
51
|
-
export { runUpgrade } from "./upgrade";
|
|
51
|
+
export { runUpgrade, isValidReleaseVersion } from "./upgrade";
|
|
52
52
|
export type { UpgradeOptions, UpgradeResult } from "./upgrade";
|
|
53
53
|
export { getLocalAssistantStatus } from "./status";
|
|
54
54
|
export type {
|
|
@@ -14,6 +14,37 @@ export interface UpgradeOptions {
|
|
|
14
14
|
force?: boolean;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
// A trusted release version is the literal `latest` dist-tag, or a
|
|
18
|
+
// version-shaped string: an optional `v`/`V` prefix, then a leading digit,
|
|
19
|
+
// then any run of `[0-9A-Za-z.+-]`. This is intentionally lenient about the
|
|
20
|
+
// *shape* of the version (2-, 3-, or 4-part, arbitrary pre-release/build
|
|
21
|
+
// identifiers, uppercase `V`) so we never reject a legitimate release tag.
|
|
22
|
+
//
|
|
23
|
+
// Security does not depend on the shape — it depends on the CHARSET. The
|
|
24
|
+
// allowed set excludes `/`, `\`, `:`, `@`, `#` and whitespace, so the value can
|
|
25
|
+
// never be interpreted by `bun install` as a package-manager spec (npm alias,
|
|
26
|
+
// tarball/git URL, `file:`/`github:` ref) — all of which require one of those
|
|
27
|
+
// characters. The mandatory leading digit means the value can never be a bare
|
|
28
|
+
// `.`/`..` path segment, and `..` is rejected outright, so the version is safe
|
|
29
|
+
// to use as the runtime-install directory name.
|
|
30
|
+
const RELEASE_VERSION_PATTERN = /^(?:latest|[vV]?\d[0-9A-Za-z.+-]*)$/;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Whether `version` is a trusted release identifier: the literal `latest`, or a
|
|
34
|
+
* version-shaped tag like `v1.2.3` / `1.2.3` / `0.6.0-staging.5`. Rejects
|
|
35
|
+
* package-manager specifiers (npm aliases, tarball or git URLs) and any
|
|
36
|
+
* path-traversal-like input, while staying permissive about semver shape.
|
|
37
|
+
*
|
|
38
|
+
* Defined once here and reused by both the host-bridge boundary guard
|
|
39
|
+
* (`runUpgrade`, in the shared library backing the Electron host and the web
|
|
40
|
+
* dev-server middleware) and the CLI's runtime-install sink
|
|
41
|
+
* (`ensureLocalRuntime`), so the security boundary can never drift between the
|
|
42
|
+
* two call sites.
|
|
43
|
+
*/
|
|
44
|
+
export function isValidReleaseVersion(version: string): boolean {
|
|
45
|
+
return RELEASE_VERSION_PATTERN.test(version) && !version.includes("..");
|
|
46
|
+
}
|
|
47
|
+
|
|
17
48
|
function extractVersion(output: string): string | undefined {
|
|
18
49
|
const versionPattern = "(v?[0-9]+(?:\\.[0-9]+)*(?:[-+][\\w.-]+)?)";
|
|
19
50
|
const upgraded = output.match(
|
|
@@ -35,6 +66,18 @@ export function runUpgrade(
|
|
|
35
66
|
options?: UpgradeOptions,
|
|
36
67
|
): Promise<UpgradeResult> {
|
|
37
68
|
return new Promise((resolve) => {
|
|
69
|
+
// Reject an untrusted `--version` at the host boundary before spawning the
|
|
70
|
+
// CLI. `latest` (or the `--latest` flag) is always allowed; an explicit
|
|
71
|
+
// version must be a release tag. Preserves the never-reject contract.
|
|
72
|
+
if (options?.version && !isValidReleaseVersion(options.version)) {
|
|
73
|
+
resolve({
|
|
74
|
+
ok: false,
|
|
75
|
+
status: 400,
|
|
76
|
+
error: `Invalid upgrade version '${options.version}': expected a release tag like v1.2.3 or 'latest'.`,
|
|
77
|
+
});
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
|
|
38
81
|
const args = [...invocation.baseArgs, "upgrade", assistantId];
|
|
39
82
|
if (options?.latest) {
|
|
40
83
|
args.push("--latest");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vellumai/cli",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6-dev.202607062124.26c976d",
|
|
4
4
|
"description": "CLI tools for vellum-assistant",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"format:check": "prettier --check .",
|
|
23
23
|
"lint": "eslint",
|
|
24
24
|
"lint:unused": "knip --include files,dependencies,unlisted",
|
|
25
|
-
"prepack": "node ../scripts/prepack-bundled-deps.mjs",
|
|
26
25
|
"compile:check": "bun build --compile --external react-devtools-core src/index.ts --outfile /dev/null",
|
|
27
26
|
"test": "bun test",
|
|
28
27
|
"typecheck": "bunx tsc --noEmit"
|
|
@@ -30,8 +29,6 @@
|
|
|
30
29
|
"author": "Vellum AI",
|
|
31
30
|
"license": "MIT",
|
|
32
31
|
"dependencies": {
|
|
33
|
-
"@vellumai/environments": "file:../packages/environments",
|
|
34
|
-
"@vellumai/local-mode": "file:../packages/local-mode",
|
|
35
32
|
"chalk": "5.6.2",
|
|
36
33
|
"ink": "6.8.0",
|
|
37
34
|
"nanoid": "5.1.7",
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { describe, expect, test } from "bun:test";
|
|
2
|
+
|
|
3
|
+
import { isValidReleaseVersion } from "@vellumai/local-mode";
|
|
4
|
+
|
|
5
|
+
import type { LocalInstanceResources } from "../lib/assistant-config.js";
|
|
6
|
+
import { ensureLocalRuntime } from "../lib/local.js";
|
|
7
|
+
|
|
8
|
+
// Only `instanceDir` is read, and only after the validation guard passes —
|
|
9
|
+
// invalid versions throw before any filesystem access, so a minimal stub is
|
|
10
|
+
// sufficient for the rejection cases.
|
|
11
|
+
const resources = {
|
|
12
|
+
instanceDir: "/tmp/vellum-nonexistent-instance",
|
|
13
|
+
} as unknown as LocalInstanceResources;
|
|
14
|
+
|
|
15
|
+
const VALID_VERSIONS = ["latest", "v1.2.3", "1.2.3", "0.6.0-staging.5"];
|
|
16
|
+
const MALICIOUS_VERSIONS = [
|
|
17
|
+
"npm:@attacker/evil@1.0.0",
|
|
18
|
+
"https://evil.example/x.tgz",
|
|
19
|
+
"git+https://evil.example/x.git",
|
|
20
|
+
"../../../../tmp/evil",
|
|
21
|
+
"1.2.3-..",
|
|
22
|
+
"1.2.3-a..b",
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
describe("ensureLocalRuntime version guard", () => {
|
|
26
|
+
test("shares the trusted-release validator with the host boundary", () => {
|
|
27
|
+
for (const version of VALID_VERSIONS) {
|
|
28
|
+
expect(isValidReleaseVersion(version)).toBe(true);
|
|
29
|
+
}
|
|
30
|
+
for (const version of MALICIOUS_VERSIONS) {
|
|
31
|
+
expect(isValidReleaseVersion(version)).toBe(false);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
test("throws before any install for untrusted versions", () => {
|
|
36
|
+
for (const version of MALICIOUS_VERSIONS) {
|
|
37
|
+
expect(() => ensureLocalRuntime(resources, version)).toThrow(
|
|
38
|
+
`Invalid runtime version '${version}'`,
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
});
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import {
|
|
2
|
+
afterAll,
|
|
3
|
+
beforeAll,
|
|
4
|
+
beforeEach,
|
|
5
|
+
describe,
|
|
6
|
+
expect,
|
|
7
|
+
mock,
|
|
8
|
+
spyOn,
|
|
9
|
+
test,
|
|
10
|
+
} from "bun:test";
|
|
11
|
+
import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
|
|
12
|
+
import { tmpdir } from "node:os";
|
|
13
|
+
import { join } from "node:path";
|
|
14
|
+
|
|
15
|
+
import type { AssistantEntry } from "../lib/assistant-config.js";
|
|
16
|
+
|
|
17
|
+
const testDir = mkdtempSync(join(tmpdir(), "retire-local-test-"));
|
|
18
|
+
const originalLockfileDir = process.env.VELLUM_LOCKFILE_DIR;
|
|
19
|
+
|
|
20
|
+
const stopProcessByPidFileMock = mock(
|
|
21
|
+
async (_pidFile: string, _label: string): Promise<boolean> => true,
|
|
22
|
+
);
|
|
23
|
+
const stopOrphanedDaemonProcessesMock = mock(async (): Promise<boolean> => false);
|
|
24
|
+
const stopIngressNginxMock = mock(async (): Promise<boolean> => false);
|
|
25
|
+
|
|
26
|
+
mock.module("../lib/process.js", () => ({
|
|
27
|
+
stopProcessByPidFile: stopProcessByPidFileMock,
|
|
28
|
+
stopOrphanedDaemonProcesses: stopOrphanedDaemonProcessesMock,
|
|
29
|
+
}));
|
|
30
|
+
|
|
31
|
+
mock.module("../lib/nginx-ingress.js", () => ({
|
|
32
|
+
stopIngressNginx: stopIngressNginxMock,
|
|
33
|
+
}));
|
|
34
|
+
|
|
35
|
+
// Keep archive paths on the same filesystem as the test dir so rename doesn't
|
|
36
|
+
// hit EXDEV (cross-device link).
|
|
37
|
+
const retiredStagingDir = join(testDir, "retired");
|
|
38
|
+
mock.module("../lib/retire-archive.js", () => ({
|
|
39
|
+
getArchivePath: () => join(retiredStagingDir, "test-assistant.tar.gz"),
|
|
40
|
+
getMetadataPath: () => join(retiredStagingDir, "test-assistant.meta.json"),
|
|
41
|
+
}));
|
|
42
|
+
|
|
43
|
+
import { retireLocal } from "../lib/retire-local.js";
|
|
44
|
+
|
|
45
|
+
const instanceDir = join(testDir, "test-instance");
|
|
46
|
+
const vellumDir = join(instanceDir, ".vellum");
|
|
47
|
+
|
|
48
|
+
function makeEntry(assistantId: string): AssistantEntry {
|
|
49
|
+
return {
|
|
50
|
+
assistantId,
|
|
51
|
+
runtimeUrl: "http://127.0.0.1:7801",
|
|
52
|
+
cloud: "local",
|
|
53
|
+
resources: {
|
|
54
|
+
instanceDir,
|
|
55
|
+
daemonPort: 7801,
|
|
56
|
+
gatewayPort: 7831,
|
|
57
|
+
qdrantPort: 6334,
|
|
58
|
+
cesPort: 7790,
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function writeLockfile(entries: AssistantEntry[]): void {
|
|
64
|
+
writeFileSync(
|
|
65
|
+
join(testDir, ".vellum.lock.json"),
|
|
66
|
+
JSON.stringify({ assistants: entries }, null, 2) + "\n",
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
describe("retireLocal — CES sibling stop", () => {
|
|
71
|
+
beforeAll(() => {
|
|
72
|
+
process.env.VELLUM_LOCKFILE_DIR = testDir;
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
beforeEach(() => {
|
|
76
|
+
stopProcessByPidFileMock.mockReset();
|
|
77
|
+
stopProcessByPidFileMock.mockResolvedValue(true);
|
|
78
|
+
stopOrphanedDaemonProcessesMock.mockReset();
|
|
79
|
+
stopOrphanedDaemonProcessesMock.mockResolvedValue(false);
|
|
80
|
+
stopIngressNginxMock.mockReset();
|
|
81
|
+
stopIngressNginxMock.mockResolvedValue(false);
|
|
82
|
+
|
|
83
|
+
rmSync(instanceDir, { recursive: true, force: true });
|
|
84
|
+
rmSync(join(testDir, "retired"), { recursive: true, force: true });
|
|
85
|
+
mkdirSync(vellumDir, { recursive: true });
|
|
86
|
+
writeLockfile([makeEntry("test-assistant")]);
|
|
87
|
+
|
|
88
|
+
// Suppress console output from the lifecycle reporter.
|
|
89
|
+
spyOn(console, "log").mockImplementation(() => {});
|
|
90
|
+
spyOn(console, "warn").mockImplementation(() => {});
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
afterAll(() => {
|
|
94
|
+
if (originalLockfileDir === undefined) {
|
|
95
|
+
delete process.env.VELLUM_LOCKFILE_DIR;
|
|
96
|
+
} else {
|
|
97
|
+
process.env.VELLUM_LOCKFILE_DIR = originalLockfileDir;
|
|
98
|
+
}
|
|
99
|
+
rmSync(testDir, { recursive: true, force: true });
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
test("stops the CES sibling alongside daemon and gateway", async () => {
|
|
103
|
+
const entry = makeEntry("test-assistant");
|
|
104
|
+
await retireLocal("test-assistant", entry, {
|
|
105
|
+
progress: () => {},
|
|
106
|
+
log: () => {},
|
|
107
|
+
warn: () => {},
|
|
108
|
+
error: () => {},
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
// Verify CES PID file is among the stop calls.
|
|
112
|
+
const cesStopCall = stopProcessByPidFileMock.mock.calls.find(
|
|
113
|
+
([pidFile, label]) =>
|
|
114
|
+
pidFile === join(vellumDir, "ces.pid") &&
|
|
115
|
+
label === "credential-executor",
|
|
116
|
+
);
|
|
117
|
+
expect(cesStopCall).toBeDefined();
|
|
118
|
+
|
|
119
|
+
// Also verify daemon and gateway are still stopped (sanity).
|
|
120
|
+
const daemonStopCall = stopProcessByPidFileMock.mock.calls.find(
|
|
121
|
+
([, label]) => label === "daemon",
|
|
122
|
+
);
|
|
123
|
+
expect(daemonStopCall).toBeDefined();
|
|
124
|
+
|
|
125
|
+
const gatewayStopCall = stopProcessByPidFileMock.mock.calls.find(
|
|
126
|
+
([, label]) => label === "gateway",
|
|
127
|
+
);
|
|
128
|
+
expect(gatewayStopCall).toBeDefined();
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
test("CES stop is a no-op when ces.pid is absent", async () => {
|
|
132
|
+
// stopProcessByPidFile returns false when the PID file doesn't exist.
|
|
133
|
+
// retireLocal should still complete successfully — the CES stop is best-effort.
|
|
134
|
+
stopProcessByPidFileMock.mockImplementation(
|
|
135
|
+
async (pidFile: string): Promise<boolean> => {
|
|
136
|
+
if (pidFile.includes("ces.pid")) return false;
|
|
137
|
+
return true;
|
|
138
|
+
},
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
const entry = makeEntry("test-assistant");
|
|
142
|
+
await retireLocal("test-assistant", entry, {
|
|
143
|
+
progress: () => {},
|
|
144
|
+
log: () => {},
|
|
145
|
+
warn: () => {},
|
|
146
|
+
error: () => {},
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
// The CES stop was attempted (PID file checked) but returned false.
|
|
150
|
+
const cesStopCall = stopProcessByPidFileMock.mock.calls.find(
|
|
151
|
+
([pidFile, label]) =>
|
|
152
|
+
pidFile === join(vellumDir, "ces.pid") &&
|
|
153
|
+
label === "credential-executor",
|
|
154
|
+
);
|
|
155
|
+
expect(cesStopCall).toBeDefined();
|
|
156
|
+
});
|
|
157
|
+
});
|
|
@@ -139,7 +139,8 @@ describe("sleep command", () => {
|
|
|
139
139
|
consoleLog.mockRestore();
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
// assistant + gateway + CES sibling
|
|
143
|
+
expect(stopProcessByPidFileMock).toHaveBeenCalledTimes(3);
|
|
143
144
|
});
|
|
144
145
|
|
|
145
146
|
test("force stops the assistant even when an active call lease exists", async () => {
|
|
@@ -154,7 +155,7 @@ describe("sleep command", () => {
|
|
|
154
155
|
consoleLog.mockRestore();
|
|
155
156
|
}
|
|
156
157
|
|
|
157
|
-
expect(stopProcessByPidFileMock).toHaveBeenCalledTimes(
|
|
158
|
+
expect(stopProcessByPidFileMock).toHaveBeenCalledTimes(3);
|
|
158
159
|
// The assistant stop passes a generous 120s grace so the daemon's WAL
|
|
159
160
|
// checkpoint completes before any SIGKILL (default 2s would truncate it).
|
|
160
161
|
expect(stopProcessByPidFileMock).toHaveBeenNthCalledWith(
|
|
@@ -171,5 +172,12 @@ describe("sleep command", () => {
|
|
|
171
172
|
undefined,
|
|
172
173
|
7000,
|
|
173
174
|
);
|
|
175
|
+
// The CES sibling (CES_STANDALONE opt-in) is stopped by its PID file; a
|
|
176
|
+
// no-op when absent on the default topology.
|
|
177
|
+
expect(stopProcessByPidFileMock).toHaveBeenNthCalledWith(
|
|
178
|
+
3,
|
|
179
|
+
join(assistantRootDir, "ces.pid"),
|
|
180
|
+
"credential-executor",
|
|
181
|
+
);
|
|
174
182
|
});
|
|
175
183
|
});
|
|
@@ -90,11 +90,16 @@ const resolveProcessStateMock = mock<typeof processLib.resolveProcessState>(
|
|
|
90
90
|
const stopProcessByPidFileMock = mock<typeof processLib.stopProcessByPidFile>(
|
|
91
91
|
async () => true,
|
|
92
92
|
);
|
|
93
|
+
const isProcessAliveMock = mock<typeof processLib.isProcessAlive>(() => ({
|
|
94
|
+
alive: false,
|
|
95
|
+
pid: null,
|
|
96
|
+
}));
|
|
93
97
|
|
|
94
98
|
mock.module("../lib/process", () => ({
|
|
95
99
|
...realProcessLib,
|
|
96
100
|
resolveProcessState: resolveProcessStateMock,
|
|
97
101
|
stopProcessByPidFile: stopProcessByPidFileMock,
|
|
102
|
+
isProcessAlive: isProcessAliveMock,
|
|
98
103
|
}));
|
|
99
104
|
|
|
100
105
|
const generateLocalSigningKeyMock = mock<typeof local.generateLocalSigningKey>(
|
|
@@ -110,6 +115,7 @@ const startLocalDaemonMock = mock<typeof local.startLocalDaemon>(async () => {})
|
|
|
110
115
|
const startGatewayMock = mock<typeof local.startGateway>(
|
|
111
116
|
async () => "http://127.0.0.1:7830",
|
|
112
117
|
);
|
|
118
|
+
const startCesMock = mock<typeof local.startCes>(async () => {});
|
|
113
119
|
|
|
114
120
|
mock.module("../lib/local", () => ({
|
|
115
121
|
...realLocal,
|
|
@@ -118,6 +124,7 @@ mock.module("../lib/local", () => ({
|
|
|
118
124
|
isGatewayWatchModeAvailable: isGatewayWatchModeAvailableMock,
|
|
119
125
|
startLocalDaemon: startLocalDaemonMock,
|
|
120
126
|
startGateway: startGatewayMock,
|
|
127
|
+
startCes: startCesMock,
|
|
121
128
|
}));
|
|
122
129
|
|
|
123
130
|
const maybeStartNgrokTunnelMock = mock<typeof ngrok.maybeStartNgrokTunnel>(
|
|
@@ -184,6 +191,10 @@ beforeEach(() => {
|
|
|
184
191
|
startLocalDaemonMock.mockResolvedValue(undefined);
|
|
185
192
|
startGatewayMock.mockReset();
|
|
186
193
|
startGatewayMock.mockResolvedValue("http://127.0.0.1:7830");
|
|
194
|
+
startCesMock.mockReset();
|
|
195
|
+
startCesMock.mockResolvedValue(undefined);
|
|
196
|
+
isProcessAliveMock.mockReset();
|
|
197
|
+
isProcessAliveMock.mockReturnValue({ alive: false, pid: null });
|
|
187
198
|
seedGuardianTokenFromSiblingEnvMock.mockReset();
|
|
188
199
|
seedGuardianTokenFromSiblingEnvMock.mockReturnValue(false);
|
|
189
200
|
loadGuardianTokenMock.mockReset();
|
|
@@ -291,4 +302,27 @@ describe("vellum wake", () => {
|
|
|
291
302
|
"generated-bootstrap-secret",
|
|
292
303
|
);
|
|
293
304
|
});
|
|
305
|
+
|
|
306
|
+
test("relaunches CES sibling when daemon is healthy but CES is dead", async () => {
|
|
307
|
+
// Daemon is healthy (default mock) but CES pid says dead.
|
|
308
|
+
// isProcessAliveMock defaults to { alive: false }.
|
|
309
|
+
await wake();
|
|
310
|
+
|
|
311
|
+
// startCes should be called to relaunch the dead sibling.
|
|
312
|
+
expect(startCesMock).toHaveBeenCalledTimes(1);
|
|
313
|
+
// startLocalDaemon should NOT be called (daemon already running).
|
|
314
|
+
expect(startLocalDaemonMock).not.toHaveBeenCalled();
|
|
315
|
+
});
|
|
316
|
+
|
|
317
|
+
test("does NOT relaunch CES sibling when both daemon and CES are healthy", async () => {
|
|
318
|
+
// Daemon is healthy (default mock). CES is also alive.
|
|
319
|
+
isProcessAliveMock.mockReturnValue({ alive: true, pid: 789 });
|
|
320
|
+
|
|
321
|
+
await wake();
|
|
322
|
+
|
|
323
|
+
// startCes should NOT be called (CES is alive).
|
|
324
|
+
expect(startCesMock).not.toHaveBeenCalled();
|
|
325
|
+
// startLocalDaemon should NOT be called (daemon already running).
|
|
326
|
+
expect(startLocalDaemonMock).not.toHaveBeenCalled();
|
|
327
|
+
});
|
|
294
328
|
});
|
package/src/commands/hatch.ts
CHANGED
|
@@ -146,7 +146,7 @@ ${userSetup}
|
|
|
146
146
|
${envSetLines}
|
|
147
147
|
VELLUM_ASSISTANT_NAME=${instanceName}
|
|
148
148
|
mkdir -p "\$HOME/.config/vellum"
|
|
149
|
-
cat > "\$HOME/.config/vellum
|
|
149
|
+
cat > "\$HOME/.config/vellum/.env" << DOTENV_EOF
|
|
150
150
|
${dotenvLines}
|
|
151
151
|
RUNTIME_HTTP_PORT=7821
|
|
152
152
|
DOTENV_EOF
|
package/src/commands/recover.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { saveAssistantEntry } from "../lib/assistant-config";
|
|
|
12
12
|
import type { AssistantEntry } from "../lib/assistant-config";
|
|
13
13
|
import {
|
|
14
14
|
generateLocalSigningKey,
|
|
15
|
+
startCes,
|
|
15
16
|
startLocalDaemon,
|
|
16
17
|
startGateway,
|
|
17
18
|
} from "../lib/local";
|
|
@@ -117,9 +118,14 @@ export async function recover(): Promise<void> {
|
|
|
117
118
|
entry.guardianBootstrapSecret = bootstrapSecret;
|
|
118
119
|
saveAssistantEntry(entry);
|
|
119
120
|
|
|
120
|
-
// 8. Start daemon + gateway
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
// 8. Start CES sibling (opt-in) + daemon + gateway in parallel, the way the
|
|
122
|
+
// Docker topology brings its sibling processes up together. startCes is a
|
|
123
|
+
// no-op unless CES_STANDALONE is set.
|
|
124
|
+
await Promise.all([
|
|
125
|
+
startCes(false, entry.resources),
|
|
126
|
+
startLocalDaemon(false, entry.resources, { signingKey }),
|
|
127
|
+
startGateway(false, entry.resources, { signingKey, bootstrapSecret }),
|
|
128
|
+
]);
|
|
123
129
|
|
|
124
130
|
console.log(`✅ Recovered assistant '${name}'.`);
|
|
125
131
|
}
|
package/src/commands/sleep.ts
CHANGED
|
@@ -168,6 +168,18 @@ export async function sleep(): Promise<void> {
|
|
|
168
168
|
console.log("Gateway stopped.");
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
// Stop the CES sibling if one was launched (CES_STANDALONE). No-op when the
|
|
172
|
+
// PID file is absent — on the default topology the assistant owns CES as an
|
|
173
|
+
// stdio child and it exits with the daemon.
|
|
174
|
+
const cesPidFile = join(vellumDir, "ces.pid");
|
|
175
|
+
const cesStopped = await stopProcessByPidFile(
|
|
176
|
+
cesPidFile,
|
|
177
|
+
"credential-executor",
|
|
178
|
+
);
|
|
179
|
+
if (cesStopped) {
|
|
180
|
+
console.log("credential-executor stopped.");
|
|
181
|
+
}
|
|
182
|
+
|
|
171
183
|
// Stop the nginx ingress if one is fronting this gateway — otherwise it
|
|
172
184
|
// keeps running against a dead upstream and serves 502s.
|
|
173
185
|
const ingressStopped = await stopIngressNginx(join(vellumDir, "workspace"));
|
package/src/commands/upgrade.ts
CHANGED
|
@@ -66,6 +66,7 @@ import { loopbackSafeFetch } from "../lib/loopback-fetch.js";
|
|
|
66
66
|
import {
|
|
67
67
|
generateLocalSigningKey,
|
|
68
68
|
ensureLocalRuntime,
|
|
69
|
+
startCes,
|
|
69
70
|
startGateway,
|
|
70
71
|
startLocalDaemon,
|
|
71
72
|
stopLocalProcesses,
|
|
@@ -434,7 +435,8 @@ async function upgradeDocker(
|
|
|
434
435
|
}
|
|
435
436
|
|
|
436
437
|
// Recover the assistant host port from the entry, fall back to default.
|
|
437
|
-
const assistantPort =
|
|
438
|
+
const assistantPort =
|
|
439
|
+
entry.containerInfo?.assistantPort ?? ASSISTANT_INTERNAL_PORT;
|
|
438
440
|
|
|
439
441
|
// Create pre-upgrade backup (best-effort, daemon must be running)
|
|
440
442
|
await broadcastUpgradeEvent(
|
|
@@ -984,8 +986,14 @@ async function upgradeLocal(
|
|
|
984
986
|
const previousAppVersion = process.env.APP_VERSION;
|
|
985
987
|
process.env.APP_VERSION = stripVersionPrefix(targetVersion);
|
|
986
988
|
try {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
+
// Bring CES, daemon, and gateway up in parallel, the way the Docker
|
|
990
|
+
// topology starts its sibling processes together. startCes is a no-op
|
|
991
|
+
// unless CES_STANDALONE is set.
|
|
992
|
+
await Promise.all([
|
|
993
|
+
startCes(false, entry.resources),
|
|
994
|
+
startLocalDaemon(false, entry.resources, { signingKey }),
|
|
995
|
+
startGateway(false, entry.resources, { signingKey, bootstrapSecret }),
|
|
996
|
+
]);
|
|
989
997
|
} finally {
|
|
990
998
|
if (previousAppVersion === undefined) {
|
|
991
999
|
delete process.env.APP_VERSION;
|