@blade-hq/agent-client 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -25
- package/dist/blade-client.d.ts +2 -14
- package/dist/index.d.ts +5 -2
- package/dist/index.js +212 -106
- package/dist/index.js.map +1 -1
- package/dist/resources/models.d.ts +15 -0
- package/dist/resources/sessions.d.ts +8 -1
- package/dist/session/agent-session.d.ts +10 -0
- package/dist/session/definition.d.ts +49 -0
- package/dist/shared/projection/helpers.d.ts +1 -1
- package/dist/types/rest.d.ts +378 -10
- package/dist/version.d.ts +4 -42
- package/node_modules/@ark/schema/LICENSE +7 -0
- package/node_modules/@ark/schema/README.md +18 -0
- package/node_modules/@ark/schema/out/config.d.ts +58 -0
- package/node_modules/@ark/schema/out/config.js +95 -0
- package/node_modules/@ark/schema/out/constraint.d.ts +67 -0
- package/node_modules/@ark/schema/out/constraint.js +136 -0
- package/node_modules/@ark/schema/out/generic.d.ts +73 -0
- package/node_modules/@ark/schema/out/generic.js +76 -0
- package/node_modules/@ark/schema/out/index.d.ts +47 -0
- package/node_modules/@ark/schema/out/index.js +47 -0
- package/node_modules/@ark/schema/out/intrinsic.d.ts +24 -0
- package/node_modules/@ark/schema/out/intrinsic.js +56 -0
- package/node_modules/@ark/schema/out/kinds.d.ts +73 -0
- package/node_modules/@ark/schema/out/kinds.js +71 -0
- package/node_modules/@ark/schema/out/module.d.ts +24 -0
- package/node_modules/@ark/schema/out/module.js +15 -0
- package/node_modules/@ark/schema/out/node.d.ts +154 -0
- package/node_modules/@ark/schema/out/node.js +438 -0
- package/node_modules/@ark/schema/out/parse.d.ts +52 -0
- package/node_modules/@ark/schema/out/parse.js +215 -0
- package/node_modules/@ark/schema/out/predicate.d.ts +52 -0
- package/node_modules/@ark/schema/out/predicate.js +63 -0
- package/node_modules/@ark/schema/out/refinements/after.d.ts +41 -0
- package/node_modules/@ark/schema/out/refinements/after.js +35 -0
- package/node_modules/@ark/schema/out/refinements/before.d.ts +41 -0
- package/node_modules/@ark/schema/out/refinements/before.js +41 -0
- package/node_modules/@ark/schema/out/refinements/divisor.d.ts +43 -0
- package/node_modules/@ark/schema/out/refinements/divisor.js +58 -0
- package/node_modules/@ark/schema/out/refinements/exactLength.d.ts +49 -0
- package/node_modules/@ark/schema/out/refinements/exactLength.js +55 -0
- package/node_modules/@ark/schema/out/refinements/kinds.d.ts +34 -0
- package/node_modules/@ark/schema/out/refinements/kinds.js +25 -0
- package/node_modules/@ark/schema/out/refinements/max.d.ts +37 -0
- package/node_modules/@ark/schema/out/refinements/max.js +45 -0
- package/node_modules/@ark/schema/out/refinements/maxLength.d.ts +40 -0
- package/node_modules/@ark/schema/out/refinements/maxLength.js +49 -0
- package/node_modules/@ark/schema/out/refinements/min.d.ts +37 -0
- package/node_modules/@ark/schema/out/refinements/min.js +39 -0
- package/node_modules/@ark/schema/out/refinements/minLength.d.ts +40 -0
- package/node_modules/@ark/schema/out/refinements/minLength.js +47 -0
- package/node_modules/@ark/schema/out/refinements/pattern.d.ts +43 -0
- package/node_modules/@ark/schema/out/refinements/pattern.js +52 -0
- package/node_modules/@ark/schema/out/refinements/range.d.ts +106 -0
- package/node_modules/@ark/schema/out/refinements/range.js +103 -0
- package/node_modules/@ark/schema/out/roots/alias.d.ts +45 -0
- package/node_modules/@ark/schema/out/roots/alias.js +115 -0
- package/node_modules/@ark/schema/out/roots/basis.d.ts +12 -0
- package/node_modules/@ark/schema/out/roots/basis.js +26 -0
- package/node_modules/@ark/schema/out/roots/domain.d.ts +45 -0
- package/node_modules/@ark/schema/out/roots/domain.js +72 -0
- package/node_modules/@ark/schema/out/roots/intersection.d.ts +98 -0
- package/node_modules/@ark/schema/out/roots/intersection.js +292 -0
- package/node_modules/@ark/schema/out/roots/morph.d.ts +62 -0
- package/node_modules/@ark/schema/out/roots/morph.js +159 -0
- package/node_modules/@ark/schema/out/roots/proto.d.ts +53 -0
- package/node_modules/@ark/schema/out/roots/proto.js +101 -0
- package/node_modules/@ark/schema/out/roots/root.d.ts +145 -0
- package/node_modules/@ark/schema/out/roots/root.js +455 -0
- package/node_modules/@ark/schema/out/roots/union.d.ts +99 -0
- package/node_modules/@ark/schema/out/roots/union.js +718 -0
- package/node_modules/@ark/schema/out/roots/unit.d.ts +41 -0
- package/node_modules/@ark/schema/out/roots/unit.js +86 -0
- package/node_modules/@ark/schema/out/roots/utils.d.ts +3 -0
- package/node_modules/@ark/schema/out/roots/utils.js +6 -0
- package/node_modules/@ark/schema/out/scope.d.ts +158 -0
- package/node_modules/@ark/schema/out/scope.js +481 -0
- package/node_modules/@ark/schema/out/shared/compile.d.ts +62 -0
- package/node_modules/@ark/schema/out/shared/compile.js +145 -0
- package/node_modules/@ark/schema/out/shared/declare.d.ts +80 -0
- package/node_modules/@ark/schema/out/shared/declare.js +1 -0
- package/node_modules/@ark/schema/out/shared/disjoint.d.ts +41 -0
- package/node_modules/@ark/schema/out/shared/disjoint.js +65 -0
- package/node_modules/@ark/schema/out/shared/errors.d.ts +145 -0
- package/node_modules/@ark/schema/out/shared/errors.js +252 -0
- package/node_modules/@ark/schema/out/shared/implement.d.ts +151 -0
- package/node_modules/@ark/schema/out/shared/implement.js +98 -0
- package/node_modules/@ark/schema/out/shared/intersections.d.ts +10 -0
- package/node_modules/@ark/schema/out/shared/intersections.js +132 -0
- package/node_modules/@ark/schema/out/shared/jsonSchema.d.ts +93 -0
- package/node_modules/@ark/schema/out/shared/jsonSchema.js +1 -0
- package/node_modules/@ark/schema/out/shared/registry.d.ts +7 -0
- package/node_modules/@ark/schema/out/shared/registry.js +10 -0
- package/node_modules/@ark/schema/out/shared/standardSchema.d.ts +122 -0
- package/node_modules/@ark/schema/out/shared/standardSchema.js +2 -0
- package/node_modules/@ark/schema/out/shared/toJsonSchema.d.ts +139 -0
- package/node_modules/@ark/schema/out/shared/toJsonSchema.js +40 -0
- package/node_modules/@ark/schema/out/shared/traversal.d.ts +117 -0
- package/node_modules/@ark/schema/out/shared/traversal.js +226 -0
- package/node_modules/@ark/schema/out/shared/utils.d.ts +34 -0
- package/node_modules/@ark/schema/out/shared/utils.js +8 -0
- package/node_modules/@ark/schema/out/structure/index.d.ts +46 -0
- package/node_modules/@ark/schema/out/structure/index.js +89 -0
- package/node_modules/@ark/schema/out/structure/optional.d.ts +49 -0
- package/node_modules/@ark/schema/out/structure/optional.js +127 -0
- package/node_modules/@ark/schema/out/structure/prop.d.ts +45 -0
- package/node_modules/@ark/schema/out/structure/prop.js +85 -0
- package/node_modules/@ark/schema/out/structure/required.d.ts +39 -0
- package/node_modules/@ark/schema/out/structure/required.js +38 -0
- package/node_modules/@ark/schema/out/structure/sequence.d.ts +110 -0
- package/node_modules/@ark/schema/out/structure/sequence.js +521 -0
- package/node_modules/@ark/schema/out/structure/shared.d.ts +4 -0
- package/node_modules/@ark/schema/out/structure/shared.js +4 -0
- package/node_modules/@ark/schema/out/structure/structure.d.ts +113 -0
- package/node_modules/@ark/schema/out/structure/structure.js +747 -0
- package/node_modules/@ark/schema/package.json +51 -0
- package/node_modules/@ark/util/LICENSE +7 -0
- package/node_modules/@ark/util/out/arrays.d.ts +166 -0
- package/node_modules/@ark/util/out/arrays.js +147 -0
- package/node_modules/@ark/util/out/clone.d.ts +4 -0
- package/node_modules/@ark/util/out/clone.js +33 -0
- package/node_modules/@ark/util/out/describe.d.ts +25 -0
- package/node_modules/@ark/util/out/describe.js +1 -0
- package/node_modules/@ark/util/out/domain.d.ts +48 -0
- package/node_modules/@ark/util/out/domain.js +25 -0
- package/node_modules/@ark/util/out/errors.d.ts +29 -0
- package/node_modules/@ark/util/out/errors.js +17 -0
- package/node_modules/@ark/util/out/flatMorph.d.ts +41 -0
- package/node_modules/@ark/util/out/flatMorph.js +24 -0
- package/node_modules/@ark/util/out/functions.d.ts +33 -0
- package/node_modules/@ark/util/out/functions.js +53 -0
- package/node_modules/@ark/util/out/generics.d.ts +59 -0
- package/node_modules/@ark/util/out/generics.js +5 -0
- package/node_modules/@ark/util/out/get.d.ts +9 -0
- package/node_modules/@ark/util/out/get.js +7 -0
- package/node_modules/@ark/util/out/hkt.d.ts +27 -0
- package/node_modules/@ark/util/out/hkt.js +5 -0
- package/node_modules/@ark/util/out/index.d.ts +24 -0
- package/node_modules/@ark/util/out/index.js +24 -0
- package/node_modules/@ark/util/out/intersections.d.ts +50 -0
- package/node_modules/@ark/util/out/intersections.js +1 -0
- package/node_modules/@ark/util/out/isomorphic.d.ts +5 -0
- package/node_modules/@ark/util/out/isomorphic.js +19 -0
- package/node_modules/@ark/util/out/keys.d.ts +18 -0
- package/node_modules/@ark/util/out/keys.js +1 -0
- package/node_modules/@ark/util/out/lazily.d.ts +1 -0
- package/node_modules/@ark/util/out/lazily.js +16 -0
- package/node_modules/@ark/util/out/numbers.d.ts +72 -0
- package/node_modules/@ark/util/out/numbers.js +138 -0
- package/node_modules/@ark/util/out/objectKinds.d.ts +205 -0
- package/node_modules/@ark/util/out/objectKinds.js +150 -0
- package/node_modules/@ark/util/out/path.d.ts +22 -0
- package/node_modules/@ark/util/out/path.js +65 -0
- package/node_modules/@ark/util/out/primitive.d.ts +16 -0
- package/node_modules/@ark/util/out/primitive.js +3 -0
- package/node_modules/@ark/util/out/records.d.ts +183 -0
- package/node_modules/@ark/util/out/records.js +63 -0
- package/node_modules/@ark/util/out/registry.d.ts +21 -0
- package/node_modules/@ark/util/out/registry.js +49 -0
- package/node_modules/@ark/util/out/scanner.d.ts +44 -0
- package/node_modules/@ark/util/out/scanner.js +87 -0
- package/node_modules/@ark/util/out/serialize.d.ts +34 -0
- package/node_modules/@ark/util/out/serialize.js +150 -0
- package/node_modules/@ark/util/out/strings.d.ts +33 -0
- package/node_modules/@ark/util/out/strings.js +59 -0
- package/node_modules/@ark/util/out/traits.d.ts +89 -0
- package/node_modules/@ark/util/out/traits.js +75 -0
- package/node_modules/@ark/util/out/unionToTuple.d.ts +14 -0
- package/node_modules/@ark/util/out/unionToTuple.js +1 -0
- package/node_modules/@ark/util/package.json +39 -0
- package/node_modules/@ark/util/tsconfig.base.json +18 -0
- package/node_modules/@socket.io/component-emitter/LICENSE +24 -0
- package/node_modules/@socket.io/component-emitter/Readme.md +79 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.d.ts +179 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.js +176 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/package.json +4 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/index.d.ts +179 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/index.js +169 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/package.json +4 -0
- package/node_modules/@socket.io/component-emitter/package.json +28 -0
- package/node_modules/arkregex/LICENSE +7 -0
- package/node_modules/arkregex/README.md +61 -0
- package/node_modules/arkregex/out/charset.d.ts +15 -0
- package/node_modules/arkregex/out/charset.js +1 -0
- package/node_modules/arkregex/out/escape.d.ts +29 -0
- package/node_modules/arkregex/out/escape.js +10 -0
- package/node_modules/arkregex/out/execArray.d.ts +23 -0
- package/node_modules/arkregex/out/execArray.js +1 -0
- package/node_modules/arkregex/out/group.d.ts +33 -0
- package/node_modules/arkregex/out/group.js +6 -0
- package/node_modules/arkregex/out/index.d.ts +1 -0
- package/node_modules/arkregex/out/index.js +1 -0
- package/node_modules/arkregex/out/parse.d.ts +10 -0
- package/node_modules/arkregex/out/parse.js +1 -0
- package/node_modules/arkregex/out/quantify.d.ts +43 -0
- package/node_modules/arkregex/out/quantify.js +2 -0
- package/node_modules/arkregex/out/regex.d.ts +38 -0
- package/node_modules/arkregex/out/regex.js +2 -0
- package/node_modules/arkregex/out/state.d.ts +359 -0
- package/node_modules/arkregex/out/state.js +2 -0
- package/node_modules/arkregex/package.json +42 -0
- package/node_modules/arktype/LICENSE +7 -0
- package/node_modules/arktype/README.md +157 -0
- package/node_modules/arktype/out/attributes.d.ts +104 -0
- package/node_modules/arktype/out/attributes.js +3 -0
- package/node_modules/arktype/out/config.d.ts +35 -0
- package/node_modules/arktype/out/config.js +3 -0
- package/node_modules/arktype/out/declare.d.ts +35 -0
- package/node_modules/arktype/out/declare.js +1 -0
- package/node_modules/arktype/out/fn.d.ts +61 -0
- package/node_modules/arktype/out/fn.js +54 -0
- package/node_modules/arktype/out/generic.d.ts +118 -0
- package/node_modules/arktype/out/generic.js +37 -0
- package/node_modules/arktype/out/index.d.ts +12 -0
- package/node_modules/arktype/out/index.js +9 -0
- package/node_modules/arktype/out/keywords/Array.d.ts +20 -0
- package/node_modules/arktype/out/keywords/Array.js +21 -0
- package/node_modules/arktype/out/keywords/FormData.d.ts +15 -0
- package/node_modules/arktype/out/keywords/FormData.js +40 -0
- package/node_modules/arktype/out/keywords/TypedArray.d.ts +19 -0
- package/node_modules/arktype/out/keywords/TypedArray.js +16 -0
- package/node_modules/arktype/out/keywords/builtins.d.ts +18 -0
- package/node_modules/arktype/out/keywords/builtins.js +11 -0
- package/node_modules/arktype/out/keywords/constructors.d.ts +31 -0
- package/node_modules/arktype/out/keywords/constructors.js +16 -0
- package/node_modules/arktype/out/keywords/keywords.d.ts +70 -0
- package/node_modules/arktype/out/keywords/keywords.js +48 -0
- package/node_modules/arktype/out/keywords/number.d.ts +23 -0
- package/node_modules/arktype/out/keywords/number.js +49 -0
- package/node_modules/arktype/out/keywords/string.d.ts +334 -0
- package/node_modules/arktype/out/keywords/string.js +463 -0
- package/node_modules/arktype/out/keywords/ts.d.ts +108 -0
- package/node_modules/arktype/out/keywords/ts.js +82 -0
- package/node_modules/arktype/out/match.d.ts +152 -0
- package/node_modules/arktype/out/match.js +95 -0
- package/node_modules/arktype/out/module.d.ts +22 -0
- package/node_modules/arktype/out/module.js +3 -0
- package/node_modules/arktype/out/nary.d.ts +473 -0
- package/node_modules/arktype/out/nary.js +1 -0
- package/node_modules/arktype/out/parser/ast/bounds.d.ts +18 -0
- package/node_modules/arktype/out/parser/ast/bounds.js +1 -0
- package/node_modules/arktype/out/parser/ast/default.d.ts +8 -0
- package/node_modules/arktype/out/parser/ast/default.js +1 -0
- package/node_modules/arktype/out/parser/ast/divisor.d.ts +9 -0
- package/node_modules/arktype/out/parser/ast/divisor.js +1 -0
- package/node_modules/arktype/out/parser/ast/generic.d.ts +17 -0
- package/node_modules/arktype/out/parser/ast/generic.js +1 -0
- package/node_modules/arktype/out/parser/ast/infer.d.ts +25 -0
- package/node_modules/arktype/out/parser/ast/infer.js +1 -0
- package/node_modules/arktype/out/parser/ast/keyof.d.ts +7 -0
- package/node_modules/arktype/out/parser/ast/keyof.js +1 -0
- package/node_modules/arktype/out/parser/ast/utils.d.ts +8 -0
- package/node_modules/arktype/out/parser/ast/utils.js +1 -0
- package/node_modules/arktype/out/parser/ast/validate.d.ts +30 -0
- package/node_modules/arktype/out/parser/ast/validate.js +3 -0
- package/node_modules/arktype/out/parser/definition.d.ts +30 -0
- package/node_modules/arktype/out/parser/definition.js +74 -0
- package/node_modules/arktype/out/parser/objectLiteral.d.ts +70 -0
- package/node_modules/arktype/out/parser/objectLiteral.js +113 -0
- package/node_modules/arktype/out/parser/property.d.ts +34 -0
- package/node_modules/arktype/out/parser/property.js +16 -0
- package/node_modules/arktype/out/parser/reduce/dynamic.d.ts +42 -0
- package/node_modules/arktype/out/parser/reduce/dynamic.js +153 -0
- package/node_modules/arktype/out/parser/reduce/shared.d.ts +39 -0
- package/node_modules/arktype/out/parser/reduce/shared.js +25 -0
- package/node_modules/arktype/out/parser/reduce/static.d.ts +186 -0
- package/node_modules/arktype/out/parser/reduce/static.js +1 -0
- package/node_modules/arktype/out/parser/shift/operand/date.d.ts +11 -0
- package/node_modules/arktype/out/parser/shift/operand/date.js +23 -0
- package/node_modules/arktype/out/parser/shift/operand/enclosed.d.ts +57 -0
- package/node_modules/arktype/out/parser/shift/operand/enclosed.js +78 -0
- package/node_modules/arktype/out/parser/shift/operand/genericArgs.d.ts +27 -0
- package/node_modules/arktype/out/parser/shift/operand/genericArgs.js +16 -0
- package/node_modules/arktype/out/parser/shift/operand/operand.d.ts +8 -0
- package/node_modules/arktype/out/parser/shift/operand/operand.js +16 -0
- package/node_modules/arktype/out/parser/shift/operand/unenclosed.d.ts +43 -0
- package/node_modules/arktype/out/parser/shift/operand/unenclosed.js +59 -0
- package/node_modules/arktype/out/parser/shift/operator/bounds.d.ts +24 -0
- package/node_modules/arktype/out/parser/shift/operator/bounds.js +91 -0
- package/node_modules/arktype/out/parser/shift/operator/brand.d.ts +7 -0
- package/node_modules/arktype/out/parser/shift/operator/brand.js +6 -0
- package/node_modules/arktype/out/parser/shift/operator/default.d.ts +24 -0
- package/node_modules/arktype/out/parser/shift/operator/default.js +15 -0
- package/node_modules/arktype/out/parser/shift/operator/divisor.d.ts +8 -0
- package/node_modules/arktype/out/parser/shift/operator/divisor.js +13 -0
- package/node_modules/arktype/out/parser/shift/operator/operator.d.ts +14 -0
- package/node_modules/arktype/out/parser/shift/operator/operator.js +28 -0
- package/node_modules/arktype/out/parser/shift/tokens.d.ts +33 -0
- package/node_modules/arktype/out/parser/shift/tokens.js +37 -0
- package/node_modules/arktype/out/parser/string.d.ts +30 -0
- package/node_modules/arktype/out/parser/string.js +42 -0
- package/node_modules/arktype/out/parser/tupleExpressions.d.ts +79 -0
- package/node_modules/arktype/out/parser/tupleExpressions.js +75 -0
- package/node_modules/arktype/out/parser/tupleLiteral.d.ts +95 -0
- package/node_modules/arktype/out/parser/tupleLiteral.js +128 -0
- package/node_modules/arktype/out/scope.d.ts +158 -0
- package/node_modules/arktype/out/scope.js +106 -0
- package/node_modules/arktype/out/type.d.ts +144 -0
- package/node_modules/arktype/out/type.js +55 -0
- package/node_modules/arktype/out/variants/array.d.ts +12 -0
- package/node_modules/arktype/out/variants/array.js +1 -0
- package/node_modules/arktype/out/variants/base.d.ts +542 -0
- package/node_modules/arktype/out/variants/base.js +1 -0
- package/node_modules/arktype/out/variants/date.d.ts +10 -0
- package/node_modules/arktype/out/variants/date.js +1 -0
- package/node_modules/arktype/out/variants/instantiate.d.ts +12 -0
- package/node_modules/arktype/out/variants/instantiate.js +1 -0
- package/node_modules/arktype/out/variants/number.d.ts +11 -0
- package/node_modules/arktype/out/variants/number.js +1 -0
- package/node_modules/arktype/out/variants/object.d.ts +107 -0
- package/node_modules/arktype/out/variants/object.js +1 -0
- package/node_modules/arktype/out/variants/string.d.ts +15 -0
- package/node_modules/arktype/out/variants/string.js +1 -0
- package/node_modules/arktype/package.json +57 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/engine.io-client/LICENSE +22 -0
- package/node_modules/engine.io-client/README.md +331 -0
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.js +4 -0
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.js +14 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.js +38 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.js +67 -0
- package/node_modules/engine.io-client/build/cjs/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/cjs/globals.js +26 -0
- package/node_modules/engine.io-client/build/cjs/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/cjs/globals.node.js +97 -0
- package/node_modules/engine.io-client/build/cjs/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/index.js +32 -0
- package/node_modules/engine.io-client/build/cjs/package.json +10 -0
- package/node_modules/engine.io-client/build/cjs/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/cjs/socket.js +765 -0
- package/node_modules/engine.io-client/build/cjs/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/cjs/transport.js +153 -0
- package/node_modules/engine.io-client/build/cjs/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/cjs/transports/index.js +11 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.js +60 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js +285 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js +44 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling.js +165 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.js +136 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.js +68 -0
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.js +94 -0
- package/node_modules/engine.io-client/build/cjs/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/cjs/util.js +65 -0
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.js +2 -0
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.js +11 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.js +34 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.js +64 -0
- package/node_modules/engine.io-client/build/esm/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/esm/globals.js +22 -0
- package/node_modules/engine.io-client/build/esm/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/esm/globals.node.js +91 -0
- package/node_modules/engine.io-client/build/esm/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/index.js +15 -0
- package/node_modules/engine.io-client/build/esm/package.json +10 -0
- package/node_modules/engine.io-client/build/esm/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/esm/socket.js +727 -0
- package/node_modules/engine.io-client/build/esm/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/esm/transport.js +142 -0
- package/node_modules/engine.io-client/build/esm/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/esm/transports/index.js +8 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.js +56 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +271 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.js +17 -0
- package/node_modules/engine.io-client/build/esm/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/esm/transports/polling.js +145 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.js +125 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.js +41 -0
- package/node_modules/engine.io-client/build/esm/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/esm/transports/webtransport.js +80 -0
- package/node_modules/engine.io-client/build/esm/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/esm/util.js +59 -0
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.js +2 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js +11 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js +34 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js +64 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.js +22 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.node.js +91 -0
- package/node_modules/engine.io-client/build/esm-debug/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/index.js +15 -0
- package/node_modules/engine.io-client/build/esm-debug/package.json +10 -0
- package/node_modules/engine.io-client/build/esm-debug/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/esm-debug/socket.js +756 -0
- package/node_modules/engine.io-client/build/esm-debug/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/esm-debug/transport.js +145 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/index.js +8 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js +56 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js +276 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js +17 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.js +158 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.js +128 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js +41 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.js +87 -0
- package/node_modules/engine.io-client/build/esm-debug/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/esm-debug/util.js +59 -0
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js +7 -0
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js.map +1 -0
- package/node_modules/engine.io-client/dist/engine.io.js +3064 -0
- package/node_modules/engine.io-client/dist/engine.io.js.map +1 -0
- package/node_modules/engine.io-client/dist/engine.io.min.js +7 -0
- package/node_modules/engine.io-client/dist/engine.io.min.js.map +1 -0
- package/node_modules/engine.io-client/package.json +95 -0
- package/node_modules/engine.io-parser/LICENSE +22 -0
- package/node_modules/engine.io-parser/Readme.md +158 -0
- package/node_modules/engine.io-parser/build/cjs/commons.d.ts +14 -0
- package/node_modules/engine.io-parser/build/cjs/commons.js +19 -0
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.js +48 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.js +66 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.js +59 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.d.ts +4 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.js +72 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.d.ts +3 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.js +38 -0
- package/node_modules/engine.io-parser/build/cjs/index.d.ts +9 -0
- package/node_modules/engine.io-parser/build/cjs/index.js +164 -0
- package/node_modules/engine.io-parser/build/cjs/package.json +8 -0
- package/node_modules/engine.io-parser/build/esm/commons.d.ts +14 -0
- package/node_modules/engine.io-parser/build/esm/commons.js +14 -0
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +43 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +62 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.js +55 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.d.ts +4 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +68 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.d.ts +3 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.js +33 -0
- package/node_modules/engine.io-parser/build/esm/index.d.ts +9 -0
- package/node_modules/engine.io-parser/build/esm/index.js +156 -0
- package/node_modules/engine.io-parser/build/esm/package.json +8 -0
- package/node_modules/engine.io-parser/package.json +46 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/socket.io-client/LICENSE +21 -0
- package/node_modules/socket.io-client/README.md +29 -0
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.js +4 -0
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.js +69 -0
- package/node_modules/socket.io-client/build/cjs/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/cjs/index.js +76 -0
- package/node_modules/socket.io-client/build/cjs/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/cjs/manager.js +416 -0
- package/node_modules/socket.io-client/build/cjs/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/cjs/on.js +9 -0
- package/node_modules/socket.io-client/build/cjs/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/cjs/socket.js +909 -0
- package/node_modules/socket.io-client/build/cjs/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/cjs/url.js +69 -0
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.js +2 -0
- package/node_modules/socket.io-client/build/esm/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/esm/contrib/backo2.js +66 -0
- package/node_modules/socket.io-client/build/esm/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/esm/index.js +58 -0
- package/node_modules/socket.io-client/build/esm/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/esm/manager.js +367 -0
- package/node_modules/socket.io-client/build/esm/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm/on.js +6 -0
- package/node_modules/socket.io-client/build/esm/package.json +5 -0
- package/node_modules/socket.io-client/build/esm/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/esm/socket.js +880 -0
- package/node_modules/socket.io-client/build/esm/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/esm/url.js +59 -0
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.js +2 -0
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.js +66 -0
- package/node_modules/socket.io-client/build/esm-debug/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/esm-debug/index.js +62 -0
- package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/esm-debug/manager.js +386 -0
- package/node_modules/socket.io-client/build/esm-debug/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm-debug/on.js +6 -0
- package/node_modules/socket.io-client/build/esm-debug/package.json +5 -0
- package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/esm-debug/socket.js +902 -0
- package/node_modules/socket.io-client/build/esm-debug/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/esm-debug/url.js +63 -0
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.js +4955 -0
- package/node_modules/socket.io-client/dist/socket.io.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -0
- package/node_modules/socket.io-client/package.json +101 -0
- package/node_modules/socket.io-parser/LICENSE +20 -0
- package/node_modules/socket.io-parser/Readme.md +81 -0
- package/node_modules/socket.io-parser/build/cjs/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/cjs/binary.js +87 -0
- package/node_modules/socket.io-parser/build/cjs/index.d.ts +91 -0
- package/node_modules/socket.io-parser/build/cjs/index.js +359 -0
- package/node_modules/socket.io-parser/build/cjs/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/cjs/is-binary.js +54 -0
- package/node_modules/socket.io-parser/build/cjs/package.json +3 -0
- package/node_modules/socket.io-parser/build/esm/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/esm/binary.js +83 -0
- package/node_modules/socket.io-parser/build/esm/index.d.ts +91 -0
- package/node_modules/socket.io-parser/build/esm/index.js +348 -0
- package/node_modules/socket.io-parser/build/esm/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/esm/is-binary.js +50 -0
- package/node_modules/socket.io-parser/build/esm/package.json +3 -0
- package/node_modules/socket.io-parser/build/esm-debug/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/esm-debug/binary.js +83 -0
- package/node_modules/socket.io-parser/build/esm-debug/index.d.ts +91 -0
- package/node_modules/socket.io-parser/build/esm-debug/index.js +353 -0
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.js +50 -0
- package/node_modules/socket.io-parser/build/esm-debug/package.json +3 -0
- package/node_modules/socket.io-parser/package.json +44 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +13 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +18 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/node_modules/ws/lib/receiver.js +706 -0
- package/node_modules/ws/lib/sender.js +602 -0
- package/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +550 -0
- package/node_modules/ws/lib/websocket.js +1388 -0
- package/node_modules/ws/package.json +69 -0
- package/node_modules/ws/wrapper.mjs +8 -0
- package/node_modules/xmlhttprequest-ssl/LICENSE +22 -0
- package/node_modules/xmlhttprequest-ssl/README.md +67 -0
- package/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js +689 -0
- package/node_modules/xmlhttprequest-ssl/package.json +40 -0
- package/package.json +34 -4
- package/public-api.md +85 -23
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BladeClient } from "../blade-client";
|
|
2
|
+
export interface ModelOption {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ModelCatalog {
|
|
7
|
+
default: string;
|
|
8
|
+
models: ModelOption[];
|
|
9
|
+
}
|
|
10
|
+
/** Server 可供当前用户选择的模型目录。 */
|
|
11
|
+
export declare class ModelsResource {
|
|
12
|
+
private client;
|
|
13
|
+
constructor(client: BladeClient);
|
|
14
|
+
list(): Promise<ModelCatalog>;
|
|
15
|
+
}
|
|
@@ -4,6 +4,7 @@ import type { SessionDetail, SessionInfo, TemplateId } from "../schemas/session"
|
|
|
4
4
|
import type { Task } from "../schemas/task";
|
|
5
5
|
import type { BladeClient, UploadProgress } from "../blade-client";
|
|
6
6
|
import type { AgentSession } from "../session/agent-session";
|
|
7
|
+
import { type SessionDefinition } from "../session/definition";
|
|
7
8
|
import type { SessionProfile } from "../types/sdk-profile";
|
|
8
9
|
export interface CreateSessionRequest {
|
|
9
10
|
intent?: string;
|
|
@@ -143,7 +144,10 @@ export declare class SessionsResource {
|
|
|
143
144
|
*/
|
|
144
145
|
connect(sessionId: string): Promise<AgentSession>;
|
|
145
146
|
/** 创建新会话并直接连接,返回可收发消息的 AgentSession。 */
|
|
146
|
-
create(request?: CreateSessionRequest): Promise<AgentSession>;
|
|
147
|
+
create(request?: CreateSessionRequest | SessionDefinition): Promise<AgentSession>;
|
|
148
|
+
private createDeclared;
|
|
149
|
+
private prepareSolution;
|
|
150
|
+
private cleanupSolutionAsset;
|
|
147
151
|
private fetchSessionsPage;
|
|
148
152
|
listSessions(template_id_prefix?: string, solution_id?: string): Promise<SessionInfo[]>;
|
|
149
153
|
listSessionsPaginated(params: {
|
|
@@ -236,6 +240,9 @@ export declare class SessionsResource {
|
|
|
236
240
|
reachable: boolean;
|
|
237
241
|
}>;
|
|
238
242
|
listDir(sessionId: string, dirPath: string): Promise<FileEntry[]>;
|
|
243
|
+
countFiles(sessionId: string, dirPath?: string): Promise<number>;
|
|
244
|
+
/** 在浏览器中下载一个会话文件。 */
|
|
245
|
+
downloadFile(sessionId: string, filePath: string, downloadName?: string): Promise<void>;
|
|
239
246
|
uploadFiles(sessionId: string, dirPath: string, files: FileList | File[] | UploadFileEntry[], options?: UploadFilesOptions): Promise<{
|
|
240
247
|
uploaded: string[];
|
|
241
248
|
failed: string[];
|
|
@@ -4,6 +4,7 @@ import type { PatchEnvelope, TurnProjection } from "../schemas/projection";
|
|
|
4
4
|
import type { SessionStatus } from "../schemas/session";
|
|
5
5
|
import { type CommandHandler } from "../commands/registry";
|
|
6
6
|
import { type AgentSessionEvents } from "./events";
|
|
7
|
+
import type { FileEntry } from "../resources/sessions";
|
|
7
8
|
import { type ConnectionStatus, type SessionState } from "./state";
|
|
8
9
|
/** SessionHub 注入给 AgentSession 的运行时依赖(socket 收发 + REST 补数)。 */
|
|
9
10
|
export interface SessionRuntime {
|
|
@@ -11,6 +12,9 @@ export interface SessionRuntime {
|
|
|
11
12
|
emitWithAck(event: string, data: unknown, timeoutMs: number): Promise<Record<string, unknown> | undefined>;
|
|
12
13
|
ensureConnected(): void;
|
|
13
14
|
fetchTurns(sessionId: string): Promise<TurnProjection[]>;
|
|
15
|
+
listDir(sessionId: string, dirPath: string): Promise<FileEntry[]>;
|
|
16
|
+
countFiles(sessionId: string, dirPath?: string): Promise<number>;
|
|
17
|
+
downloadFile(sessionId: string, filePath: string, downloadName?: string): Promise<void>;
|
|
14
18
|
onDispose(session: AgentSession): void;
|
|
15
19
|
}
|
|
16
20
|
export interface SendOptions {
|
|
@@ -95,6 +99,12 @@ export declare class AgentSession {
|
|
|
95
99
|
attach(label: string, data: unknown): void;
|
|
96
100
|
/** 往聊天输入框追加一段文字(不发送)。 */
|
|
97
101
|
insertText(text: string): void;
|
|
102
|
+
/** 列出工作区的一层目录。 */
|
|
103
|
+
listDir(dirPath?: string): Promise<FileEntry[]>;
|
|
104
|
+
/** 递归统计工作区文件数(不含目录)。 */
|
|
105
|
+
countFiles(dirPath?: string): Promise<number>;
|
|
106
|
+
/** 在浏览器中下载一个工作区文件。 */
|
|
107
|
+
downloadFile(filePath: string, downloadName?: string): Promise<void>;
|
|
98
108
|
/** 释放订阅与监听器。之后该实例不再接收任何事件。 */
|
|
99
109
|
dispose(): void;
|
|
100
110
|
get isDisposed(): boolean;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export type TextFile = {
|
|
2
|
+
path: string;
|
|
3
|
+
content: string;
|
|
4
|
+
};
|
|
5
|
+
export type SolutionDefinition = {
|
|
6
|
+
id: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
}
|
|
9
|
+
/** 自定义 Solution:文本文件路径均相对于 Solution 根目录。 */
|
|
10
|
+
| {
|
|
11
|
+
files: TextFile[];
|
|
12
|
+
role?: string;
|
|
13
|
+
};
|
|
14
|
+
export interface SkillDefinition {
|
|
15
|
+
/** 会话内安装名,格式为 `组织/名称`。 */
|
|
16
|
+
name: string;
|
|
17
|
+
/** 必须包含根目录的 SKILL.md。 */
|
|
18
|
+
files: TextFile[];
|
|
19
|
+
}
|
|
20
|
+
export interface SessionConfig {
|
|
21
|
+
/** Server 模型目录中的 model ID。 */
|
|
22
|
+
model?: string;
|
|
23
|
+
enableThinking?: boolean;
|
|
24
|
+
memoryEnabled?: boolean;
|
|
25
|
+
compactionRatio?: number;
|
|
26
|
+
env?: Record<string, string>;
|
|
27
|
+
disableTools?: string[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 声明一个待创建的会话。传给 `client.sessions.create(...)` 后,SDK 会先准备
|
|
31
|
+
* Solution,再创建会话并安装 Skill;Promise resolve 时会话已经可以使用。
|
|
32
|
+
*/
|
|
33
|
+
export interface SessionDefinition {
|
|
34
|
+
intent?: string;
|
|
35
|
+
solution?: SolutionDefinition;
|
|
36
|
+
skills?: SkillDefinition[];
|
|
37
|
+
config?: SessionConfig;
|
|
38
|
+
}
|
|
39
|
+
export type SessionSetupStage = "solution" | "session" | "skill" | "connection";
|
|
40
|
+
/** 声明式会话准备失败;stage 和 sessionId 可直接用于界面提示或日志。 */
|
|
41
|
+
export declare class SessionSetupError extends Error {
|
|
42
|
+
readonly stage: SessionSetupStage;
|
|
43
|
+
readonly sessionId?: string | undefined;
|
|
44
|
+
readonly name = "SessionSetupError";
|
|
45
|
+
readonly cause?: unknown;
|
|
46
|
+
constructor(message: string, stage: SessionSetupStage, sessionId?: string | undefined, options?: {
|
|
47
|
+
cause?: unknown;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
@@ -5,7 +5,7 @@ export declare function applyToolResult(state: TurnState, toolCallId: string, re
|
|
|
5
5
|
loop_name: string;
|
|
6
6
|
description: string;
|
|
7
7
|
} | null): void;
|
|
8
|
-
export declare function appendToolResultDelta(state: TurnState, toolCallId: string, delta: string): void;
|
|
8
|
+
export declare function appendToolResultDelta(state: TurnState, toolCallId: string, delta: string, reset?: boolean): void;
|
|
9
9
|
export declare function appendTextBlock(state: TurnState, blockType: ContentBlock["type"], content: unknown): void;
|
|
10
10
|
export declare function appendToolCallArguments(state: TurnState, toolCallId: string, delta: string): void;
|
|
11
11
|
export declare function buildSystemNotificationTurn(sequence: number, turnId: string, loopId: string, notificationType: string, status: string, title: string, detail: string | null, metadata: Record<string, unknown>): TurnProjection;
|
package/dist/types/rest.d.ts
CHANGED
|
@@ -63,9 +63,7 @@ export interface paths {
|
|
|
63
63
|
};
|
|
64
64
|
/**
|
|
65
65
|
* Get Version
|
|
66
|
-
* @description SDK
|
|
67
|
-
*
|
|
68
|
-
* SDK 用 `version` 判断该 Server 是否支持新协议,用 `min_sdk` 判断自身是否需要升级。
|
|
66
|
+
* @description 返回 Git Tag 注入的镜像版本与 1.1.1 SDK 断点(无需鉴权)。
|
|
69
67
|
*/
|
|
70
68
|
get: operations["get_version_api_version_get"];
|
|
71
69
|
put?: never;
|
|
@@ -1690,7 +1688,7 @@ export interface paths {
|
|
|
1690
1688
|
put?: never;
|
|
1691
1689
|
/**
|
|
1692
1690
|
* Upload Solution Asset
|
|
1693
|
-
* @description Upload
|
|
1691
|
+
* @description Upload declarative UTF-8 solution files as a temporary session asset.
|
|
1694
1692
|
*/
|
|
1695
1693
|
post: operations["upload_solution_asset_api_session_assets_solutions_post"];
|
|
1696
1694
|
delete?: never;
|
|
@@ -1699,6 +1697,26 @@ export interface paths {
|
|
|
1699
1697
|
patch?: never;
|
|
1700
1698
|
trace?: never;
|
|
1701
1699
|
};
|
|
1700
|
+
"/api/session-assets/solutions/{asset_id}": {
|
|
1701
|
+
parameters: {
|
|
1702
|
+
query?: never;
|
|
1703
|
+
header?: never;
|
|
1704
|
+
path?: never;
|
|
1705
|
+
cookie?: never;
|
|
1706
|
+
};
|
|
1707
|
+
get?: never;
|
|
1708
|
+
put?: never;
|
|
1709
|
+
post?: never;
|
|
1710
|
+
/**
|
|
1711
|
+
* Delete Solution Asset
|
|
1712
|
+
* @description Release a temporary Solution asset owned by the current user.
|
|
1713
|
+
*/
|
|
1714
|
+
delete: operations["delete_solution_asset_api_session_assets_solutions__asset_id__delete"];
|
|
1715
|
+
options?: never;
|
|
1716
|
+
head?: never;
|
|
1717
|
+
patch?: never;
|
|
1718
|
+
trace?: never;
|
|
1719
|
+
};
|
|
1702
1720
|
"/api/sessions/{session_id}/browser/health": {
|
|
1703
1721
|
parameters: {
|
|
1704
1722
|
query?: never;
|
|
@@ -2983,6 +3001,106 @@ export interface paths {
|
|
|
2983
3001
|
patch?: never;
|
|
2984
3002
|
trace?: never;
|
|
2985
3003
|
};
|
|
3004
|
+
"/api/deploy-to-os": {
|
|
3005
|
+
parameters: {
|
|
3006
|
+
query?: never;
|
|
3007
|
+
header?: never;
|
|
3008
|
+
path?: never;
|
|
3009
|
+
cookie?: never;
|
|
3010
|
+
};
|
|
3011
|
+
get?: never;
|
|
3012
|
+
put?: never;
|
|
3013
|
+
/** Deploy To Os */
|
|
3014
|
+
post: operations["deploy_to_os_api_deploy_to_os_post"];
|
|
3015
|
+
delete?: never;
|
|
3016
|
+
options?: never;
|
|
3017
|
+
head?: never;
|
|
3018
|
+
patch?: never;
|
|
3019
|
+
trace?: never;
|
|
3020
|
+
};
|
|
3021
|
+
"/api/deploy-to-os/allocate-port": {
|
|
3022
|
+
parameters: {
|
|
3023
|
+
query?: never;
|
|
3024
|
+
header?: never;
|
|
3025
|
+
path?: never;
|
|
3026
|
+
cookie?: never;
|
|
3027
|
+
};
|
|
3028
|
+
/**
|
|
3029
|
+
* Allocate Deploy Port
|
|
3030
|
+
* @description 在 [start, end] 里挑一个当前真的能 bind 的宿主端口,给 deploy skill 生成
|
|
3031
|
+
* docker-compose.yaml 之前用——不用再靠 agent 自己瞎猜端口号、撞了再改。
|
|
3032
|
+
*
|
|
3033
|
+
* 这里跟老版 ``blade deploy`` CLI(``DeployManager``)复用同一份探测逻辑
|
|
3034
|
+
* ``_is_port_available``:真做 socket bind 测试,不是查数据库/内存记录。server
|
|
3035
|
+
* 进程(box-ba)本身是 host 网络模式,直接坐在宿主机网络栈上——跟 blade-os 实际
|
|
3036
|
+
* 发布容器端口时用的是同一台机器,这里测出来的结果才是准的(blade-os、
|
|
3037
|
+
* blade-agent、blade-hub 本来就部署在同一台机器上,不存在"测的是另一台机器"
|
|
3038
|
+
* 这个问题)。
|
|
3039
|
+
*
|
|
3040
|
+
* 路由必须写在 ``/{session_id}`` 之前——不然 "allocate-port" 会被当成
|
|
3041
|
+
* session_id 吃掉。
|
|
3042
|
+
*/
|
|
3043
|
+
get: operations["allocate_deploy_port_api_deploy_to_os_allocate_port_get"];
|
|
3044
|
+
put?: never;
|
|
3045
|
+
post?: never;
|
|
3046
|
+
delete?: never;
|
|
3047
|
+
options?: never;
|
|
3048
|
+
head?: never;
|
|
3049
|
+
patch?: never;
|
|
3050
|
+
trace?: never;
|
|
3051
|
+
};
|
|
3052
|
+
"/api/deploy-to-os/{session_id}": {
|
|
3053
|
+
parameters: {
|
|
3054
|
+
query?: never;
|
|
3055
|
+
header?: never;
|
|
3056
|
+
path?: never;
|
|
3057
|
+
cookie?: never;
|
|
3058
|
+
};
|
|
3059
|
+
/** Get Deploy To Os */
|
|
3060
|
+
get: operations["get_deploy_to_os_api_deploy_to_os__session_id__get"];
|
|
3061
|
+
put?: never;
|
|
3062
|
+
post?: never;
|
|
3063
|
+
/** Delete Deploy To Os */
|
|
3064
|
+
delete: operations["delete_deploy_to_os_api_deploy_to_os__session_id__delete"];
|
|
3065
|
+
options?: never;
|
|
3066
|
+
head?: never;
|
|
3067
|
+
patch?: never;
|
|
3068
|
+
trace?: never;
|
|
3069
|
+
};
|
|
3070
|
+
"/api/deploy-to-os/{session_id}/logs": {
|
|
3071
|
+
parameters: {
|
|
3072
|
+
query?: never;
|
|
3073
|
+
header?: never;
|
|
3074
|
+
path?: never;
|
|
3075
|
+
cookie?: never;
|
|
3076
|
+
};
|
|
3077
|
+
/** Get Deploy To Os Logs */
|
|
3078
|
+
get: operations["get_deploy_to_os_logs_api_deploy_to_os__session_id__logs_get"];
|
|
3079
|
+
put?: never;
|
|
3080
|
+
post?: never;
|
|
3081
|
+
delete?: never;
|
|
3082
|
+
options?: never;
|
|
3083
|
+
head?: never;
|
|
3084
|
+
patch?: never;
|
|
3085
|
+
trace?: never;
|
|
3086
|
+
};
|
|
3087
|
+
"/api/deploy-to-os/{session_id}/{action}": {
|
|
3088
|
+
parameters: {
|
|
3089
|
+
query?: never;
|
|
3090
|
+
header?: never;
|
|
3091
|
+
path?: never;
|
|
3092
|
+
cookie?: never;
|
|
3093
|
+
};
|
|
3094
|
+
get?: never;
|
|
3095
|
+
put?: never;
|
|
3096
|
+
/** Deploy To Os Action */
|
|
3097
|
+
post: operations["deploy_to_os_action_api_deploy_to_os__session_id___action__post"];
|
|
3098
|
+
delete?: never;
|
|
3099
|
+
options?: never;
|
|
3100
|
+
head?: never;
|
|
3101
|
+
patch?: never;
|
|
3102
|
+
trace?: never;
|
|
3103
|
+
};
|
|
2986
3104
|
"/api/prod_solution": {
|
|
2987
3105
|
parameters: {
|
|
2988
3106
|
query?: never;
|
|
@@ -5081,11 +5199,6 @@ export interface components {
|
|
|
5081
5199
|
/** File */
|
|
5082
5200
|
file: string;
|
|
5083
5201
|
};
|
|
5084
|
-
/** Body_upload_solution_asset_api_session_assets_solutions_post */
|
|
5085
|
-
Body_upload_solution_asset_api_session_assets_solutions_post: {
|
|
5086
|
-
/** File */
|
|
5087
|
-
file: string;
|
|
5088
|
-
};
|
|
5089
5202
|
/** BrowserCommand */
|
|
5090
5203
|
BrowserCommand: {
|
|
5091
5204
|
/** Session Id */
|
|
@@ -5427,6 +5540,24 @@ export interface components {
|
|
|
5427
5540
|
[key: string]: unknown;
|
|
5428
5541
|
} | null;
|
|
5429
5542
|
};
|
|
5543
|
+
/** DeleteSolutionResponse */
|
|
5544
|
+
DeleteSolutionResponse: {
|
|
5545
|
+
/** Deleted */
|
|
5546
|
+
deleted: boolean;
|
|
5547
|
+
};
|
|
5548
|
+
/** DeployToOSRequest */
|
|
5549
|
+
DeployToOSRequest: {
|
|
5550
|
+
/** Session Id */
|
|
5551
|
+
session_id: string;
|
|
5552
|
+
/** App Name */
|
|
5553
|
+
app_name: string;
|
|
5554
|
+
/** App Dir */
|
|
5555
|
+
app_dir?: string | null;
|
|
5556
|
+
/** Working Dir */
|
|
5557
|
+
working_dir?: string | null;
|
|
5558
|
+
/** Title */
|
|
5559
|
+
title?: string | null;
|
|
5560
|
+
};
|
|
5430
5561
|
/** EnsureFromRegistryRequest */
|
|
5431
5562
|
EnsureFromRegistryRequest: {
|
|
5432
5563
|
/** Registry Id */
|
|
@@ -6694,6 +6825,11 @@ export interface components {
|
|
|
6694
6825
|
/** Cleared Memo */
|
|
6695
6826
|
cleared_memo: number;
|
|
6696
6827
|
};
|
|
6828
|
+
/** UploadSolutionRequest */
|
|
6829
|
+
UploadSolutionRequest: {
|
|
6830
|
+
/** Files */
|
|
6831
|
+
files: components["schemas"]["SessionSkillFile"][];
|
|
6832
|
+
};
|
|
6697
6833
|
/** UploadSolutionResponse */
|
|
6698
6834
|
UploadSolutionResponse: {
|
|
6699
6835
|
/** Asset Id */
|
|
@@ -9904,7 +10040,7 @@ export interface operations {
|
|
|
9904
10040
|
};
|
|
9905
10041
|
requestBody: {
|
|
9906
10042
|
content: {
|
|
9907
|
-
"
|
|
10043
|
+
"application/json": components["schemas"]["UploadSolutionRequest"];
|
|
9908
10044
|
};
|
|
9909
10045
|
};
|
|
9910
10046
|
responses: {
|
|
@@ -9928,6 +10064,37 @@ export interface operations {
|
|
|
9928
10064
|
};
|
|
9929
10065
|
};
|
|
9930
10066
|
};
|
|
10067
|
+
delete_solution_asset_api_session_assets_solutions__asset_id__delete: {
|
|
10068
|
+
parameters: {
|
|
10069
|
+
query?: never;
|
|
10070
|
+
header?: never;
|
|
10071
|
+
path: {
|
|
10072
|
+
asset_id: string;
|
|
10073
|
+
};
|
|
10074
|
+
cookie?: never;
|
|
10075
|
+
};
|
|
10076
|
+
requestBody?: never;
|
|
10077
|
+
responses: {
|
|
10078
|
+
/** @description Successful Response */
|
|
10079
|
+
200: {
|
|
10080
|
+
headers: {
|
|
10081
|
+
[name: string]: unknown;
|
|
10082
|
+
};
|
|
10083
|
+
content: {
|
|
10084
|
+
"application/json": components["schemas"]["DeleteSolutionResponse"];
|
|
10085
|
+
};
|
|
10086
|
+
};
|
|
10087
|
+
/** @description Validation Error */
|
|
10088
|
+
422: {
|
|
10089
|
+
headers: {
|
|
10090
|
+
[name: string]: unknown;
|
|
10091
|
+
};
|
|
10092
|
+
content: {
|
|
10093
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
10094
|
+
};
|
|
10095
|
+
};
|
|
10096
|
+
};
|
|
10097
|
+
};
|
|
9931
10098
|
browser_health_api_sessions__session_id__browser_health_get: {
|
|
9932
10099
|
parameters: {
|
|
9933
10100
|
query?: never;
|
|
@@ -12882,6 +13049,207 @@ export interface operations {
|
|
|
12882
13049
|
};
|
|
12883
13050
|
};
|
|
12884
13051
|
};
|
|
13052
|
+
deploy_to_os_api_deploy_to_os_post: {
|
|
13053
|
+
parameters: {
|
|
13054
|
+
query?: never;
|
|
13055
|
+
header?: never;
|
|
13056
|
+
path?: never;
|
|
13057
|
+
cookie?: never;
|
|
13058
|
+
};
|
|
13059
|
+
requestBody: {
|
|
13060
|
+
content: {
|
|
13061
|
+
"application/json": components["schemas"]["DeployToOSRequest"];
|
|
13062
|
+
};
|
|
13063
|
+
};
|
|
13064
|
+
responses: {
|
|
13065
|
+
/** @description Successful Response */
|
|
13066
|
+
200: {
|
|
13067
|
+
headers: {
|
|
13068
|
+
[name: string]: unknown;
|
|
13069
|
+
};
|
|
13070
|
+
content: {
|
|
13071
|
+
"application/json": unknown;
|
|
13072
|
+
};
|
|
13073
|
+
};
|
|
13074
|
+
/** @description Validation Error */
|
|
13075
|
+
422: {
|
|
13076
|
+
headers: {
|
|
13077
|
+
[name: string]: unknown;
|
|
13078
|
+
};
|
|
13079
|
+
content: {
|
|
13080
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
13081
|
+
};
|
|
13082
|
+
};
|
|
13083
|
+
};
|
|
13084
|
+
};
|
|
13085
|
+
allocate_deploy_port_api_deploy_to_os_allocate_port_get: {
|
|
13086
|
+
parameters: {
|
|
13087
|
+
query?: {
|
|
13088
|
+
start?: number;
|
|
13089
|
+
end?: number;
|
|
13090
|
+
};
|
|
13091
|
+
header?: never;
|
|
13092
|
+
path?: never;
|
|
13093
|
+
cookie?: never;
|
|
13094
|
+
};
|
|
13095
|
+
requestBody?: never;
|
|
13096
|
+
responses: {
|
|
13097
|
+
/** @description Successful Response */
|
|
13098
|
+
200: {
|
|
13099
|
+
headers: {
|
|
13100
|
+
[name: string]: unknown;
|
|
13101
|
+
};
|
|
13102
|
+
content: {
|
|
13103
|
+
"application/json": {
|
|
13104
|
+
[key: string]: number;
|
|
13105
|
+
};
|
|
13106
|
+
};
|
|
13107
|
+
};
|
|
13108
|
+
/** @description Validation Error */
|
|
13109
|
+
422: {
|
|
13110
|
+
headers: {
|
|
13111
|
+
[name: string]: unknown;
|
|
13112
|
+
};
|
|
13113
|
+
content: {
|
|
13114
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
13115
|
+
};
|
|
13116
|
+
};
|
|
13117
|
+
};
|
|
13118
|
+
};
|
|
13119
|
+
get_deploy_to_os_api_deploy_to_os__session_id__get: {
|
|
13120
|
+
parameters: {
|
|
13121
|
+
query: {
|
|
13122
|
+
app_name: string;
|
|
13123
|
+
};
|
|
13124
|
+
header?: never;
|
|
13125
|
+
path: {
|
|
13126
|
+
session_id: string;
|
|
13127
|
+
};
|
|
13128
|
+
cookie?: never;
|
|
13129
|
+
};
|
|
13130
|
+
requestBody?: never;
|
|
13131
|
+
responses: {
|
|
13132
|
+
/** @description Successful Response */
|
|
13133
|
+
200: {
|
|
13134
|
+
headers: {
|
|
13135
|
+
[name: string]: unknown;
|
|
13136
|
+
};
|
|
13137
|
+
content: {
|
|
13138
|
+
"application/json": unknown;
|
|
13139
|
+
};
|
|
13140
|
+
};
|
|
13141
|
+
/** @description Validation Error */
|
|
13142
|
+
422: {
|
|
13143
|
+
headers: {
|
|
13144
|
+
[name: string]: unknown;
|
|
13145
|
+
};
|
|
13146
|
+
content: {
|
|
13147
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
13148
|
+
};
|
|
13149
|
+
};
|
|
13150
|
+
};
|
|
13151
|
+
};
|
|
13152
|
+
delete_deploy_to_os_api_deploy_to_os__session_id__delete: {
|
|
13153
|
+
parameters: {
|
|
13154
|
+
query: {
|
|
13155
|
+
app_name: string;
|
|
13156
|
+
};
|
|
13157
|
+
header?: never;
|
|
13158
|
+
path: {
|
|
13159
|
+
session_id: string;
|
|
13160
|
+
};
|
|
13161
|
+
cookie?: never;
|
|
13162
|
+
};
|
|
13163
|
+
requestBody?: never;
|
|
13164
|
+
responses: {
|
|
13165
|
+
/** @description Successful Response */
|
|
13166
|
+
200: {
|
|
13167
|
+
headers: {
|
|
13168
|
+
[name: string]: unknown;
|
|
13169
|
+
};
|
|
13170
|
+
content: {
|
|
13171
|
+
"application/json": unknown;
|
|
13172
|
+
};
|
|
13173
|
+
};
|
|
13174
|
+
/** @description Validation Error */
|
|
13175
|
+
422: {
|
|
13176
|
+
headers: {
|
|
13177
|
+
[name: string]: unknown;
|
|
13178
|
+
};
|
|
13179
|
+
content: {
|
|
13180
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
13181
|
+
};
|
|
13182
|
+
};
|
|
13183
|
+
};
|
|
13184
|
+
};
|
|
13185
|
+
get_deploy_to_os_logs_api_deploy_to_os__session_id__logs_get: {
|
|
13186
|
+
parameters: {
|
|
13187
|
+
query: {
|
|
13188
|
+
app_name: string;
|
|
13189
|
+
tail?: number;
|
|
13190
|
+
};
|
|
13191
|
+
header?: never;
|
|
13192
|
+
path: {
|
|
13193
|
+
session_id: string;
|
|
13194
|
+
};
|
|
13195
|
+
cookie?: never;
|
|
13196
|
+
};
|
|
13197
|
+
requestBody?: never;
|
|
13198
|
+
responses: {
|
|
13199
|
+
/** @description Successful Response */
|
|
13200
|
+
200: {
|
|
13201
|
+
headers: {
|
|
13202
|
+
[name: string]: unknown;
|
|
13203
|
+
};
|
|
13204
|
+
content: {
|
|
13205
|
+
"application/json": unknown;
|
|
13206
|
+
};
|
|
13207
|
+
};
|
|
13208
|
+
/** @description Validation Error */
|
|
13209
|
+
422: {
|
|
13210
|
+
headers: {
|
|
13211
|
+
[name: string]: unknown;
|
|
13212
|
+
};
|
|
13213
|
+
content: {
|
|
13214
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
13215
|
+
};
|
|
13216
|
+
};
|
|
13217
|
+
};
|
|
13218
|
+
};
|
|
13219
|
+
deploy_to_os_action_api_deploy_to_os__session_id___action__post: {
|
|
13220
|
+
parameters: {
|
|
13221
|
+
query: {
|
|
13222
|
+
app_name: string;
|
|
13223
|
+
};
|
|
13224
|
+
header?: never;
|
|
13225
|
+
path: {
|
|
13226
|
+
session_id: string;
|
|
13227
|
+
action: string;
|
|
13228
|
+
};
|
|
13229
|
+
cookie?: never;
|
|
13230
|
+
};
|
|
13231
|
+
requestBody?: never;
|
|
13232
|
+
responses: {
|
|
13233
|
+
/** @description Successful Response */
|
|
13234
|
+
200: {
|
|
13235
|
+
headers: {
|
|
13236
|
+
[name: string]: unknown;
|
|
13237
|
+
};
|
|
13238
|
+
content: {
|
|
13239
|
+
"application/json": unknown;
|
|
13240
|
+
};
|
|
13241
|
+
};
|
|
13242
|
+
/** @description Validation Error */
|
|
13243
|
+
422: {
|
|
13244
|
+
headers: {
|
|
13245
|
+
[name: string]: unknown;
|
|
13246
|
+
};
|
|
13247
|
+
content: {
|
|
13248
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
13249
|
+
};
|
|
13250
|
+
};
|
|
13251
|
+
};
|
|
13252
|
+
};
|
|
12885
13253
|
list_prod_solutions_api_prod_solution_get: {
|
|
12886
13254
|
parameters: {
|
|
12887
13255
|
query?: never;
|
package/dist/version.d.ts
CHANGED
|
@@ -1,45 +1,7 @@
|
|
|
1
|
+
/** Socket.IO 握手使用的 SDK 身份。Server 只校验 1.1.1 这次破坏性变更。 */
|
|
1
2
|
/**
|
|
2
|
-
* SDK
|
|
3
|
-
*
|
|
4
|
-
* 本次 SDK 拆分是一次性破坏性升级:旧 agent-kit 与新 Server、新 SDK 与旧 Server
|
|
5
|
-
* 都不能工作。握手的目的不是兼容,而是把「新旧组合失配」从难以理解的运行时异常
|
|
6
|
-
* 变成一句明确的升级指引。
|
|
7
|
-
*
|
|
8
|
-
* 方向一(本文件):SDK 在首次连接前查询 Server 版本,不匹配就拒绝连接。
|
|
9
|
-
* 方向二(Server 侧):Server 校验请求头 X-Blade-SDK,旧客户端收到结构化错误。
|
|
3
|
+
* 本 SDK 的 npm 包版本,随 Socket.IO 握手一并声明。
|
|
4
|
+
* Release 构建由 Git Tag 注入;本地开发回退到当前源码版本。
|
|
10
5
|
*/
|
|
11
|
-
/** 本 SDK 的名称与版本,随请求头与 Socket.IO 握手一并声明。 */
|
|
12
6
|
export declare const SDK_NAME = "agent-client";
|
|
13
|
-
export declare const SDK_VERSION
|
|
14
|
-
/** REST 请求与 Socket 握手中声明 SDK 身份的标头名。 */
|
|
15
|
-
export declare const SDK_HEADER = "X-Blade-SDK";
|
|
16
|
-
/** 新协议起始的 Server 版本;低于此版本的正式版 Server 只能配 agent-kit 1.1.0。 */
|
|
17
|
-
export declare const MIN_SERVER_VERSION = "1.1.1";
|
|
18
|
-
export interface ServerVersionInfo {
|
|
19
|
-
/** Server 自身版本号,如 "1.1.1"。 */
|
|
20
|
-
version: string;
|
|
21
|
-
/**
|
|
22
|
-
* Server 要求的最低 SDK 版本。未来再出现协议不兼容时,Server 抬高本字段即可,
|
|
23
|
-
* SDK 侧无需改判断逻辑——这是避免下一次破坏性升级再痛一遍的关键。
|
|
24
|
-
*/
|
|
25
|
-
min_sdk?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare class VersionMismatchError extends Error {
|
|
28
|
-
readonly serverVersion: string | null;
|
|
29
|
-
readonly sdkVersion: string;
|
|
30
|
-
readonly hint: string;
|
|
31
|
-
constructor(options: {
|
|
32
|
-
serverVersion: string | null;
|
|
33
|
-
hint: string;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
/** 预发布/开发版(如 1.1.1-dev.3、0.0.0+local)不参与拦截,避免卡住开发环境。 */
|
|
37
|
-
export declare function isPrerelease(version: string): boolean;
|
|
38
|
-
/** a < b 返回负数,相等返回 0,a > b 返回正数。无法解析时返回 0。 */
|
|
39
|
-
export declare function compareVersions(a: string, b: string): number;
|
|
40
|
-
/**
|
|
41
|
-
* 校验 Server 版本信息。不匹配抛 VersionMismatchError,匹配则正常返回。
|
|
42
|
-
*
|
|
43
|
-
* @param info Server /api/version 的响应;null 表示该接口不存在或不可达(旧 Server)。
|
|
44
|
-
*/
|
|
45
|
-
export declare function assertVersionCompatible(info: ServerVersionInfo | null): void;
|
|
7
|
+
export declare const SDK_VERSION: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2025 ArkType
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @ark/schema
|
|
2
|
+
|
|
3
|
+
Underlying schema language parsed from arktype syntax.
|
|
4
|
+
|
|
5
|
+
The parts of ArkType's type system that exist in TS (i.e. not runtime-only constraints like bounds, divisors, custom predicates, morphs etc.) are structured like this:
|
|
6
|
+
|
|
7
|
+
- Union: a set of intersections
|
|
8
|
+
- Intersection: a set of a basis and constraints
|
|
9
|
+
- Basis: this is the base type to which refinements like props are applied. It is one of three things, getting narrower as you move down the list:
|
|
10
|
+
- Domain: `"string" | "number" | "bigint" | "object" | "symbol"` parallels built-in TS keywords for non-enumerable value sets
|
|
11
|
+
- Proto: Must be an `instanceof` some class (implies domain `"object"`)
|
|
12
|
+
- Unit: Must `===` some value (can be intersected with any other constraint and reduced to itself or a disjoint)
|
|
13
|
+
- Constraint: an individual condition that must be satisfied:
|
|
14
|
+
- Required: must have a specified literal string or symbol key and a value that conforms to a specified union or intersection
|
|
15
|
+
- Optional: Required conditions met or the specified key is not present
|
|
16
|
+
- Index: all keys that satisfy an index type must have values satisfying the corresponding value type
|
|
17
|
+
|
|
18
|
+
In this system, `L` extends/subtypes/is assignable to `R` if and only if the intersection `L & R` is equal to `L`.
|