@jay-framework/aiditor 0.19.7 → 0.21.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 +1 -0
- package/dist/actions/cancel-agent-task.jay-action.d.ts +1 -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/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 +331 -43
- package/dist/index.client.js +9987 -2675
- package/dist/index.d.ts +137 -8
- package/dist/index.js +799 -80
- package/dist/pages/aiditor/page.css +1139 -71
- package/dist/pages/aiditor/page.jay-html +2794 -651
- package/dist/pages/aiditor/page.jay-html.d.ts +1039 -0
- package/package.json +18 -9
- package/plugin.yaml +12 -0
package/dist/index.d.ts
CHANGED
|
@@ -110,16 +110,23 @@ declare const submitTaskAction: _jay_framework_fullstack_component.JayStreamActi
|
|
|
110
110
|
declare const cancelAgentTaskAction: _jay_framework_fullstack_component.JayAction<{
|
|
111
111
|
pageRoute?: string;
|
|
112
112
|
renderedUrl?: string;
|
|
113
|
+
cancelKey?: string;
|
|
113
114
|
}, {
|
|
114
115
|
cancelled: boolean;
|
|
115
116
|
}> & _jay_framework_fullstack_component.JayActionDefinition<{
|
|
116
117
|
pageRoute?: string;
|
|
117
118
|
renderedUrl?: string;
|
|
119
|
+
cancelKey?: string;
|
|
118
120
|
}, {
|
|
119
121
|
cancelled: boolean;
|
|
120
122
|
}, []>;
|
|
121
123
|
|
|
122
124
|
/** Design Log #19 — Add Menu agreement types (M19.1). */
|
|
125
|
+
type AddMenuInteraction = {
|
|
126
|
+
mode: "reference" | "stage-place";
|
|
127
|
+
persistOnPage?: boolean;
|
|
128
|
+
stagePromptTemplate?: string;
|
|
129
|
+
};
|
|
123
130
|
type AddMenuItem = {
|
|
124
131
|
/** Stable unique id, convention: `<pluginName>:<slug>` */
|
|
125
132
|
id: string;
|
|
@@ -132,6 +139,7 @@ type AddMenuItem = {
|
|
|
132
139
|
packageName?: string;
|
|
133
140
|
subCategory?: string;
|
|
134
141
|
thumbnail?: string;
|
|
142
|
+
interaction?: AddMenuInteraction;
|
|
135
143
|
};
|
|
136
144
|
type AddMenuAttachment = {
|
|
137
145
|
itemId: string;
|
|
@@ -141,7 +149,7 @@ type AddMenuAttachment = {
|
|
|
141
149
|
type RouteMigrationIntent = {
|
|
142
150
|
currentRoute: string;
|
|
143
151
|
plannedRoute: string;
|
|
144
|
-
reason: "add-menu-route-param-component";
|
|
152
|
+
reason: "add-menu-route-param-component" | "page-info-route-edit";
|
|
145
153
|
triggeringItemIds: string[];
|
|
146
154
|
};
|
|
147
155
|
type AddMenuCategoryGroup = {
|
|
@@ -378,9 +386,9 @@ declare const generateAddPageBriefFromImageAction: _jay_framework_fullstack_comp
|
|
|
378
386
|
referenceAttachments?: undefined;
|
|
379
387
|
} | {
|
|
380
388
|
ok: boolean;
|
|
381
|
-
markdown:
|
|
382
|
-
suggestedRoute:
|
|
383
|
-
suggestedRouteKind:
|
|
389
|
+
markdown: any;
|
|
390
|
+
suggestedRoute: any;
|
|
391
|
+
suggestedRouteKind: any;
|
|
384
392
|
referenceAttachments: {
|
|
385
393
|
id: string;
|
|
386
394
|
path: string;
|
|
@@ -402,9 +410,9 @@ declare const generateAddPageBriefFromImageAction: _jay_framework_fullstack_comp
|
|
|
402
410
|
referenceAttachments?: undefined;
|
|
403
411
|
} | {
|
|
404
412
|
ok: boolean;
|
|
405
|
-
markdown:
|
|
406
|
-
suggestedRoute:
|
|
407
|
-
suggestedRouteKind:
|
|
413
|
+
markdown: any;
|
|
414
|
+
suggestedRoute: any;
|
|
415
|
+
suggestedRouteKind: any;
|
|
408
416
|
referenceAttachments: {
|
|
409
417
|
id: string;
|
|
410
418
|
path: string;
|
|
@@ -699,6 +707,127 @@ declare const syncAddMenuAttachmentsAction: _jay_framework_fullstack_component.J
|
|
|
699
707
|
error?: string;
|
|
700
708
|
}, [_jay_framework_dev_server.DevServerService]>;
|
|
701
709
|
|
|
710
|
+
type ContractInspectorTag = {
|
|
711
|
+
tagPath: string;
|
|
712
|
+
tagKind: "data" | "variant" | "interactive" | "sub-contract";
|
|
713
|
+
linkedContract?: string;
|
|
714
|
+
description?: string;
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
declare const PAGE_META_VERSION: 1;
|
|
718
|
+
type PageMetaFile = {
|
|
719
|
+
version: typeof PAGE_META_VERSION;
|
|
720
|
+
contextKey: string;
|
|
721
|
+
pageRoute: string;
|
|
722
|
+
updatedAt: string;
|
|
723
|
+
plannedRoute?: string;
|
|
724
|
+
routeMigration?: RouteMigrationIntent;
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
declare const getPageMetaAction: _jay_framework_fullstack_component.JayAction<{
|
|
728
|
+
contextKey: string;
|
|
729
|
+
pageRoute: string;
|
|
730
|
+
}, {
|
|
731
|
+
file: PageMetaFile;
|
|
732
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<{
|
|
733
|
+
contextKey: string;
|
|
734
|
+
pageRoute: string;
|
|
735
|
+
}, {
|
|
736
|
+
file: PageMetaFile;
|
|
737
|
+
}, [_jay_framework_dev_server.DevServerService]>;
|
|
738
|
+
declare const savePageMetaAction: _jay_framework_fullstack_component.JayAction<{
|
|
739
|
+
file: PageMetaFile;
|
|
740
|
+
}, {
|
|
741
|
+
ok: true;
|
|
742
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<{
|
|
743
|
+
file: PageMetaFile;
|
|
744
|
+
}, {
|
|
745
|
+
ok: true;
|
|
746
|
+
}, [_jay_framework_dev_server.DevServerService]>;
|
|
747
|
+
declare const getContractInspectorTagsAction: _jay_framework_fullstack_component.JayAction<{
|
|
748
|
+
pluginName: string;
|
|
749
|
+
contractName: string;
|
|
750
|
+
}, {
|
|
751
|
+
tags: ContractInspectorTag[];
|
|
752
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<{
|
|
753
|
+
pluginName: string;
|
|
754
|
+
contractName: string;
|
|
755
|
+
}, {
|
|
756
|
+
tags: ContractInspectorTag[];
|
|
757
|
+
}, [_jay_framework_dev_server.DevServerService]>;
|
|
758
|
+
|
|
759
|
+
declare const PAGE_ASSETS_VERSION: 1;
|
|
760
|
+
type PageAssetSource = "add-menu" | "detected" | "upload";
|
|
761
|
+
type PageAssetEntry = {
|
|
762
|
+
id: string;
|
|
763
|
+
title: string;
|
|
764
|
+
prompt: string;
|
|
765
|
+
source: PageAssetSource;
|
|
766
|
+
itemId?: string;
|
|
767
|
+
thumbnail?: string;
|
|
768
|
+
persistOnPage: boolean;
|
|
769
|
+
addedAt: string;
|
|
770
|
+
/** Stable key for detected entries — used for sync + suppression */
|
|
771
|
+
detectedKey?: string;
|
|
772
|
+
userRemoved?: boolean;
|
|
773
|
+
detectedMeta?: {
|
|
774
|
+
contractName?: string;
|
|
775
|
+
pluginName?: string;
|
|
776
|
+
componentKey?: string;
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
type PageAssetsFile = {
|
|
780
|
+
version: typeof PAGE_ASSETS_VERSION;
|
|
781
|
+
contextKey: string;
|
|
782
|
+
pageRoute: string;
|
|
783
|
+
renderedUrl?: string;
|
|
784
|
+
updatedAt: string;
|
|
785
|
+
assets: PageAssetEntry[];
|
|
786
|
+
/** Keys user removed — sync will not re-add until identity changes */
|
|
787
|
+
suppressedDetectedKeys?: string[];
|
|
788
|
+
routeMigration?: RouteMigrationIntent;
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
declare const getPageAssetsAction: _jay_framework_fullstack_component.JayAction<{
|
|
792
|
+
contextKey: string;
|
|
793
|
+
pageRoute: string;
|
|
794
|
+
renderedUrl?: string;
|
|
795
|
+
}, {
|
|
796
|
+
file: PageAssetsFile;
|
|
797
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<{
|
|
798
|
+
contextKey: string;
|
|
799
|
+
pageRoute: string;
|
|
800
|
+
renderedUrl?: string;
|
|
801
|
+
}, {
|
|
802
|
+
file: PageAssetsFile;
|
|
803
|
+
}, [_jay_framework_dev_server.DevServerService]>;
|
|
804
|
+
declare const savePageAssetsAction: _jay_framework_fullstack_component.JayAction<{
|
|
805
|
+
file: PageAssetsFile;
|
|
806
|
+
}, {
|
|
807
|
+
ok: true;
|
|
808
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<{
|
|
809
|
+
file: PageAssetsFile;
|
|
810
|
+
}, {
|
|
811
|
+
ok: true;
|
|
812
|
+
}, [_jay_framework_dev_server.DevServerService]>;
|
|
813
|
+
declare const syncDetectedPageAssetsAction: _jay_framework_fullstack_component.JayAction<{
|
|
814
|
+
contextKey: string;
|
|
815
|
+
pageRoute: string;
|
|
816
|
+
renderedUrl?: string;
|
|
817
|
+
jayHtmlPath?: string;
|
|
818
|
+
}, {
|
|
819
|
+
file: PageAssetsFile;
|
|
820
|
+
detectedCount: number;
|
|
821
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<{
|
|
822
|
+
contextKey: string;
|
|
823
|
+
pageRoute: string;
|
|
824
|
+
renderedUrl?: string;
|
|
825
|
+
jayHtmlPath?: string;
|
|
826
|
+
}, {
|
|
827
|
+
file: PageAssetsFile;
|
|
828
|
+
detectedCount: number;
|
|
829
|
+
}, [_jay_framework_dev_server.DevServerService]>;
|
|
830
|
+
|
|
702
831
|
declare const checkAiditorPublishAction: _jay_framework_fullstack_component.JayAction<unknown, {
|
|
703
832
|
hasPublishScript: boolean;
|
|
704
833
|
}> & _jay_framework_fullstack_component.JayActionDefinition<unknown, {
|
|
@@ -734,4 +863,4 @@ declare const runAiditorPublishAction: _jay_framework_fullstack_component.JayStr
|
|
|
734
863
|
|
|
735
864
|
declare function setupAiditor(ctx: PluginSetupContext): Promise<PluginSetupResult>;
|
|
736
865
|
|
|
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 };
|
|
866
|
+
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 };
|