@capyclaw/publisher 0.1.3 → 0.1.4
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/package.json +3 -11
- package/server/archive.mjs +69 -35
- package/server/drop.mjs +9 -3
- package/server/impl.mjs +133 -97
- package/server/tools.mjs +1 -1
- package/node_modules/@capyclaw/foundation/README.md +0 -51
- package/node_modules/@capyclaw/foundation/abi/bridge.mjs +0 -86
- package/node_modules/@capyclaw/foundation/abi/errors.mjs +0 -63
- package/node_modules/@capyclaw/foundation/abi/index.mjs +0 -35
- package/node_modules/@capyclaw/foundation/abi/kinds.mjs +0 -271
- package/node_modules/@capyclaw/foundation/abi/loader.mjs +0 -345
- package/node_modules/@capyclaw/foundation/abi/schema.mjs +0 -98
- package/node_modules/@capyclaw/foundation/abi/spec.mjs +0 -255
- package/node_modules/@capyclaw/foundation/abi/validate.mjs +0 -24
- package/node_modules/@capyclaw/foundation/abi/version.mjs +0 -82
- package/node_modules/@capyclaw/foundation/cordis.patch.yml +0 -5
- package/node_modules/@capyclaw/foundation/kit/index.mjs +0 -6
- package/node_modules/@capyclaw/foundation/lib/adapters/client-panel.mjs +0 -98
- package/node_modules/@capyclaw/foundation/lib/adapters/host-event.mjs +0 -35
- package/node_modules/@capyclaw/foundation/lib/adapters/http-router.mjs +0 -69
- package/node_modules/@capyclaw/foundation/lib/adapters/lifecycle-hook.mjs +0 -55
- package/node_modules/@capyclaw/foundation/lib/adapters/own-server.mjs +0 -113
- package/node_modules/@capyclaw/foundation/lib/adapters/raw.mjs +0 -68
- package/node_modules/@capyclaw/foundation/lib/adapters/runtime-driver.mjs +0 -113
- package/node_modules/@capyclaw/foundation/lib/adapters/service-provider.mjs +0 -77
- package/node_modules/@capyclaw/foundation/lib/adapters/skill-provider.mjs +0 -56
- package/node_modules/@capyclaw/foundation/lib/adapters/tool-provider.mjs +0 -50
- package/node_modules/@capyclaw/foundation/lib/adapters/ui-panel.mjs +0 -64
- package/node_modules/@capyclaw/foundation/lib/ctx-service.mjs +0 -42
- package/node_modules/@capyclaw/foundation/lib/host/caps.mjs +0 -34
- package/node_modules/@capyclaw/foundation/lib/host/contract.mjs +0 -85
- package/node_modules/@capyclaw/foundation/lib/host/dsh.mjs +0 -50
- package/node_modules/@capyclaw/foundation/lib/host/memory.mjs +0 -160
- package/node_modules/@capyclaw/foundation/lib/host.mjs +0 -23
- package/node_modules/@capyclaw/foundation/lib/kernel.mjs +0 -185
- package/node_modules/@capyclaw/foundation/lib/skill/scan.mjs +0 -87
- package/node_modules/@capyclaw/foundation/lib/subsystems/events.mjs +0 -60
- package/node_modules/@capyclaw/foundation/lib/subsystems/log.mjs +0 -51
- package/node_modules/@capyclaw/foundation/lib/subsystems/net.mjs +0 -188
- package/node_modules/@capyclaw/foundation/package.json +0 -53
- package/node_modules/@capyclaw/foundation/runtime/index.mjs +0 -20
- package/node_modules/@capyclaw/plugin-kit/INTEGRATION.md +0 -100
- package/node_modules/@capyclaw/plugin-kit/README.md +0 -70
- package/node_modules/@capyclaw/plugin-kit/bin/sync.mjs +0 -103
- package/node_modules/@capyclaw/plugin-kit/package.json +0 -69
- package/node_modules/@capyclaw/plugin-kit/src/cli.mjs +0 -56
- package/node_modules/@capyclaw/plugin-kit/src/config.mjs +0 -142
- package/node_modules/@capyclaw/plugin-kit/src/editor/heartbeat-worker.js +0 -129
- package/node_modules/@capyclaw/plugin-kit/src/editor/lease.mjs +0 -139
- package/node_modules/@capyclaw/plugin-kit/src/editor/shadow.mjs +0 -219
- package/node_modules/@capyclaw/plugin-kit/src/editor/transport.js +0 -13
- package/node_modules/@capyclaw/plugin-kit/src/index.mjs +0 -13
- package/node_modules/@capyclaw/plugin-kit/src/pack.mjs +0 -230
- package/node_modules/@capyclaw/plugin-kit/src/runtime/context.mjs +0 -128
- package/node_modules/@capyclaw/plugin-kit/src/self-contained.mjs +0 -307
- package/node_modules/@capyclaw/plugin-kit/src/service/api.mjs +0 -45
- package/node_modules/@capyclaw/plugin-kit/src/service/http.mjs +0 -113
- package/node_modules/@capyclaw/plugin-kit/src/service/mcp-http.mjs +0 -150
- package/node_modules/@capyclaw/plugin-kit/src/service/server.mjs +0 -131
- package/node_modules/@capyclaw/plugin-kit/src/skills/provider.mjs +0 -82
- package/node_modules/@capyclaw/plugin-kit/src/store/blob-store.mjs +0 -109
- package/node_modules/@capyclaw/plugin-kit/src/store/content-store.mjs +0 -17
- package/node_modules/@capyclaw/plugin-kit/src/store/journal-store.mjs +0 -89
- package/node_modules/@capyclaw/plugin-kit/src/tools/result.mjs +0 -57
- package/node_modules/@capyclaw/plugin-kit/src/tools/validate.mjs +0 -150
- package/node_modules/@capyclaw/plugin-kit/src/tuning.mjs +0 -82
- package/node_modules/@capyclaw/plugin-kit/src/util/fs-lock.mjs +0 -132
- package/node_modules/@capyclaw/plugin-kit/src/util/http.mjs +0 -130
- package/node_modules/@capyclaw/plugin-kit/src/workspace/manager.mjs +0 -656
- package/node_modules/@capyclaw/plugin-kit/src/zip.mjs +0 -181
- package/node_modules/@capyclaw/plugin-validator/bin/cli.mjs +0 -49
- package/node_modules/@capyclaw/plugin-validator/lib/index.mjs +0 -303
- package/node_modules/@capyclaw/plugin-validator/package.json +0 -28
- package/node_modules/@capyclaw/tool-host/README.md +0 -56
- package/node_modules/@capyclaw/tool-host/cordis.patch.yml +0 -4
- package/node_modules/@capyclaw/tool-host/dsh-suite.json +0 -30
- package/node_modules/@capyclaw/tool-host/lib/host.mjs +0 -16
- package/node_modules/@capyclaw/tool-host/package.json +0 -59
- package/node_modules/@capyclaw/tool-host/src/descriptors.mjs +0 -166
- package/node_modules/@capyclaw/tool-host/src/index.mjs +0 -416
- package/node_modules/semver/LICENSE +0 -15
- package/node_modules/semver/README.md +0 -680
- package/node_modules/semver/bin/semver.js +0 -195
- package/node_modules/semver/classes/comparator.js +0 -143
- package/node_modules/semver/classes/index.js +0 -7
- package/node_modules/semver/classes/range.js +0 -577
- package/node_modules/semver/classes/semver.js +0 -350
- package/node_modules/semver/functions/clean.js +0 -8
- package/node_modules/semver/functions/cmp.js +0 -54
- package/node_modules/semver/functions/coerce.js +0 -62
- package/node_modules/semver/functions/compare-build.js +0 -9
- package/node_modules/semver/functions/compare-loose.js +0 -5
- package/node_modules/semver/functions/compare.js +0 -7
- package/node_modules/semver/functions/diff.js +0 -60
- package/node_modules/semver/functions/eq.js +0 -5
- package/node_modules/semver/functions/gt.js +0 -5
- package/node_modules/semver/functions/gte.js +0 -5
- package/node_modules/semver/functions/inc.js +0 -21
- package/node_modules/semver/functions/lt.js +0 -5
- package/node_modules/semver/functions/lte.js +0 -5
- package/node_modules/semver/functions/major.js +0 -5
- package/node_modules/semver/functions/minor.js +0 -5
- package/node_modules/semver/functions/neq.js +0 -5
- package/node_modules/semver/functions/parse.js +0 -18
- package/node_modules/semver/functions/patch.js +0 -5
- package/node_modules/semver/functions/prerelease.js +0 -8
- package/node_modules/semver/functions/rcompare.js +0 -5
- package/node_modules/semver/functions/rsort.js +0 -5
- package/node_modules/semver/functions/satisfies.js +0 -12
- package/node_modules/semver/functions/sort.js +0 -5
- package/node_modules/semver/functions/truncate.js +0 -48
- package/node_modules/semver/functions/valid.js +0 -8
- package/node_modules/semver/index.js +0 -93
- package/node_modules/semver/internal/constants.js +0 -67
- package/node_modules/semver/internal/debug.js +0 -11
- package/node_modules/semver/internal/identifiers.js +0 -29
- package/node_modules/semver/internal/lrucache.js +0 -42
- package/node_modules/semver/internal/parse-options.js +0 -17
- package/node_modules/semver/internal/re.js +0 -223
- package/node_modules/semver/internal/trim-comparator-whitespace.js +0 -438
- package/node_modules/semver/package.json +0 -78
- package/node_modules/semver/preload.js +0 -4
- package/node_modules/semver/range.bnf +0 -17
- package/node_modules/semver/ranges/gtr.js +0 -6
- package/node_modules/semver/ranges/intersects.js +0 -9
- package/node_modules/semver/ranges/ltr.js +0 -6
- package/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/node_modules/semver/ranges/min-version.js +0 -63
- package/node_modules/semver/ranges/outside.js +0 -82
- package/node_modules/semver/ranges/simplify.js +0 -49
- package/node_modules/semver/ranges/subset.js +0 -249
- package/node_modules/semver/ranges/to-comparators.js +0 -10
- package/node_modules/semver/ranges/valid.js +0 -13
- package/node_modules/yaml/LICENSE +0 -13
- package/node_modules/yaml/README.md +0 -172
- package/node_modules/yaml/bin.mjs +0 -11
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +0 -88
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +0 -43
- package/node_modules/yaml/browser/dist/compose/compose-node.js +0 -109
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +0 -86
- package/node_modules/yaml/browser/dist/compose/composer.js +0 -219
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +0 -115
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +0 -198
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +0 -49
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +0 -37
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +0 -207
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +0 -226
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +0 -146
- package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +0 -34
- package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +0 -26
- package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +0 -15
- package/node_modules/yaml/browser/dist/compose/util-map-includes.js +0 -13
- package/node_modules/yaml/browser/dist/doc/Document.js +0 -335
- package/node_modules/yaml/browser/dist/doc/anchors.js +0 -71
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +0 -55
- package/node_modules/yaml/browser/dist/doc/createNode.js +0 -88
- package/node_modules/yaml/browser/dist/doc/directives.js +0 -176
- package/node_modules/yaml/browser/dist/errors.js +0 -57
- package/node_modules/yaml/browser/dist/index.js +0 -17
- package/node_modules/yaml/browser/dist/log.js +0 -11
- package/node_modules/yaml/browser/dist/nodes/Alias.js +0 -118
- package/node_modules/yaml/browser/dist/nodes/Collection.js +0 -147
- package/node_modules/yaml/browser/dist/nodes/Node.js +0 -38
- package/node_modules/yaml/browser/dist/nodes/Pair.js +0 -36
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +0 -24
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +0 -144
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +0 -113
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +0 -63
- package/node_modules/yaml/browser/dist/nodes/identity.js +0 -36
- package/node_modules/yaml/browser/dist/nodes/toJS.js +0 -37
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +0 -214
- package/node_modules/yaml/browser/dist/parse/cst-stringify.js +0 -61
- package/node_modules/yaml/browser/dist/parse/cst-visit.js +0 -97
- package/node_modules/yaml/browser/dist/parse/cst.js +0 -98
- package/node_modules/yaml/browser/dist/parse/lexer.js +0 -721
- package/node_modules/yaml/browser/dist/parse/line-counter.js +0 -39
- package/node_modules/yaml/browser/dist/parse/parser.js +0 -975
- package/node_modules/yaml/browser/dist/public-api.js +0 -102
- package/node_modules/yaml/browser/dist/schema/Schema.js +0 -37
- package/node_modules/yaml/browser/dist/schema/common/map.js +0 -17
- package/node_modules/yaml/browser/dist/schema/common/null.js +0 -15
- package/node_modules/yaml/browser/dist/schema/common/seq.js +0 -17
- package/node_modules/yaml/browser/dist/schema/common/string.js +0 -14
- package/node_modules/yaml/browser/dist/schema/core/bool.js +0 -19
- package/node_modules/yaml/browser/dist/schema/core/float.js +0 -43
- package/node_modules/yaml/browser/dist/schema/core/int.js +0 -38
- package/node_modules/yaml/browser/dist/schema/core/schema.js +0 -23
- package/node_modules/yaml/browser/dist/schema/json/schema.js +0 -62
- package/node_modules/yaml/browser/dist/schema/tags.js +0 -96
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +0 -58
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +0 -26
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +0 -46
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +0 -71
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +0 -67
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +0 -74
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +0 -78
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +0 -39
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +0 -93
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +0 -101
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +0 -146
- package/node_modules/yaml/browser/dist/stringify/stringify.js +0 -129
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +0 -153
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +0 -20
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +0 -85
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +0 -25
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +0 -150
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +0 -336
- package/node_modules/yaml/browser/dist/util.js +0 -11
- package/node_modules/yaml/browser/dist/visit.js +0 -233
- package/node_modules/yaml/browser/index.js +0 -5
- package/node_modules/yaml/browser/package.json +0 -3
- package/node_modules/yaml/dist/cli.d.ts +0 -8
- package/node_modules/yaml/dist/cli.mjs +0 -201
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +0 -11
- package/node_modules/yaml/dist/compose/compose-collection.js +0 -90
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +0 -7
- package/node_modules/yaml/dist/compose/compose-doc.js +0 -45
- package/node_modules/yaml/dist/compose/compose-node.d.ts +0 -29
- package/node_modules/yaml/dist/compose/compose-node.js +0 -112
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +0 -5
- package/node_modules/yaml/dist/compose/compose-scalar.js +0 -88
- package/node_modules/yaml/dist/compose/composer.d.ts +0 -63
- package/node_modules/yaml/dist/compose/composer.js +0 -224
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +0 -6
- package/node_modules/yaml/dist/compose/resolve-block-map.js +0 -117
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +0 -11
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +0 -200
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +0 -6
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +0 -51
- package/node_modules/yaml/dist/compose/resolve-end.d.ts +0 -6
- package/node_modules/yaml/dist/compose/resolve-end.js +0 -39
- package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +0 -7
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +0 -209
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +0 -10
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +0 -228
- package/node_modules/yaml/dist/compose/resolve-props.d.ts +0 -23
- package/node_modules/yaml/dist/compose/resolve-props.js +0 -148
- package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +0 -2
- package/node_modules/yaml/dist/compose/util-contains-newline.js +0 -36
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +0 -2
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +0 -28
- package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +0 -3
- package/node_modules/yaml/dist/compose/util-flow-indent-check.js +0 -17
- package/node_modules/yaml/dist/compose/util-map-includes.d.ts +0 -4
- package/node_modules/yaml/dist/compose/util-map-includes.js +0 -15
- package/node_modules/yaml/dist/doc/Document.d.ts +0 -141
- package/node_modules/yaml/dist/doc/Document.js +0 -337
- package/node_modules/yaml/dist/doc/anchors.d.ts +0 -24
- package/node_modules/yaml/dist/doc/anchors.js +0 -76
- package/node_modules/yaml/dist/doc/applyReviver.d.ts +0 -9
- package/node_modules/yaml/dist/doc/applyReviver.js +0 -57
- package/node_modules/yaml/dist/doc/createNode.d.ts +0 -17
- package/node_modules/yaml/dist/doc/createNode.js +0 -90
- package/node_modules/yaml/dist/doc/directives.d.ts +0 -49
- package/node_modules/yaml/dist/doc/directives.js +0 -178
- package/node_modules/yaml/dist/errors.d.ts +0 -21
- package/node_modules/yaml/dist/errors.js +0 -62
- package/node_modules/yaml/dist/index.d.ts +0 -25
- package/node_modules/yaml/dist/index.js +0 -50
- package/node_modules/yaml/dist/log.d.ts +0 -3
- package/node_modules/yaml/dist/log.js +0 -19
- package/node_modules/yaml/dist/nodes/Alias.d.ts +0 -29
- package/node_modules/yaml/dist/nodes/Alias.js +0 -120
- package/node_modules/yaml/dist/nodes/Collection.d.ts +0 -73
- package/node_modules/yaml/dist/nodes/Collection.js +0 -151
- package/node_modules/yaml/dist/nodes/Node.d.ts +0 -53
- package/node_modules/yaml/dist/nodes/Node.js +0 -40
- package/node_modules/yaml/dist/nodes/Pair.d.ts +0 -22
- package/node_modules/yaml/dist/nodes/Pair.js +0 -39
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +0 -47
- package/node_modules/yaml/dist/nodes/Scalar.js +0 -27
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +0 -53
- package/node_modules/yaml/dist/nodes/YAMLMap.js +0 -147
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +0 -60
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +0 -115
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +0 -4
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +0 -65
- package/node_modules/yaml/dist/nodes/identity.d.ts +0 -23
- package/node_modules/yaml/dist/nodes/identity.js +0 -53
- package/node_modules/yaml/dist/nodes/toJS.d.ts +0 -29
- package/node_modules/yaml/dist/nodes/toJS.js +0 -39
- package/node_modules/yaml/dist/options.d.ts +0 -350
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +0 -64
- package/node_modules/yaml/dist/parse/cst-scalar.js +0 -218
- package/node_modules/yaml/dist/parse/cst-stringify.d.ts +0 -8
- package/node_modules/yaml/dist/parse/cst-stringify.js +0 -63
- package/node_modules/yaml/dist/parse/cst-visit.d.ts +0 -39
- package/node_modules/yaml/dist/parse/cst-visit.js +0 -99
- package/node_modules/yaml/dist/parse/cst.d.ts +0 -109
- package/node_modules/yaml/dist/parse/cst.js +0 -112
- package/node_modules/yaml/dist/parse/lexer.d.ts +0 -87
- package/node_modules/yaml/dist/parse/lexer.js +0 -723
- package/node_modules/yaml/dist/parse/line-counter.d.ts +0 -22
- package/node_modules/yaml/dist/parse/line-counter.js +0 -41
- package/node_modules/yaml/dist/parse/parser.d.ts +0 -84
- package/node_modules/yaml/dist/parse/parser.js +0 -980
- package/node_modules/yaml/dist/public-api.d.ts +0 -44
- package/node_modules/yaml/dist/public-api.js +0 -107
- package/node_modules/yaml/dist/schema/Schema.d.ts +0 -17
- package/node_modules/yaml/dist/schema/Schema.js +0 -39
- package/node_modules/yaml/dist/schema/common/map.d.ts +0 -2
- package/node_modules/yaml/dist/schema/common/map.js +0 -19
- package/node_modules/yaml/dist/schema/common/null.d.ts +0 -4
- package/node_modules/yaml/dist/schema/common/null.js +0 -17
- package/node_modules/yaml/dist/schema/common/seq.d.ts +0 -2
- package/node_modules/yaml/dist/schema/common/seq.js +0 -19
- package/node_modules/yaml/dist/schema/common/string.d.ts +0 -2
- package/node_modules/yaml/dist/schema/common/string.js +0 -16
- package/node_modules/yaml/dist/schema/core/bool.d.ts +0 -4
- package/node_modules/yaml/dist/schema/core/bool.js +0 -21
- package/node_modules/yaml/dist/schema/core/float.d.ts +0 -4
- package/node_modules/yaml/dist/schema/core/float.js +0 -47
- package/node_modules/yaml/dist/schema/core/int.d.ts +0 -4
- package/node_modules/yaml/dist/schema/core/int.js +0 -42
- package/node_modules/yaml/dist/schema/core/schema.d.ts +0 -1
- package/node_modules/yaml/dist/schema/core/schema.js +0 -25
- package/node_modules/yaml/dist/schema/json/schema.d.ts +0 -2
- package/node_modules/yaml/dist/schema/json/schema.js +0 -64
- package/node_modules/yaml/dist/schema/json-schema.d.ts +0 -69
- package/node_modules/yaml/dist/schema/tags.d.ts +0 -48
- package/node_modules/yaml/dist/schema/tags.js +0 -99
- package/node_modules/yaml/dist/schema/types.d.ts +0 -92
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +0 -2
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +0 -70
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +0 -7
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +0 -29
- package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +0 -4
- package/node_modules/yaml/dist/schema/yaml-1.1/float.js +0 -50
- package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +0 -5
- package/node_modules/yaml/dist/schema/yaml-1.1/int.js +0 -76
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +0 -9
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +0 -71
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +0 -22
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +0 -77
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +0 -10
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +0 -82
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +0 -1
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +0 -41
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +0 -28
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +0 -96
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +0 -6
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +0 -105
- package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +0 -34
- package/node_modules/yaml/dist/stringify/foldFlowLines.js +0 -151
- package/node_modules/yaml/dist/stringify/stringify.d.ts +0 -21
- package/node_modules/yaml/dist/stringify/stringify.js +0 -132
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +0 -17
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +0 -155
- package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +0 -10
- package/node_modules/yaml/dist/stringify/stringifyComment.js +0 -24
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +0 -4
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +0 -87
- package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +0 -2
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +0 -27
- package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +0 -3
- package/node_modules/yaml/dist/stringify/stringifyPair.js +0 -152
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +0 -9
- package/node_modules/yaml/dist/stringify/stringifyString.js +0 -338
- package/node_modules/yaml/dist/test-events.d.ts +0 -4
- package/node_modules/yaml/dist/test-events.js +0 -134
- package/node_modules/yaml/dist/util.d.ts +0 -16
- package/node_modules/yaml/dist/util.js +0 -28
- package/node_modules/yaml/dist/visit.d.ts +0 -102
- package/node_modules/yaml/dist/visit.js +0 -236
- package/node_modules/yaml/package.json +0 -97
- package/node_modules/yaml/util.js +0 -2
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// Standalone semver comparison program.
|
|
3
|
-
// Exits successfully and prints matching version(s) if
|
|
4
|
-
// any supplied version is valid and passes all tests.
|
|
5
|
-
|
|
6
|
-
'use strict'
|
|
7
|
-
|
|
8
|
-
const argv = process.argv.slice(2)
|
|
9
|
-
|
|
10
|
-
let versions = []
|
|
11
|
-
|
|
12
|
-
const range = []
|
|
13
|
-
|
|
14
|
-
let inc = null
|
|
15
|
-
|
|
16
|
-
const version = require('../package.json').version
|
|
17
|
-
|
|
18
|
-
let loose = false
|
|
19
|
-
|
|
20
|
-
let includePrerelease = false
|
|
21
|
-
|
|
22
|
-
let coerce = false
|
|
23
|
-
|
|
24
|
-
let rtl = false
|
|
25
|
-
|
|
26
|
-
let identifier
|
|
27
|
-
|
|
28
|
-
let identifierBase
|
|
29
|
-
|
|
30
|
-
const semver = require('../')
|
|
31
|
-
const parseOptions = require('../internal/parse-options')
|
|
32
|
-
|
|
33
|
-
let reverse = false
|
|
34
|
-
|
|
35
|
-
let options = {}
|
|
36
|
-
|
|
37
|
-
const main = () => {
|
|
38
|
-
if (!argv.length) {
|
|
39
|
-
return help()
|
|
40
|
-
}
|
|
41
|
-
while (argv.length) {
|
|
42
|
-
let a = argv.shift()
|
|
43
|
-
const indexOfEqualSign = a.indexOf('=')
|
|
44
|
-
if (indexOfEqualSign !== -1) {
|
|
45
|
-
const value = a.slice(indexOfEqualSign + 1)
|
|
46
|
-
a = a.slice(0, indexOfEqualSign)
|
|
47
|
-
argv.unshift(value)
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
switch (a) {
|
|
51
|
-
case '-rv': case '-rev': case '--rev': case '--reverse':
|
|
52
|
-
reverse = true
|
|
53
|
-
break
|
|
54
|
-
case '-l': case '--loose':
|
|
55
|
-
loose = true
|
|
56
|
-
break
|
|
57
|
-
case '-p': case '--include-prerelease':
|
|
58
|
-
includePrerelease = true
|
|
59
|
-
break
|
|
60
|
-
case '-v': case '--version':
|
|
61
|
-
versions.push(argv.shift())
|
|
62
|
-
break
|
|
63
|
-
case '-i': case '--inc': case '--increment':
|
|
64
|
-
if (semver.RELEASE_TYPES.includes(argv[0]) || (argv[0] === 'release')) {
|
|
65
|
-
inc = { value: argv.shift(), maybeErrantValue: null, option: a }
|
|
66
|
-
} else {
|
|
67
|
-
inc = { value: 'patch', maybeErrantValue: argv[0], option: a }
|
|
68
|
-
}
|
|
69
|
-
break
|
|
70
|
-
case '--preid':
|
|
71
|
-
identifier = argv.shift()
|
|
72
|
-
break
|
|
73
|
-
case '-r': case '--range':
|
|
74
|
-
range.push(argv.shift())
|
|
75
|
-
break
|
|
76
|
-
case '-n':
|
|
77
|
-
identifierBase = argv.shift()
|
|
78
|
-
if (identifierBase === 'false') {
|
|
79
|
-
identifierBase = false
|
|
80
|
-
}
|
|
81
|
-
break
|
|
82
|
-
case '-c': case '--coerce':
|
|
83
|
-
coerce = true
|
|
84
|
-
break
|
|
85
|
-
case '--rtl':
|
|
86
|
-
rtl = true
|
|
87
|
-
break
|
|
88
|
-
case '--ltr':
|
|
89
|
-
rtl = false
|
|
90
|
-
break
|
|
91
|
-
case '-h': case '--help': case '-?':
|
|
92
|
-
return help()
|
|
93
|
-
default:
|
|
94
|
-
versions.push(a)
|
|
95
|
-
break
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
options = parseOptions({ loose, includePrerelease, rtl })
|
|
100
|
-
|
|
101
|
-
if (
|
|
102
|
-
inc &&
|
|
103
|
-
versions.includes(inc.maybeErrantValue) &&
|
|
104
|
-
!semver.valid(inc.maybeErrantValue, options)
|
|
105
|
-
) {
|
|
106
|
-
console.warn(`Invalid value for ${inc.option}; defaulting to 'patch'. This may become a failure in future major versions.`)
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
versions = versions.map((v) => {
|
|
110
|
-
return coerce ? (semver.coerce(v, options) || { version: v }).version : v
|
|
111
|
-
}).filter((v) => {
|
|
112
|
-
return semver.valid(v, options)
|
|
113
|
-
})
|
|
114
|
-
if (!versions.length) {
|
|
115
|
-
return fail()
|
|
116
|
-
}
|
|
117
|
-
if (inc && (versions.length !== 1 || range.length)) {
|
|
118
|
-
return failInc()
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
for (let i = 0, l = range.length; i < l; i++) {
|
|
122
|
-
versions = versions.filter((v) => {
|
|
123
|
-
return semver.satisfies(v, range[i], options)
|
|
124
|
-
})
|
|
125
|
-
if (!versions.length) {
|
|
126
|
-
return fail()
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
versions
|
|
130
|
-
.sort((a, b) => semver[reverse ? 'rcompare' : 'compare'](a, b, options))
|
|
131
|
-
.map(v => semver.clean(v, options))
|
|
132
|
-
.map(v => inc ? semver.inc(v, inc.value, options, identifier, identifierBase) : v)
|
|
133
|
-
.forEach(v => console.log(v))
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
const failInc = () => {
|
|
137
|
-
console.error('--inc can only be used on a single version with no range')
|
|
138
|
-
fail()
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
const fail = () => process.exit(1)
|
|
142
|
-
|
|
143
|
-
const help = () => console.log(
|
|
144
|
-
`SemVer ${version}
|
|
145
|
-
|
|
146
|
-
A JavaScript implementation of the https://semver.org/ specification
|
|
147
|
-
Copyright Isaac Z. Schlueter
|
|
148
|
-
|
|
149
|
-
Usage: semver [options] <version> [<version> [...]]
|
|
150
|
-
Prints valid versions sorted by SemVer precedence
|
|
151
|
-
|
|
152
|
-
Options:
|
|
153
|
-
-r --range <range>
|
|
154
|
-
Print versions that match the specified range.
|
|
155
|
-
|
|
156
|
-
-i --increment [<level>]
|
|
157
|
-
Increment a version by the specified level. Level can
|
|
158
|
-
be one of: major, minor, patch, premajor, preminor,
|
|
159
|
-
prepatch, prerelease, or release. Default level is 'patch'.
|
|
160
|
-
Only one version may be specified.
|
|
161
|
-
|
|
162
|
-
--preid <identifier>
|
|
163
|
-
Identifier to be used to prefix premajor, preminor,
|
|
164
|
-
prepatch or prerelease version increments.
|
|
165
|
-
|
|
166
|
-
-l --loose
|
|
167
|
-
Interpret versions and ranges loosely
|
|
168
|
-
|
|
169
|
-
-p --include-prerelease
|
|
170
|
-
Always include prerelease versions in range matching
|
|
171
|
-
|
|
172
|
-
-c --coerce
|
|
173
|
-
Coerce a string into SemVer if possible
|
|
174
|
-
(does not imply --loose)
|
|
175
|
-
|
|
176
|
-
--rtl
|
|
177
|
-
Coerce version strings right to left
|
|
178
|
-
|
|
179
|
-
--ltr
|
|
180
|
-
Coerce version strings left to right (default)
|
|
181
|
-
|
|
182
|
-
-n <base>
|
|
183
|
-
Base number to be used for the prerelease identifier.
|
|
184
|
-
Can be either 0 or 1, or false to omit the number altogether.
|
|
185
|
-
Defaults to 0.
|
|
186
|
-
|
|
187
|
-
Program exits successfully if any valid version satisfies
|
|
188
|
-
all supplied ranges, and prints all satisfying versions.
|
|
189
|
-
|
|
190
|
-
If no satisfying versions are found, then exits failure.
|
|
191
|
-
|
|
192
|
-
Versions are printed in ascending order, so supplying
|
|
193
|
-
multiple versions to the utility will just sort them.`)
|
|
194
|
-
|
|
195
|
-
main()
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const ANY = Symbol('SemVer ANY')
|
|
4
|
-
// hoisted class for cyclic dependency
|
|
5
|
-
class Comparator {
|
|
6
|
-
static get ANY () {
|
|
7
|
-
return ANY
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
constructor (comp, options) {
|
|
11
|
-
options = parseOptions(options)
|
|
12
|
-
|
|
13
|
-
if (comp instanceof Comparator) {
|
|
14
|
-
if (comp.loose === !!options.loose) {
|
|
15
|
-
return comp
|
|
16
|
-
} else {
|
|
17
|
-
comp = comp.value
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
comp = comp.trim().split(/\s+/).join(' ')
|
|
22
|
-
debug('comparator', comp, options)
|
|
23
|
-
this.options = options
|
|
24
|
-
this.loose = !!options.loose
|
|
25
|
-
this.parse(comp)
|
|
26
|
-
|
|
27
|
-
if (this.semver === ANY) {
|
|
28
|
-
this.value = ''
|
|
29
|
-
} else {
|
|
30
|
-
this.value = this.operator + this.semver.version
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
debug('comp', this)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
parse (comp) {
|
|
37
|
-
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
|
|
38
|
-
const m = comp.match(r)
|
|
39
|
-
|
|
40
|
-
if (!m) {
|
|
41
|
-
throw new TypeError(`Invalid comparator: ${comp}`)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
this.operator = m[1] !== undefined ? m[1] : ''
|
|
45
|
-
if (this.operator === '=') {
|
|
46
|
-
this.operator = ''
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// if it literally is just '>' or '' then allow anything.
|
|
50
|
-
if (!m[2]) {
|
|
51
|
-
this.semver = ANY
|
|
52
|
-
} else {
|
|
53
|
-
this.semver = new SemVer(m[2], this.options.loose)
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
toString () {
|
|
58
|
-
return this.value
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
test (version) {
|
|
62
|
-
debug('Comparator.test', version, this.options.loose)
|
|
63
|
-
|
|
64
|
-
if (this.semver === ANY || version === ANY) {
|
|
65
|
-
return true
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
if (typeof version === 'string') {
|
|
69
|
-
try {
|
|
70
|
-
version = new SemVer(version, this.options)
|
|
71
|
-
} catch (er) {
|
|
72
|
-
return false
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return cmp(version, this.operator, this.semver, this.options)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
intersects (comp, options) {
|
|
80
|
-
if (!(comp instanceof Comparator)) {
|
|
81
|
-
throw new TypeError('a Comparator is required')
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (this.operator === '') {
|
|
85
|
-
if (this.value === '') {
|
|
86
|
-
return true
|
|
87
|
-
}
|
|
88
|
-
return new Range(comp.value, options).test(this.value)
|
|
89
|
-
} else if (comp.operator === '') {
|
|
90
|
-
if (comp.value === '') {
|
|
91
|
-
return true
|
|
92
|
-
}
|
|
93
|
-
return new Range(this.value, options).test(comp.semver)
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
options = parseOptions(options)
|
|
97
|
-
|
|
98
|
-
// Special cases where nothing can possibly be lower
|
|
99
|
-
if (options.includePrerelease &&
|
|
100
|
-
(this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {
|
|
101
|
-
return false
|
|
102
|
-
}
|
|
103
|
-
if (!options.includePrerelease &&
|
|
104
|
-
(this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {
|
|
105
|
-
return false
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// Same direction increasing (> or >=)
|
|
109
|
-
if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {
|
|
110
|
-
return true
|
|
111
|
-
}
|
|
112
|
-
// Same direction decreasing (< or <=)
|
|
113
|
-
if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {
|
|
114
|
-
return true
|
|
115
|
-
}
|
|
116
|
-
// same SemVer and both sides are inclusive (<= or >=)
|
|
117
|
-
if (
|
|
118
|
-
(this.semver.version === comp.semver.version) &&
|
|
119
|
-
this.operator.includes('=') && comp.operator.includes('=')) {
|
|
120
|
-
return true
|
|
121
|
-
}
|
|
122
|
-
// opposite directions less than
|
|
123
|
-
if (cmp(this.semver, '<', comp.semver, options) &&
|
|
124
|
-
this.operator.startsWith('>') && comp.operator.startsWith('<')) {
|
|
125
|
-
return true
|
|
126
|
-
}
|
|
127
|
-
// opposite directions greater than
|
|
128
|
-
if (cmp(this.semver, '>', comp.semver, options) &&
|
|
129
|
-
this.operator.startsWith('<') && comp.operator.startsWith('>')) {
|
|
130
|
-
return true
|
|
131
|
-
}
|
|
132
|
-
return false
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
module.exports = Comparator
|
|
137
|
-
|
|
138
|
-
const parseOptions = require('../internal/parse-options')
|
|
139
|
-
const { safeRe: re, t } = require('../internal/re')
|
|
140
|
-
const cmp = require('../functions/cmp')
|
|
141
|
-
const debug = require('../internal/debug')
|
|
142
|
-
const SemVer = require('./semver')
|
|
143
|
-
const Range = require('./range')
|