@agentxm/extension-lifecycle 0.28.4-bootstrap.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/LICENSE +110 -0
- package/dist/src/configured-entry-resolution.d.ts +110 -0
- package/dist/src/configured-entry-resolution.js +723 -0
- package/dist/src/errors.d.ts +39 -0
- package/dist/src/errors.js +45 -0
- package/dist/src/failure-adapter.d.ts +35 -0
- package/dist/src/failure-adapter.js +23 -0
- package/dist/src/hooks/configured-agent-outcomes-provider.d.ts +18 -0
- package/dist/src/hooks/configured-agent-outcomes-provider.js +39 -0
- package/dist/src/hooks/manager.d.ts +15 -0
- package/dist/src/hooks/manager.js +751 -0
- package/dist/src/index.d.ts +38 -0
- package/dist/src/index.js +41 -0
- package/dist/src/internal/fs-helpers.d.ts +12 -0
- package/dist/src/internal/fs-helpers.js +13 -0
- package/dist/src/internal/integrity.d.ts +13 -0
- package/dist/src/internal/integrity.js +17 -0
- package/dist/src/knowledge/manager.d.ts +11 -0
- package/dist/src/knowledge/manager.js +655 -0
- package/dist/src/live.d.ts +18 -0
- package/dist/src/live.js +18 -0
- package/dist/src/mcps/manager.d.ts +16 -0
- package/dist/src/mcps/manager.js +213 -0
- package/dist/src/mcps/operations/artifact.d.ts +24 -0
- package/dist/src/mcps/operations/artifact.js +74 -0
- package/dist/src/mcps/operations/disable.d.ts +18 -0
- package/dist/src/mcps/operations/disable.js +113 -0
- package/dist/src/mcps/operations/enable.d.ts +18 -0
- package/dist/src/mcps/operations/enable.js +218 -0
- package/dist/src/mcps/operations/install.d.ts +59 -0
- package/dist/src/mcps/operations/install.js +566 -0
- package/dist/src/mcps/operations/sync-outcome.d.ts +10 -0
- package/dist/src/mcps/operations/sync-outcome.js +27 -0
- package/dist/src/mcps/operations/uninstall.d.ts +41 -0
- package/dist/src/mcps/operations/uninstall.js +189 -0
- package/dist/src/packs/dependency-resolution.d.ts +65 -0
- package/dist/src/packs/dependency-resolution.js +414 -0
- package/dist/src/packs/expansion.d.ts +59 -0
- package/dist/src/packs/expansion.js +44 -0
- package/dist/src/packs/manager.d.ts +16 -0
- package/dist/src/packs/manager.js +181 -0
- package/dist/src/packs/operations/install.d.ts +67 -0
- package/dist/src/packs/operations/install.js +156 -0
- package/dist/src/packs/resolved-dependency.d.ts +29 -0
- package/dist/src/packs/resolved-dependency.js +28 -0
- package/dist/src/registry-materialization.d.ts +52 -0
- package/dist/src/registry-materialization.js +67 -0
- package/dist/src/resolution-progress.d.ts +18 -0
- package/dist/src/resolution-progress.js +11 -0
- package/dist/src/resolution-timeout.d.ts +5 -0
- package/dist/src/resolution-timeout.js +11 -0
- package/dist/src/rules/manager.d.ts +20 -0
- package/dist/src/rules/manager.js +475 -0
- package/dist/src/skills/manager.d.ts +18 -0
- package/dist/src/skills/manager.js +346 -0
- package/dist/src/skills/materialization.d.ts +54 -0
- package/dist/src/skills/materialization.js +158 -0
- package/dist/src/skills/operations/disable.d.ts +31 -0
- package/dist/src/skills/operations/disable.js +110 -0
- package/dist/src/skills/operations/enable.d.ts +31 -0
- package/dist/src/skills/operations/enable.js +113 -0
- package/dist/src/skills/operations/install-result.d.ts +33 -0
- package/dist/src/skills/operations/install-result.js +10 -0
- package/dist/src/skills/operations/install.d.ts +67 -0
- package/dist/src/skills/operations/install.js +590 -0
- package/dist/src/skills/operations/source-hash.d.ts +2 -0
- package/dist/src/skills/operations/source-hash.js +6 -0
- package/dist/src/skills/operations/uninstall.d.ts +40 -0
- package/dist/src/skills/operations/uninstall.js +157 -0
- package/dist/src/skills/utils.d.ts +11 -0
- package/dist/src/skills/utils.js +29 -0
- package/dist/src/subagents/manager.d.ts +18 -0
- package/dist/src/subagents/manager.js +677 -0
- package/dist/src/subagents/operations/artifact.d.ts +18 -0
- package/dist/src/subagents/operations/artifact.js +43 -0
- package/dist/src/subagents/operations/disable.d.ts +32 -0
- package/dist/src/subagents/operations/disable.js +116 -0
- package/dist/src/subagents/operations/enable.d.ts +30 -0
- package/dist/src/subagents/operations/enable.js +160 -0
- package/dist/src/workflows/install-command/workflow.d.ts +57 -0
- package/dist/src/workflows/install-command/workflow.js +41 -0
- package/dist/src/workflows/uninstall-command/workflow.d.ts +42 -0
- package/dist/src/workflows/uninstall-command/workflow.js +29 -0
- package/package.json +62 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extension-lifecycle feature: install, update, uninstall, enable, and
|
|
3
|
+
* disable policy across root and type-specific command forms — configured
|
|
4
|
+
* entry resolution, the shared install/uninstall command workflows, and the
|
|
5
|
+
* per-type lifecycle operations. The environment-backed per-type manager
|
|
6
|
+
* layers live behind `./live`.
|
|
7
|
+
*
|
|
8
|
+
* @experimental All exports from this module are unstable and may change without notice.
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
export { ExtensionLifecycleFailed } from "./errors.js";
|
|
12
|
+
export { LifecycleFailureAdapter, withAdaptedStepFailures, type LifecycleFailureAdapterService, } from "./failure-adapter.js";
|
|
13
|
+
export { LifecycleResolutionProgress, type LifecycleResolutionProgressService, } from "./resolution-progress.js";
|
|
14
|
+
export { makeConfiguredReleaseAgeEvaluation, resolveConfiguredHook, resolveConfiguredKnowledge, resolveConfiguredMcpServer, resolveConfiguredPack, resolveConfiguredRegistryEntry, resolveConfiguredRule, resolveConfiguredSkill, resolveConfiguredSubagent, } from "./configured-entry-resolution.js";
|
|
15
|
+
export { CONFIGURED_ENTRY_RESOLUTION_TIMEOUT, withConfiguredEntryResolutionTimeout, } from "./resolution-timeout.js";
|
|
16
|
+
export { buildInstallCommandPlan, runInstallCommandWorkflow, type InstallExtensionCommandWorkflowActions, } from "./workflows/install-command/workflow.js";
|
|
17
|
+
export { runUninstallCommandWorkflow, type UninstallExtensionCommandWorkflowActions, type UninstallWorkflowFlags, } from "./workflows/uninstall-command/workflow.js";
|
|
18
|
+
export { materializeRegistryPackage, materializeRegistryPackageWithTreeIntegrity, type MaterializeRegistryPackageArgs, type RegistryPackageMaterializationMessages, } from "./registry-materialization.js";
|
|
19
|
+
export { ensureSkillAgentArtifact, removeSkillAgentArtifact } from "./skills/materialization.js";
|
|
20
|
+
export { getSkillDisplayName } from "./skills/utils.js";
|
|
21
|
+
export { computeSkillSourceHash, gitHostedSkillArtifactSource, installSkill, type InstallSkillOperation, type InstallSkillOperationArgs, } from "./skills/operations/install.js";
|
|
22
|
+
export type { InstallResult } from "./skills/operations/install-result.js";
|
|
23
|
+
export { uninstallSkill, type UninstallSkillOperation, type UninstallSkillOperationArgs, } from "./skills/operations/uninstall.js";
|
|
24
|
+
export { enableSkill, type EnableSkillOperation } from "./skills/operations/enable.js";
|
|
25
|
+
export { disableSkill, type DisableSkillOperation } from "./skills/operations/disable.js";
|
|
26
|
+
export { installMcpServer, type InstallMcpServerOperation, type InstallMcpServerOperationArgs, } from "./mcps/operations/install.js";
|
|
27
|
+
export { uninstallMcpServer, type UninstallMcpServerOperation, type UninstallMcpServerOperationArgs, } from "./mcps/operations/uninstall.js";
|
|
28
|
+
export { enableMcpServer, type EnableMcpServerOperation } from "./mcps/operations/enable.js";
|
|
29
|
+
export { disableMcpServer, type DisableMcpServerOperation } from "./mcps/operations/disable.js";
|
|
30
|
+
export { mcpServerArtifact, mcpSettingsTarget, mcpSourceTarget, } from "./mcps/operations/artifact.js";
|
|
31
|
+
export { SUBAGENT_CONFIG_SURFACE, renderedSubagentTargets, subagentConfigTarget, subagentLifecycleArtifact, } from "./subagents/operations/artifact.js";
|
|
32
|
+
export { enableSubagent, type EnableSubagentOperation } from "./subagents/operations/enable.js";
|
|
33
|
+
export { disableSubagent, type DisableSubagentOperation } from "./subagents/operations/disable.js";
|
|
34
|
+
export { expandPackInstallRefs, expandPackInstallRefsWithReleaseAge, type ReleaseAgeAwarePackExpansion, } from "./packs/expansion.js";
|
|
35
|
+
export { resolvePackDependenciesWithReleaseAge, type PackDependencyRefResolver, type ReleaseAgeAwarePackDependencyResolution, type WorkspacePackDependencyResolution, type WorkspacePackDependencyResolver, } from "./packs/dependency-resolution.js";
|
|
36
|
+
export { ResolvedPackDependencyMapSchema, ResolvedPackDependencySchema, validateExactPackDependencyVersions, type ResolvedPackDependency, type ResolvedPackDependencyMap, } from "./packs/resolved-dependency.js";
|
|
37
|
+
export { installPack, type InstallPackOperation, type InstallPackOperationArgs, } from "./packs/operations/install.js";
|
|
38
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extension-lifecycle feature: install, update, uninstall, enable, and
|
|
3
|
+
* disable policy across root and type-specific command forms — configured
|
|
4
|
+
* entry resolution, the shared install/uninstall command workflows, and the
|
|
5
|
+
* per-type lifecycle operations. The environment-backed per-type manager
|
|
6
|
+
* layers live behind `./live`.
|
|
7
|
+
*
|
|
8
|
+
* @experimental All exports from this module are unstable and may change without notice.
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
export { ExtensionLifecycleFailed } from "./errors.js";
|
|
12
|
+
export { LifecycleFailureAdapter, withAdaptedStepFailures, } from "./failure-adapter.js";
|
|
13
|
+
export { LifecycleResolutionProgress, } from "./resolution-progress.js";
|
|
14
|
+
export { makeConfiguredReleaseAgeEvaluation, resolveConfiguredHook, resolveConfiguredKnowledge, resolveConfiguredMcpServer, resolveConfiguredPack, resolveConfiguredRegistryEntry, resolveConfiguredRule, resolveConfiguredSkill, resolveConfiguredSubagent, } from "./configured-entry-resolution.js";
|
|
15
|
+
export { CONFIGURED_ENTRY_RESOLUTION_TIMEOUT, withConfiguredEntryResolutionTimeout, } from "./resolution-timeout.js";
|
|
16
|
+
export { buildInstallCommandPlan, runInstallCommandWorkflow, } from "./workflows/install-command/workflow.js";
|
|
17
|
+
export { runUninstallCommandWorkflow, } from "./workflows/uninstall-command/workflow.js";
|
|
18
|
+
export { materializeRegistryPackage, materializeRegistryPackageWithTreeIntegrity, } from "./registry-materialization.js";
|
|
19
|
+
// Skill lifecycle operations
|
|
20
|
+
export { ensureSkillAgentArtifact, removeSkillAgentArtifact } from "./skills/materialization.js";
|
|
21
|
+
export { getSkillDisplayName } from "./skills/utils.js";
|
|
22
|
+
export { computeSkillSourceHash, gitHostedSkillArtifactSource, installSkill, } from "./skills/operations/install.js";
|
|
23
|
+
export { uninstallSkill, } from "./skills/operations/uninstall.js";
|
|
24
|
+
export { enableSkill } from "./skills/operations/enable.js";
|
|
25
|
+
export { disableSkill } from "./skills/operations/disable.js";
|
|
26
|
+
// MCP server lifecycle operations
|
|
27
|
+
export { installMcpServer, } from "./mcps/operations/install.js";
|
|
28
|
+
export { uninstallMcpServer, } from "./mcps/operations/uninstall.js";
|
|
29
|
+
export { enableMcpServer } from "./mcps/operations/enable.js";
|
|
30
|
+
export { disableMcpServer } from "./mcps/operations/disable.js";
|
|
31
|
+
export { mcpServerArtifact, mcpSettingsTarget, mcpSourceTarget, } from "./mcps/operations/artifact.js";
|
|
32
|
+
// Subagent lifecycle operations
|
|
33
|
+
export { SUBAGENT_CONFIG_SURFACE, renderedSubagentTargets, subagentConfigTarget, subagentLifecycleArtifact, } from "./subagents/operations/artifact.js";
|
|
34
|
+
export { enableSubagent } from "./subagents/operations/enable.js";
|
|
35
|
+
export { disableSubagent } from "./subagents/operations/disable.js";
|
|
36
|
+
// Pack lifecycle operations
|
|
37
|
+
export { expandPackInstallRefs, expandPackInstallRefsWithReleaseAge, } from "./packs/expansion.js";
|
|
38
|
+
export { resolvePackDependenciesWithReleaseAge, } from "./packs/dependency-resolution.js";
|
|
39
|
+
export { ResolvedPackDependencyMapSchema, ResolvedPackDependencySchema, validateExactPackDependencyVersions, } from "./packs/resolved-dependency.js";
|
|
40
|
+
export { installPack, } from "./packs/operations/install.js";
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure filesystem path helpers.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately duplicated from the CLI-destined fs-helpers module: the
|
|
5
|
+
* kernel may not depend on application utilities, and this helper is
|
|
6
|
+
* within the sanctioned duplication budget for small pure functions.
|
|
7
|
+
*
|
|
8
|
+
* @experimental This API is unstable and may change without notice.
|
|
9
|
+
*/
|
|
10
|
+
/** Convert a file URL to the current platform's native path representation. */
|
|
11
|
+
export declare const stripFileProtocol: (location: string) => string;
|
|
12
|
+
//# sourceMappingURL=fs-helpers.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure filesystem path helpers.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately duplicated from the CLI-destined fs-helpers module: the
|
|
5
|
+
* kernel may not depend on application utilities, and this helper is
|
|
6
|
+
* within the sanctioned duplication budget for small pure functions.
|
|
7
|
+
*
|
|
8
|
+
* @experimental This API is unstable and may change without notice.
|
|
9
|
+
*/
|
|
10
|
+
import { fileURLToPath } from "node:url";
|
|
11
|
+
/** Convert a file URL to the current platform's native path representation. */
|
|
12
|
+
export const stripFileProtocol = (location) => location.startsWith("file:") ? fileURLToPath(location) : location;
|
|
13
|
+
//# sourceMappingURL=fs-helpers.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SHA-512 integrity utility.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately duplicated from the CLI-destined integrity module: the
|
|
5
|
+
* integration may not depend on application utilities, and this helper is
|
|
6
|
+
* within the sanctioned duplication budget for small pure functions.
|
|
7
|
+
*
|
|
8
|
+
* @experimental This API is unstable and may change without notice.
|
|
9
|
+
*/
|
|
10
|
+
import * as Effect from "effect/Effect";
|
|
11
|
+
/** Compute SHA-512 integrity in `sha512-<base64>` SRI format. */
|
|
12
|
+
export declare const computeIntegrity: (data: Uint8Array) => Effect.Effect<string>;
|
|
13
|
+
//# sourceMappingURL=integrity.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SHA-512 integrity utility.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately duplicated from the CLI-destined integrity module: the
|
|
5
|
+
* integration may not depend on application utilities, and this helper is
|
|
6
|
+
* within the sanctioned duplication budget for small pure functions.
|
|
7
|
+
*
|
|
8
|
+
* @experimental This API is unstable and may change without notice.
|
|
9
|
+
*/
|
|
10
|
+
import * as Effect from "effect/Effect";
|
|
11
|
+
import { createHash } from "node:crypto";
|
|
12
|
+
/** Compute SHA-512 integrity in `sha512-<base64>` SRI format. */
|
|
13
|
+
export const computeIntegrity = (data) => Effect.sync(() => {
|
|
14
|
+
const base64 = createHash("sha512").update(data).digest("base64");
|
|
15
|
+
return `sha512-${base64}`;
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=integrity.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Lifecycle manager for isolated Open Knowledge Format bundles. */
|
|
2
|
+
import * as FileSystem from "effect/FileSystem";
|
|
3
|
+
import * as HttpClient from "effect/unstable/http/HttpClient";
|
|
4
|
+
import * as Layer from "effect/Layer";
|
|
5
|
+
import * as Path from "effect/Path";
|
|
6
|
+
import { SourceHostProviders, WorkspaceCatalog } from "@agentxm/extension-sources";
|
|
7
|
+
import { KnowledgeManager } from "@agentxm/extension-workspace";
|
|
8
|
+
import { WorkspaceMutations } from "@agentxm/workspace-state";
|
|
9
|
+
import { LifecycleFailureAdapter } from "../failure-adapter.js";
|
|
10
|
+
export declare const KnowledgeManagerLive: Layer.Layer<KnowledgeManager, never, LifecycleFailureAdapter | SourceHostProviders | WorkspaceCatalog | WorkspaceMutations | FileSystem.FileSystem | HttpClient.HttpClient | Path.Path>;
|
|
11
|
+
//# sourceMappingURL=manager.d.ts.map
|