@lesliechan721/aw 0.1.0-beta.84 → 0.1.0-beta.86
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/authoring/assets/command-runtime-config.d.mts +9 -0
- package/dist/authoring/assets/command-runtime-config.mjs +106 -0
- package/dist/authoring/assets/command-runtime-config.mjs.map +1 -0
- package/dist/authoring/scripts/validate-plugin.mjs +17 -22
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/scripts/aw-skill-eval-materializer.d.ts +4 -0
- package/dist/scripts/aw-skill-eval-materializer.js +27 -0
- package/dist/scripts/aw-skill-eval-materializer.js.map +1 -1
- package/dist/scripts/bundle-plugins.js +1 -1
- package/dist/scripts/bundle-plugins.js.map +1 -1
- package/dist/scripts/test-plugin-scripts.js +13 -2
- package/dist/scripts/test-plugin-scripts.js.map +1 -1
- package/dist/src/commands/aw-capabilities.d.ts +1 -1
- package/dist/src/commands/aw-capabilities.js +2 -2
- package/dist/src/commands/catalog-source.d.ts +2 -1
- package/dist/src/commands/catalog-source.js +8 -7
- package/dist/src/commands/catalog-source.js.map +1 -1
- package/dist/src/commands/deployment-confirmation.d.ts +8 -1
- package/dist/src/commands/deployment-confirmation.js +79 -11
- package/dist/src/commands/deployment-confirmation.js.map +1 -1
- package/dist/src/commands/lifecycle-command-package.d.ts +44 -0
- package/dist/src/commands/lifecycle-command-package.js +195 -0
- package/dist/src/commands/lifecycle-command-package.js.map +1 -0
- package/dist/src/commands/managed-commands.d.ts +6 -0
- package/dist/src/commands/managed-commands.js +203 -152
- package/dist/src/commands/managed-commands.js.map +1 -1
- package/dist/src/commands/operation-plan.d.ts +22 -21
- package/dist/src/commands/operation-plan.js +2 -5
- package/dist/src/commands/operation-plan.js.map +1 -1
- package/dist/src/commands/permission-batch.d.ts +5 -0
- package/dist/src/commands/permission-batch.js +80 -0
- package/dist/src/commands/permission-batch.js.map +1 -0
- package/dist/src/commands/plugin-capabilities.js +17 -13
- package/dist/src/commands/plugin-capabilities.js.map +1 -1
- package/dist/src/commands/public-config-confirmation.d.ts +8 -2
- package/dist/src/commands/public-config-confirmation.js +22 -5
- package/dist/src/commands/public-config-confirmation.js.map +1 -1
- package/dist/src/commands/public-lifecycle-result.d.ts +7 -12
- package/dist/src/commands/public-lifecycle-result.js +136 -40
- package/dist/src/commands/public-lifecycle-result.js.map +1 -1
- package/dist/src/commands/public-lifecycle.js +49 -8
- package/dist/src/commands/public-lifecycle.js.map +1 -1
- package/dist/src/commands/public-plugin-query.js +21 -5
- package/dist/src/commands/public-plugin-query.js.map +1 -1
- package/dist/src/commands/rebuild-command.d.ts +4 -0
- package/dist/src/commands/rebuild-command.js +150 -48
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +12 -3
- package/dist/src/commands/rebuild-integration.js +52 -164
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-operations.d.ts +2 -1
- package/dist/src/commands/rebuild-operations.js +7 -2
- package/dist/src/commands/rebuild-operations.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.d.ts +12 -5
- package/dist/src/commands/rebuild-platform-integration.js +691 -186
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -1
- package/dist/src/commands/skill-eval.js +10 -1
- package/dist/src/commands/skill-eval.js.map +1 -1
- package/dist/src/generators/local-plugin.js +14 -15
- package/dist/src/generators/local-plugin.js.map +1 -1
- package/dist/src/generators/permissions.d.ts +18 -4
- package/dist/src/generators/permissions.js +76 -22
- package/dist/src/generators/permissions.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +84 -44
- package/dist/src/index.js.map +1 -1
- package/dist/src/intent/scope-context.d.ts +4 -2
- package/dist/src/intent/scope-context.js +37 -7
- package/dist/src/intent/scope-context.js.map +1 -1
- package/dist/src/output/command-receipt.js +7 -8
- package/dist/src/output/command-receipt.js.map +1 -1
- package/dist/src/output/component-delivery.d.ts +28 -0
- package/dist/src/output/component-delivery.js +138 -0
- package/dist/src/output/component-delivery.js.map +1 -0
- package/dist/src/output/public-result.d.ts +17 -0
- package/dist/src/output/public-result.js +121 -25
- package/dist/src/output/public-result.js.map +1 -1
- package/dist/src/output/rebuild-progress.js +7 -4
- package/dist/src/output/rebuild-progress.js.map +1 -1
- package/dist/src/output/receipt-projection.js +51 -31
- package/dist/src/output/receipt-projection.js.map +1 -1
- package/dist/src/output/skill-invocation-notices.d.ts +2 -0
- package/dist/src/output/skill-invocation-notices.js +40 -4
- package/dist/src/output/skill-invocation-notices.js.map +1 -1
- package/dist/src/platforms/antigravity-permissions.d.ts +50 -0
- package/dist/src/platforms/antigravity-permissions.js +388 -0
- package/dist/src/platforms/antigravity-permissions.js.map +1 -0
- package/dist/src/platforms/capabilities.d.ts +4 -1
- package/dist/src/platforms/capabilities.js +93 -9
- package/dist/src/platforms/capabilities.js.map +1 -1
- package/dist/src/platforms/contracts.d.ts +46 -2
- package/dist/src/platforms/discovery.d.ts +13 -0
- package/dist/src/platforms/discovery.js +170 -30
- package/dist/src/platforms/discovery.js.map +1 -1
- package/dist/src/platforms/grok-permission-config.d.ts +22 -0
- package/dist/src/platforms/grok-permission-config.js +184 -0
- package/dist/src/platforms/grok-permission-config.js.map +1 -0
- package/dist/src/platforms/grok-permission-document.d.ts +4 -0
- package/dist/src/platforms/grok-permission-document.js +145 -0
- package/dist/src/platforms/grok-permission-document.js.map +1 -0
- package/dist/src/platforms/grok-permissions.d.ts +17 -0
- package/dist/src/platforms/grok-permissions.js +311 -0
- package/dist/src/platforms/grok-permissions.js.map +1 -0
- package/dist/src/platforms/host-permission-policy.d.ts +38 -0
- package/dist/src/platforms/host-permission-policy.js +86 -0
- package/dist/src/platforms/host-permission-policy.js.map +1 -0
- package/dist/src/platforms/inspection-grok.js +165 -11
- package/dist/src/platforms/inspection-grok.js.map +1 -1
- package/dist/src/platforms/inspection-native.js +53 -18
- package/dist/src/platforms/inspection-native.js.map +1 -1
- package/dist/src/platforms/inspection-pi.d.ts +7 -1
- package/dist/src/platforms/inspection-pi.js +295 -95
- package/dist/src/platforms/inspection-pi.js.map +1 -1
- package/dist/src/platforms/inspection-query.d.ts +4 -2
- package/dist/src/platforms/inspection-query.js +24 -8
- package/dist/src/platforms/inspection-query.js.map +1 -1
- package/dist/src/platforms/inspection.d.ts +4 -1
- package/dist/src/platforms/inspection.js +36 -4
- package/dist/src/platforms/inspection.js.map +1 -1
- package/dist/src/platforms/layout.d.ts +13 -0
- package/dist/src/platforms/layout.js +90 -12
- package/dist/src/platforms/layout.js.map +1 -1
- package/dist/src/platforms/lifecycle-native.d.ts +1 -0
- package/dist/src/platforms/lifecycle-native.js +25 -1
- package/dist/src/platforms/lifecycle-native.js.map +1 -1
- package/dist/src/platforms/lifecycle.d.ts +2 -0
- package/dist/src/platforms/lifecycle.js +98 -25
- package/dist/src/platforms/lifecycle.js.map +1 -1
- package/dist/src/platforms/opencode-permission-config.d.ts +13 -0
- package/dist/src/platforms/opencode-permission-config.js +253 -0
- package/dist/src/platforms/opencode-permission-config.js.map +1 -0
- package/dist/src/platforms/opencode-permissions.d.ts +39 -0
- package/dist/src/platforms/opencode-permissions.js +212 -0
- package/dist/src/platforms/opencode-permissions.js.map +1 -0
- package/dist/src/platforms/opencode-related-permissions.d.ts +40 -0
- package/dist/src/platforms/opencode-related-permissions.js +177 -0
- package/dist/src/platforms/opencode-related-permissions.js.map +1 -0
- package/dist/src/platforms/permission-ownership.d.ts +89 -0
- package/dist/src/platforms/permission-ownership.js +543 -0
- package/dist/src/platforms/permission-ownership.js.map +1 -0
- package/dist/src/platforms/permission-sidecar.d.ts +70 -0
- package/dist/src/platforms/permission-sidecar.js +215 -0
- package/dist/src/platforms/permission-sidecar.js.map +1 -0
- package/dist/src/platforms/projection-code-extension.js +2 -1
- package/dist/src/platforms/projection-code-extension.js.map +1 -1
- package/dist/src/platforms/projection.js +127 -29
- package/dist/src/platforms/projection.js.map +1 -1
- package/dist/src/platforms/supplement-layout.d.ts +5 -1
- package/dist/src/platforms/supplement-layout.js +23 -1
- package/dist/src/platforms/supplement-layout.js.map +1 -1
- package/dist/src/platforms/supplement-state.d.ts +1 -1
- package/dist/src/platforms/supplement-state.js +18 -7
- package/dist/src/platforms/supplement-state.js.map +1 -1
- package/dist/src/portable/commands.js +1 -1
- package/dist/src/portable/commands.js.map +1 -1
- package/dist/src/portable/materializer.d.ts +4 -0
- package/dist/src/portable/materializer.js +8 -1
- package/dist/src/portable/materializer.js.map +1 -1
- package/dist/src/portable/recovery.d.ts +2 -0
- package/dist/src/portable/recovery.js +45 -8
- package/dist/src/portable/recovery.js.map +1 -1
- package/dist/src/recovery/coordinator.d.ts +3 -1
- package/dist/src/recovery/coordinator.js +101 -37
- package/dist/src/recovery/coordinator.js.map +1 -1
- package/dist/src/recovery/install-concurrency.js +3 -2
- package/dist/src/recovery/install-concurrency.js.map +1 -1
- package/dist/src/recovery/joint-coordinator.d.ts +7 -0
- package/dist/src/recovery/joint-coordinator.js +270 -64
- package/dist/src/recovery/joint-coordinator.js.map +1 -1
- package/dist/src/recovery/joint-demand.d.ts +14 -2
- package/dist/src/recovery/joint-demand.js +54 -7
- package/dist/src/recovery/joint-demand.js.map +1 -1
- package/dist/src/recovery/joint-install-execution.js +2 -1
- package/dist/src/recovery/joint-install-execution.js.map +1 -1
- package/dist/src/recovery/receipt.d.ts +15 -4
- package/dist/src/recovery/receipt.js +23 -0
- package/dist/src/recovery/receipt.js.map +1 -1
- package/dist/src/recovery/retirement.js +11 -17
- package/dist/src/recovery/retirement.js.map +1 -1
- package/dist/src/recovery/status.d.ts +20 -8
- package/dist/src/recovery/status.js +411 -91
- package/dist/src/recovery/status.js.map +1 -1
- package/dist/src/review/eval-source-input.d.ts +1 -0
- package/dist/src/review/eval-source-input.js +7 -1
- package/dist/src/review/eval-source-input.js.map +1 -1
- package/dist/src/review/platform-profile.js +2 -1
- package/dist/src/review/platform-profile.js.map +1 -1
- package/dist/src/review/review-selection.js +12 -5
- package/dist/src/review/review-selection.js.map +1 -1
- package/dist/src/review/skill-materialization.d.ts +2 -1
- package/dist/src/review/skill-materialization.js +45 -43
- package/dist/src/review/skill-materialization.js.map +1 -1
- package/dist/src/review/source-binding.js +5 -1
- package/dist/src/review/source-binding.js.map +1 -1
- package/dist/src/tui/console-app-v4.js +101 -57
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/controller-runtime.js +72 -7
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +6 -2
- package/dist/src/tui/controller.js +17 -4
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/deployment-view.d.ts +6 -3
- package/dist/src/tui/deployment-view.js +52 -10
- package/dist/src/tui/deployment-view.js.map +1 -1
- package/dist/src/tui/diagnostic-projection.d.ts +7 -1
- package/dist/src/tui/diagnostic-projection.js +55 -5
- package/dist/src/tui/diagnostic-projection.js.map +1 -1
- package/dist/src/tui/entity-cards.d.ts +2 -1
- package/dist/src/tui/entity-cards.js +34 -11
- package/dist/src/tui/entity-cards.js.map +1 -1
- package/dist/src/tui/glossary.js +5 -0
- package/dist/src/tui/glossary.js.map +1 -1
- package/dist/src/tui/model.js +2 -1
- package/dist/src/tui/model.js.map +1 -1
- package/dist/src/tui/operation-diagnostic-screens.js +3 -1
- package/dist/src/tui/operation-diagnostic-screens.js.map +1 -1
- package/dist/src/tui/operation-history.d.ts +6 -0
- package/dist/src/tui/operation-history.js +20 -2
- package/dist/src/tui/operation-history.js.map +1 -1
- package/dist/src/tui/operation-review-planner.js +130 -70
- package/dist/src/tui/operation-review-planner.js.map +1 -1
- package/dist/src/tui/plugin-detail.d.ts +4 -1
- package/dist/src/tui/plugin-detail.js +9 -2
- package/dist/src/tui/plugin-detail.js.map +1 -1
- package/dist/src/tui/scoped-flow.js +34 -16
- package/dist/src/tui/scoped-flow.js.map +1 -1
- package/dist/src/tui/scoped-inventory.d.ts +6 -2
- package/dist/src/tui/scoped-inventory.js +29 -7
- package/dist/src/tui/scoped-inventory.js.map +1 -1
- package/dist/src/types.d.ts +10 -21
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/artifact-plan.d.ts +3 -36
- package/dist/src/utils/artifact-plan.js +16 -78
- package/dist/src/utils/artifact-plan.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +1 -60
- package/dist/src/utils/artifact-renderer.js +31 -57
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/artifact-request.d.ts +3 -26
- package/dist/src/utils/artifact-request.js +13 -36
- package/dist/src/utils/artifact-request.js.map +1 -1
- package/dist/src/utils/artifact-sources.d.ts +0 -8
- package/dist/src/utils/artifact-sources.js +0 -8
- package/dist/src/utils/artifact-sources.js.map +1 -1
- package/dist/src/utils/bundle-layout.js +2 -7
- package/dist/src/utils/bundle-layout.js.map +1 -1
- package/dist/src/utils/catalog-source-references.js +22 -3
- package/dist/src/utils/catalog-source-references.js.map +1 -1
- package/dist/src/utils/codex-native-observation.d.ts +6 -0
- package/dist/src/utils/codex-native-observation.js +32 -3
- package/dist/src/utils/codex-native-observation.js.map +1 -1
- package/dist/src/utils/component-command-preparation.d.ts +8 -11
- package/dist/src/utils/component-command-preparation.js +110 -210
- package/dist/src/utils/component-command-preparation.js.map +1 -1
- package/dist/src/utils/component-gap.d.ts +4 -0
- package/dist/src/utils/component-gap.js +20 -0
- package/dist/src/utils/component-gap.js.map +1 -0
- package/dist/src/utils/component-resources.js +2 -4
- package/dist/src/utils/component-resources.js.map +1 -1
- package/dist/src/utils/dynamic-skill-tree.js +2 -32
- package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
- package/dist/src/utils/managed-command-cli-review.d.ts +43 -0
- package/dist/src/utils/managed-command-cli-review.js +389 -0
- package/dist/src/utils/managed-command-cli-review.js.map +1 -0
- package/dist/src/utils/managed-command-closure.d.ts +14 -3
- package/dist/src/utils/managed-command-closure.js +144 -23
- package/dist/src/utils/managed-command-closure.js.map +1 -1
- package/dist/src/utils/managed-command-errors.d.ts +5 -0
- package/dist/src/utils/managed-command-errors.js +10 -0
- package/dist/src/utils/managed-command-errors.js.map +1 -0
- package/dist/src/utils/managed-command-materialization.d.ts +77 -113
- package/dist/src/utils/managed-command-materialization.js +324 -323
- package/dist/src/utils/managed-command-materialization.js.map +1 -1
- package/dist/src/utils/managed-command-preparation.d.ts +28 -65
- package/dist/src/utils/managed-command-preparation.js +33 -140
- package/dist/src/utils/managed-command-preparation.js.map +1 -1
- package/dist/src/utils/managed-command-review.d.ts +11 -4
- package/dist/src/utils/managed-command-review.js +33 -21
- package/dist/src/utils/managed-command-review.js.map +1 -1
- package/dist/src/utils/managed-command-runtime.d.ts +1 -0
- package/dist/src/utils/managed-command-runtime.js +6 -3
- package/dist/src/utils/managed-command-runtime.js.map +1 -1
- package/dist/src/utils/managed-command-snapshots.d.ts +17 -0
- package/dist/src/utils/managed-command-snapshots.js +84 -0
- package/dist/src/utils/managed-command-snapshots.js.map +1 -0
- package/dist/src/utils/managed-command-store.d.ts +65 -78
- package/dist/src/utils/managed-command-store.js +446 -383
- package/dist/src/utils/managed-command-store.js.map +1 -1
- package/dist/src/utils/multi-source-catalog.d.ts +2 -0
- package/dist/src/utils/multi-source-catalog.js +3 -1
- package/dist/src/utils/multi-source-catalog.js.map +1 -1
- package/dist/src/utils/native-cli-interruption.d.ts +8 -0
- package/dist/src/utils/native-cli-interruption.js +65 -0
- package/dist/src/utils/native-cli-interruption.js.map +1 -0
- package/dist/src/utils/native-cli.d.ts +5 -0
- package/dist/src/utils/native-cli.js +166 -53
- package/dist/src/utils/native-cli.js.map +1 -1
- package/dist/src/utils/native-tool-context.d.ts +6 -3
- package/dist/src/utils/native-tool-context.js +3 -1
- package/dist/src/utils/native-tool-context.js.map +1 -1
- package/dist/src/utils/native-tool-review.d.ts +2 -12
- package/dist/src/utils/native-tool-review.js +6 -108
- package/dist/src/utils/native-tool-review.js.map +1 -1
- package/dist/src/utils/ownership.d.ts +8 -0
- package/dist/src/utils/ownership.js +17 -3
- package/dist/src/utils/ownership.js.map +1 -1
- package/dist/src/utils/package-content.d.ts +7 -0
- package/dist/src/utils/package-content.js +70 -0
- package/dist/src/utils/package-content.js.map +1 -0
- package/dist/src/utils/platform-empty-state.d.ts +32 -6
- package/dist/src/utils/platform-empty-state.js +146 -75
- package/dist/src/utils/platform-empty-state.js.map +1 -1
- package/dist/src/utils/plugin-config-command-apply.d.ts +33 -0
- package/dist/src/utils/plugin-config-command-apply.js +134 -0
- package/dist/src/utils/plugin-config-command-apply.js.map +1 -0
- package/dist/src/utils/plugin-config-impact.d.ts +19 -9
- package/dist/src/utils/plugin-config-impact.js +56 -37
- package/dist/src/utils/plugin-config-impact.js.map +1 -1
- package/dist/src/utils/plugin-config-write.d.ts +19 -19
- package/dist/src/utils/plugin-config-write.js +196 -770
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-scripts.js +19 -8
- package/dist/src/utils/plugin-scripts.js.map +1 -1
- package/dist/src/utils/process-tree.d.ts +1 -1
- package/dist/src/utils/process-tree.js +1 -1
- package/dist/src/utils/process-tree.js.map +1 -1
- package/dist/src/utils/rendered-contract.js +12 -6
- package/dist/src/utils/rendered-contract.js.map +1 -1
- package/dist/src/utils/skill-invocation-warning.d.ts +8 -3
- package/dist/src/utils/skill-invocation-warning.js +27 -1
- package/dist/src/utils/skill-invocation-warning.js.map +1 -1
- package/package.json +4 -3
- package/dist/src/platforms/managed-command-placement.d.ts +0 -8
- package/dist/src/platforms/managed-command-placement.js +0 -79
- package/dist/src/platforms/managed-command-placement.js.map +0 -1
- package/dist/src/utils/managed-command-evidence.d.ts +0 -7
- package/dist/src/utils/managed-command-evidence.js +0 -10
- package/dist/src/utils/managed-command-evidence.js.map +0 -1
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { type FeatureRequirement, type PlatformCapabilitiesV2, type PlatformId, type Scope } from '@lesliechan721/aw-plugin-core/manifest';
|
|
2
2
|
import type { Diagnostic } from '../output/public-result.js';
|
|
3
3
|
export declare const SKILL_INVOCATION_NOTICE = "skillInvocationPolicyNotGuaranteed";
|
|
4
|
-
export type SkillInvocationNoticeReason = 'noBoundExecutor' | 'invocationControlUnverified' | 'invocationControlUnsupported';
|
|
4
|
+
export type SkillInvocationNoticeReason = 'noBoundExecutor' | 'invocationControlUnverified' | 'invocationControlUnsupported' | 'invocationControlDegraded';
|
|
5
5
|
export type SkillInvocationControl = FeatureRequirement & {
|
|
6
6
|
reasonCode: SkillInvocationNoticeReason;
|
|
7
|
-
product?: 'app';
|
|
7
|
+
product?: 'cli' | 'app';
|
|
8
8
|
};
|
|
9
|
+
export interface AntigravitySkillInvocationReader {
|
|
10
|
+
product: 'cli' | 'app';
|
|
11
|
+
unsupported: readonly FeatureRequirement[];
|
|
12
|
+
observed?: readonly FeatureRequirement[];
|
|
13
|
+
}
|
|
9
14
|
export declare function describeSkillInvocationControl({ feature, values }: FeatureRequirement): string;
|
|
10
15
|
/** One notice per delivered Skill, with only the controls this target cannot guarantee. */
|
|
11
16
|
export declare function skillInvocationWarning(skill: string, requirements: FeatureRequirement[], position: {
|
|
12
17
|
pluginId: string;
|
|
13
18
|
target: PlatformId;
|
|
14
19
|
scope: Scope;
|
|
15
|
-
}, capabilities?: PlatformCapabilitiesV2, codexCliCapabilities?: PlatformCapabilitiesV2): Diagnostic | undefined;
|
|
20
|
+
}, capabilities?: PlatformCapabilitiesV2, codexCliCapabilities?: PlatformCapabilitiesV2, antigravityReaders?: readonly AntigravitySkillInvocationReader[]): Diagnostic | undefined;
|
|
@@ -4,8 +4,34 @@ export function describeSkillInvocationControl({ feature, values }) {
|
|
|
4
4
|
return values?.length ? `${feature}=${values.join(',')}` : feature;
|
|
5
5
|
}
|
|
6
6
|
/** One notice per delivered Skill, with only the controls this target cannot guarantee. */
|
|
7
|
-
export function skillInvocationWarning(skill, requirements, position, capabilities, codexCliCapabilities) {
|
|
7
|
+
export function skillInvocationWarning(skill, requirements, position, capabilities, codexCliCapabilities, antigravityReaders = []) {
|
|
8
8
|
const requested = requirements.filter(({ feature }) => isSkillInvocationFeature(feature));
|
|
9
|
+
if (position.target === 'antigravity') {
|
|
10
|
+
const controls = antigravityReaders.flatMap(({ product, unsupported, observed }) => requested.flatMap((requirement) => {
|
|
11
|
+
const actual = observed?.find(({ feature }) => feature === requirement.feature)?.values;
|
|
12
|
+
const degraded = actual?.length ? requirement.values?.filter((value) => !actual.includes(value)) : undefined;
|
|
13
|
+
if (degraded?.length)
|
|
14
|
+
return [{ feature: requirement.feature, values: degraded, reasonCode: 'invocationControlDegraded', product }];
|
|
15
|
+
const limit = unsupported.find(({ feature }) => feature === requirement.feature);
|
|
16
|
+
if (!limit)
|
|
17
|
+
return [];
|
|
18
|
+
const values = requirement.values?.filter((value) => !actual?.includes(value) && (!limit.values || limit.values.includes(value)));
|
|
19
|
+
return values?.length || !requirement.values && !limit.values
|
|
20
|
+
? [{ feature: requirement.feature, ...(values ? { values } : {}), reasonCode: 'invocationControlUnsupported', product }] : [];
|
|
21
|
+
}));
|
|
22
|
+
if (!controls.length)
|
|
23
|
+
return;
|
|
24
|
+
const reasonCode = controls.some((control) => control.reasonCode === 'invocationControlDegraded')
|
|
25
|
+
? 'invocationControlDegraded' : 'invocationControlUnsupported';
|
|
26
|
+
const explanation = controls.map(({ reasonCode: reason, product, ...control }) => {
|
|
27
|
+
const client = product === 'cli' ? 'Antigravity CLI' : 'Antigravity App';
|
|
28
|
+
const description = describeSkillInvocationControl(control);
|
|
29
|
+
return reason === 'invocationControlDegraded' ? `${client} reported a policy that differs from ${description}.`
|
|
30
|
+
: `${client} does not support ${description}.`;
|
|
31
|
+
}).join(' ');
|
|
32
|
+
return { code: SKILL_INVOCATION_NOTICE, severity: 'warning', subject: { ...position, field: `skill.${skill}` },
|
|
33
|
+
detail: { reasonCode, skillInvocationControls: controls }, message: `Installed Skill "${skill}". ${explanation}` };
|
|
34
|
+
}
|
|
9
35
|
const missing = capabilities ? getUnmetFeatureRequirements(requested, capabilities) : requested;
|
|
10
36
|
if (!missing.length)
|
|
11
37
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-invocation-warning.js","sourceRoot":"","sources":["../../../src/utils/skill-invocation-warning.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EAAE,2BAA2B,EAAE,wBAAwB,GAEjF,MAAM,wCAAwC,CAAC;AAGhD,MAAM,CAAC,MAAM,uBAAuB,GAAG,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"skill-invocation-warning.js","sourceRoot":"","sources":["../../../src/utils/skill-invocation-warning.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EAAE,2BAA2B,EAAE,wBAAwB,GAEjF,MAAM,wCAAwC,CAAC;AAGhD,MAAM,CAAC,MAAM,uBAAuB,GAAG,oCAAoC,CAAC;AAS5E,MAAM,UAAU,8BAA8B,CAAC,EAAE,OAAO,EAAE,MAAM,EAAsB;IACpF,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;AACrE,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,sBAAsB,CAAC,KAAa,EAAE,YAAkC,EACtF,QAAgE,EAAE,YAAqC,EACvG,oBAA6C,EAAE,qBAAkE,EAAE;IACnH,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1F,IAAI,QAAQ,CAAC,MAAM,KAAK,aAAa,EAAE,CAAC;QACtC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,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23
23
|
"dependencies": {
|
|
24
24
|
"@inkjs/ui": "^2.0.0",
|
|
25
|
-
"@lesliechan721/agent-skill-eval": "0.1.0-beta.
|
|
26
|
-
"@lesliechan721/aw-plugin-core": "0.1.0-beta.
|
|
25
|
+
"@lesliechan721/agent-skill-eval": "0.1.0-beta.86",
|
|
26
|
+
"@lesliechan721/aw-plugin-core": "0.1.0-beta.86",
|
|
27
27
|
"commander": "^14.0.1",
|
|
28
28
|
"fs-extra": "^11.3.0",
|
|
29
29
|
"ink": "^7.1.1",
|
|
30
|
+
"jsonc-parser": "^3.3.1",
|
|
30
31
|
"minimatch": "^10.2.5",
|
|
31
32
|
"pnpm": "10.33.0",
|
|
32
33
|
"react": "^19.2.8",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ProducerIdentity } from '@lesliechan721/aw-plugin-core/manifest';
|
|
2
|
-
import type { PhysicalIdentity } from './contracts.js';
|
|
3
|
-
/** Verify the frozen physical identity against the fixed final layout, not the caller's current client home. */
|
|
4
|
-
export declare function verifyManagedCommandPlacement(options: {
|
|
5
|
-
producer: ProducerIdentity;
|
|
6
|
-
resourceRoot: string;
|
|
7
|
-
env?: NodeJS.ProcessEnv;
|
|
8
|
-
}): Promise<PhysicalIdentity>;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import path from 'node:path';
|
|
2
|
-
import fs from 'fs-extra';
|
|
3
|
-
import { normalizeProducerIdentity } from '@lesliechan721/aw-plugin-core/manifest';
|
|
4
|
-
import { readSkillOwnerMarker } from '../utils/ownership.js';
|
|
5
|
-
import { readStrictNamespacedMarketplaceRoot } from '../utils/local-marketplace.js';
|
|
6
|
-
import { getDeploymentLayout, getInstallRoute } from './layout.js';
|
|
7
|
-
import { getPhysicalKey } from './identity.js';
|
|
8
|
-
function invalid() { throw new Error('commandOwnerMismatch: The native Skill does not match its verified deployment placement.'); }
|
|
9
|
-
/** Verify the frozen physical identity against the fixed final layout, not the caller's current client home. */
|
|
10
|
-
export async function verifyManagedCommandPlacement(options) {
|
|
11
|
-
const producer = normalizeProducerIdentity(options.producer);
|
|
12
|
-
if (producer.kind === 'package' || !producer.platform || !producer.placementKey)
|
|
13
|
-
invalid();
|
|
14
|
-
const resourceRoot = path.resolve(options.resourceRoot);
|
|
15
|
-
if (await fs.realpath(resourceRoot) !== resourceRoot)
|
|
16
|
-
invalid();
|
|
17
|
-
let ancestor = path.parse(resourceRoot).root;
|
|
18
|
-
for (const segment of path.relative(ancestor, resourceRoot).split(path.sep)) {
|
|
19
|
-
ancestor = path.join(ancestor, segment);
|
|
20
|
-
const stat = await fs.lstat(ancestor);
|
|
21
|
-
if (!stat.isDirectory() || stat.isSymbolicLink())
|
|
22
|
-
invalid();
|
|
23
|
-
}
|
|
24
|
-
if (path.basename(path.dirname(resourceRoot)) !== 'skills')
|
|
25
|
-
invalid();
|
|
26
|
-
const packageRoot = path.dirname(path.dirname(resourceRoot));
|
|
27
|
-
const marker = await readSkillOwnerMarker({ skillRoot: packageRoot, allowedRoot: path.dirname(packageRoot) });
|
|
28
|
-
if (!marker || marker.sourceIdentity !== producer.sourceIdentity || marker.physicalKey !== producer.placementKey
|
|
29
|
-
|| marker.sourceId !== producer.sourceId || marker.pluginId !== `${producer.sourceId}/${producer.pluginName}` || marker.plugin !== producer.pluginName
|
|
30
|
-
|| marker.platform !== producer.platform || marker.scope !== producer.scope || marker.artifactKey !== path.basename(packageRoot))
|
|
31
|
-
invalid();
|
|
32
|
-
const physical = marker.nativeProjection?.physicalIdentity;
|
|
33
|
-
if (!physical || physical.sourceIdentity !== producer.sourceIdentity || physical.pluginId !== marker.pluginId
|
|
34
|
-
|| physical.platform !== producer.platform || getPhysicalKey(physical) !== producer.placementKey)
|
|
35
|
-
invalid();
|
|
36
|
-
const directoryRoute = ['antigravity-directory', 'opencode-directory', 'grok-directory'].includes(physical.route);
|
|
37
|
-
if (directoryRoute && path.basename(physical.namespaceRoot) !== 'plugins')
|
|
38
|
-
invalid();
|
|
39
|
-
const configRoot = directoryRoute ? path.dirname(physical.namespaceRoot) : physical.namespaceRoot;
|
|
40
|
-
const scope = producer.scope === 'user' ? { kind: 'user' } : { kind: 'project', projectRoot: producer.projectRoot };
|
|
41
|
-
// This entry only reconstructs a previously verified layout. It claims no current client availability.
|
|
42
|
-
const product = { id: 'frozen-placement', product: directoryRoute ? 'app' : 'cli', version: null,
|
|
43
|
-
availability: 'unknown', reasonCodes: [], entry: directoryRoute ? { kind: 'directory', configRoot } : { kind: 'cli', executable: '', configRoot } };
|
|
44
|
-
if (getInstallRoute(producer.platform, scope, product) !== physical.route)
|
|
45
|
-
invalid();
|
|
46
|
-
const binding = { id: '', plugin: { sourceId: producer.sourceId, sourceIdentity: producer.sourceIdentity,
|
|
47
|
-
pluginId: marker.pluginId, version: '0.0.0' }, platform: producer.platform, scope, route: physical.route,
|
|
48
|
-
consumers: [product], physicalKey: producer.placementKey, activationKey: '', renderUnitIds: [] };
|
|
49
|
-
const ctx = { cwd: producer.projectRoot ?? configRoot, env: options.env };
|
|
50
|
-
const layout = await getDeploymentLayout(ctx, binding);
|
|
51
|
-
if (layout.packageRoot !== packageRoot || getPhysicalKey(layout.physicalIdentity) !== producer.placementKey)
|
|
52
|
-
invalid();
|
|
53
|
-
if (layout.marketplaceRoot) {
|
|
54
|
-
if (binding.platform !== 'codex' && binding.platform !== 'claude' && binding.platform !== 'copilot')
|
|
55
|
-
invalid();
|
|
56
|
-
const source = await readStrictNamespacedMarketplaceRoot({ rootDir: layout.marketplaceRoot,
|
|
57
|
-
trustedMarketplaceRoot: path.dirname(layout.marketplaceRoot), platform: binding.platform,
|
|
58
|
-
sourceId: producer.sourceId, sourceIdentity: producer.sourceIdentity, marketplaceName: layout.marketplaceName });
|
|
59
|
-
if (!source)
|
|
60
|
-
invalid();
|
|
61
|
-
const entries = source.manifest.plugins.filter((entry) => entry && typeof entry === 'object'
|
|
62
|
-
&& 'name' in entry && entry.name === producer.pluginName);
|
|
63
|
-
if (entries.length !== 1 || !('source' in entries[0])
|
|
64
|
-
|| entries[0].source !== `./plugins/${producer.pluginName}`)
|
|
65
|
-
invalid();
|
|
66
|
-
}
|
|
67
|
-
const componentId = producer.kind === 'static-skill' ? `skill:${producer.key}` : producer.key;
|
|
68
|
-
const components = marker.nativeProjection.components.filter((component) => component.id === componentId);
|
|
69
|
-
if (components.length !== 1)
|
|
70
|
-
invalid();
|
|
71
|
-
const component = components[0];
|
|
72
|
-
if (path.basename(resourceRoot) !== component.nativeName || !component.relativeOutputs.includes(`skills/${component.nativeName}/SKILL.md`))
|
|
73
|
-
invalid();
|
|
74
|
-
const skill = await fs.lstat(path.join(resourceRoot, 'SKILL.md'));
|
|
75
|
-
if (!skill.isFile() || skill.isSymbolicLink())
|
|
76
|
-
invalid();
|
|
77
|
-
return layout.physicalIdentity;
|
|
78
|
-
}
|
|
79
|
-
//# sourceMappingURL=managed-command-placement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managed-command-placement.js","sourceRoot":"","sources":["../../../src/platforms/managed-command-placement.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EAAE,yBAAyB,EAAyB,MAAM,wCAAwC,CAAC;AAC1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,SAAS,OAAO,KAAY,MAAM,IAAI,KAAK,CAAC,0FAA0F,CAAC,CAAC,CAAC,CAAC;AAC1I,gHAAgH;AAChH,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAAC,OAEnD;IACC,MAAM,QAAQ,GAAG,yBAAyB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7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E,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC;IAC9F,MAAM,UAAU,GAAG,MAAM,CAAC,gBAAiB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,WAAW,CAAC,CAAC;IAC3G,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACvC,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,CAAE,CAAC;IACjC,IAAI,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,SAAS,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,QAAQ,CAAC,UAAU,SAAS,CAAC,UAAU,WAAW,CAAC;QAAE,OAAO,EAAE,CAAC;IACtJ,MAAM,KAAK,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC;IAClE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,KAAK,CAAC,cAAc,EAAE;QAAE,OAAO,EAAE,CAAC;IACzD,OAAO,MAAM,CAAC,gBAAgB,CAAC;AACjC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ProducerIdentity } from '@lesliechan721/aw-plugin-core/manifest';
|
|
2
|
-
/** Live source, ownership and fixed platform layout must agree with the full producer identity. */
|
|
3
|
-
export declare function verifyManagedCommandArtifactEvidence(options: {
|
|
4
|
-
producer: ProducerIdentity;
|
|
5
|
-
resourceRoot: string;
|
|
6
|
-
env?: NodeJS.ProcessEnv;
|
|
7
|
-
}): Promise<void>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { normalizeProducerIdentity } from '@lesliechan721/aw-plugin-core/manifest';
|
|
2
|
-
import { verifyManagedCommandPlacement } from '../platforms/managed-command-placement.js';
|
|
3
|
-
/** Live source, ownership and fixed platform layout must agree with the full producer identity. */
|
|
4
|
-
export async function verifyManagedCommandArtifactEvidence(options) {
|
|
5
|
-
const producer = normalizeProducerIdentity(options.producer);
|
|
6
|
-
if (producer.kind === 'package')
|
|
7
|
-
throw new Error('commandOwnerMismatch: package evidence must use its external owner marker.');
|
|
8
|
-
await verifyManagedCommandPlacement({ ...options, producer });
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=managed-command-evidence.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managed-command-evidence.js","sourceRoot":"","sources":["../../../src/utils/managed-command-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAyB,MAAM,wCAAwC,CAAC;AAE1G,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAE1F,mGAAmG;AACnG,MAAM,CAAC,KAAK,UAAU,oCAAoC,CAAC,OAE1D;IACC,MAAM,QAAQ,GAAG,yBAAyB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7D,IAAI,QAAQ,CAAC,IAAI,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,4EAA4E,CAAC,CAAC;IAC/H,MAAM,6BAA6B,CAAC,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;AAChE,CAAC"}
|