@jay-framework/aiditor 0.19.6 → 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/actions/cancel-agent-task.jay-action +9 -0
- package/dist/actions/cancel-agent-task.jay-action.d.ts +8 -0
- package/dist/actions/check-aiditor-publish.jay-action +7 -0
- package/dist/actions/check-aiditor-publish.jay-action.d.ts +5 -0
- package/dist/actions/get-contract-inspector-tags.jay-action +9 -0
- package/dist/actions/get-contract-inspector-tags.jay-action.d.ts +6 -0
- package/dist/actions/get-page-assets.jay-action +10 -0
- package/dist/actions/get-page-assets.jay-action.d.ts +7 -0
- package/dist/actions/get-page-meta.jay-action +9 -0
- package/dist/actions/get-page-meta.jay-action.d.ts +6 -0
- package/dist/actions/run-aiditor-publish.jay-action +7 -0
- package/dist/actions/run-aiditor-publish.jay-action.d.ts +5 -0
- package/dist/actions/save-page-assets.jay-action +8 -0
- package/dist/actions/save-page-assets.jay-action.d.ts +5 -0
- package/dist/actions/save-page-meta.jay-action +8 -0
- package/dist/actions/save-page-meta.jay-action.d.ts +5 -0
- package/dist/actions/sync-detected-page-assets.jay-action +12 -0
- package/dist/actions/sync-detected-page-assets.jay-action.d.ts +10 -0
- package/dist/agent-kit-template/plugin/aiditor-add-menu.md +24 -0
- package/dist/index.client.d.ts +451 -210
- package/dist/index.client.js +9364 -1552
- package/dist/index.d.ts +176 -4
- package/dist/index.js +974 -86
- package/dist/pages/aiditor/page.css +2272 -594
- package/dist/pages/aiditor/page.jay-html +4310 -1374
- package/dist/pages/aiditor/page.jay-html.d.ts +1013 -0
- package/package.json +20 -7
- package/plugin.yaml +18 -0
package/dist/index.d.ts
CHANGED
|
@@ -107,7 +107,24 @@ interface SubmitTaskActionOutput {
|
|
|
107
107
|
|
|
108
108
|
declare const submitTaskAction: _jay_framework_fullstack_component.JayStreamAction<SubmitTaskActionInput, SubmitTaskActionOutput> & _jay_framework_fullstack_component.JayStreamActionDefinition<SubmitTaskActionInput, SubmitTaskActionOutput, []>;
|
|
109
109
|
|
|
110
|
+
declare const cancelAgentTaskAction: _jay_framework_fullstack_component.JayAction<{
|
|
111
|
+
pageRoute?: string;
|
|
112
|
+
renderedUrl?: string;
|
|
113
|
+
}, {
|
|
114
|
+
cancelled: boolean;
|
|
115
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<{
|
|
116
|
+
pageRoute?: string;
|
|
117
|
+
renderedUrl?: string;
|
|
118
|
+
}, {
|
|
119
|
+
cancelled: boolean;
|
|
120
|
+
}, []>;
|
|
121
|
+
|
|
110
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
|
+
};
|
|
111
128
|
type AddMenuItem = {
|
|
112
129
|
/** Stable unique id, convention: `<pluginName>:<slug>` */
|
|
113
130
|
id: string;
|
|
@@ -120,6 +137,7 @@ type AddMenuItem = {
|
|
|
120
137
|
packageName?: string;
|
|
121
138
|
subCategory?: string;
|
|
122
139
|
thumbnail?: string;
|
|
140
|
+
interaction?: AddMenuInteraction;
|
|
123
141
|
};
|
|
124
142
|
type AddMenuAttachment = {
|
|
125
143
|
itemId: string;
|
|
@@ -129,7 +147,7 @@ type AddMenuAttachment = {
|
|
|
129
147
|
type RouteMigrationIntent = {
|
|
130
148
|
currentRoute: string;
|
|
131
149
|
plannedRoute: string;
|
|
132
|
-
reason: "add-menu-route-param-component";
|
|
150
|
+
reason: "add-menu-route-param-component" | "page-info-route-edit";
|
|
133
151
|
triggeringItemIds: string[];
|
|
134
152
|
};
|
|
135
153
|
type AddMenuCategoryGroup = {
|
|
@@ -368,7 +386,7 @@ declare const generateAddPageBriefFromImageAction: _jay_framework_fullstack_comp
|
|
|
368
386
|
ok: boolean;
|
|
369
387
|
markdown: string;
|
|
370
388
|
suggestedRoute: string;
|
|
371
|
-
suggestedRouteKind: "
|
|
389
|
+
suggestedRouteKind: "static" | "dynamic";
|
|
372
390
|
referenceAttachments: {
|
|
373
391
|
id: string;
|
|
374
392
|
path: string;
|
|
@@ -392,7 +410,7 @@ declare const generateAddPageBriefFromImageAction: _jay_framework_fullstack_comp
|
|
|
392
410
|
ok: boolean;
|
|
393
411
|
markdown: string;
|
|
394
412
|
suggestedRoute: string;
|
|
395
|
-
suggestedRouteKind: "
|
|
413
|
+
suggestedRouteKind: "static" | "dynamic";
|
|
396
414
|
referenceAttachments: {
|
|
397
415
|
id: string;
|
|
398
416
|
path: string;
|
|
@@ -687,6 +705,160 @@ declare const syncAddMenuAttachmentsAction: _jay_framework_fullstack_component.J
|
|
|
687
705
|
error?: string;
|
|
688
706
|
}, [_jay_framework_dev_server.DevServerService]>;
|
|
689
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
|
+
|
|
829
|
+
declare const checkAiditorPublishAction: _jay_framework_fullstack_component.JayAction<unknown, {
|
|
830
|
+
hasPublishScript: boolean;
|
|
831
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<unknown, {
|
|
832
|
+
hasPublishScript: boolean;
|
|
833
|
+
}, []>;
|
|
834
|
+
declare const runAiditorPublishAction: _jay_framework_fullstack_component.JayStreamAction<unknown, {
|
|
835
|
+
type: "output";
|
|
836
|
+
stream: "stdout" | "stderr";
|
|
837
|
+
text: string;
|
|
838
|
+
} | {
|
|
839
|
+
type: "complete";
|
|
840
|
+
success: boolean;
|
|
841
|
+
code: number | null;
|
|
842
|
+
} | {
|
|
843
|
+
type: "error";
|
|
844
|
+
message: string;
|
|
845
|
+
} | {
|
|
846
|
+
type: string;
|
|
847
|
+
}> & _jay_framework_fullstack_component.JayStreamActionDefinition<unknown, {
|
|
848
|
+
type: "output";
|
|
849
|
+
stream: "stdout" | "stderr";
|
|
850
|
+
text: string;
|
|
851
|
+
} | {
|
|
852
|
+
type: "complete";
|
|
853
|
+
success: boolean;
|
|
854
|
+
code: number | null;
|
|
855
|
+
} | {
|
|
856
|
+
type: "error";
|
|
857
|
+
message: string;
|
|
858
|
+
} | {
|
|
859
|
+
type: string;
|
|
860
|
+
}, []>;
|
|
861
|
+
|
|
690
862
|
declare function setupAiditor(ctx: PluginSetupContext): Promise<PluginSetupResult>;
|
|
691
863
|
|
|
692
|
-
export { checkAddPageRouteAction, checkPageAddPageBriefAction, checkPluginUpdateAction, ensureProjectPluginAction, generateAddPageBriefFromImageAction, getAiditorBootstrap, getPageParamsAction, getPluginSetupStatusAction, getProjectInfoAction, listAddMenuItemsAction, listFreezesAction, listJayPluginsAction, listPluginContractsAction, openAddPageFromBriefAction, readFileAction, reclassifyAddPageAssetAction, rerunPluginSetupAction, resolveAddMenuContractParamsAction, 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 };
|