@fudanda/workflow 2.20261024.1-beta.1 → 2.20261024.1-beta.2

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.
@@ -1,7 +1,7 @@
1
1
  import type { NodeRunObservation as AutomationNodeRun } from './observation-types';
2
2
  import { type WorkflowThemeColors } from './theme';
3
3
  import { type ReactNode } from 'react';
4
- import type { WorkflowGraph, AutomationNodeSpec, WorkflowValidationIssue, AutomationModel } from '@fudanda/shared/automation';
4
+ import type { WorkflowGraph, AutomationNodeSpec, WorkflowValidationIssue, AutomationModel } from '@fudanda/client/automation';
5
5
  import { type WorkflowPromptKit } from './prompt-kit';
6
6
  import './styles.css';
7
7
  import './coze/styles.css';
@@ -1,5 +1,5 @@
1
1
  import type { NodeRunObservation as AutomationNodeRun } from './observation-types';
2
- import type { WorkflowGraph, WorkflowNode, AutomationRun } from '@fudanda/shared/automation';
2
+ import type { WorkflowGraph, WorkflowNode, AutomationRun } from '@fudanda/client/automation';
3
3
  /** Canvas IDs are transient. Persisted node IDs and references remain local to their graph. */
4
4
  export declare const canvasNodeId: (path: readonly string[], id: string) => string;
5
5
  export declare const bodyCanvasId: (id: string) => string;
@@ -69,9 +69,9 @@ export declare function workflowNodeTestRuns(run?: {
69
69
  dataOmitted?: boolean;
70
70
  durationMs: number;
71
71
  error: string;
72
- preview?: import("@fudanda/shared/automation").AutomationRunPreview;
72
+ preview?: import("@fudanda/client/automation").AutomationRunPreview;
73
73
  status: "pending" | "running" | "paused" | "succeeded" | "failed" | "skipped";
74
- timing?: import("@fudanda/shared/automation").AutomationNodeTiming;
74
+ timing?: import("@fudanda/client/automation").AutomationNodeTiming;
75
75
  input: Record<string, unknown>;
76
76
  output: Record<string, unknown>;
77
77
  nodeId: string;
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
9
9
  import { createBackgroundPlugin as Ur } from "@flowgram.ai/background-plugin";
10
10
  import { FlowMinimapService as Wr, MinimapRender as Gr, createMinimapPlugin as Kr } from "@flowgram.ai/minimap-plugin";
11
11
  import { createFreeSnapPlugin as qr } from "@flowgram.ai/free-snap-plugin";
12
- import { annotationDocument as Jr, bindingSchema as Yr, builtinNodeDefaults as Xr, executionPolicySchema as Zr, inventoryThresholdGraph as Qr, safeAnnotationLink as $r, supportsExecutionPolicy as ei } from "@fudanda/shared/automation";
12
+ import { annotationDocument as Jr, bindingSchema as Yr, builtinNodeDefaults as Xr, executionPolicySchema as Zr, inventoryThresholdGraph as Qr, safeAnnotationLink as $r, supportsExecutionPolicy as ei } from "@fudanda/client/automation";
13
13
  import { Validator as ti } from "@cfworker/json-schema";
14
14
  import Y from "classnames";
15
15
  import { useHover as ni, useMemoizedFn as ri } from "ahooks";
@@ -1,4 +1,4 @@
1
- import type { ApiAutomationNodeRun } from '@fudanda/shared/api/automation';
1
+ import type { ApiAutomationNodeRun } from '@fudanda/client/api/automation';
2
2
  /** Read-only canvas observations may come from a host or a native JSON response. */
3
3
  export type NodeRunObservation = Omit<ApiAutomationNodeRun, 'input' | 'output'> & {
4
4
  input: Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- import type { AutomationPrompt, AutomationPromptVersion } from '@fudanda/shared/automation';
1
+ import type { AutomationPrompt, AutomationPromptVersion } from '@fudanda/client/automation';
2
2
  /** The host owns authenticated transport and persistence; the editor only invokes props. */
3
3
  export interface WorkflowPromptKit {
4
4
  list(query: {
@@ -1 +1 @@
1
- export { inventoryThresholdGraph } from "@fudanda/shared/automation";
1
+ export { inventoryThresholdGraph } from "@fudanda/client/automation";
package/package.json CHANGED
@@ -1,105 +1,106 @@
1
- {
2
- "name": "@fudanda/workflow",
3
- "version": "2.20261024.1-beta.1",
4
- "description": "Composable ArcBase business workflow graph designer.",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/fudanda/arcbase.git",
8
- "directory": "packages/workflow"
9
- },
10
- "type": "module",
11
- "license": "MIT",
12
- "sideEffects": [
13
- "**/*.css"
14
- ],
15
- "files": [
16
- "dist",
17
- "README.md",
18
- "LICENSE",
19
- "THIRD-PARTY-NOTICES.md",
20
- "vendor/coze"
21
- ],
22
- "main": "./dist/index.js",
23
- "types": "./dist/index.d.ts",
24
- "exports": {
25
- ".": {
26
- "arcbase-source": "./src/index.ts",
27
- "types": "./dist/index.d.ts",
28
- "development": "./src/index.ts",
29
- "import": "./dist/index.js"
30
- },
31
- "./styles.css": "./dist/styles.css",
32
- "./chrome": {
33
- "arcbase-source": "./src/chrome.ts",
34
- "types": "./dist/chrome.d.ts",
35
- "development": "./src/chrome.ts",
36
- "import": "./dist/chrome.js"
37
- },
38
- "./core": {
39
- "arcbase-source": "./src/core.ts",
40
- "types": "./dist/core.d.ts",
41
- "development": "./src/core.ts",
42
- "import": "./dist/core.js"
43
- }
44
- },
45
- "scripts": {
46
- "build": "node ../../scripts/clean-package.mjs && node scripts/check-coze.mjs && node scripts/coze-source-styles.mjs --check && tsc -p tsconfig.json && vite build && node scripts/check-coze-css.mjs && node scripts/types.mjs",
47
- "check:types": "tsc -p tsconfig.json --noEmit",
48
- "lint": "eslint src --max-warnings 0",
49
- "test": "node --test scripts/scoped-coze-css.test.mjs && vitest run",
50
- "vendor:coze": "node scripts/vendor-coze.mjs && node scripts/port-coze-ui.mjs && node scripts/copy-coze-source.mjs",
51
- "generate:coze-css": "node scripts/coze-source-styles.mjs"
52
- },
53
- "peerDependencies": {
54
- "@douyinfe/semi-ui": "^2.0.0",
55
- "react": "^19.0.0",
56
- "react-dom": "^19.0.0"
57
- },
58
- "dependencies": {
59
- "@cfworker/json-schema": "4.1.1",
60
- "@codemirror/autocomplete": "6.20.3",
61
- "@codemirror/commands": "6.11.1",
62
- "@codemirror/lang-json": "6.0.2",
63
- "@codemirror/state": "6.7.6",
64
- "@codemirror/view": "6.43.14",
65
- "@fudanda/shared": "2.20261024.1-beta.1",
66
- "@flowgram.ai/background-plugin": "1.0.15",
67
- "@flowgram.ai/free-layout-editor": "1.0.15",
68
- "@flowgram.ai/free-snap-plugin": "1.0.15",
69
- "@flowgram.ai/minimap-plugin": "1.0.15",
70
- "ahooks": "3.10.0",
71
- "bignumber.js": "9.3.1",
72
- "classnames": "2.5.1",
73
- "dnd-core": "16.0.1",
74
- "lodash-es": "4.18.1",
75
- "nanoid": "5.1.11",
76
- "react-dnd": "16.0.1",
77
- "react-dnd-html5-backend": "16.0.1",
78
- "slate": "0.126.2",
79
- "slate-dom": "0.124.0",
80
- "slate-history": "0.113.1",
81
- "slate-react": "0.127.1",
82
- "zod": "^4.6.5",
83
- "zustand": "4.5.7"
84
- },
85
- "devDependencies": {
86
- "@coze-arch/coze-design": "0.0.6-alpha.346d77",
87
- "@eslint/js": "^10.0.1",
88
- "@testing-library/react": "^16.3.3",
89
- "@types/lodash-es": "4.17.12",
90
- "@types/react": "^19.0.0",
91
- "@types/react-dom": "^19.0.0",
92
- "eslint": "^10.12.0",
93
- "less": "4.9.1",
94
- "postcss": "8.5.29",
95
- "tailwindcss": "3.4.17",
96
- "typescript": "npm:@typescript/typescript6@^6.0.2",
97
- "typescript-eslint": "^8.71.1",
98
- "vite": "^8.3.3",
99
- "vitest": "^5.0.3"
100
- },
101
- "publishConfig": {
102
- "access": "public",
103
- "registry": "https://registry.npmjs.org/"
104
- }
105
- }
1
+ {
2
+ "name": "@fudanda/workflow",
3
+ "version": "2.20261024.1-beta.2",
4
+ "description": "Composable ArcBase business workflow graph designer.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/fudanda/arcbase.git",
8
+ "directory": "packages/workflow"
9
+ },
10
+ "type": "module",
11
+ "license": "MIT",
12
+ "sideEffects": [
13
+ "**/*.css"
14
+ ],
15
+ "files": [
16
+ "dist",
17
+ "README.md",
18
+ "LICENSE",
19
+ "THIRD-PARTY-NOTICES.md",
20
+ "vendor/coze"
21
+ ],
22
+ "main": "./dist/index.js",
23
+ "types": "./dist/index.d.ts",
24
+ "exports": {
25
+ ".": {
26
+ "arcbase-source": "./src/index.ts",
27
+ "types": "./dist/index.d.ts",
28
+ "development": "./src/index.ts",
29
+ "import": "./dist/index.js"
30
+ },
31
+ "./styles.css": "./dist/styles.css",
32
+ "./chrome": {
33
+ "arcbase-source": "./src/chrome.ts",
34
+ "types": "./dist/chrome.d.ts",
35
+ "development": "./src/chrome.ts",
36
+ "import": "./dist/chrome.js"
37
+ },
38
+ "./core": {
39
+ "arcbase-source": "./src/core.ts",
40
+ "types": "./dist/core.d.ts",
41
+ "development": "./src/core.ts",
42
+ "import": "./dist/core.js"
43
+ }
44
+ },
45
+ "scripts": {
46
+ "build": "node ../../scripts/clean-package.mjs && node scripts/check-coze.mjs && node scripts/coze-source-styles.mjs --check && tsc -p tsconfig.json && vite build && node scripts/check-coze-css.mjs && node scripts/types.mjs && node ../../scripts/assemble-sdk.mjs workflow",
47
+ "check:types": "tsc -p tsconfig.json --noEmit",
48
+ "lint": "eslint src --max-warnings 0",
49
+ "test": "node --test scripts/scoped-coze-css.test.mjs && vitest run",
50
+ "vendor:coze": "node scripts/vendor-coze.mjs && node scripts/port-coze-ui.mjs && node scripts/copy-coze-source.mjs",
51
+ "generate:coze-css": "node scripts/coze-source-styles.mjs"
52
+ },
53
+ "peerDependencies": {
54
+ "@douyinfe/semi-ui": "^2.0.0",
55
+ "react": "^19.0.0",
56
+ "react-dom": "^19.0.0"
57
+ },
58
+ "dependencies": {
59
+ "@cfworker/json-schema": "4.1.1",
60
+ "@codemirror/autocomplete": "6.20.3",
61
+ "@codemirror/commands": "6.11.1",
62
+ "@codemirror/lang-json": "6.0.2",
63
+ "@codemirror/state": "6.7.6",
64
+ "@codemirror/view": "6.43.14",
65
+ "@flowgram.ai/background-plugin": "1.0.15",
66
+ "@flowgram.ai/free-layout-editor": "1.0.15",
67
+ "@flowgram.ai/free-snap-plugin": "1.0.15",
68
+ "@flowgram.ai/minimap-plugin": "1.0.15",
69
+ "ahooks": "3.10.0",
70
+ "bignumber.js": "9.3.1",
71
+ "classnames": "2.5.1",
72
+ "dnd-core": "16.0.1",
73
+ "lodash-es": "4.18.1",
74
+ "nanoid": "5.1.11",
75
+ "react-dnd": "16.0.1",
76
+ "react-dnd-html5-backend": "16.0.1",
77
+ "slate": "0.126.2",
78
+ "slate-dom": "0.124.0",
79
+ "slate-history": "0.113.1",
80
+ "slate-react": "0.127.1",
81
+ "zod": "^4.6.5",
82
+ "zustand": "4.5.7",
83
+ "@fudanda/client": "2.20261024.1-beta.2"
84
+ },
85
+ "devDependencies": {
86
+ "@coze-arch/coze-design": "0.0.6-alpha.346d77",
87
+ "@eslint/js": "^10.0.1",
88
+ "@testing-library/react": "^16.3.3",
89
+ "@types/lodash-es": "4.17.12",
90
+ "@types/react": "^19.0.0",
91
+ "@types/react-dom": "^19.0.0",
92
+ "eslint": "^10.12.0",
93
+ "less": "4.9.1",
94
+ "postcss": "8.5.29",
95
+ "tailwindcss": "3.4.17",
96
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
97
+ "typescript-eslint": "^8.71.1",
98
+ "vite": "^8.3.3",
99
+ "vitest": "^5.0.3",
100
+ "@fudanda/shared": "2.20261024.1-beta.2"
101
+ },
102
+ "publishConfig": {
103
+ "access": "public",
104
+ "registry": "https://registry.npmjs.org/"
105
+ }
106
+ }