@cotrrackpro-dev/sdk 0.1.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 (233) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/LICENSE +21 -0
  3. package/README.md +111 -0
  4. package/dist/assistant/compliance.d.ts +24 -0
  5. package/dist/assistant/compliance.js +60 -0
  6. package/dist/assistant/compliance.js.map +1 -0
  7. package/dist/assistant/crisis.d.ts +31 -0
  8. package/dist/assistant/crisis.js +62 -0
  9. package/dist/assistant/crisis.js.map +1 -0
  10. package/dist/assistant/index.d.ts +15 -0
  11. package/dist/assistant/index.js +16 -0
  12. package/dist/assistant/index.js.map +1 -0
  13. package/dist/assistant/levels.d.ts +43 -0
  14. package/dist/assistant/levels.js +102 -0
  15. package/dist/assistant/levels.js.map +1 -0
  16. package/dist/assistant/prompt.d.ts +20 -0
  17. package/dist/assistant/prompt.js +96 -0
  18. package/dist/assistant/prompt.js.map +1 -0
  19. package/dist/assistant/rbac.d.ts +45 -0
  20. package/dist/assistant/rbac.js +75 -0
  21. package/dist/assistant/rbac.js.map +1 -0
  22. package/dist/assistant/readability.d.ts +28 -0
  23. package/dist/assistant/readability.js +70 -0
  24. package/dist/assistant/readability.js.map +1 -0
  25. package/dist/auth/broker.d.ts +32 -0
  26. package/dist/auth/broker.js +48 -0
  27. package/dist/auth/broker.js.map +1 -0
  28. package/dist/auth/deviceFlow.d.ts +26 -0
  29. package/dist/auth/deviceFlow.js +65 -0
  30. package/dist/auth/deviceFlow.js.map +1 -0
  31. package/dist/auth/provider.d.ts +32 -0
  32. package/dist/auth/provider.js +29 -0
  33. package/dist/auth/provider.js.map +1 -0
  34. package/dist/community/badges.d.ts +19 -0
  35. package/dist/community/badges.js +19 -0
  36. package/dist/community/badges.js.map +1 -0
  37. package/dist/community/events.d.ts +30 -0
  38. package/dist/community/events.js +31 -0
  39. package/dist/community/events.js.map +1 -0
  40. package/dist/community/identity.d.ts +28 -0
  41. package/dist/community/identity.js +2 -0
  42. package/dist/community/identity.js.map +1 -0
  43. package/dist/community/index.d.ts +7 -0
  44. package/dist/community/index.js +8 -0
  45. package/dist/community/index.js.map +1 -0
  46. package/dist/community/org.d.ts +46 -0
  47. package/dist/community/org.js +32 -0
  48. package/dist/community/org.js.map +1 -0
  49. package/dist/community/tiers.d.ts +8 -0
  50. package/dist/community/tiers.js +40 -0
  51. package/dist/community/tiers.js.map +1 -0
  52. package/dist/community/types.d.ts +26 -0
  53. package/dist/community/types.js +2 -0
  54. package/dist/community/types.js.map +1 -0
  55. package/dist/core/config.d.ts +22 -0
  56. package/dist/core/config.js +27 -0
  57. package/dist/core/config.js.map +1 -0
  58. package/dist/core/errors.d.ts +29 -0
  59. package/dist/core/errors.js +20 -0
  60. package/dist/core/errors.js.map +1 -0
  61. package/dist/core/transport.d.ts +45 -0
  62. package/dist/core/transport.js +109 -0
  63. package/dist/core/transport.js.map +1 -0
  64. package/dist/diagram/core.d.ts +11 -0
  65. package/dist/diagram/core.js +12 -0
  66. package/dist/diagram/core.js.map +1 -0
  67. package/dist/diagram/extract.d.ts +17 -0
  68. package/dist/diagram/extract.js +213 -0
  69. package/dist/diagram/extract.js.map +1 -0
  70. package/dist/diagram/index.d.ts +2 -0
  71. package/dist/diagram/index.js +3 -0
  72. package/dist/diagram/index.js.map +1 -0
  73. package/dist/diagram/mermaid.d.ts +10 -0
  74. package/dist/diagram/mermaid.js +50 -0
  75. package/dist/diagram/mermaid.js.map +1 -0
  76. package/dist/diagram/prompt.d.ts +4 -0
  77. package/dist/diagram/prompt.js +16 -0
  78. package/dist/diagram/prompt.js.map +1 -0
  79. package/dist/diagram/types.d.ts +33 -0
  80. package/dist/diagram/types.js +2 -0
  81. package/dist/diagram/types.js.map +1 -0
  82. package/dist/diagram/validate.d.ts +13 -0
  83. package/dist/diagram/validate.js +48 -0
  84. package/dist/diagram/validate.js.map +1 -0
  85. package/dist/guide/compose.d.ts +10 -0
  86. package/dist/guide/compose.js +31 -0
  87. package/dist/guide/compose.js.map +1 -0
  88. package/dist/guide/core.d.ts +10 -0
  89. package/dist/guide/core.js +11 -0
  90. package/dist/guide/core.js.map +1 -0
  91. package/dist/guide/index.d.ts +2 -0
  92. package/dist/guide/index.js +3 -0
  93. package/dist/guide/index.js.map +1 -0
  94. package/dist/guide/prompt.d.ts +8 -0
  95. package/dist/guide/prompt.js +20 -0
  96. package/dist/guide/prompt.js.map +1 -0
  97. package/dist/guide/render.d.ts +9 -0
  98. package/dist/guide/render.js +180 -0
  99. package/dist/guide/render.js.map +1 -0
  100. package/dist/guide/types.d.ts +67 -0
  101. package/dist/guide/types.js +2 -0
  102. package/dist/guide/types.js.map +1 -0
  103. package/dist/index.d.ts +18 -0
  104. package/dist/index.js +19 -0
  105. package/dist/index.js.map +1 -0
  106. package/dist/mcp/artifacts.generated.d.ts +19 -0
  107. package/dist/mcp/artifacts.generated.js +140 -0
  108. package/dist/mcp/artifacts.generated.js.map +1 -0
  109. package/dist/mcp/format.d.ts +10 -0
  110. package/dist/mcp/format.js +17 -0
  111. package/dist/mcp/format.js.map +1 -0
  112. package/dist/mcp/index.d.ts +12 -0
  113. package/dist/mcp/index.js +18 -0
  114. package/dist/mcp/index.js.map +1 -0
  115. package/dist/mcp/knowledge.generated.d.ts +11 -0
  116. package/dist/mcp/knowledge.generated.js +12 -0
  117. package/dist/mcp/knowledge.generated.js.map +1 -0
  118. package/dist/mcp/prompt-modules.generated.d.ts +12 -0
  119. package/dist/mcp/prompt-modules.generated.js +19 -0
  120. package/dist/mcp/prompt-modules.generated.js.map +1 -0
  121. package/dist/mcp/roles.generated.d.ts +15 -0
  122. package/dist/mcp/roles.generated.js +25 -0
  123. package/dist/mcp/roles.generated.js.map +1 -0
  124. package/dist/mcp/safety.d.ts +35 -0
  125. package/dist/mcp/safety.js +76 -0
  126. package/dist/mcp/safety.js.map +1 -0
  127. package/dist/mcp/scenarios.generated.d.ts +13 -0
  128. package/dist/mcp/scenarios.generated.js +16 -0
  129. package/dist/mcp/scenarios.generated.js.map +1 -0
  130. package/dist/mcp/search.d.ts +13 -0
  131. package/dist/mcp/search.js +33 -0
  132. package/dist/mcp/search.js.map +1 -0
  133. package/dist/mcp/skills.generated.d.ts +17 -0
  134. package/dist/mcp/skills.generated.js +40 -0
  135. package/dist/mcp/skills.generated.js.map +1 -0
  136. package/dist/mcp/toolset.d.ts +31 -0
  137. package/dist/mcp/toolset.js +54 -0
  138. package/dist/mcp/toolset.js.map +1 -0
  139. package/dist/mcp/types.d.ts +96 -0
  140. package/dist/mcp/types.js +9 -0
  141. package/dist/mcp/types.js.map +1 -0
  142. package/dist/mcp/workflows.generated.d.ts +17 -0
  143. package/dist/mcp/workflows.generated.js +12 -0
  144. package/dist/mcp/workflows.generated.js.map +1 -0
  145. package/dist/nocode/core.d.ts +12 -0
  146. package/dist/nocode/core.js +13 -0
  147. package/dist/nocode/core.js.map +1 -0
  148. package/dist/nocode/examples.d.ts +28 -0
  149. package/dist/nocode/examples.js +218 -0
  150. package/dist/nocode/examples.js.map +1 -0
  151. package/dist/nocode/index.d.ts +2 -0
  152. package/dist/nocode/index.js +3 -0
  153. package/dist/nocode/index.js.map +1 -0
  154. package/dist/nocode/mermaid.d.ts +9 -0
  155. package/dist/nocode/mermaid.js +33 -0
  156. package/dist/nocode/mermaid.js.map +1 -0
  157. package/dist/nocode/prompt.d.ts +8 -0
  158. package/dist/nocode/prompt.js +46 -0
  159. package/dist/nocode/prompt.js.map +1 -0
  160. package/dist/nocode/runtime.d.ts +28 -0
  161. package/dist/nocode/runtime.js +113 -0
  162. package/dist/nocode/runtime.js.map +1 -0
  163. package/dist/nocode/simpleOps.d.ts +16 -0
  164. package/dist/nocode/simpleOps.js +137 -0
  165. package/dist/nocode/simpleOps.js.map +1 -0
  166. package/dist/nocode/types.d.ts +72 -0
  167. package/dist/nocode/types.js +12 -0
  168. package/dist/nocode/types.js.map +1 -0
  169. package/dist/nocode/validate.d.ts +17 -0
  170. package/dist/nocode/validate.js +136 -0
  171. package/dist/nocode/validate.js.map +1 -0
  172. package/dist/params/codegen.d.ts +8 -0
  173. package/dist/params/codegen.js +12 -0
  174. package/dist/params/codegen.js.map +1 -0
  175. package/dist/params/convert.d.ts +7 -0
  176. package/dist/params/convert.js +123 -0
  177. package/dist/params/convert.js.map +1 -0
  178. package/dist/params/core.d.ts +11 -0
  179. package/dist/params/core.js +12 -0
  180. package/dist/params/core.js.map +1 -0
  181. package/dist/params/fieldTypes.d.ts +26 -0
  182. package/dist/params/fieldTypes.js +29 -0
  183. package/dist/params/fieldTypes.js.map +1 -0
  184. package/dist/params/index.d.ts +3 -0
  185. package/dist/params/index.js +4 -0
  186. package/dist/params/index.js.map +1 -0
  187. package/dist/params/prompt.d.ts +4 -0
  188. package/dist/params/prompt.js +16 -0
  189. package/dist/params/prompt.js.map +1 -0
  190. package/dist/params/render.d.ts +5 -0
  191. package/dist/params/render.js +25 -0
  192. package/dist/params/render.js.map +1 -0
  193. package/dist/params/types.d.ts +76 -0
  194. package/dist/params/types.js +16 -0
  195. package/dist/params/types.js.map +1 -0
  196. package/dist/params/validate.d.ts +5 -0
  197. package/dist/params/validate.js +104 -0
  198. package/dist/params/validate.js.map +1 -0
  199. package/dist/resources/client.d.ts +58 -0
  200. package/dist/resources/client.js +79 -0
  201. package/dist/resources/client.js.map +1 -0
  202. package/dist/resources/types.d.ts +72 -0
  203. package/dist/resources/types.js +9 -0
  204. package/dist/resources/types.js.map +1 -0
  205. package/dist/workflow/assets.d.ts +8 -0
  206. package/dist/workflow/assets.js +16 -0
  207. package/dist/workflow/assets.js.map +1 -0
  208. package/dist/workflow/commands.d.ts +10 -0
  209. package/dist/workflow/commands.js +21 -0
  210. package/dist/workflow/commands.js.map +1 -0
  211. package/dist/workflow/core.d.ts +15 -0
  212. package/dist/workflow/core.js +16 -0
  213. package/dist/workflow/core.js.map +1 -0
  214. package/dist/workflow/index.d.ts +2 -0
  215. package/dist/workflow/index.js +3 -0
  216. package/dist/workflow/index.js.map +1 -0
  217. package/dist/workflow/stack.d.ts +11 -0
  218. package/dist/workflow/stack.js +40 -0
  219. package/dist/workflow/stack.js.map +1 -0
  220. package/dist/workflow/templates.d.ts +17 -0
  221. package/dist/workflow/templates.js +223 -0
  222. package/dist/workflow/templates.js.map +1 -0
  223. package/dist/workflow/types.d.ts +27 -0
  224. package/dist/workflow/types.js +2 -0
  225. package/dist/workflow/types.js.map +1 -0
  226. package/package.json +77 -0
  227. package/schemas/artifacts.index.json +1211 -0
  228. package/schemas/knowledge.index.json +49 -0
  229. package/schemas/prompt-modules.index.json +105 -0
  230. package/schemas/roles.index.json +431 -0
  231. package/schemas/scenarios.index.json +15 -0
  232. package/schemas/skills.index.json +670 -0
  233. package/schemas/workflows.index.json +462 -0
@@ -0,0 +1,31 @@
1
+ import type { ArtifactSummary, KnowledgeSummary, PromptModuleSummary, RoleSummary, ScenarioSummary, SkillSummary, WorkflowSummary } from "./types.js";
2
+ import type { ArtifactName } from "./artifacts.generated.js";
3
+ /**
4
+ * A host-provided MCP tool-call function. The SDK does NOT re-implement MCP
5
+ * transport — the host (Claude runtime, the Antigravity IDE, an agent SDK)
6
+ * already speaks MCP and passes a callable in. This keeps the SDK a thin,
7
+ * typed binding over whatever MCP plumbing the host has.
8
+ */
9
+ export type McpCall = (toolName: string, args?: Record<string, unknown>) => Promise<unknown>;
10
+ /**
11
+ * Typed wrapper over the cotrackpro MCP server's discovery + generation tools.
12
+ *
13
+ * Example (in an Antigravity / agent host that exposes `callTool`):
14
+ * const cp = new CotrackproToolset((name, args) => host.callTool(`cotrackpro.${name}`, args));
15
+ * const artifacts = await cp.listArtifacts();
16
+ */
17
+ export declare class CotrackproToolset {
18
+ private readonly call;
19
+ constructor(call: McpCall);
20
+ listArtifacts(): Promise<ArtifactSummary[]>;
21
+ getArtifactSchema(name: ArtifactName | string): Promise<unknown>;
22
+ searchArtifacts(query: string, max?: number): Promise<ArtifactSummary[]>;
23
+ listRoles(): Promise<RoleSummary[]>;
24
+ listWorkflows(): Promise<WorkflowSummary[]>;
25
+ /** A single workflow's full step graph (the cotrackpro server's `get_workflow`). */
26
+ getWorkflow(id: string): Promise<WorkflowSummary | undefined>;
27
+ listSkills(): Promise<SkillSummary[]>;
28
+ listKnowledge(): Promise<KnowledgeSummary[]>;
29
+ listPromptModules(): Promise<PromptModuleSummary[]>;
30
+ listScenarios(): Promise<ScenarioSummary[]>;
31
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Typed wrapper over the cotrackpro MCP server's discovery + generation tools.
3
+ *
4
+ * Example (in an Antigravity / agent host that exposes `callTool`):
5
+ * const cp = new CotrackproToolset((name, args) => host.callTool(`cotrackpro.${name}`, args));
6
+ * const artifacts = await cp.listArtifacts();
7
+ */
8
+ export class CotrackproToolset {
9
+ call;
10
+ constructor(call) {
11
+ this.call = call;
12
+ }
13
+ async listArtifacts() {
14
+ const res = (await this.call("list_artifacts"));
15
+ return res.artifacts ?? [];
16
+ }
17
+ async getArtifactSchema(name) {
18
+ return this.call("get_artifact_schema", { name });
19
+ }
20
+ async searchArtifacts(query, max = 5) {
21
+ const res = (await this.call("search_artifacts", { query, max }));
22
+ return res.matches ?? [];
23
+ }
24
+ async listRoles() {
25
+ const res = (await this.call("list_roles"));
26
+ return res.roles ?? [];
27
+ }
28
+ async listWorkflows() {
29
+ const res = (await this.call("list_workflows"));
30
+ return res.workflows ?? [];
31
+ }
32
+ /** A single workflow's full step graph (the cotrackpro server's `get_workflow`). */
33
+ async getWorkflow(id) {
34
+ const res = (await this.call("get_workflow", { id }));
35
+ return res.workflow;
36
+ }
37
+ async listSkills() {
38
+ const res = (await this.call("list_skills"));
39
+ return res.skills ?? [];
40
+ }
41
+ async listKnowledge() {
42
+ const res = (await this.call("list_knowledge"));
43
+ return res.knowledge ?? [];
44
+ }
45
+ async listPromptModules() {
46
+ const res = (await this.call("list_prompt_modules"));
47
+ return res.modules ?? [];
48
+ }
49
+ async listScenarios() {
50
+ const res = (await this.call("list_scenarios"));
51
+ return res.scen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AAI,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,EAAE,EAAE,CAAC,CAAmC,CAAC;QACxF,OAAO,GAAG,CAAC,QAAQ,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,UAAU;QACd,MAAM,GAAG,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAgC,CAAC;QAC5E,OAAO,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,MAAM,GAAG,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAuC,CAAC;QACtF,OAAO,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,iBAAiB;QACrB,MAAM,GAAG,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAwC,CAAC;QAC5F,OAAO,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,MAAM,GAAG,GAAG,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAsC,CAAC;QACrF,OAAO,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC;IAC7B,CAAC;CACF"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Types for the CoTrackPro MCP surface — the platform's programmatic capability
3
+ * (roles, workflows, skills, knowledge, artifact schemas, scenarios, prompt
4
+ * modules). These mirror the shapes returned by the cotrackpro MCP server's
5
+ * discovery tools and the canonical model in cotrackpro-antigravity (synced into
6
+ * sdk/schemas/*.index.json via sdk/scripts/sync-antigravity.ts).
7
+ */
8
+ export type DataSensitivity = "public" | "sensitive" | "confidential";
9
+ /** Risk posture a workflow/role/skill operates under. Drives gating + tone. */
10
+ export type SafetyLevel = "standard" | "elevated" | "maximum";
11
+ /**
12
+ * Prompt-module names that encode the child-centered / trauma-informed spine of
13
+ * the platform. Any entity that binds one of these is part of that taxonomy.
14
+ * Kept as a string union (not an enum) so it stays structurally compatible with
15
+ * the bare module names in the generated registries.
16
+ */
17
+ export type GuardrailModule = "child-centered-language" | "trauma-informed-response" | "coercive-control-awareness" | "safety-language" | "neutral-documentation" | "legal-neutrality" | "evidence-integrity" | "emotional-deescalation" | "therapeutic-neutrality";
18
+ /** One node in a workflow's step graph (from cotrackpro-antigravity workflows/*.yaml). */
19
+ export interface WorkflowStep {
20
+ id: string;
21
+ action: string;
22
+ skill: string | null;
23
+ roles: string[];
24
+ output: string | null;
25
+ next: string | null;
26
+ trueNext: string | null;
27
+ falseNext: string | null;
28
+ condition: string | null;
29
+ }
30
+ export interface ArtifactSummary {
31
+ name: string;
32
+ title: string;
33
+ description?: string;
34
+ data_sensitivity: DataSensitivity;
35
+ /** Schema fields that carry child-safety / risk signal (e.g. child_impact, severity). */
36
+ safety_fields?: string[];
37
+ /** Whether the artifact schema carries an AI-provenance block. */
38
+ has_provenance?: boolean;
39
+ /** Child-safety / crisis relevance, derived from fields + name/title. */
40
+ safety_relevant?: boolean;
41
+ }
42
+ export interface RoleSummary {
43
+ id: string;
44
+ airtable_role_names: string[];
45
+ /** Functional skills this role-shaped skill composes. */
46
+ composes?: string[];
47
+ /** Bare prompt-module names bound at the guardrails layer. */
48
+ prompt_modules?: string[];
49
+ chains_with?: string[];
50
+ safety_level?: SafetyLevel;
51
+ data_sensitivity?: DataSensitivity | "internal";
52
+ }
53
+ export interface WorkflowSummary {
54
+ id: string;
55
+ name: string;
56
+ description: string;
57
+ version?: string;
58
+ trigger?: string | null;
59
+ condition?: string | null;
60
+ safety_level?: SafetyLevel;
61
+ step_count?: number;
62
+ steps?: WorkflowStep[];
63
+ }
64
+ /** A functional or role-shaped skill (cotrackpro-antigravity .agents/{skills,roles}). */
65
+ export interface SkillSummary {
66
+ name: string;
67
+ version: string;
68
+ description: string;
69
+ kind: "functional" | "role";
70
+ data_sensitivity: DataSensitivity | "internal";
71
+ safety_level: SafetyLevel;
72
+ prompt_modules: string[];
73
+ chains_with: string[];
74
+ consumed_by: string[];
75
+ }
76
+ /** A shared knowledge file backing one or more guardrail prompt modules. */
77
+ export interface KnowledgeSummary {
78
+ name: string;
79
+ title: string;
80
+ summary: string;
81
+ related_modules: string[];
82
+ }
83
+ export interface PromptModuleSummary {
84
+ name: string;
85
+ title?: string;
86
+ description?: string;
87
+ category?: string;
88
+ injection_point?: string;
89
+ version?: string;
90
+ /** Shared knowledge files that back this module. */
91
+ knowledge_refs?: string[];
92
+ }
93
+ export interface ScenarioSummary {
94
+ name: string;
95
+ description?: string;
96
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Types for the CoTrackPro MCP surface — the platform's programmatic capability
3
+ * (roles, workflows, skills, knowledge, artifact schemas, scenarios, prompt
4
+ * modules). These mirror the shapes returned by the cotrackpro MCP server's
5
+ * discovery tools and the canonical model in cotrackpro-antigravity (synced into
6
+ * sdk/schemas/*.index.json via sdk/scripts/sync-antigravity.ts).
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/mcp/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,17 @@
1
+ import type { SafetyLevel, WorkflowStep } from "./types.js";
2
+ /** Every workflows id the platform exposes (5 total). */
3
+ export type WorkflowId = "court-packet-assembly" | "custody-violation-response" | "first-session-onboarding" | "mandatory-reporting-assist" | "session-lifecycle";
4
+ export interface WorkflowMeta {
5
+ id: WorkflowId;
6
+ name: string;
7
+ description: string;
8
+ version: string;
9
+ trigger: string | null;
10
+ condition: string | null;
11
+ safetyLevel: SafetyLevel;
12
+ stepCount: number;
13
+ steps: WorkflowStep[];
14
+ }
15
+ /** Typed registry of all workflows, keyed by id. */
16
+ export declare const WORKFLOWS: Record<WorkflowId, WorkflowMeta>;
17
+ export declare const WORKFLOW_IDS: WorkflowId[];
@@ -0,0 +1,12 @@
1
+ // AUTO-GENERATED by sdk/scripts/gen-registries.ts — do not edit by hand.
2
+ // Source: CoTrackPro catalog snapshot. Re-run `npm run codegen` to refresh.
3
+ /** Typed registry of all workflows, keyed by id. */
4
+ export const WORKFLOWS = {
5
+ "court-packet-assembly": { id: "court-packet-assembly", name: "court-packet-assembly", description: "Assembles all session artifacts into a court-ready PDF packet.", version: "1.0", trigger: "user_requests_court_packet", condition: null, safetyLevel: "standard", stepCount: 7, steps: [{ "id": "inventory", "action": "list_artifacts", "skill": null, "roles": [], "output": "available_artifacts", "next": "select", "trueNext": null, "falseNext": null, "condition": null }, { "id": "select", "action": "ask", "skill": null, "roles": [], "output": null, "next": "organize", "trueNext": null, "falseNext": null, "condition": null }, { "id": "organize", "action": "call_skill", "skill": "evidence-organization", "roles": [], "output": "organized_packet", "next": "format", "trueNext": null, "falseNext": null, "condition": null }, { "id": "format", "action": "call_skill", "skill": "legal-document-formatter", "roles": [], "output": "formatted_packet", "next": "pii_check", "trueNext": null, "falseNext": null, "condition": null }, { "id": "pii_check", "action": "hook", "skill": null, "roles": [], "output": null, "next": "provenance_disclosure", "trueNext": null, "falseNext": null, "condition": null }, { "id": "provenance_disclosure", "action": "call_skill", "skill": "ai-provenance-integrity", "roles": [], "output": "provenance_page", "next": "export", "trueNext": null, "falseNext": null, "condition": null }, { "id": "export", "action": "export", "skill": null, "roles": [], "output": null, "next": null, "trueNext": null, "falseNext": null, "condition": null }] },
6
+ "custody-violation-response": { id: "custody-violation-response", name: "custody-violation-response", description: "End-to-end response workflow for documented custody violations. Walks the user-as-parent through incident documentation, evidence preservation, timeline construction, and (with attorney engagement) legal assessment and court-packet assembly. Honors the safety_gate pattern from session-lifecycle.yaml — content routed here has already cleared the global safety check.", version: "1.1", trigger: "trigger_detected", condition: "trigger_name == \"Child Custody Violation\"", safetyLevel: "elevated", stepCount: 9, steps: [{ "id": "document_incident", "action": "call_skill", "skill": "incident-documentation", "roles": ["Parent"], "output": "incident_log", "next": "preserve_evidence", "trueNext": null, "falseNext": null, "condition": null }, { "id": "preserve_evidence", "action": "call_skill", "skill": "evidence-organization", "roles": ["Parent"], "output": "evidence_index", "next": "build_timeline", "trueNext": null, "falseNext": null, "condition": null }, { "id": "build_timeline", "action": "call_skill", "skill": "timeline-builder", "roles": ["Parent", "Attorney"], "output": "timeline", "next": "attorney_engagement_gate", "trueNext": null, "falseNext": null, "condition": null }, { "id": "attorney_engagement_gate", "action": "branch", "skill": null, "roles": [], "output": null, "next": null, "trueNext": "legal_assessment", "falseNext": "surface_pro_se_options", "condition": "{{user_has_attorney}} == true" }, { "id": "surface_pro_se_options", "action": "call_skill", "skill": "legal-document-formatter", "roles": ["Parent"], "output": "pro_se_packet", "next": "pii_check", "trueNext": null, "falseNext": null, "condition": null }, { "id": "legal_assessment", "action": "call_skill", "skill": "legal-document-formatter", "roles": ["Attorney"], "output": "legal_packet", "next": "assemble_court_packet", "trueNext": null, "falseNext": null, "condition": null }, { "id": "assemble_court_packet", "action": "invoke_workflow", "skill": null, "roles": [], "output": "court_packet", "next": "pii_check", "trueNext": null, "falseNext": null, "condition": null }, { "id": "pii_check", "action": "hook", "skill": null, "roles": [], "output": null, "next": "export", "trueNext": null, "falseNext": null, "condition": null }, { "id": "export", "action": "export", "skill": null, "roles": [], "output": null, "next": null, "trueNext": null, "falseNext": null, "condition": null }] },
7
+ "first-session-onboarding": { id: "first-session-onboarding", name: "first-session-onboarding", description: "Guides new users through their first CoTrackPro experience.", version: "1.0", trigger: "new_user_session", condition: null, safetyLevel: "standard", stepCount: 5, steps: [{ "id": "welcome", "action": "surface", "skill": null, "roles": [], "output": null, "next": "intent", "trueNext": null, "falseNext": null, "condition": null }, { "id": "intent", "action": "ask", "skill": null, "roles": [], "output": null, "next": "{{selected_route}}", "trueNext": null, "falseNext": null, "condition": null }, { "id": "role_select", "action": "ask", "skill": null, "roles": [], "output": null, "next": "first_action", "trueNext": null, "falseNext": null, "condition": null }, { "id": "first_action", "action": "route_to_skill", "skill": "{{selected_skill}}", "roles": [], "output": null, "next": "next_steps", "trueNext": null, "falseNext": null, "condition": null }, { "id": "next_steps", "action": "surface", "skill": null, "roles": [], "output": null, "next": null, "trueNext": null, "falseNext": null, "condition": null }] },
8
+ "mandatory-reporting-assist": { id: "mandatory-reporting-assist", name: "mandatory-reporting-assist", description: "Assists mandatory reporters in documenting disclosures and filing reports.", version: "1.0", trigger: "trigger_detected", condition: "tag == \"Mandatory Reporting\"", safetyLevel: "maximum", stepCount: 5, steps: [{ "id": "confirm_obligation", "action": "surface", "skill": null, "roles": [], "output": null, "next": "jurisdiction", "trueNext": null, "falseNext": null, "condition": null }, { "id": "jurisdiction", "action": "ask", "skill": null, "roles": [], "output": null, "next": "document", "trueNext": null, "falseNext": null, "condition": null }, { "id": "document", "action": "call_skill", "skill": "incident-documentation", "roles": [], "output": null, "next": "contacts", "trueNext": null, "falseNext": null, "condition": null }, { "id": "contacts", "action": "lookup", "skill": null, "roles": [], "output": "agency_name, phone, online_url, hours", "next": "track", "trueNext": null, "falseNext": null, "condition": null }, { "id": "track", "action": "log", "skill": null, "roles": [], "output": null, "next": null, "trueNext": null, "falseNext": null, "condition": null }] },
9
+ "session-lifecycle": { id: "session-lifecycle", name: "session-lifecycle", description: "Full session lifecycle from user input to artifact export.", version: "1.0", trigger: "user_input_received", condition: null, safetyLevel: "standard", stepCount: 9, steps: [{ "id": "init", "action": "create_session", "skill": null, "roles": [], "output": "session_id, user_context", "next": "triage", "trueNext": null, "falseNext": null, "condition": null }, { "id": "triage", "action": "call_skill", "skill": "omni-build", "roles": [], "output": "triggers, risk_level, safety_flag", "next": "safety_gate", "trueNext": null, "falseNext": null, "condition": null }, { "id": "safety_gate", "action": "branch", "skill": null, "roles": [], "output": null, "next": null, "trueNext": "safety_escalation", "falseNext": "route", "condition": "{{safety_flag}} == true" }, { "id": "safety_escalation", "action": "surface_safety_prompt", "skill": null, "roles": [], "output": null, "next": "route", "trueNext": null, "falseNext": null, "condition": null }, { "id": "route", "action": "call_skill", "skill": "omni-build", "roles": [], "output": "role_assignments", "next": "execute", "trueNext": null, "falseNext": null, "condition": null }, { "id": "execute", "action": "spawn_subagents", "skill": null, "roles": [], "output": "artifacts", "next": "review", "trueNext": null, "falseNext": null, "condition": null }, { "id": "review", "action": "quality_gate", "skill": null, "roles": [], "output": null, "next": "export", "trueNext": null, "falseNext": null, "condition": null }, { "id": "export", "action": "package_artifacts", "skill": null, "roles": [], "output": null, "next": "close", "trueNext": null, "falseNext": null, "condition": null }, { "id": "close", "action": "archive_session", "skill": null, "roles": [], "output": null, "next": null, "trueNext": null, "falseNext": null, "condition": null }] },
10
+ };
11
+ export const WORKFLOW_IDS = Object.keys(WORKFLOWS);
12
+ //# sourceMappingURL=workflows.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflows.generated.js","sourceRoot":"","sources":["../../src/mcp/workflows.generated.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,4EAA4E;AAwB5E,oDAAoD;AACpD,MAAM,CAAC,MAAM,SAAS,GAAqC;IACzD,uBAAuB,EAAE,EAAE,EAAE,EAAE,uBAAuB,EAAE,IAAI,EAAE,uBAAuB,EAAE,WAAW,EAAE,gEAAgE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,4BAA4B,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAC,IAAI,EAAC,WAAW,EAAC,QAAQ,EAAC,gBAAgB,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,EAAC,EAAE,EAAC,QAAQ,EAAC,qBAAqB,EAAC,MAAM,EAAC,QAAQ,EAAC,UAAU,EAAC,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,EAAC,EAAE,EAAC,QAAQ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EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,UAAU,EAAC,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,EAAC,EAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAC,iBAAiB,EAAC,OAAO,EAAC,IAAI,EAAC,OAAO,EAAC,EAAE,EAAC,QAAQ,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,CAAC,EAAE;CAC/qD,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAiB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAiB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Browser-safe barrel for the no-code core. Import-free by construction (an SDK
3
+ * test enforces that every file here imports only `./`), so the compiled output
4
+ * loads unchanged in the CLI, a browser builder, and the on-device runtime.
5
+ */
6
+ export * from "./types.js";
7
+ export * from "./simpleOps.js";
8
+ export * from "./validate.js";
9
+ export * from "./runtime.js";
10
+ export * from "./mermaid.js";
11
+ export * from "./prompt.js";
12
+ export * from "./examples.js";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Browser-safe barrel for the no-code core. Import-free by construction (an SDK
3
+ * test enforces that every file here imports only `./`), so the compiled output
4
+ * loads unchanged in the CLI, a browser builder, and the on-device runtime.
5
+ */
6
+ export * from "./types.js";
7
+ export * from "./simpleOps.js";
8
+ export * from "./validate.js";
9
+ export * from "./runtime.js";
10
+ export * from "./mermaid.js";
11
+ export * from "./prompt.js";
12
+ export * from "./examples.js";
13
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../../src/nocode/core.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Starter no-code apps — valid `NoCodeApp` definitions offered as one-click
3
+ * beginnings (the same idea as the diagram/params "try an example" seeds). Each
4
+ * passes `validateApp` and runs fully on-device, so a newcomer can
5
+ * `nocode new <id> --out app.ctp.json` then `nocode run`/`nocode mermaid` and see
6
+ * a finished result with zero setup. Child-centered, court-neutral, illustrative.
7
+ *
8
+ * Import-free (types only) so this stays loadable in the browser builder too.
9
+ */
10
+ import type { NoCodeApp } from "./types.js";
11
+ /** Every starter app, keyed by id. */
12
+ export declare const EXAMPLE_APPS: Record<string, NoCodeApp>;
13
+ export declare const EXAMPLE_IDS: string[];
14
+ /**
15
+ * A fresh, empty app — the "start from scratch" beginning, distinct from the
16
+ * curated templates above (so it's deliberately NOT in `EXAMPLE_APPS`). Shared by
17
+ * the browser builder's "Blank app" option and the CLI's `nocode new blank`, so
18
+ * the two surfaces can't drift. `Date` is browser-safe, keeping the core
19
+ * import-free.
20
+ */
21
+ export declare function blankApp(): NoCodeApp;
22
+ /** A flat summary for listing (no full graph). */
23
+ export declare function listExamples(): Array<{
24
+ id: string;
25
+ name: string;
26
+ nodes: number;
27
+ edges: number;
28
+ }>;
@@ -0,0 +1,218 @@
1
+ const STAMP = "2026-01-01T00:00:00.000Z";
2
+ /** A minimal one-input → template → output app. The "hello world" of no-code. */
3
+ const greeter = {
4
+ id: "greeter",
5
+ name: "Greeter",
6
+ version: "1.0.0",
7
+ createdAt: STAMP,
8
+ updatedAt: STAMP,
9
+ nodes: [
10
+ { id: "name", type: "input", position: { x: 40, y: 40 }, data: { variable: "name", label: "Your name" } },
11
+ { id: "greet", type: "transform", position: { x: 40, y: 220 }, data: { op: "template", literal: "Hello {{name}}, welcome to CoTrackPro.", out: "greeting", label: "Compose greeting" } },
12
+ { id: "show", type: "output", position: { x: 40, y: 400 }, data: { variable: "greeting", label: "Greeting" } },
13
+ ],
14
+ edges: [
15
+ { id: "e1", source: "name", target: "greet" },
16
+ { id: "e2", source: "greet", target: "show" },
17
+ ],
18
+ variables: [
19
+ { key: "name", type: "string", scope: "local" },
20
+ { key: "greeting", type: "string", scope: "local" },
21
+ ],
22
+ settings: { storage: "memory", mcp: [] },
23
+ };
24
+ /** A small, on-device incident note: capture a few fields → render a neutral summary. */
25
+ const incidentNote = {
26
+ id: "incident-note",
27
+ name: "Incident Note",
28
+ version: "1.0.0",
29
+ createdAt: STAMP,
30
+ updatedAt: STAMP,
31
+ nodes: [
32
+ { id: "date", type: "input", position: { x: 40, y: 40 }, data: { variable: "date", label: "Date" } },
33
+ { id: "child", type: "input", position: { x: 300, y: 40 }, data: { variable: "childInitials", label: "Child (initials)" } },
34
+ { id: "what", type: "input", position: { x: 560, y: 40 }, data: { variable: "summary", label: "What happened (behavior, not characterization)" } },
35
+ { id: "compose", type: "transform", position: { x: 300, y: 240 }, data: { op: "template", literal: "On {{date}}, involving {{childInitials}}: {{summary}}", out: "note", label: "Compose neutral summary" } },
36
+ { id: "out", type: "output", position: { x: 300, y: 440 }, data: { variable: "note", label: "Incident note" } },
37
+ ],
38
+ edges: [
39
+ { id: "e1", source: "date", target: "compose" },
40
+ { id: "e2", source: "child", target: "compose" },
41
+ { id: "e3", source: "what", target: "compose" },
42
+ { id: "e4", source: "compose", target: "out" },
43
+ ],
44
+ variables: [
45
+ { key: "date", type: "string", scope: "local" },
46
+ { key: "childInitials", type: "string", scope: "local" },
47
+ { key: "summary", type: "string", scope: "local" },
48
+ { key: "note", type: "string", scope: "local" },
49
+ ],
50
+ settings: { storage: "memory", mcp: [] },
51
+ };
52
+ /**
53
+ * A guardrail-aware app: capture a heated draft → hand it to the cotrackpro MCP
54
+ * server's `rewrite_coparent_message` tool (child-centered, trauma-informed,
55
+ * de-escalating by construction) → surface the calmer rewrite. The single
56
+ * `mcpTool` node is the only non-local step; it carries no URL or secret (the
57
+ * host resolves the `cotrackpro` connection). Runs in any MCP-capable host;
58
+ * the offline CLI explains it needs a tool caller.
59
+ */
60
+ const coparentRewrite = {
61
+ id: "coparent-message-rewrite",
62
+ name: "Co-parent message rewrite",
63
+ version: "1.0.0",
64
+ createdAt: STAMP,
65
+ updatedAt: STAMP,
66
+ nodes: [
67
+ { id: "draft", type: "input", position: { x: 40, y: 40 }, data: { variable: "draft", label: "Your draft message" } },
68
+ { id: "rewrite", type: "mcpTool", position: { x: 40, y: 240 }, data: { serverId: "cotrackpro", toolName: "rewrite_coparent_message", argMapping: { message: "draft" }, out: "rewritten", label: "Rewrite (child-centered, trauma-informed)" } },
69
+ { id: "out", type: "output", position: { x: 40, y: 440 }, data: { variable: "rewritten", label: "Calmer rewrite" } },
70
+ ],
71
+ edges: [
72
+ { id: "e1", source: "draft", target: "rewrite" },
73
+ { id: "e2", source: "rewrite", target: "out" },
74
+ ],
75
+ variables: [
76
+ { key: "draft", type: "string", scope: "local" },
77
+ { key: "rewritten", type: "json", scope: "local" },
78
+ ],
79
+ settings: { storage: "memory", mcp: [{ serverId: "cotrackpro", toolName: "rewrite_coparent_message", argMapping: { message: "draft" } }] },
80
+ };
81
+ /** A custody-exchange log: capture the handoff facts → render a neutral, dated entry. */
82
+ const exchangeLog = {
83
+ id: "custody-exchange-log",
84
+ name: "Custody exchange log",
85
+ version: "1.0.0",
86
+ createdAt: STAMP,
87
+ updatedAt: STAMP,
88
+ nodes: [
89
+ { id: "date", type: "input", position: { x: 40, y: 40 }, data: { variable: "date", label: "Date & time" } },
90
+ { id: "place", type: "input", position: { x: 300, y: 40 }, data: { variable: "location", label: "Location" } },
91
+ { id: "child", type: "input", position: { x: 560, y: 40 }, data: { variable: "childInitials", label: "Child (initials)" } },
92
+ { id: "notes", type: "input", position: { x: 300, y: 200 }, data: { variable: "notes", label: "What happened (facts, not characterization)" } },
93
+ { id: "compose", type: "transform", position: { x: 300, y: 380 }, data: { op: "template", literal: "Exchange on {{date}} at {{location}}, involving {{childInitials}}. {{notes}}", out: "entry", label: "Compose log entry" } },
94
+ { id: "out", type: "output", position: { x: 300, y: 560 }, data: { variable: "entry", label: "Log entry" } },
95
+ ],
96
+ edges: [
97
+ { id: "e1", source: "date", target: "compose" },
98
+ { id: "e2", source: "place", target: "compose" },
99
+ { id: "e3", source: "child", target: "compose" },
100
+ { id: "e4", source: "notes", target: "compose" },
101
+ { id: "e5", source: "compose", target: "out" },
102
+ ],
103
+ variables: [
104
+ { key: "date", type: "string", scope: "local" },
105
+ { key: "location", type: "string", scope: "local" },
106
+ { key: "childInitials", type: "string", scope: "local" },
107
+ { key: "notes", type: "string", scope: "local" },
108
+ { key: "entry", type: "string", scope: "local" },
109
+ ],
110
+ settings: { storage: "memory", mcp: [] },
111
+ };
112
+ /** A communication log: record one message exchange → render a neutral, dated entry. */
113
+ const communicationLog = {
114
+ id: "communication-log",
115
+ name: "Communication log",
116
+ version: "1.0.0",
117
+ createdAt: STAMP,
118
+ updatedAt: STAMP,
119
+ nodes: [
120
+ { id: "date", type: "input", position: { x: 40, y: 40 }, data: { variable: "date", label: "Date" } },
121
+ { id: "method", type: "input", position: { x: 300, y: 40 }, data: { variable: "method", label: "How (text, email, call)" } },
122
+ { id: "who", type: "input", position: { x: 560, y: 40 }, data: { variable: "initiatedBy", label: "Who reached out" } },
123
+ { id: "summary", type: "input", position: { x: 300, y: 200 }, data: { variable: "summary", label: "What was said (facts)" } },
124
+ { id: "compose", type: "transform", position: { x: 300, y: 380 }, data: { op: "template", literal: "On {{date}}, via {{method}}, {{initiatedBy}} reached out: {{summary}}", out: "entry", label: "Compose log entry" } },
125
+ { id: "out", type: "output", position: { x: 300, y: 560 }, data: { variable: "entry", label: "Log entry" } },
126
+ ],
127
+ edges: [
128
+ { id: "e1", source: "date", target: "compose" },
129
+ { id: "e2", source: "method", target: "compose" },
130
+ { id: "e3", source: "who", target: "compose" },
131
+ { id: "e4", source: "summary", target: "compose" },
132
+ { id: "e5", source: "compose", target: "out" },
133
+ ],
134
+ variables: [
135
+ { key: "date", type: "string", scope: "local" },
136
+ { key: "method", type: "string", scope: "local" },
137
+ { key: "initiatedBy", type: "string", scope: "local" },
138
+ { key: "summary", type: "string", scope: "local" },
139
+ { key: "entry", type: "string", scope: "local" },
140
+ ],
141
+ settings: { storage: "memory", mcp: [] },
142
+ };
143
+ /**
144
+ * A shared-expense split: enter a total → compute each parent's half on-device
145
+ * (mul by 0.5, then round) → render a neutral note. Shows that no-code can do real
146
+ * arithmetic locally, not just text templates. Illustrative; not financial advice.
147
+ */
148
+ const expenseSplit = {
149
+ id: "shared-expense-split",
150
+ name: "Shared expense split",
151
+ version: "1.0.0",
152
+ createdAt: STAMP,
153
+ updatedAt: STAMP,
154
+ nodes: [
155
+ { id: "amount", type: "input", position: { x: 40, y: 40 }, data: { variable: "amount", label: "Total amount" } },
156
+ { id: "desc", type: "input", position: { x: 300, y: 40 }, data: { variable: "description", label: "What it was for" } },
157
+ { id: "half", type: "transform", position: { x: 40, y: 220 }, data: { op: "mul", literal: 0.5, in: ["amount"], out: "halfRaw", label: "Half of the total" } },
158
+ { id: "round", type: "transform", position: { x: 40, y: 400 }, data: { op: "round", in: ["halfRaw"], out: "share", label: "Round to a whole amount" } },
159
+ { id: "compose", type: "transform", position: { x: 40, y: 580 }, data: { op: "template", literal: "Shared expense — {{description}} (total {{amount}}). Each parent's share: {{share}}.", out: "note", label: "Compose split note" } },
160
+ { id: "out", type: "output", position: { x: 40, y: 760 }, data: { variable: "note", label: "Split note" } },
161
+ ],
162
+ edges: [
163
+ { id: "e1", source: "amount", target: "half" },
164
+ { id: "e2", source: "half", target: "round" },
165
+ { id: "e3", source: "round", target: "compose" },
166
+ { id: "e4", source: "desc", target: "compose" },
167
+ { id: "e5", source: "compose", target: "out" },
168
+ ],
169
+ variables: [
170
+ // Numeric values flow through as strings (the runtime coerces with Number);
171
+ // this matches the types the builder derives, so an export round-trips cleanly.
172
+ { key: "amount", type: "string", scope: "local" },
173
+ { key: "description", type: "string", scope: "local" },
174
+ { key: "halfRaw", type: "string", scope: "local" },
175
+ { key: "share", type: "string", scope: "local" },
176
+ { key: "note", type: "string", scope: "local" },
177
+ ],
178
+ settings: { storage: "memory", mcp: [] },
179
+ };
180
+ /** Every starter app, keyed by id. */
181
+ export const EXAMPLE_APPS = {
182
+ [greeter.id]: greeter,
183
+ [incidentNote.id]: incidentNote,
184
+ [exchangeLog.id]: exchangeLog,
185
+ [communicationLog.id]: communicationLog,
186
+ [expenseSplit.id]: expenseSplit,
187
+ [coparentRewrite.id]: coparentRewrite,
188
+ };
189
+ export const EXAMPLE_IDS = Object.keys(EXAMPLE_APPS);
190
+ /**
191
+ * A fresh, empty app — the "start from scratch" beginning, distinct from the
192
+ * curated templates above (so it's deliberately NOT in `EXAMPLE_APPS`). Shared by
193
+ * the browser builder's "Blank app" option and the CLI's `nocode new blank`, so
194
+ * the two surfaces can't drift. `Date` is browser-safe, keeping the core
195
+ * import-free.
196
+ */
197
+ export function blankApp() {
198
+ const now = new Date().toISOString();
199
+ return {
200
+ id: `app-${Date.now().toString(36)}`,
201
+ name: "Untitled app",
202
+ version: "1.0.0",
203
+ createdAt: now,
204
+ updatedAt: now,
205
+ nodes: [],
206
+ edges: [],
207
+ variables: [],
208
+ settings: { storage: "memory", mcp: [] },
209
+ };
210
+ }
211
+ /** A flat summary for listing (no full graph). */
212
+ export function listExamples() {
213
+ return EXAMPLE_IDS.map((id) => {
214
+ const a = EXAMPLE_APPS[id];
215
+ return { id, name: a.name, nodes: a.nodes.length, edges: a.edges.length };
216
+ });
217
+ }
218
+ //# sourceMappingURL=examples.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"examples.js","sourceRoot":"","sources":["../../src/nocode/examples.ts"],"names":[],"mappings":"AAWA,MAAM,KAAK,GAAG,0BAA0B,CAAC;AAEzC,iFAAiF;AACjF,MAAM,OAAO,GAAc;IACzB,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,OAAO;IAChB,SA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E,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC5E,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,2 @@
1
+ /** No-code app surface: schema + validation + on-device runtime + Mermaid export. */
2
+ export * from "./core.js";
@@ -0,0 +1,3 @@
1
+ /** No-code app surface: schema + validation + on-device runtime + Mermaid export. */
2
+ export * from "./core.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/nocode/index.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,cAAc,WAAW,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Render a no-code app as a Mermaid flowchart. Self-contained on purpose: the
3
+ * import-free invariant forbids importing the diagram core across folders, so
4
+ * this inlines the SAME node-shape convention as `sdk/src/diagram/mermaid.ts`
5
+ * (decision `{}`, terminal `([])`, io `[/ /]`, process `[]`) plus a subroutine
6
+ * `[[ ]]` for the one node that leaves the device — an `mcpTool` call.
7
+ */
8
+ import type { NoCodeApp } from "./types.js";
9
+ export declare function appToMermaid(app: NoCodeApp): string;