@ai-primitives-hub/app 0.2.0 → 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,385 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.HubContributionWorkflowService = void 0;
|
|
37
|
+
/**
|
|
38
|
+
* Orchestrates the end-to-end Hub Contributor Workflow:
|
|
39
|
+
* - Enforces GitHub-connected hub eligibility (rejecting Artifactory hubs as
|
|
40
|
+
* read-only replicas populated by promotion)
|
|
41
|
+
* - Forks the upstream GitHub hub repository
|
|
42
|
+
* - Clones or attaches to a local repository checkout
|
|
43
|
+
* - Configures `origin` (fork) and `upstream` remotes and checks out a branch
|
|
44
|
+
* - Validates, commits, pushes, creates a Pull Request, and tracks PR/check status
|
|
45
|
+
* @module hub-editor/hub-contribution-workflow
|
|
46
|
+
*/
|
|
47
|
+
const path = __importStar(require("node:path"));
|
|
48
|
+
const core_1 = require("@ai-primitives-hub/core");
|
|
49
|
+
const infra_1 = require("@ai-primitives-hub/infra");
|
|
50
|
+
class HubContributionWorkflowService {
|
|
51
|
+
deps;
|
|
52
|
+
constructor(deps) {
|
|
53
|
+
this.deps = deps;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Determine whether a hub is eligible for contribution and visual editing.
|
|
57
|
+
*
|
|
58
|
+
* Only hubs connected with GitHub are qualified. Artifactory hubs are
|
|
59
|
+
* read-only replicas populated by the promotion process and are strictly
|
|
60
|
+
* rejected.
|
|
61
|
+
* @param hub Hub descriptor (`id`, `config`, `reference`).
|
|
62
|
+
* @param hub.id
|
|
63
|
+
* @param hub.config
|
|
64
|
+
* @param hub.reference
|
|
65
|
+
*/
|
|
66
|
+
async evaluateHubForContribution(hub) {
|
|
67
|
+
if (hub.reference.type === 'local' && hub.reference.location) {
|
|
68
|
+
const repoDir = hub.reference.location.endsWith('.yml') || hub.reference.location.endsWith('.yaml')
|
|
69
|
+
? path.dirname(hub.reference.location)
|
|
70
|
+
: hub.reference.location;
|
|
71
|
+
const remotes = await this.deps.git.getRemotes(repoDir);
|
|
72
|
+
const remoteUrl = remotes.upstream ?? remotes.origin;
|
|
73
|
+
const remoteSlug = remoteUrl ? (0, infra_1.extractGitHubSlugFromRemoteUrl)(remoteUrl) : undefined;
|
|
74
|
+
return (0, core_1.isContributableHub)(hub.reference, remoteSlug);
|
|
75
|
+
}
|
|
76
|
+
return (0, core_1.isContributableHub)(hub.reference);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Probe available `gh auth` accounts against a target `owner/repo` and
|
|
80
|
+
* optionally switch the active `gh` account to one with verified access.
|
|
81
|
+
* @param repositorySlug Target `owner/repo` slug.
|
|
82
|
+
* @param options Account resolution options.
|
|
83
|
+
* @param options.switchActive
|
|
84
|
+
* @param options.preferredLogin
|
|
85
|
+
*/
|
|
86
|
+
async resolveHubGitHubAccount(repositorySlug, options) {
|
|
87
|
+
if (!this.deps.github.resolveAccessibleAccount) {
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
const [owner, repo] = repositorySlug.split('/');
|
|
91
|
+
if (!owner || !repo) {
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
return this.deps.github.resolveAccessibleAccount(owner, repo, options);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Execute the Fork -> Clone (or Sync existing local clone) -> Branch pipeline
|
|
98
|
+
* and persist the contribution session.
|
|
99
|
+
* @param input Bootstrap parameters.
|
|
100
|
+
*/
|
|
101
|
+
async bootstrapContributionWorkspace(input) {
|
|
102
|
+
let remoteSlugForLocal;
|
|
103
|
+
if (input.hubReference.type === 'local') {
|
|
104
|
+
const localDir = input.hubReference.location.endsWith('.yml') || input.hubReference.location.endsWith('.yaml')
|
|
105
|
+
? path.dirname(input.hubReference.location)
|
|
106
|
+
: input.hubReference.location;
|
|
107
|
+
const remotes = await this.deps.git.getRemotes(localDir);
|
|
108
|
+
const remoteUrl = remotes.upstream ?? remotes.origin;
|
|
109
|
+
remoteSlugForLocal = remoteUrl ? (0, infra_1.extractGitHubSlugFromRemoteUrl)(remoteUrl) : undefined;
|
|
110
|
+
}
|
|
111
|
+
const eligibility = (0, core_1.isContributableHub)(input.hubReference, remoteSlugForLocal);
|
|
112
|
+
if (!eligibility.contributable || !eligibility.repositorySlug) {
|
|
113
|
+
throw new Error(eligibility.reason
|
|
114
|
+
?? 'Only hubs connected with a GitHub repository support contributions.');
|
|
115
|
+
}
|
|
116
|
+
const [upstreamOwner, upstreamRepo] = eligibility.repositorySlug.split('/');
|
|
117
|
+
const accountResolution = await this.resolveHubGitHubAccount(eligibility.repositorySlug, {
|
|
118
|
+
switchActive: true,
|
|
119
|
+
preferredLogin: input.preferredGitHubLogin
|
|
120
|
+
});
|
|
121
|
+
if (accountResolution && accountResolution.accounts.length > 0 && !accountResolution.selectedAccount) {
|
|
122
|
+
throw new Error(accountResolution.message
|
|
123
|
+
?? `No GitHub CLI account has access to ${eligibility.repositorySlug}.`);
|
|
124
|
+
}
|
|
125
|
+
const fork = await this.deps.github.ensureFork(upstreamOwner, upstreamRepo);
|
|
126
|
+
const upstreamCloneUrl = `https://github.com/${eligibility.repositorySlug}.git`;
|
|
127
|
+
const isAlreadyGit = await this.deps.git.isGitRepository(input.targetDir);
|
|
128
|
+
if (!isAlreadyGit) {
|
|
129
|
+
await this.deps.git.cloneRepository(fork.cloneUrl, input.targetDir);
|
|
130
|
+
}
|
|
131
|
+
const existingRemotes = await this.deps.git.getRemotes(input.targetDir);
|
|
132
|
+
const sameRepo = (url, slug) => url !== undefined && (0, infra_1.extractGitHubSlugFromRemoteUrl)(url)?.toLowerCase() === slug.toLowerCase();
|
|
133
|
+
if (!sameRepo(existingRemotes.origin, fork.fullName)) {
|
|
134
|
+
await this.deps.git.ensureRemote(input.targetDir, 'origin', fork.cloneUrl);
|
|
135
|
+
}
|
|
136
|
+
if (!sameRepo(existingRemotes.upstream, eligibility.repositorySlug)) {
|
|
137
|
+
await this.deps.git.ensureRemote(input.targetDir, 'upstream', upstreamCloneUrl);
|
|
138
|
+
}
|
|
139
|
+
const upstreamRepoMeta = await this.deps.github.getRepository(upstreamOwner, upstreamRepo)
|
|
140
|
+
.catch(() => ({ defaultBranch: fork.defaultBranch }));
|
|
141
|
+
const requestedRef = input.hubReference.ref?.trim();
|
|
142
|
+
// Only branch names are valid PR bases; commit SHAs or version tags fall back to upstream defaultBranch
|
|
143
|
+
const baseBranch = requestedRef && !/^[0-9a-f]{7,40}$/i.test(requestedRef) && !/^v?\d+\.\d+/.test(requestedRef)
|
|
144
|
+
? requestedRef
|
|
145
|
+
: upstreamRepoMeta.defaultBranch;
|
|
146
|
+
await this.deps.git.fetchRemote(input.targetDir, 'upstream', baseBranch);
|
|
147
|
+
const branchName = input.branchName.trim() || 'feat/update-hub-config';
|
|
148
|
+
await this.deps.git.checkoutBranch(input.targetDir, branchName, {
|
|
149
|
+
create: true,
|
|
150
|
+
startPoint: `upstream/${baseBranch}`
|
|
151
|
+
});
|
|
152
|
+
const hubConfigPath = path.join(input.targetDir, 'hub-config.yml');
|
|
153
|
+
const session = {
|
|
154
|
+
hubId: input.hubId,
|
|
155
|
+
hubName: input.hubName,
|
|
156
|
+
hubReference: input.hubReference,
|
|
157
|
+
upstreamSlug: eligibility.repositorySlug,
|
|
158
|
+
forkSlug: fork.fullName,
|
|
159
|
+
defaultBranch: baseBranch,
|
|
160
|
+
branchName,
|
|
161
|
+
workspaceDir: input.targetDir,
|
|
162
|
+
hubConfigPath,
|
|
163
|
+
updatedAt: this.deps.clock.nowIso()
|
|
164
|
+
};
|
|
165
|
+
await this.saveSession(session);
|
|
166
|
+
return {
|
|
167
|
+
...session,
|
|
168
|
+
accountResolution
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Inspect a local workspace directory to determine its hub contribution state.
|
|
173
|
+
* @param workspaceDir Local workspace root directory.
|
|
174
|
+
*/
|
|
175
|
+
async getWorkspaceContributionContext(workspaceDir) {
|
|
176
|
+
const hubConfigPath = path.join(workspaceDir, 'hub-config.yml');
|
|
177
|
+
const hasConfig = await this.deps.fs.exists(hubConfigPath);
|
|
178
|
+
const status = await this.deps.git.getStatus(workspaceDir);
|
|
179
|
+
const savedSession = await this.loadSession(workspaceDir);
|
|
180
|
+
const originSlug = status.remotes.origin
|
|
181
|
+
? (0, infra_1.extractGitHubSlugFromRemoteUrl)(status.remotes.origin)
|
|
182
|
+
: savedSession?.forkSlug;
|
|
183
|
+
const upstreamSlug = status.remotes.upstream
|
|
184
|
+
? (0, infra_1.extractGitHubSlugFromRemoteUrl)(status.remotes.upstream)
|
|
185
|
+
: (savedSession?.upstreamSlug ?? originSlug);
|
|
186
|
+
const activeSession = savedSession?.pullRequest && savedSession.pullRequest.state !== 'open'
|
|
187
|
+
? { ...savedSession, pullRequest: undefined }
|
|
188
|
+
: savedSession;
|
|
189
|
+
return {
|
|
190
|
+
isHubWorkspace: hasConfig && Boolean(upstreamSlug),
|
|
191
|
+
workspaceDir,
|
|
192
|
+
hubConfigPath,
|
|
193
|
+
upstreamSlug,
|
|
194
|
+
forkSlug: originSlug,
|
|
195
|
+
currentBranch: status.currentBranch ?? savedSession?.branchName,
|
|
196
|
+
defaultBranch: savedSession?.defaultBranch ?? 'main',
|
|
197
|
+
hasUncommittedChanges: status.hasUncommittedChanges,
|
|
198
|
+
session: activeSession
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Validate `hub-config.yml`, touch `metadata.updatedAt`, stage, commit, push
|
|
203
|
+
* to the fork remote, and create a Pull Request against the upstream hub repo.
|
|
204
|
+
* @param input Submission options.
|
|
205
|
+
*/
|
|
206
|
+
async submitPullRequest(input) {
|
|
207
|
+
const configFileName = input.hubConfigFileName ?? 'hub-config.yml';
|
|
208
|
+
const hubConfigPath = path.join(input.workspaceDir, configFileName);
|
|
209
|
+
const context = await this.getWorkspaceContributionContext(input.workspaceDir);
|
|
210
|
+
if (!context.upstreamSlug) {
|
|
211
|
+
throw new Error('Workspace does not have a GitHub upstream or origin remote.');
|
|
212
|
+
}
|
|
213
|
+
const [upstreamOwner, upstreamRepo] = context.upstreamSlug.split('/');
|
|
214
|
+
const defaultBranch = context.session?.defaultBranch
|
|
215
|
+
?? (await this.deps.github.getRepository(upstreamOwner, upstreamRepo).catch(() => undefined))?.defaultBranch
|
|
216
|
+
?? context.defaultBranch;
|
|
217
|
+
const branchName = context.currentBranch ?? 'feat/update-hub-config';
|
|
218
|
+
if (branchName === defaultBranch || branchName === 'HEAD') {
|
|
219
|
+
throw new Error(`Refusing to commit directly to '${branchName}'. Check out a feature branch before submitting a Pull Request.`);
|
|
220
|
+
}
|
|
221
|
+
const rawContent = await this.deps.fs.readFile(hubConfigPath);
|
|
222
|
+
const content = input.touchUpdatedAt === false
|
|
223
|
+
? rawContent
|
|
224
|
+
: (0, infra_1.applyHubYamlMutation)(rawContent, {
|
|
225
|
+
kind: 'touch-updated-at',
|
|
226
|
+
updatedAt: this.deps.clock.nowIso()
|
|
227
|
+
});
|
|
228
|
+
const validation = (0, infra_1.validateHubConfigYaml)(content);
|
|
229
|
+
if (!validation.valid) {
|
|
230
|
+
throw new Error(`Cannot submit Pull Request because ${configFileName} has validation errors:\n- ${validation.errors.join('\n- ')}`);
|
|
231
|
+
}
|
|
232
|
+
if (content !== rawContent) {
|
|
233
|
+
await this.deps.fs.writeFile(hubConfigPath, content);
|
|
234
|
+
}
|
|
235
|
+
await this.resolveHubGitHubAccount(context.upstreamSlug, { switchActive: true });
|
|
236
|
+
const baseContent = await this.deps.git.getFileAtRef(input.workspaceDir, `upstream/${defaultBranch}`, configFileName) ?? '';
|
|
237
|
+
const diffSummary = (0, infra_1.summarizeHubYamlChanges)(baseContent, content);
|
|
238
|
+
const commitMessage = input.commitMessage?.trim() || diffSummary.suggestedCommitMessage;
|
|
239
|
+
const prTitle = input.prTitle?.trim() || diffSummary.suggestedPrTitle;
|
|
240
|
+
const prBody = input.prBody?.trim() || diffSummary.suggestedPrBody;
|
|
241
|
+
await this.deps.git.commitAndPush(input.workspaceDir, [configFileName], commitMessage, 'origin', branchName);
|
|
242
|
+
const forkOwner = context.forkSlug ? context.forkSlug.split('/')[0] : upstreamOwner;
|
|
243
|
+
const headRef = forkOwner.toLowerCase() === upstreamOwner.toLowerCase()
|
|
244
|
+
? branchName
|
|
245
|
+
: `${forkOwner}:${branchName}`;
|
|
246
|
+
const existingPrs = await this.deps.github.findPullRequestsForBranch(upstreamOwner, upstreamRepo, `${forkOwner}:${branchName}`);
|
|
247
|
+
const existingOpenPr = existingPrs.find((item) => item.state === 'open')
|
|
248
|
+
?? (context.session?.pullRequest?.state === 'open' && context.session.pullRequest.headRef === branchName
|
|
249
|
+
? context.session.pullRequest
|
|
250
|
+
: undefined);
|
|
251
|
+
const pr = existingOpenPr
|
|
252
|
+
? await this.deps.github.getPullRequestStatus(upstreamOwner, upstreamRepo, existingOpenPr.number)
|
|
253
|
+
: await this.deps.github.createPullRequest({
|
|
254
|
+
upstreamOwner,
|
|
255
|
+
upstreamRepo,
|
|
256
|
+
head: headRef,
|
|
257
|
+
base: defaultBranch,
|
|
258
|
+
title: prTitle,
|
|
259
|
+
body: prBody,
|
|
260
|
+
draft: input.draft
|
|
261
|
+
});
|
|
262
|
+
const sessionToSave = context.session
|
|
263
|
+
? {
|
|
264
|
+
...context.session,
|
|
265
|
+
branchName,
|
|
266
|
+
pullRequest: pr,
|
|
267
|
+
updatedAt: this.deps.clock.nowIso()
|
|
268
|
+
}
|
|
269
|
+
: {
|
|
270
|
+
hubId: context.upstreamSlug.replaceAll('/', '-').toLowerCase(),
|
|
271
|
+
hubName: String(validation.config?.metadata?.name ?? context.upstreamSlug),
|
|
272
|
+
hubReference: {
|
|
273
|
+
type: 'github',
|
|
274
|
+
location: context.upstreamSlug,
|
|
275
|
+
ref: defaultBranch
|
|
276
|
+
},
|
|
277
|
+
upstreamSlug: context.upstreamSlug,
|
|
278
|
+
forkSlug: context.forkSlug ?? context.upstreamSlug,
|
|
279
|
+
defaultBranch,
|
|
280
|
+
branchName,
|
|
281
|
+
workspaceDir: input.workspaceDir,
|
|
282
|
+
hubConfigPath,
|
|
283
|
+
pullRequest: pr,
|
|
284
|
+
updatedAt: this.deps.clock.nowIso()
|
|
285
|
+
};
|
|
286
|
+
await this.saveSession(sessionToSave);
|
|
287
|
+
return pr;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Refresh the Pull Request and CI check-run status for a local hub workspace.
|
|
291
|
+
* Only open Pull Requests are tracked; if a previously tracked PR has been
|
|
292
|
+
* closed or merged, it is cleared from the active session unless a newer open
|
|
293
|
+
* PR exists for the current branch.
|
|
294
|
+
* @param workspaceDir Local workspace root directory.
|
|
295
|
+
*/
|
|
296
|
+
async refreshPullRequestStatus(workspaceDir) {
|
|
297
|
+
const context = await this.getWorkspaceContributionContext(workspaceDir);
|
|
298
|
+
if (!context.upstreamSlug) {
|
|
299
|
+
return undefined;
|
|
300
|
+
}
|
|
301
|
+
const [upstreamOwner, upstreamRepo] = context.upstreamSlug.split('/');
|
|
302
|
+
const storedSession = await this.loadSession(workspaceDir);
|
|
303
|
+
const findOpenPrNumberForBranch = async () => {
|
|
304
|
+
if (!context.currentBranch) {
|
|
305
|
+
return undefined;
|
|
306
|
+
}
|
|
307
|
+
const forkOwner = context.forkSlug ? context.forkSlug.split('/')[0] : upstreamOwner;
|
|
308
|
+
const headFilter = `${forkOwner}:${context.currentBranch}`;
|
|
309
|
+
const found = await this.deps.github.findPullRequestsForBranch(upstreamOwner, upstreamRepo, headFilter);
|
|
310
|
+
return found.find((item) => item.state === 'open')?.number;
|
|
311
|
+
};
|
|
312
|
+
let prNumber = storedSession?.pullRequest?.state === 'open'
|
|
313
|
+
? storedSession.pullRequest.number
|
|
314
|
+
: undefined;
|
|
315
|
+
if (!prNumber) {
|
|
316
|
+
prNumber = await findOpenPrNumberForBranch();
|
|
317
|
+
}
|
|
318
|
+
if (!prNumber) {
|
|
319
|
+
if (storedSession?.pullRequest) {
|
|
320
|
+
await this.saveSession({
|
|
321
|
+
...storedSession,
|
|
322
|
+
pullRequest: undefined,
|
|
323
|
+
updatedAt: this.deps.clock.nowIso()
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
return undefined;
|
|
327
|
+
}
|
|
328
|
+
let status = await this.deps.github.getPullRequestStatus(upstreamOwner, upstreamRepo, prNumber);
|
|
329
|
+
if (status.state !== 'open') {
|
|
330
|
+
const replacementOpenNumber = await findOpenPrNumberForBranch();
|
|
331
|
+
if (replacementOpenNumber && replacementOpenNumber !== prNumber) {
|
|
332
|
+
status = await this.deps.github.getPullRequestStatus(upstreamOwner, upstreamRepo, replacementOpenNumber);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
if (status.state !== 'open') {
|
|
336
|
+
if (storedSession) {
|
|
337
|
+
await this.saveSession({
|
|
338
|
+
...storedSession,
|
|
339
|
+
pullRequest: undefined,
|
|
340
|
+
updatedAt: this.deps.clock.nowIso()
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
return undefined;
|
|
344
|
+
}
|
|
345
|
+
if (storedSession) {
|
|
346
|
+
await this.saveSession({
|
|
347
|
+
...storedSession,
|
|
348
|
+
pullRequest: status,
|
|
349
|
+
updatedAt: this.deps.clock.nowIso()
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
return status;
|
|
353
|
+
}
|
|
354
|
+
async loadSession(workspaceDir) {
|
|
355
|
+
try {
|
|
356
|
+
const exists = await this.deps.fs.exists(this.deps.sessionStorePath);
|
|
357
|
+
if (!exists) {
|
|
358
|
+
return undefined;
|
|
359
|
+
}
|
|
360
|
+
const raw = await this.deps.fs.readFile(this.deps.sessionStorePath);
|
|
361
|
+
const map = JSON.parse(raw);
|
|
362
|
+
return map[path.resolve(workspaceDir)];
|
|
363
|
+
}
|
|
364
|
+
catch {
|
|
365
|
+
return undefined;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
async saveSession(session) {
|
|
369
|
+
let map = {};
|
|
370
|
+
try {
|
|
371
|
+
if (await this.deps.fs.exists(this.deps.sessionStorePath)) {
|
|
372
|
+
const raw = await this.deps.fs.readFile(this.deps.sessionStorePath);
|
|
373
|
+
map = JSON.parse(raw);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
catch {
|
|
377
|
+
map = {};
|
|
378
|
+
}
|
|
379
|
+
map[path.resolve(session.workspaceDir)] = session;
|
|
380
|
+
await this.deps.fs.mkdir(path.dirname(this.deps.sessionStorePath), { recursive: true });
|
|
381
|
+
await this.deps.fs.writeFile(this.deps.sessionStorePath, JSON.stringify(map, null, 2));
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
exports.HubContributionWorkflowService = HubContributionWorkflowService;
|
|
385
|
+
//# sourceMappingURL=hub-contribution-workflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hub-contribution-workflow.js","sourceRoot":"","sources":["../../src/hub-editor/hub-contribution-workflow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;GASG;AACH,gDAAkC;AAalC,kDAEiC;AACjC,oDAKkC;AA0ClC,MAAa,8BAA8B;IACL;IAApC,YAAoC,IAAiC;QAAjC,SAAI,GAAJ,IAAI,CAA6B;IAAG,CAAC;IAEzE;;;;;;;;;;OAUG;IACI,KAAK,CAAC,0BAA0B,CAAC,GAIvC;QACC,IAAI,GAAG,CAAC,SAAS,CAAC,IAAI,KAAK,OAAO,IAAI,GAAG,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;YAC7D,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC;gBACjG,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC;gBACtC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC;YAC3B,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACxD,MAAM,SAAS,GAAG,OAAO,CAAC,QAA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EAwaC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hub-editor/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* Hub Configuration Editor & Contributor Workflow barrel export.
|
|
19
|
+
* @module hub-editor
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./hub-config-editor-service"), exports);
|
|
22
|
+
__exportStar(require("./hub-contribution-workflow"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hub-editor/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,8DAA4C;AAC5C,8DAA4C"}
|
package/dist/index.d.ts
CHANGED
|
@@ -13,16 +13,22 @@
|
|
|
13
13
|
* modules) is the first real module family to land.
|
|
14
14
|
*/
|
|
15
15
|
export * from './collection';
|
|
16
|
+
export * from './collection-editor';
|
|
16
17
|
export * from './context-detection';
|
|
18
|
+
export * from './diagnostics';
|
|
17
19
|
export * from './discovery';
|
|
20
|
+
export * from './governance';
|
|
21
|
+
export * from './hub-editor';
|
|
18
22
|
export * from './install';
|
|
19
23
|
export * from './mcp';
|
|
20
24
|
export * from './writers';
|
|
25
|
+
export * from './records';
|
|
21
26
|
export * from './stores';
|
|
22
27
|
export * from './update';
|
|
23
28
|
export * from './registry';
|
|
24
29
|
export * from './release';
|
|
25
30
|
export * from './search';
|
|
31
|
+
export * from './security';
|
|
26
32
|
export * from './transform';
|
|
27
33
|
export * from './replicate/replicate';
|
|
28
34
|
/**
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AAEtC;;;;GAIG;AACH,OAAO,EACL,mBAAmB,IAAI,iBAAiB,GACzC,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AAEtC;;;;GAIG;AACH,OAAO,EACL,mBAAmB,IAAI,iBAAiB,GACzC,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -30,16 +30,22 @@ exports.APP_PACKAGE_READY = void 0;
|
|
|
30
30
|
* modules) is the first real module family to land.
|
|
31
31
|
*/
|
|
32
32
|
__exportStar(require("./collection"), exports);
|
|
33
|
+
__exportStar(require("./collection-editor"), exports);
|
|
33
34
|
__exportStar(require("./context-detection"), exports);
|
|
35
|
+
__exportStar(require("./diagnostics"), exports);
|
|
34
36
|
__exportStar(require("./discovery"), exports);
|
|
37
|
+
__exportStar(require("./governance"), exports);
|
|
38
|
+
__exportStar(require("./hub-editor"), exports);
|
|
35
39
|
__exportStar(require("./install"), exports);
|
|
36
40
|
__exportStar(require("./mcp"), exports);
|
|
37
41
|
__exportStar(require("./writers"), exports);
|
|
42
|
+
__exportStar(require("./records"), exports);
|
|
38
43
|
__exportStar(require("./stores"), exports);
|
|
39
44
|
__exportStar(require("./update"), exports);
|
|
40
45
|
__exportStar(require("./registry"), exports);
|
|
41
46
|
__exportStar(require("./release"), exports);
|
|
42
47
|
__exportStar(require("./search"), exports);
|
|
48
|
+
__exportStar(require("./security"), exports);
|
|
43
49
|
__exportStar(require("./transform"), exports);
|
|
44
50
|
__exportStar(require("./replicate/replicate"), exports);
|
|
45
51
|
/**
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;AACH,+CAA6B;AAC7B,sDAAoC;AACpC,8CAA4B;AAC5B,4CAA0B;AAC1B,wCAAsB;AACtB,4CAA0B;AAC1B,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,8CAA4B;AAC5B,wDAAsC;AAEtC;;;;GAIG;AACH,kDAEkC;AADhC,0GAAA,mBAAmB,OAAqB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;GAaG;AACH,+CAA6B;AAC7B,sDAAoC;AACpC,sDAAoC;AACpC,gDAA8B;AAC9B,8CAA4B;AAC5B,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,wCAAsB;AACtB,4CAA0B;AAC1B,4CAA0B;AAC1B,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,6CAA2B;AAC3B,8CAA4B;AAC5B,wDAAsC;AAEtC;;;;GAIG;AACH,kDAEkC;AADhC,0GAAA,mBAAmB,OAAqB"}
|
package/dist/install/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export type { UninstallBundleInput, UninstallBundleOptions, } from './uninstall-
|
|
|
9
9
|
export { InstallPipeline, InstallPipelineError, } from './pipeline';
|
|
10
10
|
export { manifestPlacementItems, removeSupersededFiles, TargetWriteRejectedError, writeBundleSafely, writeTargetSafely, } from './target-write';
|
|
11
11
|
export type { BundleTargetWrite, RecordedBundleFile, } from './target-write';
|
|
12
|
+
export { writeBundleForInstall, } from './partial-target-write';
|
|
13
|
+
export type { BundleInstallWrite, SkippedBundleContent, WriteBundleForInstallOptions, } from './partial-target-write';
|
|
12
14
|
export type { InstallOutcome, InstallPipelineOptions, PipelineEvent, } from './pipeline';
|
|
13
15
|
export { UninstallPipeline, } from './uninstall-pipeline';
|
|
14
16
|
export type { UninstallPipelineOptions, UninstallPlan, UninstallResult, } from './uninstall-pipeline';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/install/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,aAAa,GACd,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACV,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,aAAa,EACb,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EACV,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,eAAe,EACf,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACV,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACV,cAAc,EACd,sBAAsB,EACtB,aAAa,GACd,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,wBAAwB,EACxB,aAAa,EACb,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,cAAc,GACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/install/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,aAAa,GACd,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACV,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,aAAa,EACb,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EACV,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,eAAe,EACf,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EACV,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EACV,kBAAkB,EAClB,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EACV,cAAc,EACd,sBAAsB,EACtB,aAAa,GACd,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,wBAAwB,EACxB,aAAa,EACb,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,cAAc,GACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC"}
|
package/dist/install/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WORKSPACE_ROOT_TOKEN = exports.resolveMcpLayoutConfig = exports.resolveLayoutFromLayers = exports.UninstallPipeline = exports.writeTargetSafely = exports.writeBundleSafely = exports.TargetWriteRejectedError = exports.removeSupersededFiles = exports.manifestPlacementItems = exports.InstallPipelineError = exports.InstallPipeline = exports.uninstallBundle = exports.planUninstall = exports.installBundle = void 0;
|
|
3
|
+
exports.WORKSPACE_ROOT_TOKEN = exports.resolveMcpLayoutConfig = exports.resolveLayoutFromLayers = exports.UninstallPipeline = exports.writeBundleForInstall = exports.writeTargetSafely = exports.writeBundleSafely = exports.TargetWriteRejectedError = exports.removeSupersededFiles = exports.manifestPlacementItems = exports.InstallPipelineError = exports.InstallPipeline = exports.uninstallBundle = exports.planUninstall = exports.installBundle = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Install use cases — barrel export.
|
|
6
6
|
* @module install
|
|
@@ -19,6 +19,8 @@ Object.defineProperty(exports, "removeSupersededFiles", { enumerable: true, get:
|
|
|
19
19
|
Object.defineProperty(exports, "TargetWriteRejectedError", { enumerable: true, get: function () { return target_write_1.TargetWriteRejectedError; } });
|
|
20
20
|
Object.defineProperty(exports, "writeBundleSafely", { enumerable: true, get: function () { return target_write_1.writeBundleSafely; } });
|
|
21
21
|
Object.defineProperty(exports, "writeTargetSafely", { enumerable: true, get: function () { return target_write_1.writeTargetSafely; } });
|
|
22
|
+
var partial_target_write_1 = require("./partial-target-write");
|
|
23
|
+
Object.defineProperty(exports, "writeBundleForInstall", { enumerable: true, get: function () { return partial_target_write_1.writeBundleForInstall; } });
|
|
22
24
|
var uninstall_pipeline_1 = require("./uninstall-pipeline");
|
|
23
25
|
Object.defineProperty(exports, "UninstallPipeline", { enumerable: true, get: function () { return uninstall_pipeline_1.UninstallPipeline; } });
|
|
24
26
|
var layout_resolver_1 = require("./layout-resolver");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/install/index.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,mDAE0B;AADxB,+GAAA,aAAa,OAAA;AAQf,uDAG4B;AAF1B,iHAAA,aAAa,OAAA;AACb,mHAAA,eAAe,OAAA;AAQjB,uCAGoB;AAFlB,2GAAA,eAAe,OAAA;AACf,gHAAA,oBAAoB,OAAA;AAGtB,+CAMwB;AALtB,sHAAA,sBAAsB,OAAA;AACtB,qHAAA,qBAAqB,OAAA;AACrB,wHAAA,wBAAwB,OAAA;AACxB,iHAAA,iBAAiB,OAAA;AACjB,iHAAA,iBAAiB,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/install/index.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,mDAE0B;AADxB,+GAAA,aAAa,OAAA;AAQf,uDAG4B;AAF1B,iHAAA,aAAa,OAAA;AACb,mHAAA,eAAe,OAAA;AAQjB,uCAGoB;AAFlB,2GAAA,eAAe,OAAA;AACf,gHAAA,oBAAoB,OAAA;AAGtB,+CAMwB;AALtB,sHAAA,sBAAsB,OAAA;AACtB,qHAAA,qBAAqB,OAAA;AACrB,wHAAA,wBAAwB,OAAA;AACxB,iHAAA,iBAAiB,OAAA;AACjB,iHAAA,iBAAiB,OAAA;AAQnB,+DAEgC;AAD9B,6HAAA,qBAAqB,OAAA;AAevB,2DAE8B;AAD5B,uHAAA,iBAAiB,OAAA;AAanB,qDAI2B;AAHzB,0HAAA,uBAAuB,OAAA;AACvB,yHAAA,sBAAsB,OAAA;AACtB,uHAAA,oBAAoB,OAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opt-in partial install.
|
|
3
|
+
*
|
|
4
|
+
* By default an install is all-or-nothing: {@link writeBundleSafely}
|
|
5
|
+
* rejects the bundle when the target cannot hold every item. With
|
|
6
|
+
* `skipUnsupported`, the content the target supports is written and the
|
|
7
|
+
* rest is reported, so the caller can record only what was installed.
|
|
8
|
+
* @module install/partial-target-write
|
|
9
|
+
*/
|
|
10
|
+
import type { ExtractedFiles, Target, TargetWriter, ValidatedManifest } from '@ai-primitives-hub/core';
|
|
11
|
+
import { type BundleTargetWrite } from './target-write';
|
|
12
|
+
/**
|
|
13
|
+
* A bundle item a partial install left out.
|
|
14
|
+
*/
|
|
15
|
+
export interface SkippedBundleContent {
|
|
16
|
+
/** Bundle-relative path (a manifest item's `file`, or a path-routed file). */
|
|
17
|
+
path: string;
|
|
18
|
+
/** Machine-readable reason code. */
|
|
19
|
+
code: 'BUNDLE.UNSUPPORTED_CONTENT';
|
|
20
|
+
/** Human-readable reason. */
|
|
21
|
+
reason: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Result of {@link writeBundleForInstall}.
|
|
25
|
+
*/
|
|
26
|
+
export interface BundleInstallWrite extends BundleTargetWrite {
|
|
27
|
+
/** Content left out of the install, sorted by path; empty unless `skipUnsupported` is set. */
|
|
28
|
+
skipped: SkippedBundleContent[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Options for {@link writeBundleForInstall}.
|
|
32
|
+
*/
|
|
33
|
+
export interface WriteBundleForInstallOptions {
|
|
34
|
+
/**
|
|
35
|
+
* Install the content the target supports and report the rest instead
|
|
36
|
+
* of rejecting the bundle. Defaults to `false` (all-or-nothing).
|
|
37
|
+
*/
|
|
38
|
+
skipUnsupported?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Write a validated bundle into a target for an install.
|
|
42
|
+
*
|
|
43
|
+
* Without `skipUnsupported` this is {@link writeBundleSafely}, unchanged:
|
|
44
|
+
* nothing is written when any content cannot be placed. With it, the
|
|
45
|
+
* install is planned before the first write, the supported content is
|
|
46
|
+
* written, and each skipped item is returned in `skipped`. The returned
|
|
47
|
+
* `result.writtenBundlePaths` then lists only installed files, so a
|
|
48
|
+
* lockfile entry built from it never records skipped content.
|
|
49
|
+
*
|
|
50
|
+
* In both modes the bundle is rejected, with nothing written, when the
|
|
51
|
+
* target supports none of its content, and a write failure rolls back
|
|
52
|
+
* what was written.
|
|
53
|
+
* @param writer Target writer.
|
|
54
|
+
* @param target Target configuration.
|
|
55
|
+
* @param files Extracted bundle files (full archive).
|
|
56
|
+
* @param manifest Validated manifest of `files`.
|
|
57
|
+
* @param options Install options.
|
|
58
|
+
* @returns The installable files, the writer result and the skipped content.
|
|
59
|
+
* @throws {TargetWriteRejectedError} When content cannot be placed (default)
|
|
60
|
+
* or when nothing can be placed (`skipUnsupported`).
|
|
61
|
+
*/
|
|
62
|
+
export declare function writeBundleForInstall(writer: TargetWriter, target: Target, files: ExtractedFiles, manifest: ValidatedManifest, options?: WriteBundleForInstallOptions): Promise<BundleInstallWrite>;
|
|
63
|
+
//# sourceMappingURL=partial-target-write.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partial-target-write.d.ts","sourceRoot":"","sources":["../../src/install/partial-target-write.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EACV,cAAc,EACd,MAAM,EACN,YAAY,EAEZ,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAUjC,OAAO,EACL,KAAK,iBAAiB,EAKvB,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,IAAI,EAAE,4BAA4B,CAAC;IACnC,6BAA6B;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,8FAA8F;IAC9F,OAAO,EAAE,oBAAoB,EAAE,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAQD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,cAAc,EACrB,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,GAAE,4BAAiC,GACzC,OAAO,CAAC,kBAAkB,CAAC,CA0B7B"}
|