@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.
Files changed (28) hide show
  1. package/dist/actions/cancel-agent-task.jay-action +9 -0
  2. package/dist/actions/cancel-agent-task.jay-action.d.ts +8 -0
  3. package/dist/actions/check-aiditor-publish.jay-action +7 -0
  4. package/dist/actions/check-aiditor-publish.jay-action.d.ts +5 -0
  5. package/dist/actions/get-contract-inspector-tags.jay-action +9 -0
  6. package/dist/actions/get-contract-inspector-tags.jay-action.d.ts +6 -0
  7. package/dist/actions/get-page-assets.jay-action +10 -0
  8. package/dist/actions/get-page-assets.jay-action.d.ts +7 -0
  9. package/dist/actions/get-page-meta.jay-action +9 -0
  10. package/dist/actions/get-page-meta.jay-action.d.ts +6 -0
  11. package/dist/actions/run-aiditor-publish.jay-action +7 -0
  12. package/dist/actions/run-aiditor-publish.jay-action.d.ts +5 -0
  13. package/dist/actions/save-page-assets.jay-action +8 -0
  14. package/dist/actions/save-page-assets.jay-action.d.ts +5 -0
  15. package/dist/actions/save-page-meta.jay-action +8 -0
  16. package/dist/actions/save-page-meta.jay-action.d.ts +5 -0
  17. package/dist/actions/sync-detected-page-assets.jay-action +12 -0
  18. package/dist/actions/sync-detected-page-assets.jay-action.d.ts +10 -0
  19. package/dist/agent-kit-template/plugin/aiditor-add-menu.md +24 -0
  20. package/dist/index.client.d.ts +451 -210
  21. package/dist/index.client.js +9364 -1552
  22. package/dist/index.d.ts +176 -4
  23. package/dist/index.js +974 -86
  24. package/dist/pages/aiditor/page.css +2272 -594
  25. package/dist/pages/aiditor/page.jay-html +4310 -1374
  26. package/dist/pages/aiditor/page.jay-html.d.ts +1013 -0
  27. package/package.json +20 -7
  28. package/plugin.yaml +18 -0
@@ -0,0 +1,9 @@
1
+ name: cancelAgentTaskAction
2
+ description: Cancel the in-flight AI agent task for a page route
3
+
4
+ inputSchema:
5
+ pageRoute?: string
6
+ renderedUrl?: string
7
+
8
+ outputSchema:
9
+ cancelled: boolean
@@ -0,0 +1,8 @@
1
+ export interface CancelAgentTaskActionInput {
2
+ pageRoute?: string;
3
+ renderedUrl?: string;
4
+ }
5
+
6
+ export interface CancelAgentTaskActionOutput {
7
+ cancelled: boolean;
8
+ }
@@ -0,0 +1,7 @@
1
+ name: checkAiditorPublishAction
2
+ description: Check whether the Jay project defines an aiditor:publish npm script
3
+
4
+ inputSchema: {}
5
+
6
+ outputSchema:
7
+ hasPublishScript: boolean
@@ -0,0 +1,5 @@
1
+ export interface CheckAiditorPublishActionInput {}
2
+
3
+ export interface CheckAiditorPublishActionOutput {
4
+ hasPublishScript: boolean;
5
+ }
@@ -0,0 +1,9 @@
1
+ name: getContractInspectorTagsAction
2
+ description: Resolve contract tags for Page Info component explorer
3
+
4
+ inputSchema:
5
+ pluginName: string
6
+ contractName: string
7
+
8
+ outputSchema:
9
+ tags: array
@@ -0,0 +1,6 @@
1
+ export interface GetContractInspectorTagsActionInput {
2
+ pluginName: string;
3
+ contractName: string;
4
+ }
5
+
6
+ export type GetContractInspectorTagsActionOutput = Record<string, unknown>;
@@ -0,0 +1,10 @@
1
+ name: getPageAssetsAction
2
+ description: Load page assets registry for an agent context key
3
+
4
+ inputSchema:
5
+ contextKey: string
6
+ pageRoute: string
7
+ renderedUrl: string
8
+
9
+ outputSchema:
10
+ file: object
@@ -0,0 +1,7 @@
1
+ export interface GetPageAssetsActionInput {
2
+ contextKey: string;
3
+ pageRoute: string;
4
+ renderedUrl: string;
5
+ }
6
+
7
+ export type GetPageAssetsActionOutput = Record<string, unknown>;
@@ -0,0 +1,9 @@
1
+ name: getPageMetaAction
2
+ description: Load page meta (route migration) for an agent context key
3
+
4
+ inputSchema:
5
+ contextKey: string
6
+ pageRoute: string
7
+
8
+ outputSchema:
9
+ file: object
@@ -0,0 +1,6 @@
1
+ export interface GetPageMetaActionInput {
2
+ contextKey: string;
3
+ pageRoute: string;
4
+ }
5
+
6
+ export type GetPageMetaActionOutput = Record<string, unknown>;
@@ -0,0 +1,7 @@
1
+ name: runAiditorPublishAction
2
+ description: Run the Jay project's aiditor:publish npm script (stream)
3
+
4
+ inputSchema: {}
5
+
6
+ outputSchema:
7
+ type: string
@@ -0,0 +1,5 @@
1
+ export interface RunAiditorPublishActionInput {}
2
+
3
+ export interface RunAiditorPublishActionOutput {
4
+ type: string;
5
+ }
@@ -0,0 +1,8 @@
1
+ name: savePageAssetsAction
2
+ description: Persist page assets registry for an agent context key
3
+
4
+ inputSchema:
5
+ file: object
6
+
7
+ outputSchema:
8
+ ok: boolean
@@ -0,0 +1,5 @@
1
+ export interface SavePageAssetsActionInput {}
2
+
3
+ export interface SavePageAssetsActionOutput {
4
+ ok: boolean;
5
+ }
@@ -0,0 +1,8 @@
1
+ name: savePageMetaAction
2
+ description: Save page meta (route migration) for an agent context key
3
+
4
+ inputSchema:
5
+ file: object
6
+
7
+ outputSchema:
8
+ ok: boolean
@@ -0,0 +1,5 @@
1
+ export interface SavePageMetaActionInput {}
2
+
3
+ export interface SavePageMetaActionOutput {
4
+ ok: boolean;
5
+ }
@@ -0,0 +1,12 @@
1
+ name: syncDetectedPageAssetsAction
2
+ description: Merge auto-detected page components into page assets registry
3
+
4
+ inputSchema:
5
+ contextKey: string
6
+ pageRoute: string
7
+ renderedUrl: string
8
+ jayHtmlPath: string
9
+
10
+ outputSchema:
11
+ file: object
12
+ detectedCount: number
@@ -0,0 +1,10 @@
1
+ export interface SyncDetectedPageAssetsActionInput {
2
+ contextKey: string;
3
+ pageRoute: string;
4
+ renderedUrl: string;
5
+ jayHtmlPath: string;
6
+ }
7
+
8
+ export interface SyncDetectedPageAssetsActionOutput {
9
+ detectedCount: number;
10
+ }
@@ -36,8 +36,32 @@ items:
36
36
  packageName: "@jay-framework/wix-stores"
37
37
  subCategory: Components # optional navigation
38
38
  thumbnail: thumbnails/... # optional UI hint
39
+ interaction: # optional — Design Log #25
40
+ mode: reference | stage-place
41
+ persistOnPage: true # deprecated DL #26 — accepted but ignored
42
+ stagePromptTemplate: | # stage-place only — prefilled marker instruction
43
+ Add spring effect at this location.
39
44
  ```
40
45
 
46
+ **`interaction` (optional, DL #25):**
47
+
48
+ | Field | Values | Default |
49
+ | --------------------- | ----------------------------------------------------------------------------- | ----------- |
50
+ | `mode` | `reference` — `@` mention in markers; click in + Add dock when marker focused | `reference` |
51
+ | | `stage-place` — click or drag onto preview creates a marker | |
52
+ | `persistOnPage` | **Deprecated (DL #26)** — ignored; no disk registry | n/a |
53
+ | `stagePromptTemplate` | Prefilled marker instruction for `stage-place` | item title |
54
+
55
+ ## AIditor surfaces (DL #26)
56
+
57
+ | Surface | Purpose | Plugin guidance |
58
+ | -------------------- | ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
59
+ | **Page Info** | Route + components from `jay-html`; contract explorer | Headless contracts appear automatically when in template; no catalog entry required for detection |
60
+ | **+ Add dock** | Visual placement | `interaction.mode: stage-place` + `stagePromptTemplate` for effects/media that land on canvas |
61
+ | **`@` autocomplete** | Full catalog reference | `mode: reference` (default); categories / high-cardinality → rely on `@` only (`subCategory: Categories` filtered from + Add grid) |
62
+
63
+ Do **not** rely on page Assets registry or `persistOnPage` for disk persistence — request-level `addMenuAttachments` and `pageComponents` (from `jay-html`) are submitted instead.
64
+
41
65
  **Required:** `id`, `title`, `category`, `prompt`
42
66
 
43
67
  **Rejected (anti-patterns):** `kind`, `parameters`, `component`, `allowedScopes`, `{{parameters.*}}`