@tuongaz/seeflow 0.1.16 → 0.1.18
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/package.json
CHANGED
|
@@ -1,63 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"zod": "^3.23.8",
|
|
56
|
-
"zod-to-json-schema": "^3.25.2"
|
|
57
|
-
},
|
|
58
|
-
"devDependencies": {
|
|
59
|
-
"@types/bun": "^1.1.14",
|
|
60
|
-
"@types/dagre": "^0.7.54",
|
|
61
|
-
"typescript": "^5.6.3"
|
|
62
|
-
}
|
|
2
|
+
"name": "@tuongaz/seeflow",
|
|
3
|
+
"version": "0.1.18",
|
|
4
|
+
"description": "Local studio that hosts file-defined demos as React Flow canvases wired to a running app via REST + SSE + Zod schema.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"seeflow",
|
|
7
|
+
"react-flow",
|
|
8
|
+
"diagram",
|
|
9
|
+
"architecture",
|
|
10
|
+
"playable",
|
|
11
|
+
"studio",
|
|
12
|
+
"hono",
|
|
13
|
+
"bun"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/tuongaz/seeflow#readme",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/tuongaz/seeflow.git",
|
|
19
|
+
"directory": "apps/studio"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/tuongaz/seeflow/issues"
|
|
23
|
+
},
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"author": "Tuong Le",
|
|
26
|
+
"type": "module",
|
|
27
|
+
"bin": {
|
|
28
|
+
"seeflow": "bin/seeflow",
|
|
29
|
+
"seeflow-mcp": "bin/seeflow-mcp"
|
|
30
|
+
},
|
|
31
|
+
"files": ["bin", "src", "!src/**/*.test.ts", "dist/web", "public", "examples", "README.md"],
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=18"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"dev": "NODE_ENV=development bun --hot run src/cli.ts start",
|
|
38
|
+
"start": "bun run src/cli.ts start",
|
|
39
|
+
"test": "bun test",
|
|
40
|
+
"build:web": "cd ../web && bun run build",
|
|
41
|
+
"prepublishOnly": "bun run build:web && cp ../../README.md ./README.md"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
45
|
+
"dagre": "^0.8.5",
|
|
46
|
+
"hono": "^4.6.14",
|
|
47
|
+
"zod": "^3.23.8",
|
|
48
|
+
"zod-to-json-schema": "^3.25.2"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/bun": "^1.1.14",
|
|
52
|
+
"@types/dagre": "^0.7.54",
|
|
53
|
+
"typescript": "^5.6.3"
|
|
54
|
+
}
|
|
63
55
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Auto-generated by seeflow register. Safe to commit; safe to delete.
|
|
2
|
-
// Re-running register will not overwrite this file.
|
|
3
|
-
export type EmitStatus = 'running' | 'done' | 'error';
|
|
4
|
-
|
|
5
|
-
export interface EmitOptions {
|
|
6
|
-
runId?: string;
|
|
7
|
-
payload?: unknown;
|
|
8
|
-
studioUrl?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const readEnv = (key: string): string | undefined => {
|
|
12
|
-
const proc = (globalThis as { process?: { env?: Record<string, string | undefined> } }).process;
|
|
13
|
-
return proc?.env?.[key];
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export async function emit(
|
|
17
|
-
demoId: string,
|
|
18
|
-
nodeId: string,
|
|
19
|
-
status: EmitStatus,
|
|
20
|
-
opts: EmitOptions = {},
|
|
21
|
-
): Promise<void> {
|
|
22
|
-
const base = (
|
|
23
|
-
opts.studioUrl ?? readEnv('SEEFLOW_STUDIO_URL') ?? 'http://localhost:4321'
|
|
24
|
-
).replace(/\/+$/, '');
|
|
25
|
-
await fetch(`${base}/api/emit`, {
|
|
26
|
-
method: 'POST',
|
|
27
|
-
headers: { 'content-type': 'application/json' },
|
|
28
|
-
body: JSON.stringify({ demoId, nodeId, status, runId: opts.runId, payload: opts.payload }),
|
|
29
|
-
});
|
|
30
|
-
}
|