@rotorsoft/act-diagram 0.3.9 → 0.3.10
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/.tsbuildinfo +1 -0
- package/dist/@types/client/components/ActDiagram.d.ts +17 -0
- package/dist/@types/client/components/ActDiagram.d.ts.map +1 -0
- package/dist/@types/client/components/AiBar.d.ts +11 -0
- package/dist/@types/client/components/AiBar.d.ts.map +1 -0
- package/dist/@types/client/components/CodePreview.d.ts +10 -0
- package/dist/@types/client/components/CodePreview.d.ts.map +1 -0
- package/dist/@types/client/components/Diagram.d.ts +11 -0
- package/dist/@types/client/components/Diagram.d.ts.map +1 -0
- package/dist/@types/client/components/Logo.d.ts +6 -0
- package/dist/@types/client/components/Logo.d.ts.map +1 -0
- package/dist/@types/client/components/Tooltip.d.ts +16 -0
- package/dist/@types/client/components/Tooltip.d.ts.map +1 -0
- package/dist/@types/client/data/prompts.d.ts +5 -0
- package/dist/@types/client/data/prompts.d.ts.map +1 -0
- package/dist/@types/client/data/sample-files.d.ts +4 -0
- package/dist/@types/client/data/sample-files.d.ts.map +1 -0
- package/dist/@types/client/lib/build-model.d.ts +21 -0
- package/dist/@types/client/lib/build-model.d.ts.map +1 -0
- package/dist/@types/client/lib/evaluate.d.ts +10 -0
- package/dist/@types/client/lib/evaluate.d.ts.map +1 -0
- package/dist/@types/client/lib/layout.d.ts +76 -0
- package/dist/@types/client/lib/layout.d.ts.map +1 -0
- package/dist/@types/client/lib/mock-builders.d.ts +18 -0
- package/dist/@types/client/lib/mock-builders.d.ts.map +1 -0
- package/dist/@types/client/lib/navigate.d.ts +16 -0
- package/dist/@types/client/lib/navigate.d.ts.map +1 -0
- package/dist/@types/client/lib/sort.d.ts +4 -0
- package/dist/@types/client/lib/sort.d.ts.map +1 -0
- package/dist/@types/client/lib/strip-fences.d.ts +11 -0
- package/dist/@types/client/lib/strip-fences.d.ts.map +1 -0
- package/dist/@types/client/lib/validate.d.ts +4 -0
- package/dist/@types/client/lib/validate.d.ts.map +1 -0
- package/dist/@types/client/main.d.ts +2 -0
- package/dist/@types/client/main.d.ts.map +1 -0
- package/dist/@types/client/types/domain-model.d.ts +70 -0
- package/dist/@types/client/types/domain-model.d.ts.map +1 -0
- package/dist/@types/client/types/file-tab.d.ts +5 -0
- package/dist/@types/client/types/file-tab.d.ts.map +1 -0
- package/dist/@types/client/types/index.d.ts +5 -0
- package/dist/@types/client/types/index.d.ts.map +1 -0
- package/dist/@types/client/types/protocol.d.ts +29 -0
- package/dist/@types/client/types/protocol.d.ts.map +1 -0
- package/dist/@types/index.d.ts +17 -0
- package/dist/@types/index.d.ts.map +1 -0
- package/dist/@types/server/ai.d.ts +19 -0
- package/dist/@types/server/ai.d.ts.map +1 -0
- package/dist/@types/server/server.d.ts +2 -0
- package/dist/@types/server/server.d.ts.map +1 -0
- package/dist/index.cjs +2894 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +2861 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +2 -0
- package/package.json +5 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/client/lib/layout.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,WAAW,EAAa,MAAM,mBAAmB,CAAC;AAGhE,eAAO,MAAM,CAAC,MAAM,EAClB,CAAC,KAAK,EACN,OAAO,KAAK,EACZ,OAAO,KAAK,EACZ,GAAG,KAAK,EACR,GAAG,KAAK,EACR,SAAS,KAAK,EACd,WAAW,KAAK,EAChB,SAAS,KAAK,EACd,MAAM,KAAK,CAAC;AAEd,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;CAMX,CAAC;AAGF,MAAM,MAAM,GAAG,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC3C,MAAM,MAAM,CAAC,GAAG;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,MAAM,OAAO,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,EAAE,EAAE,GAAG,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AACtE,MAAM,MAAM,GAAG,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,CAAC,EAAE,CAAC;IACR,EAAE,EAAE,CAAC,EAAE,CAAC;IACR,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAgNF,wBAAgB,aAAa,CAAC,SAAS,EAAE,WAAW,GAAG,MAAM,CAujB5D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Shared no-op function used as Proxy targets (body is never reached through the proxy) */
|
|
2
|
+
export declare function proxyTarget(): void;
|
|
3
|
+
export declare function mockState(entry: Record<string, any>, onBuild?: (info: any) => void): {
|
|
4
|
+
init: (_initFn?: any) => {
|
|
5
|
+
emits(events: Record<string, any>): any;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare function mockSlice(onBuild?: (info: any) => void): any;
|
|
9
|
+
export declare function mockProjection(target?: string, onBuild?: (info: any) => void): any;
|
|
10
|
+
export declare function mockAct(onBuild?: (info: any) => void): any;
|
|
11
|
+
/** Module map for the evaluator's require() */
|
|
12
|
+
export declare const MODULES: Record<string, Record<string, unknown>>;
|
|
13
|
+
/**
|
|
14
|
+
* Returns a deep Proxy for unknown modules — any property access
|
|
15
|
+
* returns a no-op function that also acts as a Proxy.
|
|
16
|
+
*/
|
|
17
|
+
export declare function unknownModuleProxy(): Record<string, unknown>;
|
|
18
|
+
//# sourceMappingURL=mock-builders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-builders.d.ts","sourceRoot":"","sources":["../../../../src/client/lib/mock-builders.ts"],"names":[],"mappings":"AAQA,4FAA4F;AAC5F,wBAAgB,WAAW,SAAK;AA2DhC,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;qBAyCV,GAAG;sBACJ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;EAatC;AAyDD,wBAAgB,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,OA4CtD;AAED,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,OA6B5E;AAED,wBAAgB,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,OAgEpD;AAWD,+CAA+C;AAC/C,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAoB3D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmB5D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Navigate from a diagram element click to the exact definition in code.
|
|
3
|
+
* Builds type-specific regex patterns, searches all .ts files, and
|
|
4
|
+
* returns the file path, line, and column of the match.
|
|
5
|
+
*
|
|
6
|
+
* Pure function — no side effects, no VS Code / Monaco dependency.
|
|
7
|
+
*/
|
|
8
|
+
import type { FileTab } from "../types/index.js";
|
|
9
|
+
type NavigateResult = {
|
|
10
|
+
file: string;
|
|
11
|
+
line: number;
|
|
12
|
+
col: number;
|
|
13
|
+
};
|
|
14
|
+
export declare function navigateToCode(files: FileTab[], name: string, type?: string, targetFile?: string): NavigateResult | undefined;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=navigate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigate.d.ts","sourceRoot":"","sources":["../../../../src/client/lib/navigate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAoFjD,KAAK,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAElE,wBAAgB,cAAc,CAC5B,KAAK,EAAE,OAAO,EAAE,EAChB,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,MAAM,GAClB,cAAc,GAAG,SAAS,CA8J5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../../src/client/lib/sort.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,mFAAmF;AACnF,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CA+DtD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FileTab } from "../types/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Parse a multi-file AI response with path-annotated fenced blocks.
|
|
4
|
+
* Format: ```typescript:src/states.ts\n...code...\n```
|
|
5
|
+
* Falls back to a single src/app.ts file if no path annotations found.
|
|
6
|
+
*/
|
|
7
|
+
export declare function parseMultiFileResponse(raw: string): FileTab[];
|
|
8
|
+
export declare function stripFences(code: string): string;
|
|
9
|
+
/** Derive a project name from the prompt or generated code */
|
|
10
|
+
export declare function deriveProjectName(prompt: string, code?: string): string;
|
|
11
|
+
//# sourceMappingURL=strip-fences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strip-fences.d.ts","sourceRoot":"","sources":["../../../../src/client/lib/strip-fences.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,EAAE,CAmB7D;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAqBhD;AAED,8DAA8D;AAC9D,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAiBvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../src/client/lib/validate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAExE,mDAAmD;AACnD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,iBAAiB,EAAE,CAiBhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/client/main.tsx"],"names":[],"mappings":"AAOA,OAAO,cAAc,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/** Domain model extracted from Act builder code */
|
|
2
|
+
export type ActNode = {
|
|
3
|
+
slices: string[];
|
|
4
|
+
projections: string[];
|
|
5
|
+
states: string[];
|
|
6
|
+
line?: number;
|
|
7
|
+
};
|
|
8
|
+
export type EntryPoint = {
|
|
9
|
+
path: string;
|
|
10
|
+
states: StateNode[];
|
|
11
|
+
slices: SliceNode[];
|
|
12
|
+
projections: ProjectionNode[];
|
|
13
|
+
reactions: ReactionNode[];
|
|
14
|
+
};
|
|
15
|
+
export type DomainModel = {
|
|
16
|
+
entries: EntryPoint[];
|
|
17
|
+
states: StateNode[];
|
|
18
|
+
slices: SliceNode[];
|
|
19
|
+
projections: ProjectionNode[];
|
|
20
|
+
reactions: ReactionNode[];
|
|
21
|
+
orchestrator?: ActNode;
|
|
22
|
+
};
|
|
23
|
+
export type StateNode = {
|
|
24
|
+
name: string;
|
|
25
|
+
varName: string;
|
|
26
|
+
events: EventNode[];
|
|
27
|
+
actions: ActionNode[];
|
|
28
|
+
file?: string;
|
|
29
|
+
line?: number;
|
|
30
|
+
};
|
|
31
|
+
export type EventNode = {
|
|
32
|
+
name: string;
|
|
33
|
+
hasCustomPatch: boolean;
|
|
34
|
+
line?: number;
|
|
35
|
+
};
|
|
36
|
+
export type ActionNode = {
|
|
37
|
+
name: string;
|
|
38
|
+
emits: string[];
|
|
39
|
+
invariants: string[];
|
|
40
|
+
line?: number;
|
|
41
|
+
};
|
|
42
|
+
export type SliceNode = {
|
|
43
|
+
name: string;
|
|
44
|
+
states: string[];
|
|
45
|
+
stateVars: string[];
|
|
46
|
+
projections: string[];
|
|
47
|
+
reactions: ReactionNode[];
|
|
48
|
+
error?: string;
|
|
49
|
+
file?: string;
|
|
50
|
+
line?: number;
|
|
51
|
+
};
|
|
52
|
+
export type ProjectionNode = {
|
|
53
|
+
name: string;
|
|
54
|
+
varName: string;
|
|
55
|
+
handles: string[];
|
|
56
|
+
line?: number;
|
|
57
|
+
};
|
|
58
|
+
export type ReactionNode = {
|
|
59
|
+
event: string;
|
|
60
|
+
handlerName: string;
|
|
61
|
+
dispatches: string[];
|
|
62
|
+
line?: number;
|
|
63
|
+
};
|
|
64
|
+
export type ValidationWarning = {
|
|
65
|
+
message: string;
|
|
66
|
+
severity: "warning" | "error";
|
|
67
|
+
element?: string;
|
|
68
|
+
};
|
|
69
|
+
export declare function emptyModel(): DomainModel;
|
|
70
|
+
//# sourceMappingURL=domain-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain-model.d.ts","sourceRoot":"","sources":["../../../../src/client/types/domain-model.ts"],"names":[],"mappings":"AAAA,mDAAmD;AAEnD,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,SAAS,EAAE,YAAY,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,UAAU,EAAE,CAAC;IAEtB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,UAAU,IAAI,WAAW,CASxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-tab.d.ts","sourceRoot":"","sources":["../../../../src/client/types/file-tab.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { ActionNode, ActNode, DomainModel, EntryPoint, EventNode, ProjectionNode, ReactionNode, SliceNode, StateNode, ValidationWarning, } from "./domain-model.js";
|
|
2
|
+
export { emptyModel } from "./domain-model.js";
|
|
3
|
+
export type { FileTab } from "./file-tab.js";
|
|
4
|
+
export type { DiagramMessage, HostMessage } from "./protocol.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,OAAO,EACP,WAAW,EACX,UAAU,EACV,SAAS,EACT,cAAc,EACd,YAAY,EACZ,SAAS,EACT,SAAS,EACT,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { FileTab } from "./file-tab.js";
|
|
2
|
+
/** Messages from the host environment to the diagram */
|
|
3
|
+
export type HostMessage = {
|
|
4
|
+
type: "files";
|
|
5
|
+
files: FileTab[];
|
|
6
|
+
} | {
|
|
7
|
+
type: "fileAdded";
|
|
8
|
+
path: string;
|
|
9
|
+
content: string;
|
|
10
|
+
} | {
|
|
11
|
+
type: "fileChanged";
|
|
12
|
+
path: string;
|
|
13
|
+
content: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: "fileDeleted";
|
|
16
|
+
path: string;
|
|
17
|
+
};
|
|
18
|
+
/** Messages from the diagram to the host environment */
|
|
19
|
+
export type DiagramMessage = {
|
|
20
|
+
type: "navigate";
|
|
21
|
+
file: string;
|
|
22
|
+
line: number;
|
|
23
|
+
col: number;
|
|
24
|
+
} | {
|
|
25
|
+
type: "aiRequest";
|
|
26
|
+
prompt: string;
|
|
27
|
+
files: FileTab[];
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../../src/client/types/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,wDAAwD;AACxD,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,EAAE,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACtD;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1C,wDAAwD;AACxD,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAC7D;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,EAAE,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { ActDiagram } from "./client/components/ActDiagram.js";
|
|
2
|
+
export { AiBar, type AiOptions } from "./client/components/AiBar.js";
|
|
3
|
+
export { Diagram } from "./client/components/Diagram.js";
|
|
4
|
+
export { Logo } from "./client/components/Logo.js";
|
|
5
|
+
export { Tooltip } from "./client/components/Tooltip.js";
|
|
6
|
+
export { buildModel, type ExecuteResult } from "./client/lib/build-model.js";
|
|
7
|
+
export { extractModel } from "./client/lib/evaluate.js";
|
|
8
|
+
export { computeLayout } from "./client/lib/layout.js";
|
|
9
|
+
export { navigateToCode } from "./client/lib/navigate.js";
|
|
10
|
+
export { topoSort } from "./client/lib/sort.js";
|
|
11
|
+
export { deriveProjectName, parseMultiFileResponse, stripFences, } from "./client/lib/strip-fences.js";
|
|
12
|
+
export { validate } from "./client/lib/validate.js";
|
|
13
|
+
export type { ActionNode, ActNode, DomainModel, EntryPoint, EventNode, ProjectionNode, ReactionNode, SliceNode, StateNode, ValidationWarning, } from "./client/types/domain-model.js";
|
|
14
|
+
export { emptyModel } from "./client/types/domain-model.js";
|
|
15
|
+
export type { FileTab } from "./client/types/file-tab.js";
|
|
16
|
+
export type { DiagramMessage, HostMessage } from "./client/types/protocol.js";
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,WAAW,GACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,YAAY,EACV,UAAU,EACV,OAAO,EACP,WAAW,EACX,UAAU,EACV,SAAS,EACT,cAAc,EACd,YAAY,EACZ,SAAS,EACT,SAAS,EACT,iBAAiB,GAClB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,YAAY,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare function buildSystemPrompt(currentFiles?: {
|
|
2
|
+
path: string;
|
|
3
|
+
content: string;
|
|
4
|
+
}[], refine?: boolean): string;
|
|
5
|
+
export declare const DEFAULT_MODELS: {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare function streamGenerate(input: {
|
|
10
|
+
prompt: string;
|
|
11
|
+
currentFiles?: {
|
|
12
|
+
path: string;
|
|
13
|
+
content: string;
|
|
14
|
+
}[];
|
|
15
|
+
maxTokens?: number;
|
|
16
|
+
model?: string;
|
|
17
|
+
refine?: boolean;
|
|
18
|
+
}, res: import("http").ServerResponse): void;
|
|
19
|
+
//# sourceMappingURL=ai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../src/server/ai.ts"],"names":[],"mappings":"AAuEA,wBAAgB,iBAAiB,CAC/B,YAAY,CAAC,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,EAClD,MAAM,CAAC,EAAE,OAAO,GACf,MAAM,CAuBR;AAID,eAAO,MAAM,cAAc;;;GAI1B,CAAC;AAIF,wBAAgB,cAAc,CAC5B,KAAK,EAAE;IACL,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,EACD,GAAG,EAAE,OAAO,MAAM,EAAE,cAAc,QA0CnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/server/server.ts"],"names":[],"mappings":""}
|