@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.
@@ -4,6 +4,7 @@ description: Cancel the in-flight AI agent task for a page route
4
4
  inputSchema:
5
5
  pageRoute?: string
6
6
  renderedUrl?: string
7
+ cancelKey?: string
7
8
 
8
9
  outputSchema:
9
10
  cancelled: boolean
@@ -1,6 +1,7 @@
1
1
  export interface CancelAgentTaskActionInput {
2
2
  pageRoute?: string;
3
3
  renderedUrl?: string;
4
+ cancelKey?: string;
4
5
  }
5
6
 
6
7
  export interface CancelAgentTaskActionOutput {
@@ -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,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.*}}`