@jay-framework/aiditor 0.19.7 → 0.20.0

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/index.d.ts CHANGED
@@ -120,6 +120,11 @@ declare const cancelAgentTaskAction: _jay_framework_fullstack_component.JayActio
120
120
  }, []>;
121
121
 
122
122
  /** Design Log #19 — Add Menu agreement types (M19.1). */
123
+ type AddMenuInteraction = {
124
+ mode: "reference" | "stage-place";
125
+ persistOnPage?: boolean;
126
+ stagePromptTemplate?: string;
127
+ };
123
128
  type AddMenuItem = {
124
129
  /** Stable unique id, convention: `<pluginName>:<slug>` */
125
130
  id: string;
@@ -132,6 +137,7 @@ type AddMenuItem = {
132
137
  packageName?: string;
133
138
  subCategory?: string;
134
139
  thumbnail?: string;
140
+ interaction?: AddMenuInteraction;
135
141
  };
136
142
  type AddMenuAttachment = {
137
143
  itemId: string;
@@ -141,7 +147,7 @@ type AddMenuAttachment = {
141
147
  type RouteMigrationIntent = {
142
148
  currentRoute: string;
143
149
  plannedRoute: string;
144
- reason: "add-menu-route-param-component";
150
+ reason: "add-menu-route-param-component" | "page-info-route-edit";
145
151
  triggeringItemIds: string[];
146
152
  };
147
153
  type AddMenuCategoryGroup = {
@@ -699,6 +705,127 @@ declare const syncAddMenuAttachmentsAction: _jay_framework_fullstack_component.J
699
705
  error?: string;
700
706
  }, [_jay_framework_dev_server.DevServerService]>;
701
707
 
708
+ type ContractInspectorTag = {
709
+ tagPath: string;
710
+ tagKind: "data" | "variant" | "interactive" | "sub-contract";
711
+ linkedContract?: string;
712
+ description?: string;
713
+ };
714
+
715
+ declare const PAGE_META_VERSION: 1;
716
+ type PageMetaFile = {
717
+ version: typeof PAGE_META_VERSION;
718
+ contextKey: string;
719
+ pageRoute: string;
720
+ updatedAt: string;
721
+ plannedRoute?: string;
722
+ routeMigration?: RouteMigrationIntent;
723
+ };
724
+
725
+ declare const getPageMetaAction: _jay_framework_fullstack_component.JayAction<{
726
+ contextKey: string;
727
+ pageRoute: string;
728
+ }, {
729
+ file: PageMetaFile;
730
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
731
+ contextKey: string;
732
+ pageRoute: string;
733
+ }, {
734
+ file: PageMetaFile;
735
+ }, [_jay_framework_dev_server.DevServerService]>;
736
+ declare const savePageMetaAction: _jay_framework_fullstack_component.JayAction<{
737
+ file: PageMetaFile;
738
+ }, {
739
+ ok: true;
740
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
741
+ file: PageMetaFile;
742
+ }, {
743
+ ok: true;
744
+ }, [_jay_framework_dev_server.DevServerService]>;
745
+ declare const getContractInspectorTagsAction: _jay_framework_fullstack_component.JayAction<{
746
+ pluginName: string;
747
+ contractName: string;
748
+ }, {
749
+ tags: ContractInspectorTag[];
750
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
751
+ pluginName: string;
752
+ contractName: string;
753
+ }, {
754
+ tags: ContractInspectorTag[];
755
+ }, [_jay_framework_dev_server.DevServerService]>;
756
+
757
+ declare const PAGE_ASSETS_VERSION: 1;
758
+ type PageAssetSource = "add-menu" | "detected" | "upload";
759
+ type PageAssetEntry = {
760
+ id: string;
761
+ title: string;
762
+ prompt: string;
763
+ source: PageAssetSource;
764
+ itemId?: string;
765
+ thumbnail?: string;
766
+ persistOnPage: boolean;
767
+ addedAt: string;
768
+ /** Stable key for detected entries — used for sync + suppression */
769
+ detectedKey?: string;
770
+ userRemoved?: boolean;
771
+ detectedMeta?: {
772
+ contractName?: string;
773
+ pluginName?: string;
774
+ componentKey?: string;
775
+ };
776
+ };
777
+ type PageAssetsFile = {
778
+ version: typeof PAGE_ASSETS_VERSION;
779
+ contextKey: string;
780
+ pageRoute: string;
781
+ renderedUrl?: string;
782
+ updatedAt: string;
783
+ assets: PageAssetEntry[];
784
+ /** Keys user removed — sync will not re-add until identity changes */
785
+ suppressedDetectedKeys?: string[];
786
+ routeMigration?: RouteMigrationIntent;
787
+ };
788
+
789
+ declare const getPageAssetsAction: _jay_framework_fullstack_component.JayAction<{
790
+ contextKey: string;
791
+ pageRoute: string;
792
+ renderedUrl?: string;
793
+ }, {
794
+ file: PageAssetsFile;
795
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
796
+ contextKey: string;
797
+ pageRoute: string;
798
+ renderedUrl?: string;
799
+ }, {
800
+ file: PageAssetsFile;
801
+ }, [_jay_framework_dev_server.DevServerService]>;
802
+ declare const savePageAssetsAction: _jay_framework_fullstack_component.JayAction<{
803
+ file: PageAssetsFile;
804
+ }, {
805
+ ok: true;
806
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
807
+ file: PageAssetsFile;
808
+ }, {
809
+ ok: true;
810
+ }, [_jay_framework_dev_server.DevServerService]>;
811
+ declare const syncDetectedPageAssetsAction: _jay_framework_fullstack_component.JayAction<{
812
+ contextKey: string;
813
+ pageRoute: string;
814
+ renderedUrl?: string;
815
+ jayHtmlPath?: string;
816
+ }, {
817
+ file: PageAssetsFile;
818
+ detectedCount: number;
819
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
820
+ contextKey: string;
821
+ pageRoute: string;
822
+ renderedUrl?: string;
823
+ jayHtmlPath?: string;
824
+ }, {
825
+ file: PageAssetsFile;
826
+ detectedCount: number;
827
+ }, [_jay_framework_dev_server.DevServerService]>;
828
+
702
829
  declare const checkAiditorPublishAction: _jay_framework_fullstack_component.JayAction<unknown, {
703
830
  hasPublishScript: boolean;
704
831
  }> & _jay_framework_fullstack_component.JayActionDefinition<unknown, {
@@ -734,4 +861,4 @@ declare const runAiditorPublishAction: _jay_framework_fullstack_component.JayStr
734
861
 
735
862
  declare function setupAiditor(ctx: PluginSetupContext): Promise<PluginSetupResult>;
736
863
 
737
- export { cancelAgentTaskAction, checkAddPageRouteAction, checkAiditorPublishAction, checkPageAddPageBriefAction, checkPluginUpdateAction, ensureProjectPluginAction, generateAddPageBriefFromImageAction, getAiditorBootstrap, getPageParamsAction, getPluginSetupStatusAction, getProjectInfoAction, listAddMenuItemsAction, listFreezesAction, listJayPluginsAction, listPluginContractsAction, openAddPageFromBriefAction, readFileAction, reclassifyAddPageAssetAction, rerunPluginSetupAction, resolveAddMenuContractParamsAction, runAiditorPublishAction, saveAddPageDraftAction, setupAiditor, startAddPageRequestAction, submitAddPageAction, submitTaskAction, syncAddMenuAttachmentsAction, syncAddPagePluginManifestAction, uploadAddPageAssetAction, writePluginSourceAction };
864
+ export { cancelAgentTaskAction, checkAddPageRouteAction, checkAiditorPublishAction, checkPageAddPageBriefAction, checkPluginUpdateAction, ensureProjectPluginAction, generateAddPageBriefFromImageAction, getAiditorBootstrap, getContractInspectorTagsAction, getPageAssetsAction, getPageMetaAction, getPageParamsAction, getPluginSetupStatusAction, getProjectInfoAction, listAddMenuItemsAction, listFreezesAction, listJayPluginsAction, listPluginContractsAction, openAddPageFromBriefAction, readFileAction, reclassifyAddPageAssetAction, rerunPluginSetupAction, resolveAddMenuContractParamsAction, runAiditorPublishAction, saveAddPageDraftAction, savePageAssetsAction, savePageMetaAction, setupAiditor, startAddPageRequestAction, submitAddPageAction, submitTaskAction, syncAddMenuAttachmentsAction, syncAddPagePluginManifestAction, syncDetectedPageAssetsAction, uploadAddPageAssetAction, writePluginSourceAction };