@jay-framework/aiditor 0.16.2 → 0.16.3

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
@@ -1,121 +1,8 @@
1
- import * as _jay_framework_component from '@jay-framework/component';
2
1
  import * as _jay_framework_fullstack_component from '@jay-framework/fullstack-component';
3
- import { JayFile, PageProps } from '@jay-framework/fullstack-component';
4
- import * as _jay_framework_dev_server from '@jay-framework/dev-server';
2
+ import { PageProps, JayFile } from '@jay-framework/fullstack-component';
3
+ import * as _jay_framework_component from '@jay-framework/component';
5
4
  import { HTMLElementProxy, HTMLElementCollectionProxy } from '@jay-framework/runtime';
6
-
7
- interface AiditorShellViewState {
8
- headline: string
9
- }
10
-
11
- type AiditorShellSlowViewState = {};
12
-
13
- type AiditorShellFastViewState = Pick<AiditorShellViewState, 'headline'>;
14
-
15
- type AiditorShellInteractiveViewState = {};
16
-
17
- interface AiditorShellRefs {}
18
-
19
- /**
20
- * One-shot bootstrap for AIditor in-host: Jay dev base URL = browser origin;
21
- * project directory = server `process.cwd()` (Jay dev server working directory).
22
- */
23
- declare const getAiditorBootstrap: _jay_framework_fullstack_component.JayAction<{
24
- origin: string;
25
- }, {
26
- projectDir: string;
27
- httpBaseUrl: string;
28
- }> & _jay_framework_fullstack_component.JayActionDefinition<{
29
- origin: string;
30
- }, {
31
- projectDir: string;
32
- httpBaseUrl: string;
33
- }, []>;
34
- declare const getProjectInfoAction: _jay_framework_fullstack_component.JayAction<{
35
- jayDevUrl: string;
36
- }, {
37
- routes: _jay_framework_dev_server.RouteInfo[];
38
- httpBaseUrl: string;
39
- }> & _jay_framework_fullstack_component.JayActionDefinition<{
40
- jayDevUrl: string;
41
- }, {
42
- routes: _jay_framework_dev_server.RouteInfo[];
43
- httpBaseUrl: string;
44
- }, [_jay_framework_dev_server.DevServerService]>;
45
- declare const getPageParamsAction: _jay_framework_fullstack_component.JayStreamAction<{
46
- route: string;
47
- }, Record<string, string>[]> & _jay_framework_fullstack_component.JayStreamActionDefinition<{
48
- route: string;
49
- }, Record<string, string>[], [_jay_framework_dev_server.DevServerService]>;
50
- declare const listFreezesAction: _jay_framework_fullstack_component.JayAction<{
51
- route: string;
52
- }, {
53
- freezes: {
54
- id: string;
55
- name: string;
56
- route: string;
57
- createdAt: string;
58
- }[];
59
- }> & _jay_framework_fullstack_component.JayActionDefinition<{
60
- route: string;
61
- }, {
62
- freezes: {
63
- id: string;
64
- name: string;
65
- route: string;
66
- createdAt: string;
67
- }[];
68
- }, [_jay_framework_dev_server.DevServerService]>;
69
- declare const readFileAction: _jay_framework_fullstack_component.JayAction<{
70
- filePath: string;
71
- }, {
72
- type: "image";
73
- mime: string;
74
- data: string;
75
- filePath: string;
76
- } | {
77
- type: "text";
78
- data: string;
79
- filePath: string;
80
- mime?: undefined;
81
- }> & _jay_framework_fullstack_component.JayActionDefinition<{
82
- filePath: string;
83
- }, {
84
- type: "image";
85
- mime: string;
86
- data: string;
87
- filePath: string;
88
- } | {
89
- type: "text";
90
- data: string;
91
- filePath: string;
92
- mime?: undefined;
93
- }, []>;
94
-
95
- interface SubmitTaskActionInput {
96
- notes: string;
97
- pageRoute?: string;
98
- renderedUrl?: string;
99
- visualTask?: string;
100
- videoFramesOnly?: string;
101
- screenshot_full?: JayFile;
102
- screenshot_markers_only?: JayFile;
103
- screenshot_clean?: JayFile;
104
- video?: JayFile;
105
- extraFiles?: Record<string, JayFile>;
106
- }
107
-
108
- interface SubmitTaskActionOutput {
109
- type: string;
110
- message?: string;
111
- text?: string;
112
- name?: string;
113
- result?: string;
114
- cost?: number;
115
- duration?: number;
116
- }
117
-
118
- declare const submitTaskAction: _jay_framework_fullstack_component.JayStreamAction<SubmitTaskActionInput, SubmitTaskActionOutput> & _jay_framework_fullstack_component.JayStreamActionDefinition<SubmitTaskActionInput, SubmitTaskActionOutput, [_jay_framework_dev_server.DevServerService]>;
5
+ import * as _jay_framework_dev_server from '@jay-framework/dev-server';
119
6
 
120
7
  interface ChunkOfPageViewState {
121
8
  text: string,
@@ -431,6 +318,119 @@ type PageSlowViewState = {};
431
318
 
432
319
  declare const page: _jay_framework_fullstack_component.JayStackComponentDefinition<PageElementRefs, PageSlowViewState, PageViewState, PageViewState, [], [], PageProps, {}, _jay_framework_component.JayComponentCore<PageProps, PageViewState>>;
433
320
 
321
+ interface AiditorShellViewState {
322
+ headline: string
323
+ }
324
+
325
+ type AiditorShellSlowViewState = {};
326
+
327
+ type AiditorShellFastViewState = Pick<AiditorShellViewState, 'headline'>;
328
+
329
+ type AiditorShellInteractiveViewState = {};
330
+
331
+ interface AiditorShellRefs {}
332
+
333
+ /**
334
+ * One-shot bootstrap for AIditor in-host: Jay dev base URL = browser origin;
335
+ * project directory = server `process.cwd()` (Jay dev server working directory).
336
+ */
337
+ declare const getAiditorBootstrap: _jay_framework_fullstack_component.JayAction<{
338
+ origin: string;
339
+ }, {
340
+ projectDir: string;
341
+ httpBaseUrl: string;
342
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
343
+ origin: string;
344
+ }, {
345
+ projectDir: string;
346
+ httpBaseUrl: string;
347
+ }, []>;
348
+ declare const getProjectInfoAction: _jay_framework_fullstack_component.JayAction<{
349
+ jayDevUrl: string;
350
+ }, {
351
+ routes: _jay_framework_dev_server.RouteInfo[];
352
+ httpBaseUrl: string;
353
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
354
+ jayDevUrl: string;
355
+ }, {
356
+ routes: _jay_framework_dev_server.RouteInfo[];
357
+ httpBaseUrl: string;
358
+ }, [_jay_framework_dev_server.DevServerService]>;
359
+ declare const getPageParamsAction: _jay_framework_fullstack_component.JayStreamAction<{
360
+ route: string;
361
+ }, Record<string, string>[]> & _jay_framework_fullstack_component.JayStreamActionDefinition<{
362
+ route: string;
363
+ }, Record<string, string>[], [_jay_framework_dev_server.DevServerService]>;
364
+ declare const listFreezesAction: _jay_framework_fullstack_component.JayAction<{
365
+ route: string;
366
+ }, {
367
+ freezes: {
368
+ id: string;
369
+ name: string;
370
+ route: string;
371
+ createdAt: string;
372
+ }[];
373
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
374
+ route: string;
375
+ }, {
376
+ freezes: {
377
+ id: string;
378
+ name: string;
379
+ route: string;
380
+ createdAt: string;
381
+ }[];
382
+ }, [_jay_framework_dev_server.DevServerService]>;
383
+ declare const readFileAction: _jay_framework_fullstack_component.JayAction<{
384
+ filePath: string;
385
+ }, {
386
+ type: "image";
387
+ mime: string;
388
+ data: string;
389
+ filePath: string;
390
+ } | {
391
+ type: "text";
392
+ data: string;
393
+ filePath: string;
394
+ mime?: undefined;
395
+ }> & _jay_framework_fullstack_component.JayActionDefinition<{
396
+ filePath: string;
397
+ }, {
398
+ type: "image";
399
+ mime: string;
400
+ data: string;
401
+ filePath: string;
402
+ } | {
403
+ type: "text";
404
+ data: string;
405
+ filePath: string;
406
+ mime?: undefined;
407
+ }, []>;
408
+
409
+ interface SubmitTaskActionInput {
410
+ notes: string;
411
+ pageRoute?: string;
412
+ renderedUrl?: string;
413
+ visualTask?: string;
414
+ videoFramesOnly?: string;
415
+ screenshot_full?: JayFile;
416
+ screenshot_markers_only?: JayFile;
417
+ screenshot_clean?: JayFile;
418
+ video?: JayFile;
419
+ extraFiles?: Record<string, JayFile>;
420
+ }
421
+
422
+ interface SubmitTaskActionOutput {
423
+ type: string;
424
+ message?: string;
425
+ text?: string;
426
+ name?: string;
427
+ result?: string;
428
+ cost?: number;
429
+ duration?: number;
430
+ }
431
+
432
+ declare const submitTaskAction: _jay_framework_fullstack_component.JayStreamAction<SubmitTaskActionInput, SubmitTaskActionOutput> & _jay_framework_fullstack_component.JayStreamActionDefinition<SubmitTaskActionInput, SubmitTaskActionOutput, [_jay_framework_dev_server.DevServerService]>;
433
+
434
434
  interface AiditorShellCarry {
435
435
  headline: string;
436
436
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/aiditor",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
4
4
  "type": "module",
5
5
  "description": "AIditor — visual AI-driven code editor plugin for Jay Framework",
6
6
  "main": "dist/index.js",
@@ -13,6 +13,10 @@
13
13
  "types": "./dist/index.d.ts",
14
14
  "default": "./dist/index.js"
15
15
  },
16
+ "./client": {
17
+ "types": "./dist/index.client.d.ts",
18
+ "default": "./dist/index.client.js"
19
+ },
16
20
  "./plugin.yaml": "./plugin.yaml",
17
21
  "./aiditor-shell.jay-contract": "./dist/aiditor-shell.jay-contract",
18
22
  "./get-aiditor-bootstrap.jay-action": "./dist/actions/get-aiditor-bootstrap.jay-action",
@@ -21,32 +25,33 @@
21
25
  "./list-freezes.jay-action": "./dist/actions/list-freezes.jay-action",
22
26
  "./submit-task.jay-action": "./dist/actions/submit-task.jay-action",
23
27
  "./read-file.jay-action": "./dist/actions/read-file.jay-action",
24
- "./lib/pages/aiditor/page.jay-html": "./lib/pages/aiditor/page.jay-html",
25
- "./lib/pages/aiditor/page.css": "./lib/pages/aiditor/page.css"
28
+ "./dist/pages/aiditor/page.jay-html": "./dist/pages/aiditor/page.jay-html",
29
+ "./dist/pages/aiditor/page.css": "./dist/pages/aiditor/page.css"
26
30
  },
27
31
  "scripts": {
28
- "build": "npm run clean && npm run definitions && npm run build:server && npm run build:copy-assets && npm run build:types && npm run validate",
32
+ "build": "npm run clean && npm run definitions && npm run build:client && npm run build:server && npm run build:copy-assets && npm run build:types && npm run validate",
29
33
  "definitions": "jay-cli definitions lib",
30
34
  "validate": "jay-stack-cli validate-plugin",
35
+ "build:client": "vite build",
31
36
  "build:server": "vite build --ssr",
32
37
  "build:copy-assets": "mkdir -p dist/actions dist/pages/aiditor && cp lib/*.jay-contract* dist/ && cp lib/actions/*.jay-action* dist/actions/ && cp lib/pages/aiditor/page.jay-html dist/pages/aiditor/ && cp lib/pages/aiditor/page.css dist/pages/aiditor/ && cp lib/pages/aiditor/page.jay-contract* dist/pages/aiditor/",
33
- "build:types": "tsup lib/index.ts --dts-only --format esm",
38
+ "build:types": "tsup lib/index.ts lib/index.client.ts --dts-only --format esm",
34
39
  "build:check-types": "tsc",
35
40
  "clean": "rimraf dist",
36
41
  "test": ":"
37
42
  },
38
43
  "dependencies": {
39
44
  "@anthropic-ai/claude-agent-sdk": "0.2.119",
40
- "@jay-framework/fullstack-component": "^0.16.2",
41
- "@jay-framework/stack-client-runtime": "^0.16.2",
42
- "@jay-framework/stack-server-runtime": "^0.16.2",
45
+ "@jay-framework/fullstack-component": "^0.16.3",
46
+ "@jay-framework/stack-client-runtime": "^0.16.3",
47
+ "@jay-framework/stack-server-runtime": "^0.16.3",
43
48
  "busboy": "^1.6.0",
44
49
  "html2canvas": "^1.4.1",
45
50
  "zod": "^4.3.6"
46
51
  },
47
52
  "devDependencies": {
48
- "@jay-framework/compiler-jay-stack": "^0.16.2",
49
- "@jay-framework/jay-cli": "^0.16.2",
53
+ "@jay-framework/compiler-jay-stack": "^0.16.3",
54
+ "@jay-framework/jay-cli": "^0.16.3",
50
55
  "@types/busboy": "^1",
51
56
  "rimraf": "^5.0.5",
52
57
  "tsup": "^8.5.1",
package/plugin.yaml CHANGED
@@ -22,7 +22,7 @@ actions:
22
22
 
23
23
  routes:
24
24
  - path: /aiditor
25
- jayHtml: ./lib/pages/aiditor/page.jay-html
26
- css: ./lib/pages/aiditor/page.css
25
+ jayHtml: ./dist/pages/aiditor/page.jay-html
26
+ css: ./dist/pages/aiditor/page.css
27
27
  component: aiditorPage
28
28
  description: AIditor — visual AI-driven code editor