aws-runtime-bridge 1.9.134 → 1.9.137
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/dist/adapter/AcodeSdkAdapter.d.ts +8 -0
- package/dist/adapter/AcodeSdkAdapter.js +5 -5
- package/dist/config.d.ts +4 -0
- package/dist/config.js +2 -2
- package/dist/index.js +1 -1
- package/dist/routes/ai-sources.js +1 -1
- package/dist/routes/capabilities.d.ts +2 -0
- package/dist/routes/capabilities.js +2 -0
- package/dist/routes/instance.d.ts +0 -1
- package/dist/routes/instance.js +1 -1
- package/dist/routes/mcp-extra.d.ts +2 -0
- package/dist/routes/mcp-extra.js +3 -0
- package/dist/routes/mcp.d.ts +1 -0
- package/dist/routes/mcp.js +1 -1
- package/dist/routes/plugins.d.ts +2 -0
- package/dist/routes/plugins.js +2 -0
- package/dist/routes/skills.d.ts +1 -0
- package/dist/routes/skills.js +1 -1
- package/dist/routes/terminal.js +25 -25
- package/dist/services/agent-capability-sync.d.ts +7 -0
- package/dist/services/agent-capability-sync.js +2 -0
- package/{package/cc-switch-sdk/dist → dist}/services/ai-config-service.d.ts +3 -0
- package/dist/services/ai-config-service.js +4 -0
- package/dist/services/ai-source-apply.d.ts +1 -1
- package/dist/services/ai-source-apply.js +1 -1
- package/dist/services/capability-config.d.ts +21 -0
- package/dist/services/capability-config.js +3 -0
- package/dist/services/instance-ai-config-service.d.ts +1 -0
- package/dist/services/instance-ai-config-service.js +1 -1
- package/dist/services/instance-features.d.ts +21 -0
- package/dist/services/instance-features.js +1 -1
- package/dist/services/instance-init-service.d.ts +7 -4
- package/dist/services/instance-init-service.js +1 -1
- package/dist/services/instance-state.js +1 -1
- package/dist/services/legacy-path-migration.d.ts +2 -0
- package/dist/services/legacy-path-migration.js +1 -1
- package/dist/services/mcp-deploy.d.ts +49 -0
- package/dist/services/mcp-deploy.js +4 -0
- package/dist/services/plugin-event-buffer.d.ts +49 -0
- package/dist/services/plugin-event-buffer.js +2 -0
- package/dist/services/plugin-manager.d.ts +240 -0
- package/dist/services/plugin-manager.js +10 -0
- package/dist/services/plugin-package.d.ts +8 -0
- package/dist/services/plugin-package.js +2 -0
- package/dist/services/skill-manager.d.ts +41 -0
- package/dist/services/skill-manager.js +3 -0
- package/dist/types.d.ts +11 -61
- package/dist/utils/file-utils.d.ts +9 -6
- package/dist/utils/file-utils.js +2 -2
- package/dist/utils/mcp-utils.d.ts +1 -37
- package/dist/utils/mcp-utils.js +1 -1
- package/package/acode/dist/built-in-file-tools.js +2 -2
- package/package/acode/dist/commands/commandRegistry.d.ts +2 -0
- package/package/acode/dist/commands/commandRegistry.js +1 -1
- package/package/acode/dist/index.d.ts +2 -0
- package/package/acode/dist/index.js +1 -1
- package/package/acode/dist/plugin-tools.d.ts +14 -0
- package/package/acode/dist/plugin-tools.js +14 -0
- package/package/acode/dist/plugin-types.d.ts +109 -0
- package/package/acode/dist/runtime.d.ts +2 -0
- package/package/acode/dist/runtime.js +14 -14
- package/package/acode/dist/sub-agent-manager.js +1 -1
- package/package/acode/dist/types.d.ts +3 -0
- package/package/aws-client-agent-mcp/dist/agent-client.d.ts +9 -1
- package/package/aws-client-agent-mcp/dist/agent-client.js +1 -1
- package/package/aws-client-agent-mcp/dist/mcp-server.d.ts +11 -0
- package/package/aws-client-agent-mcp/dist/mcp-server.js +21 -21
- package/package/aws-client-agent-mcp/dist/mcp-tools.js +2 -4
- package/package/aws-client-agent-mcp/dist/memory-tools.js +8 -10
- package/package/aws-client-agent-mcp/dist/types.d.ts +21 -0
- package/package.json +4 -10
- package/dist/adapters/cc-switch/common.d.ts +0 -41
- package/dist/adapters/cc-switch/common.js +0 -2
- package/dist/adapters/cc-switch/index.d.ts +0 -19
- package/dist/adapters/cc-switch/index.js +0 -2
- package/dist/adapters/cc-switch/mcp-acode.d.ts +0 -10
- package/dist/adapters/cc-switch/mcp-acode.js +0 -2
- package/dist/adapters/cc-switch/mcp-claude.d.ts +0 -10
- package/dist/adapters/cc-switch/mcp-claude.js +0 -2
- package/dist/adapters/cc-switch/mcp-claudecode.d.ts +0 -10
- package/dist/adapters/cc-switch/mcp-claudecode.js +0 -2
- package/dist/adapters/cc-switch/mcp-codex.d.ts +0 -10
- package/dist/adapters/cc-switch/mcp-codex.js +0 -11
- package/dist/adapters/cc-switch/mcp-opencode.d.ts +0 -14
- package/dist/adapters/cc-switch/mcp-opencode.js +0 -2
- package/dist/adapters/cc-switch/mcp-placeholder.d.ts +0 -9
- package/dist/adapters/cc-switch/mcp-placeholder.js +0 -2
- package/dist/adapters/cc-switch/skill-acode.d.ts +0 -5
- package/dist/adapters/cc-switch/skill-acode.js +0 -2
- package/dist/adapters/cc-switch/skill-claude.d.ts +0 -5
- package/dist/adapters/cc-switch/skill-claude.js +0 -2
- package/dist/adapters/cc-switch/skill-claudecode.d.ts +0 -5
- package/dist/adapters/cc-switch/skill-claudecode.js +0 -2
- package/dist/adapters/cc-switch/skill-codex.d.ts +0 -4
- package/dist/adapters/cc-switch/skill-codex.js +0 -2
- package/dist/adapters/cc-switch/skill-directory.d.ts +0 -9
- package/dist/adapters/cc-switch/skill-directory.js +0 -3
- package/dist/adapters/cc-switch/skill-opencode.d.ts +0 -5
- package/dist/adapters/cc-switch/skill-opencode.js +0 -2
- package/dist/adapters/cc-switch/skill-placeholder.d.ts +0 -9
- package/dist/adapters/cc-switch/skill-placeholder.js +0 -2
- package/dist/services/cc-switch-sdk.d.ts +0 -17
- package/dist/services/cc-switch-sdk.js +0 -2
- package/dist/services/instance-service.d.ts +0 -78
- package/dist/services/instance-service.js +0 -2
- package/node_modules/@cc-switch/sdk/README.md +0 -541
- package/node_modules/@cc-switch/sdk/dist/constants.d.ts +0 -8
- package/node_modules/@cc-switch/sdk/dist/constants.js +0 -2
- package/node_modules/@cc-switch/sdk/dist/errors.d.ts +0 -5
- package/node_modules/@cc-switch/sdk/dist/errors.js +0 -2
- package/node_modules/@cc-switch/sdk/dist/index.d.ts +0 -5
- package/node_modules/@cc-switch/sdk/dist/index.js +0 -2
- package/node_modules/@cc-switch/sdk/dist/schemas.d.ts +0 -7
- package/node_modules/@cc-switch/sdk/dist/schemas.js +0 -2
- package/node_modules/@cc-switch/sdk/dist/sdk.d.ts +0 -59
- package/node_modules/@cc-switch/sdk/dist/sdk.js +0 -2
- package/node_modules/@cc-switch/sdk/dist/services/ai-config-service.d.ts +0 -81
- package/node_modules/@cc-switch/sdk/dist/services/ai-config-service.js +0 -4
- package/node_modules/@cc-switch/sdk/dist/services/mcp-model.d.ts +0 -16
- package/node_modules/@cc-switch/sdk/dist/services/mcp-model.js +0 -2
- package/node_modules/@cc-switch/sdk/dist/services/mcp-service.d.ts +0 -17
- package/node_modules/@cc-switch/sdk/dist/services/mcp-service.js +0 -2
- package/node_modules/@cc-switch/sdk/dist/services/skill-model.d.ts +0 -16
- package/node_modules/@cc-switch/sdk/dist/services/skill-model.js +0 -2
- package/node_modules/@cc-switch/sdk/dist/services/skill-service.d.ts +0 -16
- package/node_modules/@cc-switch/sdk/dist/services/skill-service.js +0 -2
- package/node_modules/@cc-switch/sdk/dist/state.d.ts +0 -3
- package/node_modules/@cc-switch/sdk/dist/state.js +0 -2
- package/node_modules/@cc-switch/sdk/dist/types.d.ts +0 -78
- package/node_modules/@cc-switch/sdk/dist/utils/fs.d.ts +0 -10
- package/node_modules/@cc-switch/sdk/dist/utils/fs.js +0 -3
- package/node_modules/@cc-switch/sdk/dist/utils/id.d.ts +0 -3
- package/node_modules/@cc-switch/sdk/dist/utils/id.js +0 -2
- package/node_modules/@cc-switch/sdk/package.json +0 -31
- package/node_modules/zod/LICENSE +0 -21
- package/node_modules/zod/README.md +0 -208
- package/node_modules/zod/index.cjs +0 -33
- package/node_modules/zod/index.d.cts +0 -4
- package/node_modules/zod/index.d.ts +0 -4
- package/node_modules/zod/index.js +0 -4
- package/node_modules/zod/locales/index.cjs +0 -17
- package/node_modules/zod/locales/index.d.cts +0 -1
- package/node_modules/zod/locales/index.d.ts +0 -1
- package/node_modules/zod/locales/index.js +0 -1
- package/node_modules/zod/locales/package.json +0 -6
- package/node_modules/zod/mini/index.cjs +0 -17
- package/node_modules/zod/mini/index.d.cts +0 -1
- package/node_modules/zod/mini/index.d.ts +0 -1
- package/node_modules/zod/mini/index.js +0 -1
- package/node_modules/zod/mini/package.json +0 -6
- package/node_modules/zod/package.json +0 -135
- package/node_modules/zod/src/index.ts +0 -4
- package/node_modules/zod/src/locales/index.ts +0 -1
- package/node_modules/zod/src/mini/index.ts +0 -1
- package/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
- package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/function.test.ts +0 -257
- package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/zod/src/v3/types.ts +0 -5138
- package/node_modules/zod/src/v4/classic/checks.ts +0 -31
- package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/zod/src/v4/classic/compat.ts +0 -70
- package/node_modules/zod/src/v4/classic/errors.ts +0 -82
- package/node_modules/zod/src/v4/classic/external.ts +0 -50
- package/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/node_modules/zod/src/v4/classic/parse.ts +0 -82
- package/node_modules/zod/src/v4/classic/schemas.ts +0 -2197
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -276
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -562
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -365
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -661
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -595
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -308
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -844
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -270
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -609
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -136
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -340
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -282
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -356
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -582
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -605
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1080
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -763
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2622
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -361
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -181
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/zod/src/v4/core/api.ts +0 -1621
- package/node_modules/zod/src/v4/core/checks.ts +0 -1287
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/core.ts +0 -115
- package/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/node_modules/zod/src/v4/core/errors.ts +0 -413
- package/node_modules/zod/src/v4/core/index.ts +0 -14
- package/node_modules/zod/src/v4/core/json-schema.ts +0 -147
- package/node_modules/zod/src/v4/core/parse.ts +0 -195
- package/node_modules/zod/src/v4/core/regexes.ts +0 -177
- package/node_modules/zod/src/v4/core/registries.ts +0 -97
- package/node_modules/zod/src/v4/core/schemas.ts +0 -4317
- package/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -18
- package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -1044
- package/node_modules/zod/src/v4/core/util.ts +0 -910
- package/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/zod/src/v4/locales/ar.ts +0 -125
- package/node_modules/zod/src/v4/locales/az.ts +0 -121
- package/node_modules/zod/src/v4/locales/be.ts +0 -184
- package/node_modules/zod/src/v4/locales/bg.ts +0 -136
- package/node_modules/zod/src/v4/locales/ca.ts +0 -127
- package/node_modules/zod/src/v4/locales/cs.ts +0 -142
- package/node_modules/zod/src/v4/locales/da.ts +0 -141
- package/node_modules/zod/src/v4/locales/de.ts +0 -124
- package/node_modules/zod/src/v4/locales/en.ts +0 -127
- package/node_modules/zod/src/v4/locales/eo.ts +0 -125
- package/node_modules/zod/src/v4/locales/es.ts +0 -159
- package/node_modules/zod/src/v4/locales/fa.ts +0 -134
- package/node_modules/zod/src/v4/locales/fi.ts +0 -131
- package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
- package/node_modules/zod/src/v4/locales/fr.ts +0 -124
- package/node_modules/zod/src/v4/locales/he.ts +0 -125
- package/node_modules/zod/src/v4/locales/hu.ts +0 -126
- package/node_modules/zod/src/v4/locales/id.ts +0 -125
- package/node_modules/zod/src/v4/locales/index.ts +0 -47
- package/node_modules/zod/src/v4/locales/is.ts +0 -127
- package/node_modules/zod/src/v4/locales/it.ts +0 -125
- package/node_modules/zod/src/v4/locales/ja.ts +0 -122
- package/node_modules/zod/src/v4/locales/ka.ts +0 -138
- package/node_modules/zod/src/v4/locales/kh.ts +0 -7
- package/node_modules/zod/src/v4/locales/km.ts +0 -126
- package/node_modules/zod/src/v4/locales/ko.ts +0 -131
- package/node_modules/zod/src/v4/locales/lt.ts +0 -265
- package/node_modules/zod/src/v4/locales/mk.ts +0 -127
- package/node_modules/zod/src/v4/locales/ms.ts +0 -124
- package/node_modules/zod/src/v4/locales/nl.ts +0 -126
- package/node_modules/zod/src/v4/locales/no.ts +0 -124
- package/node_modules/zod/src/v4/locales/ota.ts +0 -125
- package/node_modules/zod/src/v4/locales/pl.ts +0 -126
- package/node_modules/zod/src/v4/locales/ps.ts +0 -133
- package/node_modules/zod/src/v4/locales/pt.ts +0 -123
- package/node_modules/zod/src/v4/locales/ru.ts +0 -184
- package/node_modules/zod/src/v4/locales/sl.ts +0 -126
- package/node_modules/zod/src/v4/locales/sv.ts +0 -127
- package/node_modules/zod/src/v4/locales/ta.ts +0 -125
- package/node_modules/zod/src/v4/locales/th.ts +0 -126
- package/node_modules/zod/src/v4/locales/tr.ts +0 -121
- package/node_modules/zod/src/v4/locales/ua.ts +0 -7
- package/node_modules/zod/src/v4/locales/uk.ts +0 -126
- package/node_modules/zod/src/v4/locales/ur.ts +0 -126
- package/node_modules/zod/src/v4/locales/vi.ts +0 -125
- package/node_modules/zod/src/v4/locales/yo.ts +0 -131
- package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
- package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
- package/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/node_modules/zod/src/v4/mini/coerce.ts +0 -22
- package/node_modules/zod/src/v4/mini/external.ts +0 -40
- package/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/zod/src/v4/mini/iso.ts +0 -62
- package/node_modules/zod/src/v4/mini/parse.ts +0 -14
- package/node_modules/zod/src/v4/mini/schemas.ts +0 -1725
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -529
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -899
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -200
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -315
- package/node_modules/zod/src/v4-mini/index.ts +0 -1
- package/node_modules/zod/v3/ZodError.cjs +0 -138
- package/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/zod/v3/ZodError.js +0 -133
- package/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/zod/v3/external.js +0 -6
- package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/zod/v3/index.js +0 -4
- package/node_modules/zod/v3/locales/en.cjs +0 -112
- package/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/zod/v3/package.json +0 -6
- package/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/zod/v3/types.cjs +0 -3777
- package/node_modules/zod/v3/types.d.cts +0 -1034
- package/node_modules/zod/v3/types.d.ts +0 -1034
- package/node_modules/zod/v3/types.js +0 -3695
- package/node_modules/zod/v4/classic/checks.cjs +0 -32
- package/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/zod/v4/classic/compat.cjs +0 -61
- package/node_modules/zod/v4/classic/compat.d.cts +0 -50
- package/node_modules/zod/v4/classic/compat.d.ts +0 -50
- package/node_modules/zod/v4/classic/compat.js +0 -31
- package/node_modules/zod/v4/classic/errors.cjs +0 -74
- package/node_modules/zod/v4/classic/errors.d.cts +0 -30
- package/node_modules/zod/v4/classic/errors.d.ts +0 -30
- package/node_modules/zod/v4/classic/errors.js +0 -48
- package/node_modules/zod/v4/classic/external.cjs +0 -70
- package/node_modules/zod/v4/classic/external.d.cts +0 -13
- package/node_modules/zod/v4/classic/external.d.ts +0 -13
- package/node_modules/zod/v4/classic/external.js +0 -18
- package/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/zod/v4/classic/index.d.cts +0 -4
- package/node_modules/zod/v4/classic/index.d.ts +0 -4
- package/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/node_modules/zod/v4/classic/iso.d.cts +0 -22
- package/node_modules/zod/v4/classic/iso.d.ts +0 -22
- package/node_modules/zod/v4/classic/iso.js +0 -30
- package/node_modules/zod/v4/classic/package.json +0 -6
- package/node_modules/zod/v4/classic/parse.cjs +0 -41
- package/node_modules/zod/v4/classic/parse.d.cts +0 -31
- package/node_modules/zod/v4/classic/parse.d.ts +0 -31
- package/node_modules/zod/v4/classic/parse.js +0 -15
- package/node_modules/zod/v4/classic/schemas.cjs +0 -1151
- package/node_modules/zod/v4/classic/schemas.d.cts +0 -673
- package/node_modules/zod/v4/classic/schemas.d.ts +0 -673
- package/node_modules/zod/v4/classic/schemas.js +0 -1040
- package/node_modules/zod/v4/core/api.cjs +0 -1060
- package/node_modules/zod/v4/core/api.d.cts +0 -295
- package/node_modules/zod/v4/core/api.d.ts +0 -295
- package/node_modules/zod/v4/core/api.js +0 -925
- package/node_modules/zod/v4/core/checks.cjs +0 -595
- package/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/zod/v4/core/checks.js +0 -569
- package/node_modules/zod/v4/core/core.cjs +0 -74
- package/node_modules/zod/v4/core/core.d.cts +0 -52
- package/node_modules/zod/v4/core/core.d.ts +0 -52
- package/node_modules/zod/v4/core/core.js +0 -67
- package/node_modules/zod/v4/core/doc.cjs +0 -39
- package/node_modules/zod/v4/core/doc.d.cts +0 -14
- package/node_modules/zod/v4/core/doc.d.ts +0 -14
- package/node_modules/zod/v4/core/doc.js +0 -35
- package/node_modules/zod/v4/core/errors.cjs +0 -213
- package/node_modules/zod/v4/core/errors.d.cts +0 -210
- package/node_modules/zod/v4/core/errors.d.ts +0 -210
- package/node_modules/zod/v4/core/errors.js +0 -182
- package/node_modules/zod/v4/core/index.cjs +0 -43
- package/node_modules/zod/v4/core/index.d.cts +0 -14
- package/node_modules/zod/v4/core/index.d.ts +0 -14
- package/node_modules/zod/v4/core/index.js +0 -14
- package/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/zod/v4/core/json-schema.d.cts +0 -88
- package/node_modules/zod/v4/core/json-schema.d.ts +0 -88
- package/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/zod/v4/core/package.json +0 -6
- package/node_modules/zod/v4/core/parse.cjs +0 -131
- package/node_modules/zod/v4/core/parse.d.cts +0 -49
- package/node_modules/zod/v4/core/parse.d.ts +0 -49
- package/node_modules/zod/v4/core/parse.js +0 -93
- package/node_modules/zod/v4/core/regexes.cjs +0 -136
- package/node_modules/zod/v4/core/regexes.d.cts +0 -78
- package/node_modules/zod/v4/core/regexes.d.ts +0 -78
- package/node_modules/zod/v4/core/regexes.js +0 -127
- package/node_modules/zod/v4/core/registries.cjs +0 -57
- package/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/zod/v4/core/registries.js +0 -52
- package/node_modules/zod/v4/core/schemas.cjs +0 -1986
- package/node_modules/zod/v4/core/schemas.d.cts +0 -1113
- package/node_modules/zod/v4/core/schemas.d.ts +0 -1113
- package/node_modules/zod/v4/core/schemas.js +0 -1955
- package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
- package/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
- package/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -920
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -90
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -90
- package/node_modules/zod/v4/core/to-json-schema.js +0 -915
- package/node_modules/zod/v4/core/util.cjs +0 -658
- package/node_modules/zod/v4/core/util.d.cts +0 -197
- package/node_modules/zod/v4/core/util.d.ts +0 -197
- package/node_modules/zod/v4/core/util.js +0 -601
- package/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/zod/v4/index.cjs +0 -22
- package/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/zod/v4/index.js +0 -3
- package/node_modules/zod/v4/locales/ar.cjs +0 -143
- package/node_modules/zod/v4/locales/ar.d.cts +0 -5
- package/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/zod/v4/locales/ar.js +0 -116
- package/node_modules/zod/v4/locales/az.cjs +0 -142
- package/node_modules/zod/v4/locales/az.d.cts +0 -5
- package/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/zod/v4/locales/az.js +0 -115
- package/node_modules/zod/v4/locales/be.cjs +0 -191
- package/node_modules/zod/v4/locales/be.d.cts +0 -5
- package/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/zod/v4/locales/be.js +0 -164
- package/node_modules/zod/v4/locales/bg.cjs +0 -156
- package/node_modules/zod/v4/locales/bg.d.cts +0 -5
- package/node_modules/zod/v4/locales/bg.d.ts +0 -5
- package/node_modules/zod/v4/locales/bg.js +0 -128
- package/node_modules/zod/v4/locales/ca.cjs +0 -145
- package/node_modules/zod/v4/locales/ca.d.cts +0 -5
- package/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/zod/v4/locales/ca.js +0 -118
- package/node_modules/zod/v4/locales/cs.cjs +0 -162
- package/node_modules/zod/v4/locales/cs.d.cts +0 -5
- package/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/zod/v4/locales/cs.js +0 -135
- package/node_modules/zod/v4/locales/da.cjs +0 -158
- package/node_modules/zod/v4/locales/da.d.cts +0 -5
- package/node_modules/zod/v4/locales/da.d.ts +0 -4
- package/node_modules/zod/v4/locales/da.js +0 -131
- package/node_modules/zod/v4/locales/de.cjs +0 -143
- package/node_modules/zod/v4/locales/de.d.cts +0 -5
- package/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/zod/v4/locales/de.js +0 -116
- package/node_modules/zod/v4/locales/en.cjs +0 -145
- package/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/zod/v4/locales/en.d.ts +0 -5
- package/node_modules/zod/v4/locales/en.js +0 -117
- package/node_modules/zod/v4/locales/eo.cjs +0 -144
- package/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/zod/v4/locales/eo.d.ts +0 -5
- package/node_modules/zod/v4/locales/eo.js +0 -116
- package/node_modules/zod/v4/locales/es.cjs +0 -176
- package/node_modules/zod/v4/locales/es.d.cts +0 -5
- package/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/zod/v4/locales/es.js +0 -149
- package/node_modules/zod/v4/locales/fa.cjs +0 -149
- package/node_modules/zod/v4/locales/fa.d.cts +0 -5
- package/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/zod/v4/locales/fa.js +0 -122
- package/node_modules/zod/v4/locales/fi.cjs +0 -149
- package/node_modules/zod/v4/locales/fi.d.cts +0 -5
- package/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/zod/v4/locales/fi.js +0 -122
- package/node_modules/zod/v4/locales/fr-CA.cjs +0 -144
- package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.js +0 -117
- package/node_modules/zod/v4/locales/fr.cjs +0 -143
- package/node_modules/zod/v4/locales/fr.d.cts +0 -5
- package/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr.js +0 -116
- package/node_modules/zod/v4/locales/he.cjs +0 -144
- package/node_modules/zod/v4/locales/he.d.cts +0 -5
- package/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/zod/v4/locales/he.js +0 -117
- package/node_modules/zod/v4/locales/hu.cjs +0 -144
- package/node_modules/zod/v4/locales/hu.d.cts +0 -5
- package/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/zod/v4/locales/hu.js +0 -117
- package/node_modules/zod/v4/locales/id.cjs +0 -143
- package/node_modules/zod/v4/locales/id.d.cts +0 -5
- package/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/zod/v4/locales/id.js +0 -116
- package/node_modules/zod/v4/locales/index.cjs +0 -100
- package/node_modules/zod/v4/locales/index.d.cts +0 -47
- package/node_modules/zod/v4/locales/index.d.ts +0 -47
- package/node_modules/zod/v4/locales/index.js +0 -47
- package/node_modules/zod/v4/locales/is.cjs +0 -145
- package/node_modules/zod/v4/locales/is.d.cts +0 -5
- package/node_modules/zod/v4/locales/is.d.ts +0 -5
- package/node_modules/zod/v4/locales/is.js +0 -117
- package/node_modules/zod/v4/locales/it.cjs +0 -144
- package/node_modules/zod/v4/locales/it.d.cts +0 -5
- package/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/zod/v4/locales/it.js +0 -117
- package/node_modules/zod/v4/locales/ja.cjs +0 -142
- package/node_modules/zod/v4/locales/ja.d.cts +0 -5
- package/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/zod/v4/locales/ja.js +0 -115
- package/node_modules/zod/v4/locales/ka.cjs +0 -153
- package/node_modules/zod/v4/locales/ka.d.cts +0 -5
- package/node_modules/zod/v4/locales/ka.d.ts +0 -5
- package/node_modules/zod/v4/locales/ka.js +0 -125
- package/node_modules/zod/v4/locales/kh.cjs +0 -12
- package/node_modules/zod/v4/locales/kh.d.cts +0 -5
- package/node_modules/zod/v4/locales/kh.d.ts +0 -5
- package/node_modules/zod/v4/locales/kh.js +0 -5
- package/node_modules/zod/v4/locales/km.cjs +0 -144
- package/node_modules/zod/v4/locales/km.d.cts +0 -5
- package/node_modules/zod/v4/locales/km.d.ts +0 -4
- package/node_modules/zod/v4/locales/km.js +0 -117
- package/node_modules/zod/v4/locales/ko.cjs +0 -148
- package/node_modules/zod/v4/locales/ko.d.cts +0 -5
- package/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/zod/v4/locales/ko.js +0 -121
- package/node_modules/zod/v4/locales/lt.cjs +0 -258
- package/node_modules/zod/v4/locales/lt.d.cts +0 -5
- package/node_modules/zod/v4/locales/lt.d.ts +0 -5
- package/node_modules/zod/v4/locales/lt.js +0 -230
- package/node_modules/zod/v4/locales/mk.cjs +0 -145
- package/node_modules/zod/v4/locales/mk.d.cts +0 -5
- package/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/zod/v4/locales/mk.js +0 -118
- package/node_modules/zod/v4/locales/ms.cjs +0 -143
- package/node_modules/zod/v4/locales/ms.d.cts +0 -5
- package/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/zod/v4/locales/ms.js +0 -116
- package/node_modules/zod/v4/locales/nl.cjs +0 -144
- package/node_modules/zod/v4/locales/nl.d.cts +0 -5
- package/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/zod/v4/locales/nl.js +0 -117
- package/node_modules/zod/v4/locales/no.cjs +0 -143
- package/node_modules/zod/v4/locales/no.d.cts +0 -5
- package/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/zod/v4/locales/no.js +0 -116
- package/node_modules/zod/v4/locales/ota.cjs +0 -144
- package/node_modules/zod/v4/locales/ota.d.cts +0 -5
- package/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/zod/v4/locales/ota.js +0 -117
- package/node_modules/zod/v4/locales/package.json +0 -6
- package/node_modules/zod/v4/locales/pl.cjs +0 -144
- package/node_modules/zod/v4/locales/pl.d.cts +0 -5
- package/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/zod/v4/locales/pl.js +0 -117
- package/node_modules/zod/v4/locales/ps.cjs +0 -149
- package/node_modules/zod/v4/locales/ps.d.cts +0 -5
- package/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/zod/v4/locales/ps.js +0 -122
- package/node_modules/zod/v4/locales/pt.cjs +0 -143
- package/node_modules/zod/v4/locales/pt.d.cts +0 -5
- package/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt.js +0 -116
- package/node_modules/zod/v4/locales/ru.cjs +0 -191
- package/node_modules/zod/v4/locales/ru.d.cts +0 -5
- package/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/zod/v4/locales/ru.js +0 -164
- package/node_modules/zod/v4/locales/sl.cjs +0 -144
- package/node_modules/zod/v4/locales/sl.d.cts +0 -5
- package/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/zod/v4/locales/sl.js +0 -117
- package/node_modules/zod/v4/locales/sv.cjs +0 -145
- package/node_modules/zod/v4/locales/sv.d.cts +0 -5
- package/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/zod/v4/locales/sv.js +0 -118
- package/node_modules/zod/v4/locales/ta.cjs +0 -144
- package/node_modules/zod/v4/locales/ta.d.cts +0 -5
- package/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/zod/v4/locales/ta.js +0 -117
- package/node_modules/zod/v4/locales/th.cjs +0 -144
- package/node_modules/zod/v4/locales/th.d.cts +0 -5
- package/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/zod/v4/locales/th.js +0 -117
- package/node_modules/zod/v4/locales/tr.cjs +0 -143
- package/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/zod/v4/locales/tr.d.ts +0 -5
- package/node_modules/zod/v4/locales/tr.js +0 -115
- package/node_modules/zod/v4/locales/ua.cjs +0 -12
- package/node_modules/zod/v4/locales/ua.d.cts +0 -5
- package/node_modules/zod/v4/locales/ua.d.ts +0 -5
- package/node_modules/zod/v4/locales/ua.js +0 -5
- package/node_modules/zod/v4/locales/uk.cjs +0 -144
- package/node_modules/zod/v4/locales/uk.d.cts +0 -5
- package/node_modules/zod/v4/locales/uk.d.ts +0 -4
- package/node_modules/zod/v4/locales/uk.js +0 -117
- package/node_modules/zod/v4/locales/ur.cjs +0 -144
- package/node_modules/zod/v4/locales/ur.d.cts +0 -5
- package/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/zod/v4/locales/ur.js +0 -117
- package/node_modules/zod/v4/locales/vi.cjs +0 -143
- package/node_modules/zod/v4/locales/vi.d.cts +0 -5
- package/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/zod/v4/locales/vi.js +0 -116
- package/node_modules/zod/v4/locales/yo.cjs +0 -142
- package/node_modules/zod/v4/locales/yo.d.cts +0 -5
- package/node_modules/zod/v4/locales/yo.d.ts +0 -4
- package/node_modules/zod/v4/locales/yo.js +0 -115
- package/node_modules/zod/v4/locales/zh-CN.cjs +0 -143
- package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.js +0 -116
- package/node_modules/zod/v4/locales/zh-TW.cjs +0 -144
- package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
- package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.js +0 -117
- package/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/zod/v4/mini/coerce.cjs +0 -47
- package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/zod/v4/mini/coerce.js +0 -17
- package/node_modules/zod/v4/mini/external.cjs +0 -62
- package/node_modules/zod/v4/mini/external.d.cts +0 -11
- package/node_modules/zod/v4/mini/external.d.ts +0 -11
- package/node_modules/zod/v4/mini/external.js +0 -13
- package/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/zod/v4/mini/iso.cjs +0 -60
- package/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/zod/v4/mini/iso.js +0 -30
- package/node_modules/zod/v4/mini/package.json +0 -6
- package/node_modules/zod/v4/mini/parse.cjs +0 -16
- package/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/zod/v4/mini/schemas.cjs +0 -892
- package/node_modules/zod/v4/mini/schemas.d.cts +0 -407
- package/node_modules/zod/v4/mini/schemas.d.ts +0 -407
- package/node_modules/zod/v4/mini/schemas.js +0 -775
- package/node_modules/zod/v4/package.json +0 -6
- package/node_modules/zod/v4-mini/index.cjs +0 -17
- package/node_modules/zod/v4-mini/index.d.cts +0 -1
- package/node_modules/zod/v4-mini/index.d.ts +0 -1
- package/node_modules/zod/v4-mini/index.js +0 -1
- package/node_modules/zod/v4-mini/package.json +0 -6
- package/package/cc-switch-sdk/README.md +0 -541
- package/package/cc-switch-sdk/dist/constants.d.ts +0 -8
- package/package/cc-switch-sdk/dist/constants.js +0 -2
- package/package/cc-switch-sdk/dist/errors.d.ts +0 -5
- package/package/cc-switch-sdk/dist/errors.js +0 -2
- package/package/cc-switch-sdk/dist/index.d.ts +0 -5
- package/package/cc-switch-sdk/dist/index.js +0 -2
- package/package/cc-switch-sdk/dist/schemas.d.ts +0 -7
- package/package/cc-switch-sdk/dist/schemas.js +0 -2
- package/package/cc-switch-sdk/dist/sdk.d.ts +0 -59
- package/package/cc-switch-sdk/dist/sdk.js +0 -2
- package/package/cc-switch-sdk/dist/services/ai-config-service.js +0 -4
- package/package/cc-switch-sdk/dist/services/mcp-model.d.ts +0 -16
- package/package/cc-switch-sdk/dist/services/mcp-model.js +0 -2
- package/package/cc-switch-sdk/dist/services/mcp-service.d.ts +0 -17
- package/package/cc-switch-sdk/dist/services/mcp-service.js +0 -2
- package/package/cc-switch-sdk/dist/services/skill-model.d.ts +0 -16
- package/package/cc-switch-sdk/dist/services/skill-model.js +0 -2
- package/package/cc-switch-sdk/dist/services/skill-service.d.ts +0 -16
- package/package/cc-switch-sdk/dist/services/skill-service.js +0 -2
- package/package/cc-switch-sdk/dist/state.d.ts +0 -3
- package/package/cc-switch-sdk/dist/state.js +0 -2
- package/package/cc-switch-sdk/dist/types.d.ts +0 -78
- package/package/cc-switch-sdk/dist/types.js +0 -1
- package/package/cc-switch-sdk/dist/utils/fs.d.ts +0 -10
- package/package/cc-switch-sdk/dist/utils/fs.js +0 -3
- package/package/cc-switch-sdk/dist/utils/id.d.ts +0 -3
- package/package/cc-switch-sdk/dist/utils/id.js +0 -2
- package/package/cc-switch-sdk/package.json +0 -31
- /package/{node_modules/@cc-switch/sdk/dist/types.js → package/acode/dist/plugin-types.js} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import y from"node:path";import{resolvePaths as g}from"./constants.js";import{loadState as A,saveState as v}from"./state.js";import{buildMcpFromInput as x,mergeMcp as M,applyMcpAppFlag as F}from"./services/mcp-model.js";import{syncMcpServerToApps as l}from"./services/mcp-service.js";import{buildSkillFromInput as N,mergeSkill as D,applySkillAppFlag as b,skillSourceDir as r}from"./services/skill-model.js";import{syncSkillToApps as n}from"./services/skill-service.js";import{copyDir as f,copyDirIfExists as B,copyFile as m,pathExists as d,removeIfExists as E}from"./utils/fs.js";import{SdkError as p}from"./errors.js";function k(u,e){const t=e==="claude"?"claudecode":e;return{...u,apps:{...u.apps,[t]:!0,claude:!1}}}class L{constructor(e){if(this.state={mcpServers:{},skills:{}},this.operationQueue=Promise.resolve(),!e.adapters?.mcp||!e.adapters?.skill)throw new p("ADAPTERS_REQUIRED","Adapters are required. Please provide mcp and skill adapters via options.adapters.",{hasMcp:!!e.adapters?.mcp,hasSkill:!!e.adapters?.skill});const t=g(e);this.paths=t.paths,this.skillSyncMethod=t.skillSyncMethod,this.mcpAdapters=e.adapters.mcp,this.skillAdapters=e.adapters.skill}async executeExclusive(e){const t=this.operationQueue;let s;this.operationQueue=new Promise(i=>{s=i}),await t;try{return await e()}finally{s()}}async load(){this.state=await A(this.paths.stateFile)}async save(){await v(this.paths.stateFile,this.state)}getAiConfigPath(e){if(e==="opencode")return this.paths.opencodeConfigFile;if(e==="claudecode")return this.paths.claudecodeConfigFile;if(e==="codex")return this.paths.codexConfigFile}getAiBackupPath(e){const t=e==="codex"?"toml":"json";return y.join(this.paths.backupDir,`${e}.config.backup.${t}`)}async backupAiConfigIfNeeded(e){const t=this.getAiConfigPath(e);if(!t)return;const s=this.getAiBackupPath(e);await d(s)||await d(t)&&await m(t,s)}async backupBeforeMcpSyncByApps(e){const t=["acode","opencode","claudecode","codex"];for(const s of t)e[s]&&await this.backupAiConfigIfNeeded(s)}async backupBeforeMcpSync(e){await this.backupBeforeMcpSyncByApps(e.apps)}async backupAiConfigs(e=["acode","opencode","claudecode","codex"]){for(const t of e)await this.backupAiConfigIfNeeded(t)}async restoreAiConfig(e){const t=this.getAiConfigPath(e);if(!t)return!1;const s=this.getAiBackupPath(e);return await d(s)?(await m(s,t),!0):!1}async restoreAiConfigs(e=["acode","opencode","claudecode","codex"]){const t={};for(const s of e)t[s]=await this.restoreAiConfig(s);return t}getAllMcpServers(){return Object.values(this.state.mcpServers)}getMcpServerById(e){return this.state.mcpServers[e]}async createMcpServer(e){return this.executeExclusive(async()=>{const t=x(e);return this.state.mcpServers[t.id]=t,await this.backupBeforeMcpSync(t),await l(t,this.mcpAdapters),await this.save(),t})}async updateMcpServer(e,t){return this.executeExclusive(async()=>{const s=this.state.mcpServers[e];if(!s)throw new p("MCP_NOT_FOUND",`MCP server not found: ${e}`,{id:e});const i=M(s,t);return this.state.mcpServers[e]=i,await this.backupBeforeMcpSync(i),await l(i,this.mcpAdapters),await this.save(),i})}async deleteMcpServer(e){return this.executeExclusive(async()=>{const t=this.state.mcpServers[e];if(!t)return;const s={...t,apps:{claude:!1,acode:!1,claudecode:!1,codex:!1,gemini:!1,opencode:!1,openclaw:!1}};await l(s,this.mcpAdapters),delete this.state.mcpServers[e],await this.save()})}async toggleMcpApp(e,t,s){return this.executeExclusive(async()=>{const i=this.state.mcpServers[e];if(!i)throw new p("MCP_NOT_FOUND",`MCP server not found: ${e}`,{serverId:e});const a=F(i,t,s);return this.state.mcpServers[e]=a,await this.backupBeforeMcpSyncByApps({[t]:s}),await l(a,this.mcpAdapters),await this.save(),a})}async importMcpFromApps(){return this.executeExclusive(async()=>{let e=0;const t=["claude","claudecode","opencode","codex","gemini","openclaw"];for(const s of t){const i=await this.mcpAdapters[s].importServers();for(const a of i){const c=this.findMcpServerByName(a.name);if(c){const h=k(c,s);this.state.mcpServers[c.id]=h;continue}const o=this.createMcpWithAppFlag(a,s);this.state.mcpServers[o.id]=o,e++}}return await this.save(),e})}async importMcpFromApp(e){let t=0;const s=await this.mcpAdapters[e].importServers();for(const i of s)await this.processImportedMcp(i,e)&&t++;return t}async processImportedMcp(e,t){const s=this.findMcpServerByName(e.name);if(s){const a=k(s,t);return this.state.mcpServers[s.id]=a,await l(a,this.mcpAdapters),!1}const i=this.createMcpWithAppFlag(e,t);return this.state.mcpServers[i.id]=i,await l(i,this.mcpAdapters),!0}findMcpServerByName(e){return Object.values(this.state.mcpServers).find(t=>t.name===e)}createMcpWithAppFlag(e,t){return{...e,apps:{acode:!1,claude:!1,claudecode:!1,codex:!1,gemini:!1,opencode:!1,openclaw:!1,[t==="claude"?"claudecode":t]:!0}}}getAllSkills(){return Object.values(this.state.skills)}getSkillById(e){return this.state.skills[e]}async installSkill(e){return this.executeExclusive(async()=>{const t=this.paths.ssotSkillsDir,s=N(e),i=r(t,s);return await f(e.sourceDir,i),this.state.skills[s.id]=s,await n(s,i,this.skillSyncMethod,this.skillAdapters),await this.save(),s})}async updateSkill(e,t){return this.executeExclusive(async()=>{const s=this.state.skills[e];if(!s)throw new p("SKILL_NOT_FOUND",`Skill not found: ${e}`,{id:e});const i=D(s,t);this.state.skills[e]=i;const a=r(this.paths.ssotSkillsDir,i);return await n(i,a,this.skillSyncMethod,this.skillAdapters),await this.save(),i})}async uninstallSkill(e){return this.executeExclusive(async()=>{const t=this.state.skills[e];if(!t)return;const s={...t,apps:{acode:!1,claude:!1,claudecode:!1,codex:!1,gemini:!1,opencode:!1,openclaw:!1}},i=r(this.paths.ssotSkillsDir,t);await n(s,i,this.skillSyncMethod,this.skillAdapters),delete this.state.skills[e];const a=r(this.paths.ssotSkillsDir,t);await E(a),await this.save()})}async toggleSkillApp(e,t,s){return this.executeExclusive(async()=>{const i=this.state.skills[e];if(!i)throw new p("SKILL_NOT_FOUND",`Skill not found: ${e}`,{skillId:e});const a=b(i,t,s);this.state.skills[e]=a;const c=r(this.paths.ssotSkillsDir,a);return await n(a,c,this.skillSyncMethod,this.skillAdapters),await this.save(),a})}async importSkillsFromApps(){return this.executeExclusive(async()=>{let e=0;const t=["claude","claudecode","opencode","codex","gemini","openclaw"];for(const s of t){const i=await this.skillAdapters[s].importSkills();for(const a of i){const c=this.findSkillByName(a.name);if(c){if(!await d(a.directory))continue;const S=s==="claude"?"claudecode":s,w={...c,apps:{...c.apps,[S]:!0,claude:!1}};this.state.skills[c.id]=w;continue}const o=this.createSkillWithAppFlag(a,s),h=r(this.paths.ssotSkillsDir,o);await B(a.directory,h)&&(this.state.skills[o.id]=o,e++)}}return await this.save(),e})}async importSkillsFromApp(e){let t=0;const s=await this.skillAdapters[e].importSkills();for(const i of s)await this.processImportedSkill(i,e)&&t++;return t}async processImportedSkill(e,t){const s=this.findSkillByName(e.name);return s?(await this.mergeExistingSkill(s,t),!1):(await this.createNewImportedSkill(e,t),!0)}findSkillByName(e){return Object.values(this.state.skills).find(t=>t.name===e)}async mergeExistingSkill(e,t){const s=t==="claude"?"claudecode":t,i={...e,apps:{...e.apps,[s]:!0,claude:!1}};this.state.skills[e.id]=i;const a=r(this.paths.ssotSkillsDir,i);await n(i,a,this.skillSyncMethod,this.skillAdapters)}async createNewImportedSkill(e,t){const s=this.createSkillWithAppFlag(e,t);this.state.skills[s.id]=s;const i=r(this.paths.ssotSkillsDir,s);await f(e.directory,i),await n(s,i,this.skillSyncMethod,this.skillAdapters)}createSkillWithAppFlag(e,t){const s=t==="claude"?"claudecode":t,i=Date.now();return{id:e.id,name:e.name,directory:e.directory,description:e.description,apps:{acode:!1,claude:!1,claudecode:!1,codex:!1,gemini:!1,opencode:!1,openclaw:!1,[s]:!0},installedAt:i}}getPaths(){return this.paths}}export{L as CcSwitchSdk};
|
|
2
|
-
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import _ from"node:path";import{promises as l}from"node:fs";function g(r){const e=new Set,i=o=>{const n=String(o||"").trim();n&&e.add(n)};return Array.isArray(r.models)&&r.models.forEach(i),i(r.model),[...e]}async function f(r,e){try{const i=await l.readFile(r,"utf-8"),o=JSON.parse(i);return o&&typeof o=="object"&&!Array.isArray(o)?o:{...e}}catch{return{...e}}}async function m(r,e){const i=_.dirname(r);await l.mkdir(i,{recursive:!0}),await l.writeFile(r,JSON.stringify(e,null,2),"utf-8")}function u(r,e){if(!e||typeof e!="object"||Array.isArray(e))return r;const i={...r};for(const[o,n]of Object.entries(e))n!==void 0&&(n!==null&&typeof n=="object"&&!Array.isArray(n)&&i[o]!==null&&typeof i[o]=="object"&&!Array.isArray(i[o])?i[o]=u(i[o],n):i[o]=n);return i}function v(r){return y(r)}function a(r){return String(r||"").replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function h(r){const e=String(r||"").trim();return e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"):e}function w(r){const e=String(r||"").trim().toLowerCase();if(e==="true")return!0;if(e==="false")return!1}function A(r){const e={model_providers:{}};let i=null;for(const o of r.split(/\r?\n/)){const n=o.trim();if(!n||n.startsWith("#"))continue;const s=n.match(/^\[model_providers\.([^\]]+)\]$/);if(s){i=s[1],e.model_providers=e.model_providers||{},e.model_providers[i]=e.model_providers[i]||{};continue}if(n.startsWith("[")){i=null;continue}const d=n.match(/^([A-Za-z0-9_-]+)\s*=\s*(.+)$/);if(!d)continue;const[,t,c]=d;if(i){const p=e.model_providers?.[i]||{};if(t==="requires_openai_auth"){const C=w(c);C!==void 0&&(p.requires_openai_auth=C)}else["name","base_url","wire_api","env_key","env_key_instructions"].includes(t)&&(p[t]=h(c));e.model_providers={...e.model_providers||{},[i]:p};continue}["model","model_provider","openai_base_url"].includes(t)&&(e[t]=h(c))}return e}function b(r){const e=[];r.model&&e.push(`model = "${a(r.model)}"`),r.model_provider&&e.push(`model_provider = "${a(r.model_provider)}"`),r.openai_base_url&&e.push(`openai_base_url = "${a(r.openai_base_url)}"`);const i=r.model_providers||{};for(const[o,n]of Object.entries(i))e.push(""),e.push(`[model_providers.${o}]`),n.name&&e.push(`name = "${a(n.name)}"`),n.base_url&&e.push(`base_url = "${a(n.base_url)}"`),n.wire_api&&e.push(`wire_api = "${a(n.wire_api)}"`),n.env_key&&e.push(`env_key = "${a(n.env_key)}"`),n.env_key_instructions&&e.push(`env_key_instructions = "${a(n.env_key_instructions)}"`),n.requires_openai_auth!==void 0&&e.push(`requires_openai_auth = ${n.requires_openai_auth?"true":"false"}`);return`${e.join(`
|
|
2
|
-
`)}
|
|
3
|
-
`}function x(r){let e=String(r.baseUrl||"").trim();const i=String(r.apiKey||"").trim(),o=g(r),n=String(r.model||"").trim()||o[0];if(!e||!i||!n)return null;e&&!e.startsWith("http://")&&!e.startsWith("https://")&&(e=`https://${e}`),e=e.replace(/\/+$/,"");const s=y(e),d=v(e),t=Object.fromEntries(o.map(c=>[c,{name:c,modalities:{input:["text","image"],output:["text"]}}]));return{acode:{provider:{default:{npm:"@ai-sdk/openai-compatible",model:n,options:{baseURL:s,apiKey:i},models:t}}},claudecode:{env:{ANTHROPIC_BASE_URL:e,ANTHROPIC_AUTH_TOKEN:i,ANTHROPIC_MODEL:n}},codex:{model:n,model_provider:"default",model_providers:{default:{name:"Default",base_url:d,wire_api:"responses",env_key:"OPENAI_API_KEY",env_key_instructions:"Set OPENAI_API_KEY in your environment"}}},opencode:{provider:{default:{npm:"@ai-sdk/openai-compatible",model:n,options:{baseURL:s,apiKey:i},models:t}}}}}function y(r){const e=String(r||"").trim().replace(/\/+$/,"");return e&&(e.endsWith("/v1")?e:`${e}/v1`)}class ${constructor(e){this.paths=e}async readClaudeCodeConfig(){return f(this.paths.claudecodeConfigFile,{})}async readAcodeConfig(){return f(this.paths.acodeConfigFile,{})}async readOpenCodeConfig(){return f(this.paths.opencodeConfigFile,{})}async readCodexConfig(){try{const e=await l.readFile(this.paths.codexConfigFile,"utf-8");return A(e)}catch{return{}}}async writeClaudeCodeConfig(e){await m(this.paths.claudecodeConfigFile,e)}async writeAcodeConfig(e){await m(this.paths.acodeConfigFile,e)}async writeOpenCodeConfig(e){await m(this.paths.opencodeConfigFile,e)}async writeCodexConfig(e){const i=_.dirname(this.paths.codexConfigFile);await l.mkdir(i,{recursive:!0}),await l.writeFile(this.paths.codexConfigFile,b(e),"utf-8")}async applyClaudeCodeConfig(e){const i=await this.readClaudeCodeConfig(),o=u(i,e);return await this.writeClaudeCodeConfig(o),o}async applyOpenCodeConfig(e){const i=await this.readOpenCodeConfig(),o=u(i,e);return await this.writeOpenCodeConfig(o),o}async applyAcodeConfig(e){const i=await this.readAcodeConfig(),o=u(i,e);return await this.writeAcodeConfig(o),o}async applyCodexConfig(e){const i=await this.readCodexConfig(),o=u(i,e);return await this.writeCodexConfig(o),o}async applyAiConfigTemplate(e){const i=x(e);if(!i)return null;const o=await this.applyAcodeConfig(i.acode),n=await this.applyClaudeCodeConfig(i.claudecode),s=await this.applyCodexConfig(i.codex),d=await this.applyOpenCodeConfig(i.opencode);return{acode:o,claudecode:n,codex:s,opencode:d}}}export{$ as AiConfigService,x as buildToolSpecificAiConfig};
|
|
4
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { AppId, AppFlags, McpServer } from "../types.js";
|
|
2
|
-
export interface CreateMcpInput {
|
|
3
|
-
name: string;
|
|
4
|
-
server: McpServer["server"];
|
|
5
|
-
description?: string;
|
|
6
|
-
apps?: Partial<AppFlags>;
|
|
7
|
-
}
|
|
8
|
-
export interface UpdateMcpInput {
|
|
9
|
-
name?: string;
|
|
10
|
-
server?: McpServer["server"];
|
|
11
|
-
description?: string;
|
|
12
|
-
apps?: Partial<AppFlags>;
|
|
13
|
-
}
|
|
14
|
-
export declare function buildMcpFromInput(input: CreateMcpInput): McpServer;
|
|
15
|
-
export declare function mergeMcp(current: McpServer, patch: UpdateMcpInput): McpServer;
|
|
16
|
-
export declare function applyMcpAppFlag(server: McpServer, appId: AppId, enabled: boolean): McpServer;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{normalizeAppFlags as s}from"../constants.js";import{createId as i}from"../utils/id.js";function d(p){return{id:i("mcp"),name:p.name,server:p.server,description:p.description,apps:s(p.apps)}}function c(p,e){return{...p,name:e.name??p.name,server:e.server??p.server,description:e.description??p.description,apps:e.apps?{...p.apps,...s({...p.apps,...e.apps})}:p.apps}}function l(p,e,a){const o=e==="claude"?"claudecode":e,r={...p.apps,[o]:a,claude:!1};return{...p,apps:r}}export{l as applyMcpAppFlag,d as buildMcpFromInput,c as mergeMcp};
|
|
2
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { AppId, McpServer } from "../types.js";
|
|
2
|
-
export interface CreateMcpServerInput {
|
|
3
|
-
name: string;
|
|
4
|
-
server: McpServer["server"];
|
|
5
|
-
description?: string;
|
|
6
|
-
apps?: Partial<McpServer["apps"]>;
|
|
7
|
-
}
|
|
8
|
-
export interface UpdateMcpServerInput {
|
|
9
|
-
name?: string;
|
|
10
|
-
server?: McpServer["server"];
|
|
11
|
-
description?: string;
|
|
12
|
-
apps?: Partial<McpServer["apps"]>;
|
|
13
|
-
}
|
|
14
|
-
export declare function syncMcpServerToApps(server: McpServer, adapters: Record<AppId, {
|
|
15
|
-
syncServer(server: McpServer): Promise<void>;
|
|
16
|
-
removeServer(server: McpServer): Promise<void>;
|
|
17
|
-
}>): Promise<void>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { AppId, AppFlags, InstalledSkill } from "../types.js";
|
|
2
|
-
export interface CreateSkillInput {
|
|
3
|
-
name?: string;
|
|
4
|
-
sourceDir: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
apps?: Partial<AppFlags>;
|
|
7
|
-
}
|
|
8
|
-
export interface UpdateSkillInput {
|
|
9
|
-
name?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
apps?: Partial<AppFlags>;
|
|
12
|
-
}
|
|
13
|
-
export declare function buildSkillFromInput(input: CreateSkillInput): InstalledSkill;
|
|
14
|
-
export declare function mergeSkill(current: InstalledSkill, patch: UpdateSkillInput): InstalledSkill;
|
|
15
|
-
export declare function skillSourceDir(ssotSkillsDir: string, skill: InstalledSkill): string;
|
|
16
|
-
export declare function applySkillAppFlag(skill: InstalledSkill, appId: AppId, enabled: boolean): InstalledSkill;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import s from"node:path";import{normalizeAppFlags as e}from"../constants.js";import{createId as n,toNameFromPath as l}from"../utils/id.js";function c(o){return{id:n("skill"),name:o.name??l(o.sourceDir),directory:o.sourceDir,description:o.description,apps:e(o.apps),installedAt:Date.now()}}function f(o,p){return{...o,name:p.name??o.name,description:p.description??o.description,apps:p.apps?{...o.apps,...e({...o.apps,...p.apps})}:o.apps}}function u(o,p){return s.join(o,p.id)}function k(o,p,i){const a=p==="claude"?"claudecode":p,r={...o.apps,[a]:i,claude:!1};return{...o,apps:r}}export{k as applySkillAppFlag,c as buildSkillFromInput,f as mergeSkill,u as skillSourceDir};
|
|
2
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { AppId, InstalledSkill, SkillSyncMethod } from "../types.js";
|
|
2
|
-
export interface CreateSkillInput {
|
|
3
|
-
sourceDir: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
apps?: Partial<InstalledSkill["apps"]>;
|
|
7
|
-
}
|
|
8
|
-
export interface UpdateSkillInput {
|
|
9
|
-
name?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
apps?: Partial<InstalledSkill["apps"]>;
|
|
12
|
-
}
|
|
13
|
-
export declare function syncSkillToApps(skill: InstalledSkill, sourceDir: string, skillSyncMethod: SkillSyncMethod, adapters: Record<AppId, {
|
|
14
|
-
syncSkill(skill: InstalledSkill, sourceDir: string, method: SkillSyncMethod): Promise<void>;
|
|
15
|
-
removeSkill(skill: InstalledSkill): Promise<void>;
|
|
16
|
-
}>): Promise<void>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{readJsonFile as a,writeJsonFile as r}from"./utils/fs.js";import{sdkStateSchema as o}from"./schemas.js";async function c(e){const s=await a(e,{mcpServers:{},skills:{}}),t=o.safeParse(s);return t.success?t.data:{mcpServers:{},skills:{}}}async function l(e,s){await r(e,s)}export{c as loadState,l as saveState};
|
|
2
|
-
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
export type AppId = "acode" | "claude" | "claudecode" | "codex" | "gemini" | "opencode" | "openclaw";
|
|
2
|
-
export type McpServerType = "stdio" | "sse" | "http";
|
|
3
|
-
export interface McpServerSpec {
|
|
4
|
-
type?: McpServerType;
|
|
5
|
-
command?: string;
|
|
6
|
-
args?: string[];
|
|
7
|
-
env?: Record<string, string>;
|
|
8
|
-
cwd?: string;
|
|
9
|
-
url?: string;
|
|
10
|
-
headers?: Record<string, string>;
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
}
|
|
13
|
-
export interface AppFlags {
|
|
14
|
-
acode: boolean;
|
|
15
|
-
claude: boolean;
|
|
16
|
-
claudecode: boolean;
|
|
17
|
-
codex: boolean;
|
|
18
|
-
gemini: boolean;
|
|
19
|
-
opencode: boolean;
|
|
20
|
-
openclaw: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface McpServer {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
server: McpServerSpec;
|
|
26
|
-
description?: string;
|
|
27
|
-
apps: AppFlags;
|
|
28
|
-
}
|
|
29
|
-
export interface InstalledSkill {
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
directory: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
apps: AppFlags;
|
|
35
|
-
installedAt: number;
|
|
36
|
-
}
|
|
37
|
-
export type SkillSyncMethod = "auto" | "symlink" | "copy";
|
|
38
|
-
export interface SdkState {
|
|
39
|
-
mcpServers: Record<string, McpServer>;
|
|
40
|
-
skills: Record<string, InstalledSkill>;
|
|
41
|
-
}
|
|
42
|
-
export interface SdkPaths {
|
|
43
|
-
stateFile: string;
|
|
44
|
-
backupDir: string;
|
|
45
|
-
claudeConfigFile: string;
|
|
46
|
-
claudeSkillsDir: string;
|
|
47
|
-
claudecodeConfigFile: string;
|
|
48
|
-
claudecodeSkillsDir: string;
|
|
49
|
-
codexConfigFile: string;
|
|
50
|
-
codexSkillsDir: string;
|
|
51
|
-
acodeConfigFile: string;
|
|
52
|
-
acodeSkillsDir: string;
|
|
53
|
-
opencodeConfigFile: string;
|
|
54
|
-
opencodeSkillsDir: string;
|
|
55
|
-
ssotSkillsDir: string;
|
|
56
|
-
}
|
|
57
|
-
export interface AdapterOverrides {
|
|
58
|
-
mcp?: Partial<Record<AppId, IMcpAdapter>>;
|
|
59
|
-
skill?: Partial<Record<AppId, ISkillAdapter>>;
|
|
60
|
-
}
|
|
61
|
-
export interface SdkOptions {
|
|
62
|
-
rootDir?: string;
|
|
63
|
-
paths?: Partial<SdkPaths>;
|
|
64
|
-
skillSyncMethod?: SkillSyncMethod;
|
|
65
|
-
adapters?: AdapterOverrides;
|
|
66
|
-
}
|
|
67
|
-
export interface IMcpAdapter {
|
|
68
|
-
readonly appId: AppId;
|
|
69
|
-
importServers(): Promise<McpServer[]>;
|
|
70
|
-
syncServer(server: McpServer): Promise<void>;
|
|
71
|
-
removeServer(server: McpServer): Promise<void>;
|
|
72
|
-
}
|
|
73
|
-
export interface ISkillAdapter {
|
|
74
|
-
readonly appId: AppId;
|
|
75
|
-
importSkills(): Promise<Array<Pick<InstalledSkill, "id" | "name" | "directory" | "description">>>;
|
|
76
|
-
syncSkill(skill: InstalledSkill, sourceDir: string, method: SkillSyncMethod): Promise<void>;
|
|
77
|
-
removeSkill(skill: InstalledSkill): Promise<void>;
|
|
78
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare function pathExists(targetPath: string): Promise<boolean>;
|
|
2
|
-
export declare function ensureDir(targetDir: string): Promise<void>;
|
|
3
|
-
export declare function ensureParentDir(targetPath: string): Promise<void>;
|
|
4
|
-
export declare function readJsonFile<T>(targetPath: string, fallback: T): Promise<T>;
|
|
5
|
-
export declare function writeJsonFile(targetPath: string, data: unknown): Promise<void>;
|
|
6
|
-
export declare function writeTextFile(targetPath: string, content: string): Promise<void>;
|
|
7
|
-
export declare function copyFile(sourcePath: string, targetPath: string): Promise<void>;
|
|
8
|
-
export declare function removeIfExists(targetPath: string): Promise<void>;
|
|
9
|
-
export declare function copyDir(sourceDir: string, targetDir: string): Promise<void>;
|
|
10
|
-
export declare function copyDirIfExists(sourceDir: string, targetDir: string): Promise<boolean>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import e from"node:fs/promises";import o from"node:path";const c=new Map;async function u(i,t){const n=o.resolve(i),a=c.get(n)??Promise.resolve();let r;const s=new Promise(w=>{r=w});c.set(n,a.then(()=>s)),await a;try{await t()}finally{r(),c.get(n)===s&&c.delete(n)}}async function l(i,t){await y(i);const n=o.dirname(i),a=o.basename(i),r=o.join(n,`.${a}.tmp-${process.pid}-${Date.now()}-${Math.random().toString(16).slice(2)}`);await e.writeFile(r,t,"utf-8"),await e.rename(r,i)}async function f(i){try{return await e.access(i),!0}catch{return!1}}async function p(i){await e.mkdir(i,{recursive:!0})}async function y(i){await p(o.dirname(i))}async function v(i,t){if(!await f(i))return t;const n=await e.readFile(i,"utf-8");return JSON.parse(n)}async function E(i,t){await u(i,async()=>{await l(i,`${JSON.stringify(t,null,2)}
|
|
2
|
-
`)})}async function $(i,t){await u(i,async()=>{await l(i,t)})}async function b(i,t){await u(t,async()=>{await y(t),await e.copyFile(i,t)})}async function d(i){await f(i)&&await e.rm(i,{recursive:!0,force:!0})}async function m(i,t){await p(t);const n=await e.readdir(i,{withFileTypes:!0});await Promise.all(n.map(async a=>{const r=o.join(i,a.name),s=o.join(t,a.name);if(a.isDirectory()){await m(r,s);return}if(a.isSymbolicLink()){const w=await e.readlink(r);await e.symlink(w,s);return}await e.copyFile(r,s)}))}function x(i){if(typeof i!="object"||i===null||!("code"in i))return!1;const{code:t}=i;return t==="ENOENT"}async function h(i,t){if(!await f(i))return!1;try{return await m(i,t),!0}catch(n){if(x(n))return await d(t),!1;throw n}}export{m as copyDir,h as copyDirIfExists,b as copyFile,p as ensureDir,y as ensureParentDir,f as pathExists,v as readJsonFile,d as removeIfExists,E as writeJsonFile,$ as writeTextFile};
|
|
3
|
-
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{randomUUID as t}from"node:crypto";function a(){return t().replace(/-/g,"")}function c(e){return`${e}_${t().replace(/-/g,"")}`}function l(e){const r=e.replace(/\\/g,"/").split("/").filter(Boolean);return r[r.length-1]??e}export{c as createId,a as generateId,l as toNameFromPath};
|
|
2
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cc-switch/sdk",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"description": "Node SDK for MCP and Skill management",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"default": "./dist/index.js"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"dist"
|
|
16
|
-
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"build": "tsc -p tsconfig.json && node ../../scripts/minify-dist.mjs",
|
|
19
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
20
|
-
"test": "vitest run --config vitest.config.ts",
|
|
21
|
-
"test:watch": "vitest --config vitest.config.ts"
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"zod": "^4.1.12"
|
|
25
|
-
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/node": "^20.0.0",
|
|
28
|
-
"typescript": "^5.3.0",
|
|
29
|
-
"vitest": "^2.0.5"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
File without changes
|