intentdna 1.9.0-rc.2 → 1.9.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.
@@ -9,7 +9,7 @@
9
9
  {
10
10
  "name": "intentdna",
11
11
  "description": "Declarative policy layer for AI agent behavior with plugin-managed hook runtime for Claude Code.",
12
- "version": "1.9.0-rc.2",
12
+ "version": "1.9.0",
13
13
  "author": {
14
14
  "name": "Samuel"
15
15
  },
@@ -25,5 +25,5 @@
25
25
  ]
26
26
  }
27
27
  ],
28
- "version": "1.9.0-rc.2"
28
+ "version": "1.9.0"
29
29
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intentdna",
3
- "version": "1.9.0-rc.2",
3
+ "version": "1.9.0",
4
4
  "description": "Declarative policy layer for AI agent behavior",
5
5
  "author": {
6
6
  "name": "Samuel"
package/README.md CHANGED
@@ -1,58 +1,44 @@
1
1
  # IntentDNA
2
2
 
3
- **Governed AI work system for turning repeated AI work methods into reviewed, distributable, locally executable workflow assets.**
3
+ **把真实、重复、可验证的 AI 工作方法,做成可独立运行的工作流 CLI。**
4
4
 
5
- IntentDNA helps teams describe how useful AI work should happen, convert that method into a governed workflow asset, install it into local AI harnesses, collect evidence, review rollout, and improve the asset without moving runtime authority into a web dashboard.
5
+ [English](#english) | [路线转换文章](https://wanglushan.cn/blog/intentdna-route-reset-from-platform-to-workflow-cli) | [历史 Online 看板](https://online-plum-one.vercel.app)
6
6
 
7
- The product contract is:
7
+ ## 当前路线
8
+
9
+ IntentDNA 的目标没有变:让个人和团队完成工作的专业方法能够被复用、验证、分发和持续改进。改变的是交付顺序。
10
+
11
+ 过去我们优先建设跨 Harness 声明、编译器、Adapter、Hooks、资产市场、组织治理和 Online 控制面。工程证明了这些机制可以成立,但没有证明团队应先采用一套平台。现在的路线是:
8
12
 
9
13
  ```text
10
- local dna is runtime truth
11
- marketplace distributes workflow assets
12
- online/SaaS manages organization evidence and lifecycle
14
+ 真实研发任务
15
+ -> 专用工作流 CLI
16
+ -> 真实使用、测试与评估
17
+ -> 一批有效的工作流资产
18
+ -> 从已经出现的重复问题中提炼公共协议和治理能力
13
19
  ```
14
20
 
15
- IntentDNA is not a model company, generic agent framework, prompt library, canvas automation product, or SaaS workflow executor.
21
+ 因此,IntentDNA 现在是一个 **workflow CLI foundation**,而不是通用 Agent 平台、统一工作流 DSL SaaS 执行器。优先级是先结束一个具体任务,再考虑跨工具抽象。
22
+
23
+ 完整背景见《[IntentDNA 路线重置:从平台优先到工作流 CLI](https://wanglushan.cn/blog/intentdna-route-reset-from-platform-to-workflow-cli)》。此前的 [IntentDNA Online 看板](https://online-plum-one.vercel.app) 作为历史产品证据继续保留;它展示了资产选择、安装指引和证据投影,但不是当前运行时,也不执行工作流。
16
24
 
17
- ## Install or update
25
+ ## 安装
18
26
 
19
27
  ```bash
20
- npm install --global intentdna@1.8.5
28
+ npm install --global intentdna@latest
21
29
  dna --version
22
30
  ```
23
31
 
24
- Version `1.8.5` keeps Claude plugin Hook delivery in `hooks/hooks.json`: plugin sync does not register project `settings.json` Hooks, retracts exact stale bin-mode `dna-hook` entries once, and leaves user settings untouched in steady state. Online generates copyable local commands only; you still run and review them in your own project.
25
-
26
- ## Product Shape
27
-
28
- IntentDNA has three connected products:
29
-
30
- | Surface | What it owns | What it must not become |
31
- | --- | --- | --- |
32
- | Local npm foundation | `dna`, `dna-hook`, compiler, adapters, sync, reports, local runtime evidence | A thin demo wrapper or optional afterthought |
33
- | Workflow asset marketplace | Public, personal, `internal_ready`, and later SaaS-backed `org_private` workflow assets | Runtime execution, approval, or policy authority |
34
- | Online/SaaS console | Accounts, organization evidence, receipts, audit, publication lifecycle, readiness projection | A workflow runner or `allow` / `warn` / `block` / `validate` engine |
32
+ Claude Code 用户还可以安装随 npm 同版本发布的插件:
35
33
 
36
- The closed loop is:
37
-
38
- ```text
39
- dogfood evidence
40
- -> workflow asset
41
- -> marketplace listing
42
- -> local install/sync
43
- -> harness execution
44
- -> local runtime evidence
45
- -> signed report upload
46
- -> cloud receipt/audit
47
- -> manager review
48
- -> asset improvement
34
+ ```bash
35
+ claude plugin marketplace add lushan1314/intentdna-repo
36
+ claude plugin install intentdna@intentdna
49
37
  ```
50
38
 
51
- ## Start By Role
39
+ ## 快速开始
52
40
 
53
- ### Developer
54
-
55
- Use this when you want one governed workflow running locally without waiting for cloud setup:
41
+ 从一个真实任务和一个现有资产开始:
56
42
 
57
43
  ```bash
58
44
  dna quickstart --asset flutter-rewrite --sync-target codex
@@ -61,75 +47,106 @@ dna templates show flutter-rewrite
61
47
  dna init --template flutter-rewrite
62
48
  dna sync --codex --dry-run
63
49
  dna sync --codex
64
- # run the synced workflow in Codex CLI or Claude Code
50
+ ```
51
+
52
+ 在 Codex CLI 或 Claude Code 中运行同步后的工作流。执行后可在本地打包、签名并验证证据:
53
+
54
+ ```bash
65
55
  dna report package --json
66
56
  dna report sign --json
67
57
  dna report verify <envelope-path> --json
68
58
  ```
69
59
 
70
- `dna quickstart` is read-only guidance: it prints the local route without initializing, syncing, running a workflow, packaging reports, signing evidence, uploading evidence, or calling Online/Supabase. Local-only use does not require Supabase. `dna sync` installs, distributes, and injects artifacts only; execution happens in the selected harness. `dna-hook` and local runtime evidence remain runtime truth.
60
+ `dna quickstart` 只打印指引;`dna sync` 只安装和同步资产。真正的执行、权限判断和验证仍发生在本地项目与所选 Harness 中。
71
61
 
72
- ### Team Lead / Manager
62
+ ## 能力边界
73
63
 
74
- Use this when you need to see which workflow assets are active, blocked, stale, or ready to roll out:
64
+ IntentDNA 当前保留并继续验证这些能力:
75
65
 
76
- ```bash
77
- dna org intake "<team/project/workflow intent>" --json
78
- dna org review --json
79
- dna org rollout --json
80
- dna org receipt --json
66
+ - 将任务边界、输入输出、工具、人工确认点和验证器封装为版本化工作流资产;
67
+ - 把资产同步到 Codex CLI Claude Code 等执行环境;
68
+ - Controller、检查点、审查和恢复机制完成可持续运行;
69
+ - 记录本地运行事实,签名并验证证据;
70
+ - 从真实 Skills、脚本和源码中提炼候选资产,并保留来源和许可证信息。
71
+
72
+ IntentDNA 不做这些事情:
73
+
74
+ - 不重造通用模型循环或 Agent runtime;
75
+ - 不要求所有工作流先进入统一 DSL;
76
+ - 不把 Online、市场或 Supabase 当作本地运行权限的来源;
77
+ - 不用模型的“已完成”声明替代确定性验证。
78
+
79
+ ## Online 与历史资产
80
+
81
+ 当前权威关系是:
82
+
83
+ ```text
84
+ 本地 workflow CLI / dna = 运行事实
85
+ Harness = 实际执行环境
86
+ Online = 历史看板与可选的资产/证据投影
87
+ archive = 路线演进证据,不是当前产品承诺
81
88
  ```
82
89
 
83
- Manager review is a read-only decision surface until an explicit local command changes project or organization state. `internal_ready` means adoption candidate, not org-private SaaS visibility. A later `org_private` publication requires auth, RLS, storage, permissions, audit, and live tests.
90
+ 仓库只保留两类文档:少量当前权威文档,以及带日期和索引的历史档案。会话状态、临时提示词、执行日志、IDE workspace `.omx/.omc/.claude/.codex` 运行期文件不进入版本控制。
84
91
 
85
- ### Template Author
92
+ ## 文档
86
93
 
87
- Use this when a repeated work method should become a reusable workflow asset:
94
+ - [快速开始](docs/quickstart.md)
95
+ - [工作流运行时清单](docs/architecture/workflow-runtime-manifest.md)
96
+ - [产品重置 ADR](docs/decisions/ADR-001-product-reset.md)
97
+ - [历史档案索引](docs/archive/2026H1/INDEX.md)
98
+ - [2026 H2 路线分享](docs/archive/2026H2/sharing/2026-08-01-build-your-workflow-cli.md)
99
+ - [v1.9.0 发布说明](docs/archive/2026H2/release-notes/v1.9.0.md)
88
100
 
89
- ```bash
90
- dna workflow authoring-packet "<workflow intent>" --json --project-dir '<local-project-path>'
91
- # an external agent interviews you and writes .dna/authoring/<asset>.candidate.dna.yaml
92
- dna validate '<local-project-path>/.dna/authoring/<asset>.candidate.dna.yaml'
93
- # after explicit human confirmation, save the same YAML under .dna/templates/
94
- dna assets show '<asset>' --project-dir '<local-project-path>'
95
- dna assets inspect '<asset>' --project-dir '<local-project-path>'
96
- dna sync --project-dir '<local-project-path>' --dry-run
97
- dna sync --project-dir '<local-project-path>' --codex --dry-run
98
-
99
- # after real runs, inspect evidence-backed improvements
100
- dna workflow suggestions '<asset>' --json
101
- dna workflow review-suggestion --from-template '<asset>' --workflow '<workflow-id>' --suggestion '<suggestion-id>' --decision accept --json
102
- dna workflow improve-from-suggestions --from-template '<asset>' --workflow '<workflow-id>' --suggestion '<suggestion-id>' --save-template '<asset-v2>' --json
103
- dna workflow mine '<asset>' --json
104
-
105
- # legacy/example-assisted entry points remain available
106
- dna workflow intake "<workflow intent>" --json
107
- dna workflow route "<workflow intent>" --json
108
- dna workflow draft "<workflow intent>" --json # optional example-clone scaffold fallback
109
- dna workflow edit-plan "<change>" --from-template <template> --save-template <template-v2>
110
- dna assets governance <asset> --json
101
+ ## License
102
+
103
+ Apache-2.0
104
+
105
+ ---
106
+
107
+ <a id="english"></a>
108
+
109
+ ## English
110
+
111
+ **Turn real, repeated, verifiable AI work methods into independently executable workflow CLIs.**
112
+
113
+ [Route reset article (Chinese)](https://wanglushan.cn/blog/intentdna-route-reset-from-platform-to-workflow-cli) | [Historical Online dashboard](https://online-plum-one.vercel.app)
114
+
115
+ ### Current Direction
116
+
117
+ IntentDNA still exists to make professional work methods reusable, testable, distributable, and improvable. What changed is the delivery order.
118
+
119
+ The project previously led with cross-harness declarations, a compiler, adapters, hooks, a marketplace, organization governance, and an Online control plane. That work proved the mechanisms could be built, but it did not prove that teams should adopt a platform first. The current route is:
120
+
121
+ ```text
122
+ real engineering task
123
+ -> task-specific workflow CLI
124
+ -> real use, tests, and evaluation
125
+ -> a portfolio of useful workflow assets
126
+ -> shared protocols and governance extracted from observed repetition
111
127
  ```
112
128
 
113
- Authoring starts from a work method, fit, inputs, outputs, roles, boundaries, handoffs, verifiers, and evidence posture. The external agent authors YAML; deterministic `dna validate` checks it; a human decides whether to save it. Captured evidence can produce suggestions, but only a matching human review receipt can open the next reviewable draft route. Adoption, organization binding, rollout, and sync remain separate.
129
+ IntentDNA is therefore a **workflow CLI foundation**, not a generic agent platform, universal workflow DSL, or SaaS executor. Finish one concrete task first; abstract across tools only when real repetition justifies it.
114
130
 
115
- ### Administrator / Security Buyer
131
+ The full rationale is documented in [IntentDNA Route Reset: From Platform to Workflow CLI](https://wanglushan.cn/blog/intentdna-route-reset-from-platform-to-workflow-cli). The previous [IntentDNA Online dashboard](https://online-plum-one.vercel.app) remains available as historical product evidence. It demonstrates asset selection, setup guidance, and evidence projection, but it is not the current runtime and does not execute workflows.
116
132
 
117
- Use this when you need to verify authority, secrets, audit, and cloud trust boundaries:
133
+ ### Install
118
134
 
119
135
  ```bash
120
- dna cloud credential-check --json
121
- dna cloud contract-check --json
122
- dna cloud edge-check --json
123
- dna cloud deploy-plan --json
136
+ npm install --global intentdna@latest
137
+ dna --version
124
138
  ```
125
139
 
126
- Supabase is auth, persistence, storage, transport, and audit. It is not runtime governance authority. Cloud receipts must keep `runtime_authority=false`. Service role keys, secret key JSON, token pepper, Supabase access tokens, user JWTs, raw CLI API tokens, and token hashes must never be browser-facing product inputs or committed examples.
140
+ Claude Code users can install the plugin released at the same version as npm:
127
141
 
128
- ## Quickstart
142
+ ```bash
143
+ claude plugin marketplace add lushan1314/intentdna-repo
144
+ claude plugin install intentdna@intentdna
145
+ ```
129
146
 
130
- The current local quickstart is maintained in [docs/quickstart.md](docs/quickstart.md).
147
+ ### Quick Start
131
148
 
132
- Short version:
149
+ Start with a real task and an existing asset:
133
150
 
134
151
  ```bash
135
152
  dna quickstart --asset flutter-rewrite --sync-target codex
@@ -138,64 +155,57 @@ dna templates show flutter-rewrite
138
155
  dna init --template flutter-rewrite
139
156
  dna sync --codex --dry-run
140
157
  dna sync --codex
141
- # run in Codex CLI or Claude Code
158
+ ```
159
+
160
+ Run the synced workflow in Codex CLI or Claude Code. Then package, sign, and verify local evidence:
161
+
162
+ ```bash
142
163
  dna report package --json
143
164
  dna report sign --json
144
165
  dna report verify <envelope-path> --json
145
166
  ```
146
167
 
147
- Optional cloud upload is credential-gated and happens only after the signed local envelope verifies:
168
+ `dna quickstart` only prints guidance. `dna sync` only installs and synchronizes assets. Execution, permission decisions, and verification remain in the local project and selected harness.
148
169
 
149
- ```bash
150
- dna cloud credential-check --json
151
- dna cloud deploy-plan --json
152
- dna report upload <envelope-path> --json
153
- ```
170
+ ### Boundaries
154
171
 
155
- ## Core Boundaries
172
+ IntentDNA continues to validate these capabilities:
156
173
 
157
- - Local `dna` and `dna-hook` remain runtime truth.
158
- - Online never executes workflows and never performs `allow`, `warn`, `block`, or `validate`.
159
- - `dna sync` installs, distributes, and injects artifacts; it does not execute workflows.
160
- - Marketplace distributes workflow assets and install plans; it does not approve, install, or execute them.
161
- - Supabase persists identity, reports, receipts, storage refs, and audit events; it does not enforce runtime policy.
162
- - Browser-local imports and Online demo states are projection only until trusted upload verifies them.
163
- - MCP is hidden transport, not a product page or auth surface.
164
- - `org_private` must not appear in the static marketplace catalog before SaaS auth/RLS/storage/permission/audit gates exist.
174
+ - package task boundaries, inputs, outputs, tools, human gates, and verifiers as versioned workflow assets;
175
+ - synchronize assets into execution environments such as Codex CLI and Claude Code;
176
+ - support durable runs with controllers, checkpoints, reviews, and recovery;
177
+ - capture local run facts and produce signed, verifiable evidence;
178
+ - refine candidate assets from real skills, scripts, and source while retaining provenance and license data.
165
179
 
166
- ## Evidence Model
180
+ IntentDNA does not:
167
181
 
168
- IntentDNA separates evidence from authority:
182
+ - rebuild the generic model loop or agent runtime;
183
+ - require every workflow to enter a universal DSL first;
184
+ - make Online, a marketplace, or Supabase the authority for local execution;
185
+ - accept a model's completion claim as a substitute for deterministic verification.
169
186
 
170
- | Evidence | Meaning |
171
- | --- | --- |
172
- | Local report package | Runtime evidence gathered locally from harness and verifier outputs |
173
- | Signed envelope | Local package hash/signature can be checked before upload |
174
- | Local org review receipt | Manager review and publication readiness handoff; not cloud membership proof |
175
- | Cloud ingest receipt | Trusted upload evidence after Supabase function/storage/audit accepts it |
176
- | Online projection | Human-readable status and lifecycle view; not runtime truth |
187
+ ### Online And History
177
188
 
178
- Trusted cloud ingestion may increase persistence and visibility, but it does not move runtime authority away from local `dna-hook` and local runtime evidence.
189
+ The current authority model is:
179
190
 
180
- ## Documentation Map
191
+ ```text
192
+ local workflow CLI / dna = runtime truth
193
+ harness = execution environment
194
+ Online = historical dashboard and optional asset/evidence projection
195
+ archive = route-evolution evidence, not current product commitment
196
+ ```
181
197
 
182
- - [docs/README.md](docs/README.md) - living docs map and two-state documentation rule.
183
- - [docs/quickstart.md](docs/quickstart.md) - local developer quickstart.
184
- - [docs/foundation-runtime.md](docs/foundation-runtime.md) - durable `dna run` Controller, lifecycle, handoff, isolation, and recovery guide.
185
- - [docs/product/milestone-review-protocol.md](docs/product/milestone-review-protocol.md) - lightweight P-stage review protocol.
186
- - [docs/product/online-product-spec.md](docs/product/online-product-spec.md) - Online IA, K5 boundary, forbidden copy, and acceptance.
187
- - [docs/decisions/ADR-001-product-reset.md](docs/decisions/ADR-001-product-reset.md) - product reset decision record.
188
- - [spec/README.md](spec/README.md) - retained technical spec index.
189
- - [docs/archive/2026H1/INDEX.md](docs/archive/2026H1/INDEX.md) - archived references, insights, historical specs, runbooks, and one-time materials.
198
+ The repository keeps only a small living documentation set and dated, indexed historical archives. Session state, temporary prompts, execution logs, IDE workspace data, and runtime files under `.omx/.omc/.claude/.codex` do not belong in version control.
190
199
 
191
- ## Current Maturity
200
+ ### Documentation
192
201
 
193
- - Local foundation: active.
194
- - Template marketplace: active for public/personal assets; `internal_ready` is a review candidate state.
195
- - Org-private marketplace: SaaS-gated; requires Supabase auth/RLS/storage/permissions/audit and live tests.
196
- - Online console: projection/workbench/readiness surface; not workflow runtime.
197
- - Public release, npm publish, and production SaaS claims require fresh build/test/deploy evidence before being claimed.
202
+ - [Quickstart](docs/quickstart.md)
203
+ - [Workflow runtime manifest](docs/architecture/workflow-runtime-manifest.md)
204
+ - [Product reset ADR](docs/decisions/ADR-001-product-reset.md)
205
+ - [Historical archive index](docs/archive/2026H1/INDEX.md)
206
+ - [2026 H2 route-sharing note](docs/archive/2026H2/sharing/2026-08-01-build-your-workflow-cli.md)
207
+ - [v1.9.0 release notes](docs/archive/2026H2/release-notes/v1.9.0.md)
198
208
 
199
- ## License
209
+ ### License
200
210
 
201
211
  Apache-2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intentdna",
3
- "version": "1.9.0-rc.2",
3
+ "version": "1.9.0",
4
4
  "description": "Intent DNA — Declarative policy layer for AI agent behavior",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",