carlos-flow 2.12.0 → 2.12.6
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/AGENTS.md +5 -0
- package/CHANGELOG.md +660 -631
- package/README.md +34 -527
- package/README.zh.md +34 -527
- package/TRIGGER_GUIDE.md +2 -2
- package/bridge/mcp-bridge.js +203 -203
- package/check-all.sh +0 -0
- package/ghost.json +32 -1
- package/package.json +114 -113
- package/plugins/carlos-flow-trigger.js +215 -215
- package/scripts/check-artifacts.mjs +7 -0
- package/scripts/check-no-dead-handler.mjs +87 -87
- package/scripts/check-refs.mjs +10 -0
- package/scripts/check-stubs.mjs +90 -0
- package/scripts/check-templates.mjs +126 -126
- package/scripts/clean-readme-noise.mjs +53 -53
- package/scripts/install-hooks.mjs +166 -166
- package/scripts/lang-audit.mjs +172 -172
- package/scripts/mutation-check.mjs +483 -483
- package/scripts/release.mjs +6 -1
- package/scripts/sync-readme.mjs +102 -102
- package/scripts/verify-activation-e2e.sh +55 -55
- package/smoke-test.js +142 -142
- package/src/card.js +296 -288
- package/src/commander.js +10 -0
- package/src/dispatch.js +557 -548
- package/src/index.js +1713 -1686
- package/src/profiles.js +17 -0
- package/src/protocol.js +95 -85
- package/src/state.js +930 -898
- package/src/trigger.js +909 -909
package/package.json
CHANGED
|
@@ -1,113 +1,114 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "carlos-flow",
|
|
3
|
-
"version": "2.12.
|
|
4
|
-
"description": "Carlos 工作流 — AI 编码 Agent 的机械门禁。留痕/派发/验证/裁定/审计/还原,约束写在代码里而非提示词里。单一包支持 Cindy/OpenCode/Cursor/Cline/VS Code/Claude Desktop。",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "src/index.js",
|
|
7
|
-
"bin": {
|
|
8
|
-
"carlos-flow": "client/carlos.js",
|
|
9
|
-
"carlos-flow-cindy": "client/carlos.js",
|
|
10
|
-
"carlos-flow-opencode": "client/carlos.js"
|
|
11
|
-
},
|
|
12
|
-
"exports": {
|
|
13
|
-
".": "./src/index.js",
|
|
14
|
-
"./cindy": "./ghost.json",
|
|
15
|
-
"./opencode": "./opencode.json",
|
|
16
|
-
"./trigger-config": "./trigger-config.usable.json"
|
|
17
|
-
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"test": "node test/smoke.js",
|
|
20
|
-
"test:e2e": "node test/e2e-carlos.mjs",
|
|
21
|
-
"test:baseline": "node test/audit-baseline.mjs",
|
|
22
|
-
"test:p0": "node test/p0-gates.mjs",
|
|
23
|
-
"test:trigger": "node test/trigger-e2e.mjs",
|
|
24
|
-
"test:concurrency": "node test/concurrency-e2e.mjs",
|
|
25
|
-
"test:
|
|
26
|
-
"test:
|
|
27
|
-
"test:
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"check:
|
|
31
|
-
"check:
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"init:
|
|
39
|
-
"init:
|
|
40
|
-
"init:
|
|
41
|
-
"init:
|
|
42
|
-
"init:
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"check:
|
|
49
|
-
"check:
|
|
50
|
-
"
|
|
51
|
-
"test:
|
|
52
|
-
"test:
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"opencode.json
|
|
97
|
-
".
|
|
98
|
-
"
|
|
99
|
-
"trigger-config.
|
|
100
|
-
"
|
|
101
|
-
"README.
|
|
102
|
-
"README.
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "carlos-flow",
|
|
3
|
+
"version": "2.12.6",
|
|
4
|
+
"description": "Carlos 工作流 — AI 编码 Agent 的机械门禁。留痕/派发/验证/裁定/审计/还原,约束写在代码里而非提示词里。单一包支持 Cindy/OpenCode/Cursor/Cline/VS Code/Claude Desktop。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "src/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"carlos-flow": "client/carlos.js",
|
|
9
|
+
"carlos-flow-cindy": "client/carlos.js",
|
|
10
|
+
"carlos-flow-opencode": "client/carlos.js"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./src/index.js",
|
|
14
|
+
"./cindy": "./ghost.json",
|
|
15
|
+
"./opencode": "./opencode.json",
|
|
16
|
+
"./trigger-config": "./trigger-config.usable.json"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"test": "node test/smoke.js",
|
|
20
|
+
"test:e2e": "node test/e2e-carlos.mjs",
|
|
21
|
+
"test:baseline": "node test/audit-baseline.mjs",
|
|
22
|
+
"test:p0": "node test/p0-gates.mjs",
|
|
23
|
+
"test:trigger": "node test/trigger-e2e.mjs",
|
|
24
|
+
"test:concurrency": "node test/concurrency-e2e.mjs",
|
|
25
|
+
"test:ui": "node test/verify-ui.mjs",
|
|
26
|
+
"test:acceptance": "node test/e2e-acceptance.mjs",
|
|
27
|
+
"test:all": "npm run test && npm run test:baseline && npm run test:e2e && npm run test:p0 && npm run test:trigger && npm run test:concurrency && npm run test:acceptance && npm run test:gate && npm run test:stale && npm run test:scope && npm run test:audit && npm run test:bridge && npm run test:ui",
|
|
28
|
+
"test:mutation": "node scripts/mutation-check.mjs",
|
|
29
|
+
"sync:readme": "node scripts/sync-readme.mjs",
|
|
30
|
+
"check:readme": "node scripts/sync-readme.mjs --check",
|
|
31
|
+
"check:identity": "node scripts/check-repo-parity.mjs",
|
|
32
|
+
"check:parity": "node scripts/check-repo-parity.mjs",
|
|
33
|
+
"clean:readme": "node scripts/clean-readme-noise.mjs README.md README.zh.md README.en.md && npm run sync:readme",
|
|
34
|
+
"prepublishOnly": "npm run check:readme",
|
|
35
|
+
"start:bridge": "node bridge/mcp-bridge.js",
|
|
36
|
+
"lint": "echo \"no linter configured\"",
|
|
37
|
+
"check:anchors": "node scripts/check-mutant-anchors.mjs",
|
|
38
|
+
"init:cindy": "node client/carlos.js init --target cindy",
|
|
39
|
+
"init:opencode": "node client/carlos.js init --target opencode",
|
|
40
|
+
"init:cursor": "node client/carlos.js init --target cursor",
|
|
41
|
+
"init:cline": "node client/carlos.js init --target cline",
|
|
42
|
+
"init:vscode": "node client/carlos.js init --target vscode",
|
|
43
|
+
"init:claude": "node client/carlos.js init --target claude",
|
|
44
|
+
"check:lang": "node scripts/lang-audit.mjs",
|
|
45
|
+
"test:lang": "node test/lang-audit.test.mjs",
|
|
46
|
+
"check:full": "node scripts/full-audit.mjs",
|
|
47
|
+
"test:package": "node test/package-e2e.mjs",
|
|
48
|
+
"check:claims": "node scripts/check-claims.mjs",
|
|
49
|
+
"check:params": "node scripts/check-params.mjs",
|
|
50
|
+
"check:no-dead-handler": "node scripts/check-no-dead-handler.mjs",
|
|
51
|
+
"test:scope": "node test/scope-enforcement.mjs",
|
|
52
|
+
"test:audit": "node test/audit-chain.mjs",
|
|
53
|
+
"test:bridge": "node test/bridge-identity.mjs",
|
|
54
|
+
"sync:version": "node scripts/sync-version.mjs",
|
|
55
|
+
"check:version": "node scripts/check-repo-parity.mjs",
|
|
56
|
+
"test:gate": "node test/publish-gate.test.mjs",
|
|
57
|
+
"install:hooks": "node scripts/install-hooks.mjs",
|
|
58
|
+
"check:hooks": "node scripts/install-hooks.mjs --check",
|
|
59
|
+
"test:stale": "node test/verify-stale.test.mjs",
|
|
60
|
+
"check:templates": "node scripts/check-templates.mjs"
|
|
61
|
+
},
|
|
62
|
+
"keywords": [
|
|
63
|
+
"carlos",
|
|
64
|
+
"workflow",
|
|
65
|
+
"mcp",
|
|
66
|
+
"cindy",
|
|
67
|
+
"opencode",
|
|
68
|
+
"gate",
|
|
69
|
+
"audit",
|
|
70
|
+
"trigger"
|
|
71
|
+
],
|
|
72
|
+
"author": "Carlos Flow Contributors",
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"repository": {
|
|
75
|
+
"type": "git",
|
|
76
|
+
"url": "https://github.com/skyer-now/carlos-flow.git"
|
|
77
|
+
},
|
|
78
|
+
"bugs": {
|
|
79
|
+
"url": "https://github.com/skyer-now/carlos-flow/issues"
|
|
80
|
+
},
|
|
81
|
+
"homepage": "https://github.com/skyer-now/carlos-flow#readme",
|
|
82
|
+
"engines": {
|
|
83
|
+
"node": ">=22.0.0"
|
|
84
|
+
},
|
|
85
|
+
"dependencies": {
|
|
86
|
+
"@modelcontextprotocol/sdk": "^1.29.0"
|
|
87
|
+
},
|
|
88
|
+
"files": [
|
|
89
|
+
"client/",
|
|
90
|
+
"src/",
|
|
91
|
+
"bridge/",
|
|
92
|
+
"plugins/",
|
|
93
|
+
"scripts/",
|
|
94
|
+
"templates/",
|
|
95
|
+
"ghost.json",
|
|
96
|
+
"opencode.json",
|
|
97
|
+
"opencode.json.template",
|
|
98
|
+
".mcprc.template",
|
|
99
|
+
"trigger-config.usable.json",
|
|
100
|
+
"trigger-config.example.json",
|
|
101
|
+
"README.md",
|
|
102
|
+
"README.zh.md",
|
|
103
|
+
"README.en.md",
|
|
104
|
+
"TRIGGER_GUIDE.md",
|
|
105
|
+
"MIGRATION.md",
|
|
106
|
+
"CHANGELOG.md",
|
|
107
|
+
"LICENSE",
|
|
108
|
+
"AGENTS.md",
|
|
109
|
+
"INSTALL.md",
|
|
110
|
+
"RELEASE_NOTES.md",
|
|
111
|
+
"check-all.sh",
|
|
112
|
+
"smoke-test.js"
|
|
113
|
+
]
|
|
114
|
+
}
|