@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
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared install command workflow orchestration.
|
|
3
|
-
*
|
|
4
|
-
* Defines the `InstallExtensionCommandWorkflowActions` interface and
|
|
5
|
-
* `runInstallCommandWorkflow` function shared by all install command handlers.
|
|
6
|
-
*
|
|
7
|
-
* @experimental This API is unstable and may change without notice.
|
|
8
|
-
*/
|
|
9
|
-
import * as Effect from "effect/Effect";
|
|
10
|
-
import type * as Scope from "effect/Scope";
|
|
11
|
-
import type { Plan } from "@agentxm/workspace-operations";
|
|
12
|
-
import type { OperationResolution } from "@agentxm/workspace-operations";
|
|
13
|
-
import type { PlanExecution } from "@agentxm/workspace-operations";
|
|
14
|
-
/**
|
|
15
|
-
* Type-specific actions for install command workflows.
|
|
16
|
-
*
|
|
17
|
-
* Each extension type provides its own implementation of these actions.
|
|
18
|
-
* The generic type parameters allow full type safety per extension type.
|
|
19
|
-
*
|
|
20
|
-
* @typeParam Args - Raw command arguments from the active CLI parser
|
|
21
|
-
* @typeParam Parsed - Parsed/validated arguments
|
|
22
|
-
* @typeParam Req - Source request type (for resolution)
|
|
23
|
-
* @typeParam Ref - Extension ref type (discovery output)
|
|
24
|
-
* @typeParam Intent - Command-specific install intent
|
|
25
|
-
* @typeParam ParseError - Failures the argument/plan phases surface
|
|
26
|
-
* @typeParam ResolveError - Failures the interactive resolution phases surface
|
|
27
|
-
*/
|
|
28
|
-
export interface InstallExtensionCommandWorkflowActions<Args, Parsed, Req, Ref, Intent, ParseError, ResolveError = ParseError> {
|
|
29
|
-
readonly parseArgs: (args: Args) => Effect.Effect<Parsed, ParseError>;
|
|
30
|
-
readonly resolveSourceRequests: (parsed: Parsed) => Effect.Effect<ReadonlyArray<Req>, ResolveError>;
|
|
31
|
-
readonly discoverRefs: (reqs: ReadonlyArray<Req>) => Effect.Effect<ReadonlyArray<Ref>, ParseError, Scope.Scope>;
|
|
32
|
-
readonly finalizeIntent: (parsed: Parsed, refs: ReadonlyArray<Ref>) => Effect.Effect<Intent, ResolveError>;
|
|
33
|
-
readonly buildPlan: (intent: Intent) => Effect.Effect<Plan, ParseError>;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Run the canonical install command workflow.
|
|
37
|
-
*
|
|
38
|
-
* Executes phases in order: parse -> resolveSource -> discover ->
|
|
39
|
-
* finalizeIntent -> buildPlan -> previewOrApplyPlan.
|
|
40
|
-
*/
|
|
41
|
-
export declare const buildInstallCommandPlan: <Args, Parsed, Req, Ref, Intent, ParseError, ResolveError, TransformError = never, TransformRequirements = never>(args: Args, actions: InstallExtensionCommandWorkflowActions<Args, Parsed, Req, Ref, Intent, ParseError, ResolveError>, options?: {
|
|
42
|
-
readonly transformIntent?: (intent: Intent) => Intent;
|
|
43
|
-
readonly transformPlan?: (plan: Plan) => Effect.Effect<Plan, TransformError, TransformRequirements>;
|
|
44
|
-
}) => Effect.Effect<Plan<never, never>, ParseError | ResolveError | TransformError, import("@agentxm/workspace-state").WorkspaceMutations | import("effect/FileSystem").FileSystem | import("effect/Path").Path | Scope.Scope | TransformRequirements>;
|
|
45
|
-
/**
|
|
46
|
-
* Run the canonical install command workflow.
|
|
47
|
-
*
|
|
48
|
-
* Executes phases in order: parse -> resolveSource -> discover ->
|
|
49
|
-
* finalizeIntent -> buildPlan -> previewOrApplyPlan.
|
|
50
|
-
*/
|
|
51
|
-
export declare const runInstallCommandWorkflow: <Args, Parsed, Req, Ref, Intent, ParseError, ResolveError, TransformError = never, TransformRequirements = never>(args: Args, actions: InstallExtensionCommandWorkflowActions<Args, Parsed, Req, Ref, Intent, ParseError, ResolveError>, options: {
|
|
52
|
-
readonly execution: PlanExecution;
|
|
53
|
-
readonly transformIntent?: (intent: Intent) => Intent;
|
|
54
|
-
readonly transformPlan?: (plan: Plan) => Effect.Effect<Plan, TransformError, TransformRequirements>;
|
|
55
|
-
}) => Effect.Effect<OperationResolution<never>, import("@agentxm/workspace-state").WorkspaceSettingsReadFailure | ParseError | ResolveError | TransformError | import("@agentxm/workspace-operations").CandidateFingerprintFailed | import("@agentxm/workspace-operations").ApprovalRecoveryMissing | import("@agentxm/workspace-operations").PlanInteractionFailed | import("@agentxm/workspace-state").WorkspaceTransitionAcquireFailure | import("@agentxm/workspace-state").LockfileValidationError, import("@agentxm/workspace-state").WorkspaceMutations | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("@agentxm/workspace-operations").ResolvePlanInteraction | Exclude<TransformRequirements, Scope.Scope>>;
|
|
56
|
-
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared install command workflow orchestration.
|
|
3
|
-
*
|
|
4
|
-
* Defines the `InstallExtensionCommandWorkflowActions` interface and
|
|
5
|
-
* `runInstallCommandWorkflow` function shared by all install command handlers.
|
|
6
|
-
*
|
|
7
|
-
* @experimental This API is unstable and may change without notice.
|
|
8
|
-
*/
|
|
9
|
-
import * as Effect from "effect/Effect";
|
|
10
|
-
import { observeUnit, previewOrApplyPlan, publishPhaseStarted, } from "@agentxm/workspace-operations";
|
|
11
|
-
import { withPublisherTrust } from "../../publisher-binding.js";
|
|
12
|
-
// -----------------------------------------------------------------------------
|
|
13
|
-
// Install Command Workflow
|
|
14
|
-
// -----------------------------------------------------------------------------
|
|
15
|
-
/**
|
|
16
|
-
* Run the canonical install command workflow.
|
|
17
|
-
*
|
|
18
|
-
* Executes phases in order: parse -> resolveSource -> discover ->
|
|
19
|
-
* finalizeIntent -> buildPlan -> previewOrApplyPlan.
|
|
20
|
-
*/
|
|
21
|
-
export const buildInstallCommandPlan = (args, actions, options) => Effect.gen(function* () {
|
|
22
|
-
const parsed = yield* actions.parseArgs(args);
|
|
23
|
-
// Source resolution is the first lifecycle phase: requested sources become
|
|
24
|
-
// concrete refs, observed as one unit under `resolution`.
|
|
25
|
-
yield* publishPhaseStarted("resolution");
|
|
26
|
-
const refs = yield* observeUnit({ id: "extension-sources", label: "extension sources" }, Effect.flatMap(actions.resolveSourceRequests(parsed), (sourceRequests) => actions.discoverRefs(sourceRequests)));
|
|
27
|
-
const finalizedIntent = yield* actions.finalizeIntent(parsed, refs);
|
|
28
|
-
const intent = options?.transformIntent?.(finalizedIntent) ?? finalizedIntent;
|
|
29
|
-
const plan = yield* actions.buildPlan(intent);
|
|
30
|
-
const transformed = options?.transformPlan === undefined ? plan : yield* options.transformPlan(plan);
|
|
31
|
-
// Every acceptance the plan proposes is classified against the accepted
|
|
32
|
-
// resolution here, so root, type, reinstall, and closure routes share one
|
|
33
|
-
// publisher-trust rule.
|
|
34
|
-
return yield* withPublisherTrust(transformed);
|
|
35
|
-
});
|
|
36
|
-
/**
|
|
37
|
-
* Run the canonical install command workflow.
|
|
38
|
-
*
|
|
39
|
-
* Executes phases in order: parse -> resolveSource -> discover ->
|
|
40
|
-
* finalizeIntent -> buildPlan -> previewOrApplyPlan.
|
|
41
|
-
*/
|
|
42
|
-
export const runInstallCommandWorkflow = (args, actions, options) => Effect.gen(function* () {
|
|
43
|
-
const plan = yield* buildInstallCommandPlan(args, actions, options);
|
|
44
|
-
return yield* previewOrApplyPlan(plan, { execution: options.execution });
|
|
45
|
-
}).pipe(Effect.scoped, Effect.map((resolution) => resolution));
|
|
46
|
-
//# sourceMappingURL=workflow.js.map
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared uninstall command workflow orchestration.
|
|
3
|
-
*
|
|
4
|
-
* Defines the `UninstallExtensionCommandWorkflowActions` interface and
|
|
5
|
-
* `runUninstallCommandWorkflow` function shared by all uninstall command handlers.
|
|
6
|
-
*
|
|
7
|
-
* @experimental This API is unstable and may change without notice.
|
|
8
|
-
*/
|
|
9
|
-
import * as Effect from "effect/Effect";
|
|
10
|
-
import type { Plan } from "@agentxm/workspace-operations";
|
|
11
|
-
import type { StepFailure } from "@agentxm/workspace-operations";
|
|
12
|
-
import type { OperationResolution } from "@agentxm/workspace-operations";
|
|
13
|
-
import type { PlanExecution } from "@agentxm/workspace-operations";
|
|
14
|
-
/**
|
|
15
|
-
* Type-specific actions for uninstall command workflows.
|
|
16
|
-
*
|
|
17
|
-
* Each extension type provides its own implementation of these actions.
|
|
18
|
-
* The generic type parameters allow full type safety per extension type.
|
|
19
|
-
*
|
|
20
|
-
* @typeParam Args - Raw command arguments from the active CLI parser
|
|
21
|
-
* @typeParam Parsed - Parsed/validated arguments
|
|
22
|
-
* @typeParam Intent - Command-specific uninstall intent
|
|
23
|
-
* @typeParam E - Failures the phases surface
|
|
24
|
-
*/
|
|
25
|
-
export interface UninstallExtensionCommandWorkflowActions<Args, Parsed, Intent, E> {
|
|
26
|
-
readonly parseArgs: (args: Args) => Effect.Effect<Parsed, E>;
|
|
27
|
-
readonly finalizeIntent: (parsed: Parsed) => Effect.Effect<Intent, E>;
|
|
28
|
-
readonly buildUninstallPlan: (intent: Intent, flags: UninstallWorkflowFlags) => Effect.Effect<Plan, E>;
|
|
29
|
-
}
|
|
30
|
-
export interface UninstallWorkflowFlags {
|
|
31
|
-
readonly execution: PlanExecution;
|
|
32
|
-
/** Optional delayed gate; candidate freshness is checked again after it completes. */
|
|
33
|
-
readonly beforeApply?: () => Effect.Effect<void, StepFailure>;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Run the canonical uninstall command workflow.
|
|
37
|
-
*
|
|
38
|
-
* Executes phases in order: parse -> finalizeIntent -> buildUninstallPlan ->
|
|
39
|
-
* previewOrApplyPlan.
|
|
40
|
-
*/
|
|
41
|
-
export declare const runUninstallCommandWorkflow: <Args, Parsed, Intent, E>(args: Args, actions: UninstallExtensionCommandWorkflowActions<Args, Parsed, Intent, E>, flags: UninstallWorkflowFlags) => Effect.Effect<OperationResolution<never>, import("@agentxm/workspace-state").WorkspaceSettingsReadFailure | import("@agentxm/workspace-operations").CandidateFingerprintFailed | import("@agentxm/workspace-operations").ApprovalRecoveryMissing | import("@agentxm/workspace-operations").PlanInteractionFailed | import("@agentxm/workspace-state").WorkspaceTransitionAcquireFailure | import("@agentxm/workspace-state").LockfileValidationError | E, import("@agentxm/workspace-state").WorkspaceMutations | import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("@agentxm/workspace-operations").ResolvePlanInteraction>;
|
|
42
|
-
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared uninstall command workflow orchestration.
|
|
3
|
-
*
|
|
4
|
-
* Defines the `UninstallExtensionCommandWorkflowActions` interface and
|
|
5
|
-
* `runUninstallCommandWorkflow` function shared by all uninstall command handlers.
|
|
6
|
-
*
|
|
7
|
-
* @experimental This API is unstable and may change without notice.
|
|
8
|
-
*/
|
|
9
|
-
import * as Effect from "effect/Effect";
|
|
10
|
-
import { previewOrApplyPlan } from "@agentxm/workspace-operations";
|
|
11
|
-
// -----------------------------------------------------------------------------
|
|
12
|
-
// Uninstall Command Workflow
|
|
13
|
-
// -----------------------------------------------------------------------------
|
|
14
|
-
/**
|
|
15
|
-
* Run the canonical uninstall command workflow.
|
|
16
|
-
*
|
|
17
|
-
* Executes phases in order: parse -> finalizeIntent -> buildUninstallPlan ->
|
|
18
|
-
* previewOrApplyPlan.
|
|
19
|
-
*/
|
|
20
|
-
export const runUninstallCommandWorkflow = (args, actions, flags) => Effect.gen(function* () {
|
|
21
|
-
const parsed = yield* actions.parseArgs(args);
|
|
22
|
-
const intent = yield* actions.finalizeIntent(parsed);
|
|
23
|
-
const plan = yield* actions.buildUninstallPlan(intent, flags);
|
|
24
|
-
return yield* previewOrApplyPlan(plan, {
|
|
25
|
-
execution: flags.execution,
|
|
26
|
-
...(flags.beforeApply === undefined ? {} : { beforeApply: flags.beforeApply }),
|
|
27
|
-
});
|
|
28
|
-
}).pipe(Effect.map((resolution) => resolution));
|
|
29
|
-
//# sourceMappingURL=workflow.js.map
|