@ai-primitives-hub/app 0.2.1 → 0.2.2-next.0
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 +5 -1
- package/dist/collection/affected-collections.d.ts +11 -0
- package/dist/collection/affected-collections.d.ts.map +1 -0
- package/dist/collection/affected-collections.js +90 -0
- package/dist/collection/affected-collections.js.map +1 -0
- package/dist/collection/create-plugin.d.ts +35 -0
- package/dist/collection/create-plugin.d.ts.map +1 -0
- package/dist/collection/create-plugin.js +118 -0
- package/dist/collection/create-plugin.js.map +1 -0
- package/dist/collection/index.d.ts +4 -2
- package/dist/collection/index.d.ts.map +1 -1
- package/dist/collection/index.js +8 -4
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/kind-route-warning.d.ts +13 -0
- package/dist/collection/kind-route-warning.d.ts.map +1 -0
- package/dist/collection/kind-route-warning.js +40 -0
- package/dist/collection/kind-route-warning.js.map +1 -0
- package/dist/collection/plugin-item-issues.d.ts +36 -0
- package/dist/collection/plugin-item-issues.d.ts.map +1 -0
- package/dist/collection/plugin-item-issues.js +31 -0
- package/dist/collection/plugin-item-issues.js.map +1 -0
- package/dist/collection/read-collection.d.ts +1 -1
- package/dist/collection/read-collection.d.ts.map +1 -1
- package/dist/collection/read-collection.js +14 -15
- package/dist/collection/read-collection.js.map +1 -1
- package/dist/collection-editor/collection-contribution-workflow.d.ts +96 -0
- package/dist/collection-editor/collection-contribution-workflow.d.ts.map +1 -0
- package/dist/collection-editor/collection-contribution-workflow.js +479 -0
- package/dist/collection-editor/collection-contribution-workflow.js.map +1 -0
- package/dist/collection-editor/collection-editor-service.d.ts +232 -0
- package/dist/collection-editor/collection-editor-service.d.ts.map +1 -0
- package/dist/collection-editor/collection-editor-service.js +868 -0
- package/dist/collection-editor/collection-editor-service.js.map +1 -0
- package/dist/collection-editor/index.d.ts +7 -0
- package/dist/collection-editor/index.d.ts.map +1 -0
- package/dist/collection-editor/index.js +12 -0
- package/dist/collection-editor/index.js.map +1 -0
- package/dist/diagnostics/find-ancestor-file.d.ts +13 -0
- package/dist/diagnostics/find-ancestor-file.d.ts.map +1 -0
- package/dist/diagnostics/find-ancestor-file.js +85 -0
- package/dist/diagnostics/find-ancestor-file.js.map +1 -0
- package/dist/diagnostics/index.d.ts +10 -0
- package/dist/diagnostics/index.d.ts.map +1 -0
- package/dist/diagnostics/index.js +26 -0
- package/dist/diagnostics/index.js.map +1 -0
- package/dist/diagnostics/run-primitive-diagnostics.d.ts +43 -0
- package/dist/diagnostics/run-primitive-diagnostics.d.ts.map +1 -0
- package/dist/diagnostics/run-primitive-diagnostics.js +413 -0
- package/dist/diagnostics/run-primitive-diagnostics.js.map +1 -0
- package/dist/diagnostics/sandbox-snapshot.d.ts +20 -0
- package/dist/diagnostics/sandbox-snapshot.d.ts.map +1 -0
- package/dist/diagnostics/sandbox-snapshot.js +117 -0
- package/dist/diagnostics/sandbox-snapshot.js.map +1 -0
- package/dist/governance/generate-catalogue.d.ts +16 -0
- package/dist/governance/generate-catalogue.d.ts.map +1 -0
- package/dist/governance/generate-catalogue.js +67 -0
- package/dist/governance/generate-catalogue.js.map +1 -0
- package/dist/governance/hub-scoped-governance.d.ts +37 -0
- package/dist/governance/hub-scoped-governance.d.ts.map +1 -0
- package/dist/governance/hub-scoped-governance.js +110 -0
- package/dist/governance/hub-scoped-governance.js.map +1 -0
- package/dist/governance/index.d.ts +10 -0
- package/dist/governance/index.d.ts.map +1 -0
- package/dist/governance/index.js +26 -0
- package/dist/governance/index.js.map +1 -0
- package/dist/governance/load-config.d.ts +45 -0
- package/dist/governance/load-config.d.ts.map +1 -0
- package/dist/governance/load-config.js +137 -0
- package/dist/governance/load-config.js.map +1 -0
- package/dist/governance/pr-scope.d.ts +23 -0
- package/dist/governance/pr-scope.d.ts.map +1 -0
- package/dist/governance/pr-scope.js +22 -0
- package/dist/governance/pr-scope.js.map +1 -0
- package/dist/governance/report.d.ts +23 -0
- package/dist/governance/report.d.ts.map +1 -0
- package/dist/governance/report.js +177 -0
- package/dist/governance/report.js.map +1 -0
- package/dist/governance/run-governance.d.ts +22 -0
- package/dist/governance/run-governance.d.ts.map +1 -0
- package/dist/governance/run-governance.js +78 -0
- package/dist/governance/run-governance.js.map +1 -0
- package/dist/governance/source-checks.d.ts +29 -0
- package/dist/governance/source-checks.d.ts.map +1 -0
- package/dist/governance/source-checks.js +80 -0
- package/dist/governance/source-checks.js.map +1 -0
- package/dist/governance/validate-collection-governance.d.ts +46 -0
- package/dist/governance/validate-collection-governance.d.ts.map +1 -0
- package/dist/governance/validate-collection-governance.js +291 -0
- package/dist/governance/validate-collection-governance.js.map +1 -0
- package/dist/hub-editor/hub-config-editor-service.d.ts +94 -0
- package/dist/hub-editor/hub-config-editor-service.d.ts.map +1 -0
- package/dist/hub-editor/hub-config-editor-service.js +289 -0
- package/dist/hub-editor/hub-config-editor-service.js.map +1 -0
- package/dist/hub-editor/hub-contribution-workflow.d.ts +99 -0
- package/dist/hub-editor/hub-contribution-workflow.d.ts.map +1 -0
- package/dist/hub-editor/hub-contribution-workflow.js +385 -0
- package/dist/hub-editor/hub-contribution-workflow.js.map +1 -0
- package/dist/hub-editor/index.d.ts +7 -0
- package/dist/hub-editor/index.d.ts.map +1 -0
- package/dist/hub-editor/index.js +23 -0
- package/dist/hub-editor/index.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/install/index.d.ts +2 -0
- package/dist/install/index.d.ts.map +1 -1
- package/dist/install/index.js +3 -1
- package/dist/install/index.js.map +1 -1
- package/dist/install/partial-target-write.d.ts +63 -0
- package/dist/install/partial-target-write.d.ts.map +1 -0
- package/dist/install/partial-target-write.js +128 -0
- package/dist/install/partial-target-write.js.map +1 -0
- package/dist/install/pipeline.d.ts +2 -1
- package/dist/install/pipeline.d.ts.map +1 -1
- package/dist/install/pipeline.js +4 -3
- package/dist/install/pipeline.js.map +1 -1
- package/dist/install/target-write.d.ts +10 -0
- package/dist/install/target-write.d.ts.map +1 -1
- package/dist/install/target-write.js +3 -2
- package/dist/install/target-write.js.map +1 -1
- package/dist/install/uninstall-pipeline.d.ts +11 -10
- package/dist/install/uninstall-pipeline.d.ts.map +1 -1
- package/dist/install/uninstall-pipeline.js +10 -11
- package/dist/install/uninstall-pipeline.js.map +1 -1
- package/dist/records/atomic-write.d.ts +11 -0
- package/dist/records/atomic-write.d.ts.map +1 -0
- package/dist/records/atomic-write.js +66 -0
- package/dist/records/atomic-write.js.map +1 -0
- package/dist/records/confine-path.d.ts +35 -0
- package/dist/records/confine-path.d.ts.map +1 -0
- package/dist/records/confine-path.js +140 -0
- package/dist/records/confine-path.js.map +1 -0
- package/dist/records/git-root.d.ts +66 -0
- package/dist/records/git-root.d.ts.map +1 -0
- package/dist/records/git-root.js +208 -0
- package/dist/records/git-root.js.map +1 -0
- package/dist/records/index.d.ts +30 -0
- package/dist/records/index.d.ts.map +1 -0
- package/dist/records/index.js +46 -0
- package/dist/records/index.js.map +1 -0
- package/dist/records/install-record-service.d.ts +496 -0
- package/dist/records/install-record-service.d.ts.map +1 -0
- package/dist/records/install-record-service.js +1365 -0
- package/dist/records/install-record-service.js.map +1 -0
- package/dist/records/install-record-services.d.ts +29 -0
- package/dist/records/install-record-services.d.ts.map +1 -0
- package/dist/records/install-record-services.js +17 -0
- package/dist/records/install-record-services.js.map +1 -0
- package/dist/records/legacy-shapes.d.ts +18 -0
- package/dist/records/legacy-shapes.d.ts.map +1 -0
- package/dist/records/legacy-shapes.js +30 -0
- package/dist/records/legacy-shapes.js.map +1 -0
- package/dist/records/map-tool-to-target.d.ts +33 -0
- package/dist/records/map-tool-to-target.d.ts.map +1 -0
- package/dist/records/map-tool-to-target.js +98 -0
- package/dist/records/map-tool-to-target.js.map +1 -0
- package/dist/records/mcp-servers.d.ts +116 -0
- package/dist/records/mcp-servers.d.ts.map +1 -0
- package/dist/records/mcp-servers.js +268 -0
- package/dist/records/mcp-servers.js.map +1 -0
- package/dist/records/modified-files.d.ts +32 -0
- package/dist/records/modified-files.d.ts.map +1 -0
- package/dist/records/modified-files.js +146 -0
- package/dist/records/modified-files.js.map +1 -0
- package/dist/records/plan-record-entries.d.ts +76 -0
- package/dist/records/plan-record-entries.d.ts.map +1 -0
- package/dist/records/plan-record-entries.js +84 -0
- package/dist/records/plan-record-entries.js.map +1 -0
- package/dist/records/read-record-text.d.ts +15 -0
- package/dist/records/read-record-text.d.ts.map +1 -0
- package/dist/records/read-record-text.js +36 -0
- package/dist/records/read-record-text.js.map +1 -0
- package/dist/records/record-entry.d.ts +31 -0
- package/dist/records/record-entry.d.ts.map +1 -0
- package/dist/records/record-entry.js +81 -0
- package/dist/records/record-entry.js.map +1 -0
- package/dist/records/record-file-shape.d.ts +90 -0
- package/dist/records/record-file-shape.d.ts.map +1 -0
- package/dist/records/record-file-shape.js +288 -0
- package/dist/records/record-file-shape.js.map +1 -0
- package/dist/records/record-hub.d.ts +42 -0
- package/dist/records/record-hub.d.ts.map +1 -0
- package/dist/records/record-hub.js +85 -0
- package/dist/records/record-hub.js.map +1 -0
- package/dist/records/record-identity.d.ts +14 -0
- package/dist/records/record-identity.d.ts.map +1 -0
- package/dist/records/record-identity.js +41 -0
- package/dist/records/record-identity.js.map +1 -0
- package/dist/records/record-migration.d.ts +118 -0
- package/dist/records/record-migration.d.ts.map +1 -0
- package/dist/records/record-migration.js +454 -0
- package/dist/records/record-migration.js.map +1 -0
- package/dist/records/record-store.d.ts +123 -0
- package/dist/records/record-store.d.ts.map +1 -0
- package/dist/records/record-store.js +291 -0
- package/dist/records/record-store.js.map +1 -0
- package/dist/records/resolve-record-source.d.ts +64 -0
- package/dist/records/resolve-record-source.d.ts.map +1 -0
- package/dist/records/resolve-record-source.js +160 -0
- package/dist/records/resolve-record-source.js.map +1 -0
- package/dist/records/sanitize-source.d.ts +18 -0
- package/dist/records/sanitize-source.d.ts.map +1 -0
- package/dist/records/sanitize-source.js +90 -0
- package/dist/records/sanitize-source.js.map +1 -0
- package/dist/records/select-record.d.ts +54 -0
- package/dist/records/select-record.d.ts.map +1 -0
- package/dist/records/select-record.js +180 -0
- package/dist/records/select-record.js.map +1 -0
- package/dist/records/serialize-record.d.ts +20 -0
- package/dist/records/serialize-record.d.ts.map +1 -0
- package/dist/records/serialize-record.js +100 -0
- package/dist/records/serialize-record.js.map +1 -0
- package/dist/records/source-fields.d.ts +21 -0
- package/dist/records/source-fields.d.ts.map +1 -0
- package/dist/records/source-fields.js +28 -0
- package/dist/records/source-fields.js.map +1 -0
- package/dist/records/to-record-source.d.ts +23 -0
- package/dist/records/to-record-source.d.ts.map +1 -0
- package/dist/records/to-record-source.js +39 -0
- package/dist/records/to-record-source.js.map +1 -0
- package/dist/records/user-home.d.ts +16 -0
- package/dist/records/user-home.d.ts.map +1 -0
- package/dist/records/user-home.js +84 -0
- package/dist/records/user-home.js.map +1 -0
- package/dist/records/writer-group.d.ts +7 -0
- package/dist/records/writer-group.d.ts.map +1 -0
- package/dist/records/writer-group.js +31 -0
- package/dist/records/writer-group.js.map +1 -0
- package/dist/registry/activate-registry-profile.d.ts.map +1 -1
- package/dist/registry/activate-registry-profile.js +4 -1
- package/dist/registry/activate-registry-profile.js.map +1 -1
- package/dist/registry/batch-install-profile.d.ts +76 -0
- package/dist/registry/batch-install-profile.d.ts.map +1 -0
- package/dist/registry/batch-install-profile.js +67 -0
- package/dist/registry/batch-install-profile.js.map +1 -0
- package/dist/registry/create-source-adapter.d.ts +16 -1
- package/dist/registry/create-source-adapter.d.ts.map +1 -1
- package/dist/registry/create-source-adapter.js +76 -3
- package/dist/registry/create-source-adapter.js.map +1 -1
- package/dist/registry/hub-manager.d.ts +41 -0
- package/dist/registry/hub-manager.d.ts.map +1 -1
- package/dist/registry/hub-manager.js +82 -4
- package/dist/registry/hub-manager.js.map +1 -1
- package/dist/registry/index.d.ts +1 -0
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +1 -0
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/install-registry-bundle.js +4 -3
- package/dist/registry/install-registry-bundle.js.map +1 -1
- package/dist/registry/list-installed-bundles.d.ts +2 -3
- package/dist/registry/list-installed-bundles.d.ts.map +1 -1
- package/dist/registry/list-installed-bundles.js.map +1 -1
- package/dist/registry/load-hub-sources.d.ts +8 -0
- package/dist/registry/load-hub-sources.d.ts.map +1 -1
- package/dist/registry/load-hub-sources.js +70 -3
- package/dist/registry/load-hub-sources.js.map +1 -1
- package/dist/registry/profile-lifecycle.d.ts +7 -2
- package/dist/registry/profile-lifecycle.d.ts.map +1 -1
- package/dist/registry/profile-lifecycle.js +82 -11
- package/dist/registry/profile-lifecycle.js.map +1 -1
- package/dist/registry/uninstall-installed-bundle.d.ts +2 -3
- package/dist/registry/uninstall-installed-bundle.d.ts.map +1 -1
- package/dist/registry/uninstall-installed-bundle.js.map +1 -1
- package/dist/registry/update-registry-bundle.d.ts +2 -2
- package/dist/registry/update-registry-bundle.js +2 -2
- package/dist/registry/update-registry-bundle.js.map +1 -1
- package/dist/registry/validate-hub-config-file.d.ts +14 -1
- package/dist/registry/validate-hub-config-file.d.ts.map +1 -1
- package/dist/registry/validate-hub-config-file.js +81 -44
- package/dist/registry/validate-hub-config-file.js.map +1 -1
- package/dist/release/plan-bundle-release.d.ts +6 -12
- package/dist/release/plan-bundle-release.d.ts.map +1 -1
- package/dist/release/plan-bundle-release.js +178 -7
- package/dist/release/plan-bundle-release.js.map +1 -1
- package/dist/replicate/replicate.d.ts +5 -2
- package/dist/replicate/replicate.d.ts.map +1 -1
- package/dist/replicate/replicate.js +121 -17
- package/dist/replicate/replicate.js.map +1 -1
- package/dist/security/index.d.ts +4 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +22 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/rating/bundle-discovery.d.ts +19 -0
- package/dist/security/rating/bundle-discovery.d.ts.map +1 -0
- package/dist/security/rating/bundle-discovery.js +244 -0
- package/dist/security/rating/bundle-discovery.js.map +1 -0
- package/dist/security/rating/index.d.ts +5 -0
- package/dist/security/rating/index.d.ts.map +1 -0
- package/dist/security/rating/index.js +21 -0
- package/dist/security/rating/index.js.map +1 -0
- package/dist/security/rating/security-rating-markdown.d.ts +17 -0
- package/dist/security/rating/security-rating-markdown.d.ts.map +1 -0
- package/dist/security/rating/security-rating-markdown.js +131 -0
- package/dist/security/rating/security-rating-markdown.js.map +1 -0
- package/dist/security/rating/security-rating-scan.d.ts +23 -0
- package/dist/security/rating/security-rating-scan.d.ts.map +1 -0
- package/dist/security/rating/security-rating-scan.js +40 -0
- package/dist/security/rating/security-rating-scan.js.map +1 -0
- package/dist/security/rating/security-rating-templates.d.ts +40 -0
- package/dist/security/rating/security-rating-templates.d.ts.map +1 -0
- package/dist/security/rating/security-rating-templates.js +83 -0
- package/dist/security/rating/security-rating-templates.js.map +1 -0
- package/dist/security/rating/security-rating.d.ts +32 -0
- package/dist/security/rating/security-rating.d.ts.map +1 -0
- package/dist/security/rating/security-rating.js +94 -0
- package/dist/security/rating/security-rating.js.map +1 -0
- package/dist/security/security-scan-use-case.d.ts +101 -0
- package/dist/security/security-scan-use-case.d.ts.map +1 -0
- package/dist/security/security-scan-use-case.js +185 -0
- package/dist/security/security-scan-use-case.js.map +1 -0
- package/dist/stores/json-lockfile-store.d.ts.map +1 -1
- package/dist/stores/json-lockfile-store.js +6 -32
- package/dist/stores/json-lockfile-store.js.map +1 -1
- package/dist/transform/transformer-registry.d.ts.map +1 -1
- package/dist/transform/transformer-registry.js +3 -0
- package/dist/transform/transformer-registry.js.map +1 -1
- package/dist/transform/transformers/windsurf-transformer.d.ts +5 -0
- package/dist/transform/transformers/windsurf-transformer.d.ts.map +1 -1
- package/dist/transform/transformers/windsurf-transformer.js.map +1 -1
- package/dist/writers/file-tree-writer.d.ts +14 -1
- package/dist/writers/file-tree-writer.d.ts.map +1 -1
- package/dist/writers/file-tree-writer.js +23 -71
- package/dist/writers/file-tree-writer.js.map +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hubEntryOf = exports.recordHubsOf = exports.toRecordHub = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Shared hub references for install records. Only a hub another machine can
|
|
6
|
+
* import is recorded: never the built-in local hub or a hub on a local path,
|
|
7
|
+
* and never a credential.
|
|
8
|
+
* @module records/record-hub
|
|
9
|
+
*/
|
|
10
|
+
const core_1 = require("@ai-primitives-hub/core");
|
|
11
|
+
const sanitize_source_1 = require("./sanitize-source");
|
|
12
|
+
/** A local path: drive letter, POSIX root, home, UNC or `./` and `../`. */
|
|
13
|
+
const LOCAL_PATH_PATTERN = /^(?:[a-z]:[/\\]|\/|~|\\\\|\.\.?(?:[/\\]|$))/i;
|
|
14
|
+
const isWebUrl = (location) => {
|
|
15
|
+
try {
|
|
16
|
+
const { protocol } = new URL(location);
|
|
17
|
+
return protocol === 'https:' || protocol === 'http:';
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const isShareableLocation = (type, location) => {
|
|
24
|
+
if (type === 'local' || LOCAL_PATH_PATTERN.test(location)) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
return type === 'github' ? !/^[a-z][\d+.a-z-]*:/i.test(location) || isWebUrl(location) : isWebUrl(location);
|
|
28
|
+
};
|
|
29
|
+
const isConfinedPath = (value) => value !== '' && !LOCAL_PATH_PATTERN.test(value) && !value.includes('\\') && !value.split('/').includes('..');
|
|
30
|
+
/**
|
|
31
|
+
* The record entry of a hub, or `undefined` when the hub is not shareable.
|
|
32
|
+
* @param id - Hub id.
|
|
33
|
+
* @param name - Hub display name; the id when empty.
|
|
34
|
+
* @param reference - The hub's import reference.
|
|
35
|
+
*/
|
|
36
|
+
const toRecordHub = (id, name, reference) => {
|
|
37
|
+
const { type, location } = reference;
|
|
38
|
+
if (typeof id !== 'string' || id === '' || id === core_1.DEFAULT_LOCAL_HUB_ID || core_1.FORBIDDEN_KEYS.has(id)
|
|
39
|
+
|| typeof type !== 'string' || type === '' || typeof location !== 'string' || !isShareableLocation(type, location)) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
const hub = Object.create(null);
|
|
43
|
+
hub.id = id;
|
|
44
|
+
hub.name = typeof name === 'string' && name !== '' ? name : id;
|
|
45
|
+
hub.type = type;
|
|
46
|
+
hub.location = (0, sanitize_source_1.sanitizeSourceUrl)(location);
|
|
47
|
+
if (typeof reference.ref === 'string' && reference.ref !== '') {
|
|
48
|
+
hub.ref = reference.ref;
|
|
49
|
+
}
|
|
50
|
+
if (typeof reference.configFile === 'string' && isConfinedPath(reference.configFile)) {
|
|
51
|
+
hub.configFile = reference.configFile;
|
|
52
|
+
}
|
|
53
|
+
return hub;
|
|
54
|
+
};
|
|
55
|
+
exports.toRecordHub = toRecordHub;
|
|
56
|
+
/**
|
|
57
|
+
* The shareable hubs among the configured ones, by id.
|
|
58
|
+
* @param hubs - Configured hubs.
|
|
59
|
+
*/
|
|
60
|
+
const recordHubsOf = (hubs) => {
|
|
61
|
+
const byId = new Map();
|
|
62
|
+
for (const { id, name, reference } of hubs) {
|
|
63
|
+
const hub = (0, exports.toRecordHub)(id, name, reference);
|
|
64
|
+
if (hub !== undefined) {
|
|
65
|
+
byId.set(id, hub);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return byId;
|
|
69
|
+
};
|
|
70
|
+
exports.recordHubsOf = recordHubsOf;
|
|
71
|
+
/**
|
|
72
|
+
* The `hubs` entry of a record hub: its fields without the id, prototype-free.
|
|
73
|
+
* @param hub - Hub to record.
|
|
74
|
+
*/
|
|
75
|
+
const hubEntryOf = (hub) => {
|
|
76
|
+
const entry = Object.create(null);
|
|
77
|
+
for (const [key, value] of Object.entries(hub)) {
|
|
78
|
+
if (key !== 'id') {
|
|
79
|
+
entry[key] = value;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return entry;
|
|
83
|
+
};
|
|
84
|
+
exports.hubEntryOf = hubEntryOf;
|
|
85
|
+
//# sourceMappingURL=record-hub.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-hub.js","sourceRoot":"","sources":["../../src/records/record-hub.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,kDAIiC;AACjC,uDAE2B;AAsB3B,2EAA2E;AAC3E,MAAM,kBAAkB,GAAG,8CAA8C,CAAC;AAE1E,MAAM,QAAQ,GAAG,CAAC,QAAgB,EAAW,EAAE;IAC7C,IAAI,CAAC;QACH,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;QACvC,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,OAAO,CAAC;IACvD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAE,QAAgB,EAAW,EAAE;IACtE,IAAI,IAAI,KAAK,OAAO,IAAI,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1D,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC9G,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAW,EAAE,CAChD,KAAK,KAAK,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK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GAAG,CAAC;AACb,CAAC,CAAC;AAlBW,QAAA,WAAW,eAkBtB;AAEF;;;GAGG;AACI,MAAM,YAAY,GAAG,CAAC,IAA8B,EAA+B,EAAE;IAC1F,MAAM,IAAI,GAAG,IAAI,GAAG,EAA0B,CAAC;IAC/C,KAAK,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC;QAC3C,MAAM,GAAG,GAAG,IAAA,mBAAW,EAAC,EAAE,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;QAC7C,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AATW,QAAA,YAAY,gBASvB;AAEF;;;GAGG;AACI,MAAM,UAAU,GAAG,CAAC,GAAmB,EAAa,EAAE;IAC3D,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAc,CAAC;IAC/C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/C,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YACjB,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACrB,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AARW,QAAA,UAAU,cAQrB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identity of a recorded key; an id past the helper's length guard is its own identity.
|
|
3
|
+
* @param bundleId - Recorded key.
|
|
4
|
+
* @param version - Version recorded for it.
|
|
5
|
+
*/
|
|
6
|
+
export declare const recordIdentityOf: (bundleId: string, version: string) => string;
|
|
7
|
+
/**
|
|
8
|
+
* The key of a versioned id at another version, with the same `-` or `-v` form; any other id is kept.
|
|
9
|
+
* @param bundleId - Recorded key.
|
|
10
|
+
* @param version - Version recorded for it.
|
|
11
|
+
* @param nextVersion - Version now installed.
|
|
12
|
+
*/
|
|
13
|
+
export declare const recordKeyForVersion: (bundleId: string, version: string, nextVersion: string) => string;
|
|
14
|
+
//# sourceMappingURL=record-identity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-identity.d.ts","sourceRoot":"","sources":["../../src/records/record-identity.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,EAAE,SAAS,MAAM,KAAG,MAMpE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,EAAE,SAAS,MAAM,EAAE,aAAa,MAAM,KAAG,MAS5F,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recordKeyForVersion = exports.recordIdentityOf = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Bundle identity of a record key: the key without its version, so a tool
|
|
6
|
+
* keeps one entry per bundle in a record level.
|
|
7
|
+
* @module records/record-identity
|
|
8
|
+
*/
|
|
9
|
+
const core_1 = require("@ai-primitives-hub/core");
|
|
10
|
+
/**
|
|
11
|
+
* Identity of a recorded key; an id past the helper's length guard is its own identity.
|
|
12
|
+
* @param bundleId - Recorded key.
|
|
13
|
+
* @param version - Version recorded for it.
|
|
14
|
+
*/
|
|
15
|
+
const recordIdentityOf = (bundleId, version) => {
|
|
16
|
+
try {
|
|
17
|
+
return (0, core_1.bundleIdentityOf)(bundleId, version);
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
return bundleId;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
exports.recordIdentityOf = recordIdentityOf;
|
|
24
|
+
/**
|
|
25
|
+
* The key of a versioned id at another version, with the same `-` or `-v` form; any other id is kept.
|
|
26
|
+
* @param bundleId - Recorded key.
|
|
27
|
+
* @param version - Version recorded for it.
|
|
28
|
+
* @param nextVersion - Version now installed.
|
|
29
|
+
*/
|
|
30
|
+
const recordKeyForVersion = (bundleId, version, nextVersion) => {
|
|
31
|
+
const identity = (0, exports.recordIdentityOf)(bundleId, version);
|
|
32
|
+
if (identity === bundleId || nextVersion === version) {
|
|
33
|
+
return bundleId;
|
|
34
|
+
}
|
|
35
|
+
const marker = bundleId.slice(identity.length) === `-v${version}` ? '-v' : '-';
|
|
36
|
+
const next = `${identity}${marker}${nextVersion}`;
|
|
37
|
+
// A key the identity rule cannot match back would leave the old entry behind.
|
|
38
|
+
return (0, exports.recordIdentityOf)(next, nextVersion) === identity ? next : bundleId;
|
|
39
|
+
};
|
|
40
|
+
exports.recordKeyForVersion = recordKeyForVersion;
|
|
41
|
+
//# sourceMappingURL=record-identity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-identity.js","sourceRoot":"","sources":["../../src/records/record-identity.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,kDAEiC;AAEjC;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,CAAC,QAAgB,EAAE,OAAe,EAAU,EAAE;IAC5E,IAAI,CAAC;QACH,OAAO,IAAA,uBAAgB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,QAAQ,CAAC;IAClB,CAAC;AACH,CAAC,CAAC;AANW,QAAA,gBAAgB,oBAM3B;AAEF;;;;;GAKG;AACI,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAE,OAAe,EAAE,WAAmB,EAAU,EAAE;IACpG,MAAM,QAAQ,GAAG,IAAA,wBAAgB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACrD,IAAI,QAAQ,KAAK,QAAQ,IAAI,WAAW,KAAK,OAAO,EAAE,CAAC;QACrD,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;IAC/E,MAAM,IAAI,GAAG,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,EAAE,CAAC;IAClD,8EAA8E;IAC9E,OAAO,IAAA,wBAAgB,EAAC,IAAI,EAAE,WAAW,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC5E,CAAC,CAAC;AATW,QAAA,mBAAmB,uBAS9B"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { type RecordFs, type RecordLevel, type RecordLocation } from '@ai-primitives-hub/core';
|
|
2
|
+
import { type Lockfile } from '../stores/json-lockfile-store';
|
|
3
|
+
import type { RecordStore } from './record-store';
|
|
4
|
+
/** Which old store an entry came from. */
|
|
5
|
+
export type MigrationOrigin = 'repository-committed' | 'repository-local' | 'cli-user-lockfile' | 'profile-registry-storage';
|
|
6
|
+
/** One old entry as it will appear in the 3.0.0 record. */
|
|
7
|
+
export interface MigratedEntry {
|
|
8
|
+
bundleId: string;
|
|
9
|
+
/** `unknown` for old-file entries; the host tool for profile entries. */
|
|
10
|
+
tool: string;
|
|
11
|
+
version: string;
|
|
12
|
+
sourceId: string;
|
|
13
|
+
sourceType: string;
|
|
14
|
+
/** ISO 8601 UTC install time; the migration time when missing or not a date-time. */
|
|
15
|
+
installedAt?: string;
|
|
16
|
+
/** Level-relative paths; only safe paths found on disk are kept, re-hashed. */
|
|
17
|
+
files: readonly {
|
|
18
|
+
path: string;
|
|
19
|
+
checksum?: string;
|
|
20
|
+
}[];
|
|
21
|
+
/** Source to record when the target has none for `sourceId`; credentials are removed. */
|
|
22
|
+
source?: Readonly<Record<string, unknown>>;
|
|
23
|
+
from: MigrationOrigin;
|
|
24
|
+
}
|
|
25
|
+
/** What one migration run did. */
|
|
26
|
+
export interface MigrationReport {
|
|
27
|
+
level: RecordLevel;
|
|
28
|
+
/** Old repository files written under the new name. */
|
|
29
|
+
renamed: {
|
|
30
|
+
from: string;
|
|
31
|
+
to: string;
|
|
32
|
+
}[];
|
|
33
|
+
/** Old stores merged into an existing record; the profile store is `RegistryStorage (this profile)`. */
|
|
34
|
+
mergedFrom: string[];
|
|
35
|
+
/** The `unknown` entries this run created. */
|
|
36
|
+
needsReinstall: {
|
|
37
|
+
bundleId: string;
|
|
38
|
+
version: string;
|
|
39
|
+
}[];
|
|
40
|
+
/** Bundles held by two old stores: the version kept and the one dropped. */
|
|
41
|
+
versionConflicts: {
|
|
42
|
+
bundleId: string;
|
|
43
|
+
kept: string;
|
|
44
|
+
dropped: string;
|
|
45
|
+
}[];
|
|
46
|
+
/** Old paths not kept. */
|
|
47
|
+
droppedFiles: {
|
|
48
|
+
bundleId: string;
|
|
49
|
+
path: string;
|
|
50
|
+
reason: string;
|
|
51
|
+
}[];
|
|
52
|
+
/** Old entries not added because the record already holds the bundle. */
|
|
53
|
+
droppedEntries: {
|
|
54
|
+
bundleId: string;
|
|
55
|
+
version: string;
|
|
56
|
+
sourceId: string;
|
|
57
|
+
reason: string;
|
|
58
|
+
}[];
|
|
59
|
+
/** ISO 8601 time of the run; also the user record's `importedUserLockfileAt`. */
|
|
60
|
+
migratedAt: string;
|
|
61
|
+
/** Non-fatal problems from the saves. */
|
|
62
|
+
warnings: string[];
|
|
63
|
+
}
|
|
64
|
+
/** Input of {@link migrateRecords}. */
|
|
65
|
+
export interface MigrationInput {
|
|
66
|
+
store: RecordStore;
|
|
67
|
+
fs: RecordFs;
|
|
68
|
+
level: RecordLevel;
|
|
69
|
+
/** Git root (repository) or home (user); every old path is confined against it. */
|
|
70
|
+
root: string;
|
|
71
|
+
/** Both repository files at `root`, or the user record. */
|
|
72
|
+
targets: readonly RecordLocation[];
|
|
73
|
+
/** User level only: the CLI's 2.0.0 user lockfile. */
|
|
74
|
+
oldUserLockfile?: string;
|
|
75
|
+
/** User level, extension only: this profile's `RegistryStorage` user entries, under the host tool. */
|
|
76
|
+
profileEntries?: readonly MigratedEntry[];
|
|
77
|
+
now: () => Date;
|
|
78
|
+
}
|
|
79
|
+
/** The parts of a 2.0.0 lockfile migration reads. */
|
|
80
|
+
export type OldLockfile = Pick<Lockfile, 'bundles' | 'sources' | 'hubs' | 'profiles'>;
|
|
81
|
+
/** Name of the profile store in `MigrationReport.mergedFrom`. */
|
|
82
|
+
export declare const PROFILE_STORE_NAME = "RegistryStorage (this profile)";
|
|
83
|
+
/**
|
|
84
|
+
* Read an old 2.0.0 lockfile with the record store's guards: capped size,
|
|
85
|
+
* strict UTF-8, prototype-free parsing and the minimum 2.0.0 shape.
|
|
86
|
+
* @param fs - Filesystem port.
|
|
87
|
+
* @param file - Absolute path of the old file.
|
|
88
|
+
* @throws {RegistryError} `RECORD.MALFORMED` naming the file.
|
|
89
|
+
*/
|
|
90
|
+
export declare const readOldLockfile: (fs: RecordFs, file: string) => Promise<OldLockfile>;
|
|
91
|
+
/**
|
|
92
|
+
* Migrate the old stores of a level into its 3.0.0 records: load everything,
|
|
93
|
+
* plan in memory, save the changed targets, then delete the old repository files.
|
|
94
|
+
* @param input - Migration input.
|
|
95
|
+
* @returns The report, or `undefined` when there was nothing to do.
|
|
96
|
+
* @throws {RegistryError} `RECORD.MALFORMED` for a bad old file (nothing is
|
|
97
|
+
* written), or `RECORD.WRITE_FAILED` from a save or delete.
|
|
98
|
+
*/
|
|
99
|
+
export declare const migrateRecords: (input: MigrationInput) => Promise<MigrationReport | undefined>;
|
|
100
|
+
/** Input of {@link migrateLevel}. */
|
|
101
|
+
export interface MigrateLevelInput {
|
|
102
|
+
store: RecordStore;
|
|
103
|
+
fs: RecordFs;
|
|
104
|
+
/** Both repository files at one git root, committed first, or the user record. */
|
|
105
|
+
targets: readonly RecordLocation[];
|
|
106
|
+
/** Environment for the CLI's old user lockfile path; read at user level only. */
|
|
107
|
+
env: Record<string, string | undefined>;
|
|
108
|
+
/** User level, extension only: this profile's `RegistryStorage` user entries. */
|
|
109
|
+
profileEntries?: readonly MigratedEntry[];
|
|
110
|
+
now?: () => Date;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Migrate the level the targets belong to, rooted at their root; the CLI and the extension both use it.
|
|
114
|
+
* @param input - Store, filesystem, targets, environment, profile entries and clock.
|
|
115
|
+
* @throws {RegistryError} As {@link migrateRecords}.
|
|
116
|
+
*/
|
|
117
|
+
export declare const migrateLevel: (input: MigrateLevelInput) => Promise<MigrationReport | undefined>;
|
|
118
|
+
//# sourceMappingURL=record-migration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record-migration.d.ts","sourceRoot":"","sources":["../../src/records/record-migration.ts"],"names":[],"mappings":"AAUA,OAAO,EASL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,cAAc,EAGpB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAEL,KAAK,QAAQ,EAEd,MAAM,+BAA+B,CAAC;AAiBvC,OAAO,KAAK,EAEV,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAKxB,0CAA0C;AAC1C,MAAM,MAAM,eAAe,GAAG,sBAAsB,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,0BAA0B,CAAC;AAE7H,2DAA2D;AAC3D,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,KAAK,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACtD,yF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