@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.
Files changed (74) hide show
  1. package/dist/authoring/scripts/validate-plugin.mjs +56 -9
  2. package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
  3. package/dist/scripts/aw-skill-eval-materializer.js +3 -0
  4. package/dist/scripts/aw-skill-eval-materializer.js.map +1 -1
  5. package/dist/scripts/test-plugin-scripts.js +20 -1
  6. package/dist/scripts/test-plugin-scripts.js.map +1 -1
  7. package/dist/src/commands/aw-capabilities.d.ts +1 -1
  8. package/dist/src/commands/aw-capabilities.js +1 -0
  9. package/dist/src/commands/aw-capabilities.js.map +1 -1
  10. package/dist/src/commands/rebuild-command.js +25 -26
  11. package/dist/src/commands/rebuild-command.js.map +1 -1
  12. package/dist/src/commands/rebuild-integration.d.ts +2 -0
  13. package/dist/src/commands/rebuild-integration.js +23 -7
  14. package/dist/src/commands/rebuild-integration.js.map +1 -1
  15. package/dist/src/commands/review-inspection.js +38 -5
  16. package/dist/src/commands/review-inspection.js.map +1 -1
  17. package/dist/src/commands/review-preparation.js +1 -0
  18. package/dist/src/commands/review-preparation.js.map +1 -1
  19. package/dist/src/generators/local-plugin.js +7 -5
  20. package/dist/src/generators/local-plugin.js.map +1 -1
  21. package/dist/src/portable/materializer.js +3 -0
  22. package/dist/src/portable/materializer.js.map +1 -1
  23. package/dist/src/review/review-profile.d.ts +1 -0
  24. package/dist/src/review/review-profile.js +44 -8
  25. package/dist/src/review/review-profile.js.map +1 -1
  26. package/dist/src/review/review-selection.js +19 -6
  27. package/dist/src/review/review-selection.js.map +1 -1
  28. package/dist/src/review/skill-materialization.d.ts +1 -0
  29. package/dist/src/review/skill-materialization.js +2 -0
  30. package/dist/src/review/skill-materialization.js.map +1 -1
  31. package/dist/src/review/source-binding.d.ts +5 -0
  32. package/dist/src/review/source-binding.js +83 -22
  33. package/dist/src/review/source-binding.js.map +1 -1
  34. package/dist/src/tui/config-leaf-editor.d.ts +24 -0
  35. package/dist/src/tui/config-leaf-editor.js +19 -7
  36. package/dist/src/tui/config-leaf-editor.js.map +1 -1
  37. package/dist/src/tui/config-references.d.ts +1 -0
  38. package/dist/src/tui/config-references.js +8 -1
  39. package/dist/src/tui/config-references.js.map +1 -1
  40. package/dist/src/tui/console-app-v4.js +77 -17
  41. package/dist/src/tui/console-app-v4.js.map +1 -1
  42. package/dist/src/tui/controller-runtime.d.ts +1 -1
  43. package/dist/src/tui/controller-runtime.js +119 -91
  44. package/dist/src/tui/controller-runtime.js.map +1 -1
  45. package/dist/src/tui/controller.d.ts +3 -0
  46. package/dist/src/tui/controller.js +19 -0
  47. package/dist/src/tui/controller.js.map +1 -1
  48. package/dist/src/tui/model.js +1 -1
  49. package/dist/src/tui/model.js.map +1 -1
  50. package/dist/src/tui/operation-review-planner.js +13 -8
  51. package/dist/src/tui/operation-review-planner.js.map +1 -1
  52. package/dist/src/utils/artifact-renderer.d.ts +8 -1
  53. package/dist/src/utils/artifact-renderer.js +25 -7
  54. package/dist/src/utils/artifact-renderer.js.map +1 -1
  55. package/dist/src/utils/managed-command-materialization.d.ts +2 -0
  56. package/dist/src/utils/managed-command-materialization.js +2 -1
  57. package/dist/src/utils/managed-command-materialization.js.map +1 -1
  58. package/dist/src/utils/plugin-config-impact.d.ts +15 -0
  59. package/dist/src/utils/plugin-config-impact.js +132 -24
  60. package/dist/src/utils/plugin-config-impact.js.map +1 -1
  61. package/dist/src/utils/plugin-config-references.d.ts +80 -0
  62. package/dist/src/utils/plugin-config-references.js +340 -0
  63. package/dist/src/utils/plugin-config-references.js.map +1 -0
  64. package/dist/src/utils/plugin-config-write.js +148 -31
  65. package/dist/src/utils/plugin-config-write.js.map +1 -1
  66. package/dist/src/utils/plugin-config.d.ts +10 -2
  67. package/dist/src/utils/plugin-config.js +53 -4
  68. package/dist/src/utils/plugin-config.js.map +1 -1
  69. package/dist/src/utils/plugin-scripts.d.ts +1 -0
  70. package/dist/src/utils/plugin-scripts.js +1 -1
  71. package/dist/src/utils/plugin-scripts.js.map +1 -1
  72. package/dist/src/utils/runtime-config.js +1 -0
  73. package/dist/src/utils/runtime-config.js.map +1 -1
  74. 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);