@agentxm/extension-lifecycle 0.28.12 → 0.28.13
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/dist/src/activation/display-paths.d.ts +25 -0
- package/dist/src/activation/display-paths.js +25 -0
- package/dist/src/activation/errors.d.ts +16 -0
- package/dist/src/activation/errors.js +7 -0
- package/dist/src/activation/set-activation.d.ts +134 -0
- package/dist/src/activation/set-activation.js +772 -0
- package/dist/src/demote/demote-to-external-source.d.ts +82 -0
- package/dist/src/demote/demote-to-external-source.js +233 -0
- package/dist/src/errors.d.ts +0 -8
- package/dist/src/errors.js +0 -8
- package/dist/src/glob.d.ts +35 -0
- package/dist/src/glob.js +75 -0
- package/dist/src/hooks/configured-agent-outcomes-provider.d.ts +7 -3
- package/dist/src/hooks/configured-agent-outcomes-provider.js +11 -4
- package/dist/src/hooks/install/plan.d.ts +45 -0
- package/dist/src/hooks/install/plan.js +224 -0
- package/dist/src/hooks/uninstall/plan.d.ts +20 -0
- package/dist/src/hooks/uninstall/plan.js +77 -0
- package/dist/src/index.d.ts +48 -16
- package/dist/src/index.js +60 -17
- package/dist/src/install/aggregate-projection-step.d.ts +16 -0
- package/dist/src/install/aggregate-projection-step.js +49 -0
- package/dist/src/install/configured.d.ts +65 -0
- package/dist/src/install/configured.js +406 -0
- package/dist/src/install/inline-mcp-operation.d.ts +4 -0
- package/dist/src/install/inline-mcp-operation.js +25 -0
- package/dist/src/install/install-extensions.d.ts +110 -0
- package/dist/src/install/install-extensions.js +282 -0
- package/dist/src/install/per-type-install.d.ts +12 -0
- package/dist/src/install/per-type-install.js +12 -0
- package/dist/src/install/registry-install-target.d.ts +35 -0
- package/dist/src/install/registry-install-target.js +66 -0
- package/dist/src/install/registry-login-suggestion.d.ts +21 -0
- package/dist/src/install/registry-login-suggestion.js +34 -0
- package/dist/src/install/registry-source-resolution.d.ts +54 -0
- package/dist/src/install/registry-source-resolution.js +216 -0
- package/dist/src/install/root-intent.d.ts +19 -0
- package/dist/src/install/root-intent.js +122 -0
- package/dist/src/install/selection-interaction.d.ts +46 -0
- package/dist/src/install/selection-interaction.js +22 -0
- package/dist/src/install/vocabulary.d.ts +143 -0
- package/dist/src/install/vocabulary.js +29 -0
- package/dist/src/knowledge/install/plan.d.ts +35 -0
- package/dist/src/knowledge/install/plan.js +128 -0
- package/dist/src/knowledge/uninstall/plan.d.ts +23 -0
- package/dist/src/knowledge/uninstall/plan.js +140 -0
- package/dist/src/live.d.ts +4 -11
- package/dist/src/live.js +4 -11
- package/dist/src/mcps/install/plan.d.ts +65 -0
- package/dist/src/mcps/install/plan.js +301 -0
- package/dist/src/mcps/operations/disable.d.ts +5 -3
- package/dist/src/mcps/operations/disable.js +6 -4
- package/dist/src/mcps/operations/enable.d.ts +5 -3
- package/dist/src/mcps/operations/enable.js +8 -6
- package/dist/src/mcps/operations/sync-outcome.d.ts +1 -1
- package/dist/src/mcps/operations/uninstall.d.ts +5 -3
- package/dist/src/mcps/operations/uninstall.js +4 -4
- package/dist/src/mcps/uninstall/plan.d.ts +24 -0
- package/dist/src/mcps/uninstall/plan.js +109 -0
- package/dist/src/packs/artifact.d.ts +21 -0
- package/dist/src/packs/artifact.js +32 -0
- package/dist/src/packs/constraint-gate.d.ts +30 -0
- package/dist/src/packs/constraint-gate.js +76 -0
- package/dist/src/packs/expansion.d.ts +13 -14
- package/dist/src/packs/expansion.js +1 -2
- package/dist/src/packs/graph-transition.d.ts +64 -0
- package/dist/src/packs/graph-transition.js +219 -0
- package/dist/src/packs/install/plan.d.ts +95 -0
- package/dist/src/packs/install/plan.js +845 -0
- package/dist/src/packs/member-install-step.d.ts +29 -0
- package/dist/src/packs/member-install-step.js +156 -0
- package/dist/src/packs/operations/install.d.ts +3 -3
- package/dist/src/packs/operations/install.js +5 -5
- package/dist/src/packs/promote-authored-pack.d.ts +86 -0
- package/dist/src/packs/promote-authored-pack.js +239 -0
- package/dist/src/packs/resolved-dependency.d.ts +9 -26
- package/dist/src/packs/resolved-dependency.js +8 -20
- package/dist/src/packs/uninstall/plan.d.ts +66 -0
- package/dist/src/packs/uninstall/plan.js +344 -0
- package/dist/src/packs/uninstall/readiness.d.ts +50 -0
- package/dist/src/packs/uninstall/readiness.js +130 -0
- package/dist/src/publisher-binding.d.ts +8 -40
- package/dist/src/publisher-binding.js +8 -46
- package/dist/src/rules/install/plan.d.ts +35 -0
- package/dist/src/rules/install/plan.js +133 -0
- package/dist/src/rules/uninstall/plan.d.ts +19 -0
- package/dist/src/rules/uninstall/plan.js +54 -0
- package/dist/src/skills/install/bundled.d.ts +73 -0
- package/dist/src/skills/install/bundled.js +244 -0
- package/dist/src/skills/install/plan.d.ts +72 -0
- package/dist/src/skills/install/plan.js +429 -0
- package/dist/src/skills/install/selection.d.ts +26 -0
- package/dist/src/skills/install/selection.js +41 -0
- package/dist/src/skills/install/source.d.ts +21 -0
- package/dist/src/skills/install/source.js +76 -0
- package/dist/src/skills/operations/disable.d.ts +3 -2
- package/dist/src/skills/operations/disable.js +7 -11
- package/dist/src/skills/operations/enable.d.ts +3 -2
- package/dist/src/skills/operations/enable.js +6 -8
- package/dist/src/skills/operations/install.d.ts +4 -4
- package/dist/src/skills/operations/install.js +13 -12
- package/dist/src/skills/uninstall/plan.d.ts +23 -0
- package/dist/src/skills/uninstall/plan.js +165 -0
- package/dist/src/skills/utils.js +1 -1
- package/dist/src/step-failure-conversion.d.ts +44 -0
- package/dist/src/step-failure-conversion.js +26 -0
- package/dist/src/step-failure.d.ts +29 -0
- package/dist/src/step-failure.js +130 -0
- package/dist/src/subagents/install/plan.d.ts +49 -0
- package/dist/src/subagents/install/plan.js +270 -0
- package/dist/src/subagents/install/selection.d.ts +26 -0
- package/dist/src/subagents/install/selection.js +37 -0
- package/dist/src/subagents/install/source.d.ts +18 -0
- package/dist/src/subagents/install/source.js +72 -0
- package/dist/src/subagents/operations/disable.d.ts +5 -3
- package/dist/src/subagents/operations/disable.js +5 -3
- package/dist/src/subagents/operations/enable.d.ts +5 -3
- package/dist/src/subagents/operations/enable.js +17 -12
- package/dist/src/subagents/uninstall/plan.d.ts +20 -0
- package/dist/src/subagents/uninstall/plan.js +142 -0
- package/dist/src/test-packages.d.ts +34 -0
- package/dist/src/test-packages.js +111 -0
- package/dist/src/test-registry.d.ts +78 -0
- package/dist/src/test-registry.js +223 -0
- package/dist/src/testing.d.ts +108 -0
- package/dist/src/testing.js +241 -0
- package/dist/src/uninstall/retention-policy.d.ts +21 -0
- package/dist/src/uninstall/retention-policy.js +28 -0
- package/dist/src/uninstall/root-intent.d.ts +17 -0
- package/dist/src/uninstall/root-intent.js +101 -0
- package/dist/src/uninstall/uninstall-extensions.d.ts +61 -0
- package/dist/src/uninstall/uninstall-extensions.js +127 -0
- package/dist/src/uninstall/vocabulary.d.ts +40 -0
- package/dist/src/uninstall/vocabulary.js +14 -0
- package/dist/src/update/atomicity.d.ts +22 -0
- package/dist/src/update/atomicity.js +23 -0
- package/dist/src/update/blockers.d.ts +31 -0
- package/dist/src/update/blockers.js +78 -0
- package/dist/src/update/configured.d.ts +78 -0
- package/dist/src/update/configured.js +546 -0
- package/dist/src/update/root-request.d.ts +39 -0
- package/dist/src/update/root-request.js +117 -0
- package/dist/src/update/selective/plan.d.ts +45 -0
- package/dist/src/update/selective/plan.js +61 -0
- package/dist/src/update/selective/requirements.d.ts +17 -0
- package/dist/src/update/selective/requirements.js +14 -0
- package/dist/src/update/selective/selection.d.ts +63 -0
- package/dist/src/update/selective/selection.js +85 -0
- package/dist/src/update/selective/skills.d.ts +55 -0
- package/dist/src/update/selective/skills.js +596 -0
- package/dist/src/update/selective/subagents.d.ts +52 -0
- package/dist/src/update/selective/subagents.js +331 -0
- package/dist/src/update/selective/use-case.d.ts +121 -0
- package/dist/src/update/selective/use-case.js +28 -0
- package/dist/src/update/selective/vocabulary.d.ts +43 -0
- package/dist/src/update/selective/vocabulary.js +28 -0
- package/dist/src/update/selector.d.ts +72 -0
- package/dist/src/update/selector.js +120 -0
- package/dist/src/update/targeted-plan.d.ts +30 -0
- package/dist/src/update/targeted-plan.js +113 -0
- package/dist/src/update/update-extensions.d.ts +164 -0
- package/dist/src/update/update-extensions.js +579 -0
- package/dist/src/workspace-paths.d.ts +31 -0
- package/dist/src/workspace-paths.js +46 -0
- package/package.json +22 -12
- package/dist/src/configured-entry-resolution.d.ts +0 -111
- package/dist/src/configured-entry-resolution.js +0 -731
- package/dist/src/failure-adapter.d.ts +0 -35
- package/dist/src/failure-adapter.js +0 -23
- package/dist/src/hooks/manager.d.ts +0 -15
- package/dist/src/hooks/manager.js +0 -769
- package/dist/src/internal/fs-helpers.d.ts +0 -12
- package/dist/src/internal/fs-helpers.js +0 -13
- package/dist/src/internal/integrity.d.ts +0 -13
- package/dist/src/internal/integrity.js +0 -17
- package/dist/src/knowledge/manager.d.ts +0 -11
- package/dist/src/knowledge/manager.js +0 -711
- package/dist/src/mcps/manager.d.ts +0 -16
- package/dist/src/mcps/manager.js +0 -247
- package/dist/src/mcps/operations/artifact.d.ts +0 -24
- package/dist/src/mcps/operations/artifact.js +0 -74
- package/dist/src/mcps/operations/install.d.ts +0 -78
- package/dist/src/mcps/operations/install.js +0 -596
- package/dist/src/packs/dependency-resolution.d.ts +0 -65
- package/dist/src/packs/dependency-resolution.js +0 -414
- package/dist/src/packs/manager.d.ts +0 -16
- package/dist/src/packs/manager.js +0 -181
- package/dist/src/registry-materialization.d.ts +0 -52
- package/dist/src/registry-materialization.js +0 -72
- package/dist/src/release-age-posture.d.ts +0 -23
- package/dist/src/release-age-posture.js +0 -15
- package/dist/src/resolution-timeout.d.ts +0 -5
- package/dist/src/resolution-timeout.js +0 -11
- package/dist/src/rules/manager.d.ts +0 -20
- package/dist/src/rules/manager.js +0 -480
- package/dist/src/skills/manager.d.ts +0 -18
- package/dist/src/skills/manager.js +0 -346
- package/dist/src/skills/materialization.d.ts +0 -54
- package/dist/src/skills/materialization.js +0 -158
- package/dist/src/skills/operations/source-hash.d.ts +0 -2
- package/dist/src/skills/operations/source-hash.js +0 -6
- package/dist/src/subagents/manager.d.ts +0 -18
- package/dist/src/subagents/manager.js +0 -722
- package/dist/src/workflows/install-command/workflow.d.ts +0 -56
- package/dist/src/workflows/install-command/workflow.js +0 -46
- package/dist/src/workflows/uninstall-command/workflow.d.ts +0 -42
- package/dist/src/workflows/uninstall-command/workflow.js +0 -29
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable workspace-relative paths an activation plan shows the operator.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately duplicated from the application's display-path helper: a
|
|
5
|
+
* feature package may not depend on application presentation utilities, and
|
|
6
|
+
* these are small pure functions over the workspace scope, within the
|
|
7
|
+
* sanctioned duplication budget.
|
|
8
|
+
*
|
|
9
|
+
* @experimental This API is unstable and may change without notice.
|
|
10
|
+
*/
|
|
11
|
+
import type * as Path from "effect/Path";
|
|
12
|
+
import type { ExtensionType } from "@agentxm/extension-model/unstable/extensions";
|
|
13
|
+
import type { WorkspaceScope } from "@agentxm/extension-model/unstable/workspace-scope";
|
|
14
|
+
import type { WorkspaceMutationsService } from "@agentxm/workspace-state";
|
|
15
|
+
export declare const settingsDisplayPath: (scope: WorkspaceScope) => string;
|
|
16
|
+
export declare const lockfileDisplayPath: (scope: WorkspaceScope) => string;
|
|
17
|
+
export declare const canonicalRootDisplayPath: (scope: WorkspaceScope) => string;
|
|
18
|
+
export declare const canonicalDisplayPath: (scope: WorkspaceScope, relativePath: string) => string;
|
|
19
|
+
/** Where a desired node's canonical content lives, workspace-relative. */
|
|
20
|
+
export declare const canonicalNodeDisplayPath: (path: Path.Path, ws: WorkspaceMutationsService, node: {
|
|
21
|
+
readonly type: ExtensionType;
|
|
22
|
+
readonly name: string;
|
|
23
|
+
readonly identity: string;
|
|
24
|
+
}) => string;
|
|
25
|
+
//# sourceMappingURL=display-paths.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stable workspace-relative paths an activation plan shows the operator.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately duplicated from the application's display-path helper: a
|
|
5
|
+
* feature package may not depend on application presentation utilities, and
|
|
6
|
+
* these are small pure functions over the workspace scope, within the
|
|
7
|
+
* sanctioned duplication budget.
|
|
8
|
+
*
|
|
9
|
+
* @experimental This API is unstable and may change without notice.
|
|
10
|
+
*/
|
|
11
|
+
export const settingsDisplayPath = (scope) => scope === "project" ? "axm.json" : ".axm/workspace/axm.json";
|
|
12
|
+
export const lockfileDisplayPath = (scope) => scope === "project" ? "axm-lock.yaml" : ".axm/workspace/axm-lock.yaml";
|
|
13
|
+
export const canonicalRootDisplayPath = (scope) => scope === "project" ? "agent_extensions" : ".axm/workspace/agent_extensions";
|
|
14
|
+
export const canonicalDisplayPath = (scope, relativePath) => `${canonicalRootDisplayPath(scope)}/${relativePath.replace(/^\/+/, "")}`;
|
|
15
|
+
/** Where a desired node's canonical content lives, workspace-relative. */
|
|
16
|
+
export const canonicalNodeDisplayPath = (path, ws, node) => {
|
|
17
|
+
if (node.identity.startsWith("workspace:") && ws.layout.scope === "project") {
|
|
18
|
+
return path.join(path.relative(ws.baseDir, ws.layout.authoredRoot(node.type)), node.name);
|
|
19
|
+
}
|
|
20
|
+
const identity = node.identity.startsWith("workspace:")
|
|
21
|
+
? node.identity.slice("workspace:".length)
|
|
22
|
+
: node.identity;
|
|
23
|
+
return canonicalDisplayPath(ws.scope, identity);
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=display-paths.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Failures resolving a settled activation through the plan pipeline.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
import type { ApprovalRecoveryMissing, CandidateFingerprintFailed, PlanInteractionFailed } from "@agentxm/workspace-operations";
|
|
7
|
+
import type { LockfileValidationError, WorkspaceSettingsReadFailure } from "@agentxm/workspace-state";
|
|
8
|
+
import type { WorkspaceTransitionAcquireFailure } from "@agentxm/workspace-transactions";
|
|
9
|
+
/**
|
|
10
|
+
* Every failure resolving a settled activation can surface: the approval and
|
|
11
|
+
* interaction refusals, the candidate revalidation, and the transition the
|
|
12
|
+
* apply could not acquire. Step failures travel inside the resolution rather
|
|
13
|
+
* than being raised, so the operator still sees what each closure settled.
|
|
14
|
+
*/
|
|
15
|
+
export type SetActivationExecutionFailure = ApprovalRecoveryMissing | CandidateFingerprintFailed | LockfileValidationError | PlanInteractionFailed | WorkspaceSettingsReadFailure | WorkspaceTransitionAcquireFailure;
|
|
16
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Activation: turning one installed extension on or off without changing
|
|
3
|
+
* what the workspace acquired.
|
|
4
|
+
*
|
|
5
|
+
* All seven extension types share one request, one settled candidate, and one
|
|
6
|
+
* resolution, because activation means the same thing for every type: desired
|
|
7
|
+
* state records the preference, and the projections that preference implies
|
|
8
|
+
* are created or removed. What differs is only how a type is projected — a
|
|
9
|
+
* skill through agent artifacts, an MCP server through each agent's native
|
|
10
|
+
* configuration, a rule or Knowledge bundle through a shared managed region,
|
|
11
|
+
* a Pack through the members it contributes.
|
|
12
|
+
*
|
|
13
|
+
* Two invariants hold across every type. Disabling never removes canonical
|
|
14
|
+
* content or retires an accepted resolution, so re-enabling never re-resolves
|
|
15
|
+
* or re-acquires. And a type whose projection shares a file with instruction
|
|
16
|
+
* management reconciles that file inside the same transaction, so the
|
|
17
|
+
* workspace is never left with a settings change the files do not reflect.
|
|
18
|
+
*
|
|
19
|
+
* @experimental This API is unstable and may change without notice.
|
|
20
|
+
*/
|
|
21
|
+
import * as Effect from "effect/Effect";
|
|
22
|
+
import * as FileSystem from "effect/FileSystem";
|
|
23
|
+
import * as Option from "effect/Option";
|
|
24
|
+
import * as Path from "effect/Path";
|
|
25
|
+
import type * as Scope from "effect/Scope";
|
|
26
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
27
|
+
import type { ExtensionType } from "@agentxm/extension-model/unstable/extensions";
|
|
28
|
+
import type { ExtensionRef } from "@agentxm/extension-model/unstable/extensions/refs/extension-ref";
|
|
29
|
+
import type { WorkspaceScope } from "@agentxm/extension-model/unstable/workspace-scope";
|
|
30
|
+
import { SourceHostProviders, WorkspaceCatalog, type SourceResolutionFailure } from "@agentxm/extension-sources";
|
|
31
|
+
import { ExtensionManagers, SubagentManager, type ExtensionManagerFailure, type ManagerRequirements, type McpServerInstallRequirements, type RecipeRequirements } from "@agentxm/extension-materialization";
|
|
32
|
+
import { ReleaseAgePosture, type ExtensionResolutionFailed, type PackDependencyResolutionFailure, type SourceAuthorityBlocked } from "@agentxm/extension-resolution";
|
|
33
|
+
import { CodingAgentRepository, type ProjectionParticipantRequirements, type ResolvedInstructionsConfig } from "@agentxm/workspace-projection";
|
|
34
|
+
import { OperationJournal, ResolvePlanInteraction, type JobStepArtifact, type OperationResolution, type PlanExecution } from "@agentxm/workspace-operations";
|
|
35
|
+
import { ConfiguredAgentOutcomesProvider, type ConfiguredAgentOutcome, WorkspaceMutations, type DesiredExtensionNode, type AcceptedCanonicalRefError } from "@agentxm/workspace-state";
|
|
36
|
+
import { FootprintRecorder, WorkspaceTransactionScope } from "@agentxm/workspace-transactions";
|
|
37
|
+
import { ExtensionLifecycleFailed } from "../errors.js";
|
|
38
|
+
import { StepFailureConversion } from "../step-failure-conversion.js";
|
|
39
|
+
import type { SetActivationExecutionFailure } from "./errors.js";
|
|
40
|
+
/** Turn one installed extension on or off. */
|
|
41
|
+
export interface SetActivationRequest {
|
|
42
|
+
readonly type: ExtensionType;
|
|
43
|
+
/** As the operator named it: a bare name or a fully-qualified identifier. */
|
|
44
|
+
readonly name: string;
|
|
45
|
+
readonly enabled: boolean;
|
|
46
|
+
}
|
|
47
|
+
/** A request the workspace already satisfies. */
|
|
48
|
+
export interface ActivationUnchanged {
|
|
49
|
+
readonly _tag: "Unchanged";
|
|
50
|
+
readonly type: ExtensionType;
|
|
51
|
+
readonly name: string;
|
|
52
|
+
readonly enabled: boolean;
|
|
53
|
+
readonly message: string;
|
|
54
|
+
}
|
|
55
|
+
/** How the settled activation is realized, by what the type projects into. */
|
|
56
|
+
export type ActivationTransition =
|
|
57
|
+
/** A per-agent artifact tree the type's own executor owns. */
|
|
58
|
+
{
|
|
59
|
+
readonly kind: "skill";
|
|
60
|
+
} | {
|
|
61
|
+
readonly kind: "subagent";
|
|
62
|
+
} | {
|
|
63
|
+
readonly kind: "mcp-server";
|
|
64
|
+
}
|
|
65
|
+
/** Enabling re-runs the configured install closure for the accepted entry. */
|
|
66
|
+
| {
|
|
67
|
+
readonly kind: "reinstall";
|
|
68
|
+
readonly ref: ExtensionRef;
|
|
69
|
+
readonly versionRange: Option.Option<string>;
|
|
70
|
+
}
|
|
71
|
+
/** Disabling flips the preference and dematerializes the type's projection. */
|
|
72
|
+
| {
|
|
73
|
+
readonly kind: "deactivate-rule";
|
|
74
|
+
} | {
|
|
75
|
+
readonly kind: "deactivate-hook";
|
|
76
|
+
}
|
|
77
|
+
/** Rendering the discovery region is what deactivation means for Knowledge. */
|
|
78
|
+
| {
|
|
79
|
+
readonly kind: "deactivate-knowledge";
|
|
80
|
+
}
|
|
81
|
+
/** A Pack contributes members; activation moves the whole member closure. */
|
|
82
|
+
| {
|
|
83
|
+
readonly kind: "pack";
|
|
84
|
+
readonly identity: string;
|
|
85
|
+
/** Members whose active/inactive state this change decides. */
|
|
86
|
+
readonly members: ReadonlyArray<DesiredExtensionNode>;
|
|
87
|
+
/** Member types whose shared aggregate units re-render once at the end. */
|
|
88
|
+
readonly aggregateTypes: ReadonlySet<ExtensionType>;
|
|
89
|
+
};
|
|
90
|
+
/** A settled activation change: everything the plan needs, decided. */
|
|
91
|
+
export interface SetActivationCandidate {
|
|
92
|
+
readonly _tag: "SetActivation";
|
|
93
|
+
readonly type: ExtensionType;
|
|
94
|
+
/** The installed name, after resolving a fully-qualified identifier. */
|
|
95
|
+
readonly name: string;
|
|
96
|
+
readonly enabled: boolean;
|
|
97
|
+
readonly scope: WorkspaceScope;
|
|
98
|
+
readonly artifact: JobStepArtifact;
|
|
99
|
+
readonly transition: ActivationTransition;
|
|
100
|
+
/** The instruction configuration this change reconciles inside its transaction. */
|
|
101
|
+
readonly instructions: Option.Option<ResolvedInstructionsConfig>;
|
|
102
|
+
/** The refusal that stops the change before it is offered, when there is one. */
|
|
103
|
+
readonly blocked: Option.Option<ExtensionLifecycleFailed>;
|
|
104
|
+
/** A holdback or lifecycle warning the operator sees before approving. */
|
|
105
|
+
readonly warning: Option.Option<string>;
|
|
106
|
+
/** Per-agent outcomes this change projects, where the type reports them. */
|
|
107
|
+
readonly agentOutcomes: ReadonlyArray<ConfiguredAgentOutcome>;
|
|
108
|
+
}
|
|
109
|
+
/** Every failure settling an activation request can surface. */
|
|
110
|
+
export type SetActivationFailure = AcceptedCanonicalRefError | ExtensionLifecycleFailed | ExtensionManagerFailure | ExtensionResolutionFailed | PackDependencyResolutionFailure | SourceAuthorityBlocked | SourceResolutionFailure;
|
|
111
|
+
/** Everything settling and resolving an activation needs. */
|
|
112
|
+
export type SetActivationRequirements = CodingAgentRepository | ConfiguredAgentOutcomesProvider | ExtensionManagers | FileSystem.FileSystem | FootprintRecorder | HttpClient.HttpClient | ManagerRequirements | OperationJournal | Path.Path | McpServerInstallRequirements | ProjectionParticipantRequirements | RecipeRequirements | ReleaseAgePosture | ResolvePlanInteraction | Scope.Scope | SourceHostProviders | StepFailureConversion | SubagentManager | WorkspaceCatalog | WorkspaceMutations | WorkspaceTransactionScope;
|
|
113
|
+
/**
|
|
114
|
+
* Settle an activation request into the change it makes.
|
|
115
|
+
*
|
|
116
|
+
* A request the workspace already satisfies settles as `Unchanged` rather
|
|
117
|
+
* than as an empty plan, so repeating a command reports what is true instead
|
|
118
|
+
* of offering to do nothing. A request naming a subject the workspace does
|
|
119
|
+
* not hold fails with the type's own recovery route.
|
|
120
|
+
*/
|
|
121
|
+
export declare const prepareSetActivation: (request: SetActivationRequest) => Effect.Effect<SetActivationCandidate | ActivationUnchanged, SetActivationFailure, CodingAgentRepository | ExtensionManagers | FileSystem.FileSystem | HttpClient.HttpClient | ManagerRequirements | Path.Path | ReleaseAgePosture | Scope.Scope | SourceHostProviders | WorkspaceCatalog | WorkspaceMutations>;
|
|
122
|
+
/**
|
|
123
|
+
* Preview or apply a settled activation. The whole change — the preference,
|
|
124
|
+
* the projections it implies, and any instruction file it shares — runs in
|
|
125
|
+
* one workspace transaction, so a projection that cannot be written never
|
|
126
|
+
* leaves the preference recorded.
|
|
127
|
+
*/
|
|
128
|
+
export declare const previewOrApplySetActivation: (candidate: SetActivationCandidate, execution: PlanExecution) => Effect.Effect<OperationResolution<void>, SetActivationExecutionFailure, SetActivationRequirements>;
|
|
129
|
+
/** The activation use case. */
|
|
130
|
+
export declare const SetActivation: {
|
|
131
|
+
readonly prepare: (request: SetActivationRequest) => Effect.Effect<SetActivationCandidate | ActivationUnchanged, SetActivationFailure, CodingAgentRepository | ExtensionManagers | FileSystem.FileSystem | HttpClient.HttpClient | ManagerRequirements | Path.Path | ReleaseAgePosture | Scope.Scope | SourceHostProviders | WorkspaceCatalog | WorkspaceMutations>;
|
|
132
|
+
readonly previewOrApply: (candidate: SetActivationCandidate, execution: PlanExecution) => Effect.Effect<OperationResolution<void>, SetActivationExecutionFailure, SetActivationRequirements>;
|
|
133
|
+
};
|
|
134
|
+
//# sourceMappingURL=set-activation.d.ts.map
|