@lesliechan721/aw 0.1.0-beta.60 → 0.1.0-beta.62
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/scripts/validate-plugin.mjs +56 -9
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- package/dist/scripts/aw-skill-eval-materializer.js +3 -0
- package/dist/scripts/aw-skill-eval-materializer.js.map +1 -1
- package/dist/scripts/test-plugin-scripts.js +20 -1
- 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 +1 -0
- package/dist/src/commands/aw-capabilities.js.map +1 -1
- package/dist/src/commands/rebuild-command.js +25 -26
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +2 -0
- package/dist/src/commands/rebuild-integration.js +23 -7
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/review-inspection.js +38 -5
- package/dist/src/commands/review-inspection.js.map +1 -1
- package/dist/src/commands/review-preparation.js +1 -0
- package/dist/src/commands/review-preparation.js.map +1 -1
- package/dist/src/generators/local-plugin.js +7 -5
- package/dist/src/generators/local-plugin.js.map +1 -1
- package/dist/src/portable/materializer.js +3 -0
- package/dist/src/portable/materializer.js.map +1 -1
- package/dist/src/review/review-profile.d.ts +1 -0
- package/dist/src/review/review-profile.js +44 -8
- package/dist/src/review/review-profile.js.map +1 -1
- package/dist/src/review/review-selection.js +19 -6
- package/dist/src/review/review-selection.js.map +1 -1
- package/dist/src/review/skill-materialization.d.ts +1 -0
- package/dist/src/review/skill-materialization.js +2 -0
- package/dist/src/review/skill-materialization.js.map +1 -1
- package/dist/src/review/source-binding.d.ts +5 -0
- package/dist/src/review/source-binding.js +83 -22
- package/dist/src/review/source-binding.js.map +1 -1
- package/dist/src/tui/config-leaf-editor.d.ts +24 -0
- package/dist/src/tui/config-leaf-editor.js +19 -7
- package/dist/src/tui/config-leaf-editor.js.map +1 -1
- package/dist/src/tui/config-references.d.ts +1 -0
- package/dist/src/tui/config-references.js +8 -1
- package/dist/src/tui/config-references.js.map +1 -1
- package/dist/src/tui/console-app-v4.js +77 -17
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/controller-runtime.d.ts +1 -1
- package/dist/src/tui/controller-runtime.js +119 -91
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +3 -0
- package/dist/src/tui/controller.js +19 -0
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/model.js +1 -1
- package/dist/src/tui/model.js.map +1 -1
- package/dist/src/tui/operation-review-planner.js +13 -8
- package/dist/src/tui/operation-review-planner.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +8 -1
- package/dist/src/utils/artifact-renderer.js +25 -7
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/managed-command-materialization.d.ts +2 -0
- package/dist/src/utils/managed-command-materialization.js +2 -1
- package/dist/src/utils/managed-command-materialization.js.map +1 -1
- package/dist/src/utils/plugin-config-impact.d.ts +15 -0
- package/dist/src/utils/plugin-config-impact.js +132 -24
- package/dist/src/utils/plugin-config-impact.js.map +1 -1
- package/dist/src/utils/plugin-config-references.d.ts +80 -0
- package/dist/src/utils/plugin-config-references.js +340 -0
- package/dist/src/utils/plugin-config-references.js.map +1 -0
- package/dist/src/utils/plugin-config-write.js +148 -31
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-config.d.ts +10 -2
- package/dist/src/utils/plugin-config.js +53 -4
- package/dist/src/utils/plugin-config.js.map +1 -1
- package/dist/src/utils/plugin-scripts.d.ts +1 -0
- package/dist/src/utils/plugin-scripts.js +1 -1
- package/dist/src/utils/plugin-scripts.js.map +1 -1
- package/dist/src/utils/runtime-config.js +1 -0
- package/dist/src/utils/runtime-config.js.map +1 -1
- package/package.json +3 -3
|
@@ -262,6 +262,7 @@ export interface ConfigOperationEvidence {
|
|
|
262
262
|
impactState?: 'known' | 'unknown';
|
|
263
263
|
noEffectiveChange?: true;
|
|
264
264
|
affectedTargets: Array<{
|
|
265
|
+
pluginName?: string;
|
|
265
266
|
platform: PlatformName;
|
|
266
267
|
scope: Scope;
|
|
267
268
|
}>;
|
|
@@ -269,6 +270,7 @@ export interface ConfigOperationEvidence {
|
|
|
269
270
|
preApplyAuthorization?: PreApplyAuthorizationTarget[];
|
|
270
271
|
sharedNativeRenderTargets?: Array<{
|
|
271
272
|
id: string;
|
|
273
|
+
pluginName?: string;
|
|
272
274
|
skillKey: string;
|
|
273
275
|
refreshKeys: string[];
|
|
274
276
|
platform?: PlatformName;
|
|
@@ -872,6 +874,7 @@ export declare class TuiController {
|
|
|
872
874
|
discardPortableDraft(): void;
|
|
873
875
|
replace(route: TuiRoute, context?: TuiPageContext): void;
|
|
874
876
|
beginConfigFlow(pluginId: string): void;
|
|
877
|
+
beginConfigReferenceSource(pluginId: string, fieldKey: string): void;
|
|
875
878
|
beginSavedConfigRecovery(pluginId: string): void;
|
|
876
879
|
beginConfigSourceRecovery(sourceId: string): void;
|
|
877
880
|
getForceCleanupCandidate(pluginId: string, platform: PlatformName, scope: Scope): Promise<ForceCleanupCandidate | undefined>;
|
|
@@ -1983,6 +1983,25 @@ export class TuiController {
|
|
|
1983
1983
|
});
|
|
1984
1984
|
this.#publish();
|
|
1985
1985
|
}
|
|
1986
|
+
beginConfigReferenceSource(pluginId, fieldKey) {
|
|
1987
|
+
this.#assertAcceptingActions();
|
|
1988
|
+
const current = this.#router.snapshot.current;
|
|
1989
|
+
const route = current.route;
|
|
1990
|
+
if (!['configFieldEditor', 'configObjectPropertyEditor'].includes(route.name)
|
|
1991
|
+
|| !('pluginId' in route)
|
|
1992
|
+
|| sourceIdFromPluginId(route.pluginId) !== sourceIdFromPluginId(pluginId)
|
|
1993
|
+
|| route.pluginId === pluginId) {
|
|
1994
|
+
throw new TuiOperationBlockedError('configReferenceSourceUnavailable', '引用来源必须是同一来源中的其他插件。');
|
|
1995
|
+
}
|
|
1996
|
+
this.#cancelReviewPreparation();
|
|
1997
|
+
if (this.#activeReview)
|
|
1998
|
+
this.#tickets.delete(this.#activeReview.reviewToken);
|
|
1999
|
+
this.#activeReview = undefined;
|
|
2000
|
+
this.#router.beginFlow('configEdit', route, this.#router.snapshot.currentFrameId, current.context);
|
|
2001
|
+
this.#router.push({ name: 'configFields', pluginId, layer: { scope: 'effective' } });
|
|
2002
|
+
this.#router.push({ name: 'configFieldEditor', pluginId, layer: { scope: 'effective' }, fieldKey, editor: 'array', mode: 'choices' });
|
|
2003
|
+
this.#publish();
|
|
2004
|
+
}
|
|
1986
2005
|
beginSavedConfigRecovery(pluginId) {
|
|
1987
2006
|
this.#assertAcceptingActions();
|
|
1988
2007
|
const plugin = this.#viewModel?.plugins.find((entry) => entry.pluginId === pluginId);
|