dw-kit 1.8.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.
- package/.claude/hooks/stop-check.sh +10 -0
- package/.claude/rules/dw.md +2 -0
- package/.claude/skills/dw-decision/SKILL.md +2 -1
- package/.claude/skills/dw-goal/SKILL.md +206 -0
- package/.claude/skills/dw-goal-sync/SKILL.md +131 -0
- package/.claude/templates/agent-report.md +35 -35
- package/.dw/config/agents.yml +8 -0
- package/.dw/core/AGENTS.md +53 -53
- package/.dw/core/schemas/decision-frontmatter.schema.json +54 -0
- package/.dw/core/schemas/events/created.schema.json +33 -0
- package/.dw/core/schemas/events/debate_agent_failed.schema.json +42 -0
- package/.dw/core/schemas/events/debate_agent_replied.schema.json +44 -0
- package/.dw/core/schemas/events/debate_agent_started.schema.json +37 -0
- package/.dw/core/schemas/events/debate_completed.schema.json +36 -0
- package/.dw/core/schemas/events/debate_started.schema.json +47 -0
- package/.dw/core/schemas/events/goal_archived.schema.json +32 -0
- package/.dw/core/schemas/events/goal_created.schema.json +32 -0
- package/.dw/core/schemas/events/goal_field_updated.schema.json +35 -0
- package/.dw/core/schemas/events/goal_pivoted.schema.json +36 -0
- package/.dw/core/schemas/events/goal_status_changed.schema.json +40 -0
- package/.dw/core/schemas/events/goal_task_linked.schema.json +33 -0
- package/.dw/core/schemas/events/goal_task_unlinked.schema.json +33 -0
- package/.dw/core/schemas/events/index.json +185 -0
- package/.dw/core/schemas/events/orchestrator_cancelled.schema.json +29 -0
- package/.dw/core/schemas/events/orchestrator_completed.schema.json +38 -0
- package/.dw/core/schemas/events/orchestrator_confirm.schema.json +33 -0
- package/.dw/core/schemas/events/orchestrator_confirmed.schema.json +33 -0
- package/.dw/core/schemas/events/orchestrator_error.schema.json +29 -0
- package/.dw/core/schemas/events/orchestrator_pending_dropped.schema.json +29 -0
- package/.dw/core/schemas/events/orchestrator_pending_expired.schema.json +32 -0
- package/.dw/core/schemas/events/orchestrator_recommend_rejected.schema.json +37 -0
- package/.dw/core/schemas/events/orchestrator_recommended.schema.json +33 -0
- package/.dw/core/schemas/events/orchestrator_spawn_failed.schema.json +29 -0
- package/.dw/core/schemas/events/orchestrator_started.schema.json +33 -0
- package/.dw/core/schemas/events/orchestrator_timeout.schema.json +29 -0
- package/.dw/core/schemas/events/reconciled.schema.json +29 -0
- package/.dw/core/schemas/events/reconciled_stale.schema.json +29 -0
- package/.dw/core/schemas/events/session.created.schema.json +39 -0
- package/.dw/core/schemas/events/session.reconciled.schema.json +33 -0
- package/.dw/core/schemas/events/session.status_changed.schema.json +42 -0
- package/.dw/core/schemas/events/spawn_failed.schema.json +29 -0
- package/.dw/core/schemas/events/started.schema.json +59 -0
- package/.dw/core/schemas/events/stopped.schema.json +33 -0
- package/.dw/core/schemas/goal-frontmatter.schema.json +2 -2
- package/.dw/core/schemas/task-frontmatter.schema.json +2 -2
- package/.dw/core/templates/v3/task.md +38 -9
- package/.dw/security/advisory-snapshot.json +157 -0
- package/LICENSE +201 -21
- package/NOTICE +26 -0
- package/README.md +5 -2
- package/SECURITY.md +87 -0
- package/TRADEMARK.md +65 -0
- package/bin/dw.mjs +1 -1
- package/package.json +13 -5
- package/src/cli.mjs +33 -0
- package/src/commands/decision-index.mjs +45 -0
- package/src/commands/goal-delete.mjs +3 -1
- package/src/commands/goal-link.mjs +3 -1
- package/src/commands/goal-status.mjs +95 -0
- package/src/commands/lint-task.mjs +20 -0
- package/src/commands/task-index.mjs +47 -0
- package/src/commands/task-migrate.mjs +16 -5
- package/src/commands/task-new.mjs +6 -0
- package/src/commands/task-summary.mjs +4 -3
- package/src/commands/voice.mjs +590 -4
- package/src/lib/board-data.mjs +220 -0
- package/src/lib/debate.mjs +325 -0
- package/src/lib/decision-store.mjs +146 -0
- package/src/lib/event-schema.mjs +342 -0
- package/src/lib/goal-store.mjs +40 -1
- package/src/lib/lint-rules.mjs +10 -1
- package/src/lib/orchestrator.mjs +31 -9
- package/src/lib/session-store.mjs +36 -4
- package/src/lib/task-store.mjs +164 -0
- package/src/lib/voice-action.mjs +165 -0
- package/src/lib/voice-parser.mjs +13 -0
- package/.dw/config/connectors.local.yml +0 -38
- package/.dw/core/PILLARS.md +0 -122
- package/CLAUDE.md +0 -44
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/stopped.schema.json",
|
|
4
|
+
"title": "DW Event: stopped",
|
|
5
|
+
"description": "Category: session-lifecycle. See docs/specs/dw-event-schema-v1.0.md §5 for narrative.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"ts": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "date-time",
|
|
11
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$",
|
|
12
|
+
"description": "ISO 8601 UTC timestamp (envelope, set by writer)"
|
|
13
|
+
},
|
|
14
|
+
"event": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "stopped",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"signal": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"by": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"ts",
|
|
28
|
+
"event",
|
|
29
|
+
"signal",
|
|
30
|
+
"by"
|
|
31
|
+
],
|
|
32
|
+
"additionalProperties": true
|
|
33
|
+
}
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"icon": {
|
|
74
74
|
"type": ["string", "null"],
|
|
75
75
|
"maxLength": 8,
|
|
76
|
-
"description": "Optional emoji/icon for visual differentiation in portfolio cards
|
|
76
|
+
"description": "Optional emoji/icon for visual differentiation in portfolio cards."
|
|
77
77
|
},
|
|
78
78
|
"cycle": {
|
|
79
79
|
"type": ["string", "null"],
|
|
80
80
|
"maxLength": 32,
|
|
81
|
-
"description": "Optional temporal grouping label e.g. 'Q1 2026', 'v1.7-cycle', '2026 H1'
|
|
81
|
+
"description": "Optional temporal grouping label e.g. 'Q1 2026', 'v1.7-cycle', '2026 H1'. Portfolio groups goals by cycle."
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
},
|
|
68
68
|
"schema_version": {
|
|
69
69
|
"type": "string",
|
|
70
|
-
"enum": ["v3.0", "v3.1"],
|
|
71
|
-
"description": "Frontmatter schema version. v3.1 adds optional parent_goal_id, contributing_goal_ids, summary per ADR-0010."
|
|
70
|
+
"enum": ["task@v3.0", "task@v3.1", "v3.0", "v3.1"],
|
|
71
|
+
"description": "Frontmatter schema version. Canonical form is namespaced (task@v3.0/task@v3.1) to match the repo-wide @v convention (goal@v1, tasks-index@v1); bare v3.0/v3.1 stay valid for back-compat. v3.1 adds optional parent_goal_id, contributing_goal_ids, summary per ADR-0010 (#22)."
|
|
72
72
|
},
|
|
73
73
|
"blockers": {
|
|
74
74
|
"type": "string",
|
|
@@ -8,7 +8,7 @@ owner: {name}
|
|
|
8
8
|
depth: quick | standard | thorough
|
|
9
9
|
related_adr: {ADR-NNNN | none}
|
|
10
10
|
target_ship: {milestone or TBD}
|
|
11
|
-
schema_version: v3.0
|
|
11
|
+
schema_version: task@v3.0
|
|
12
12
|
blockers: none
|
|
13
13
|
---
|
|
14
14
|
|
|
@@ -79,12 +79,32 @@ genuinely changes.
|
|
|
79
79
|
|
|
80
80
|
- {Explicit exclusions — prevents scope creep}
|
|
81
81
|
|
|
82
|
-
###
|
|
82
|
+
### Functional Acceptance (handoff scenarios)
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
<!--
|
|
85
|
+
Feature behaviour in business / user language — readable by PM/BA/QC WITHOUT code
|
|
86
|
+
(no API/file/variable names). This is the cross-role handoff contract, NOT a full
|
|
87
|
+
test plan (`/dw:test-plan` expands it into QC cases). Per-component acceptance
|
|
88
|
+
lives with each subtask; this is the feature-level scenario layer.
|
|
89
|
+
-->
|
|
90
|
+
|
|
91
|
+
- [ ] {User-visible scenario, e.g., "User resets password and gets a confirmation email"}
|
|
92
|
+
- [ ] {Error / edge scenario, e.g., "Expired reset link shows a clear retry prompt"}
|
|
93
|
+
- [ ] {Measurable gate where relevant, e.g., "p95 latency <100ms"}
|
|
85
94
|
|
|
86
|
-
|
|
87
|
-
|
|
95
|
+
### Definition of Done (role lens)
|
|
96
|
+
|
|
97
|
+
<!--
|
|
98
|
+
Plain-language sign-off anchored to the outcome. Roles absent from `team.roles`
|
|
99
|
+
sign by proxy / degrade gracefully. These are `- [ ]` checkboxes (NOT status
|
|
100
|
+
markers — those live only in Section 3).
|
|
101
|
+
-->
|
|
102
|
+
|
|
103
|
+
- [ ] 🎯 **Goal** — result advances the linked goal's KR (update the goal)
|
|
104
|
+
- [ ] 📋 **BA** — matches the business expectation
|
|
105
|
+
- [ ] ✅ **QC** — handoff scenarios pass, incl. error cases + no regression
|
|
106
|
+
- [ ] 🛠 **TL** — approach/code sound, no new tech debt, automated checks pass
|
|
107
|
+
- [ ] 🤝 **Handoff** — docs sufficient + changes merged
|
|
88
108
|
|
|
89
109
|
### Dependencies
|
|
90
110
|
|
|
@@ -102,12 +122,21 @@ Measurable outcomes (not vibes):
|
|
|
102
122
|
<!--
|
|
103
123
|
SINGLE SOURCE OF TRUTH for subtask status. This is the only section where
|
|
104
124
|
status markers (⬜🟡✅🔴⏸) are allowed.
|
|
125
|
+
|
|
126
|
+
Section 2 ("Subtasks (in scope)") and this tracker are deliberately separate:
|
|
127
|
+
§2 owns the stable INTENT (name + actions + acceptance), this table owns the
|
|
128
|
+
churning STATUS. They are NOT merged — that separation is what keeps status in
|
|
129
|
+
exactly one place (drift-prevention). The Subtask name is restated here as a
|
|
130
|
+
short label only.
|
|
131
|
+
|
|
132
|
+
`Est` is an optional effort estimate (hours / story-points / t-shirt per
|
|
133
|
+
`estimation_unit`); leave `—` if unused. See `/dw:estimate`.
|
|
105
134
|
-->
|
|
106
135
|
|
|
107
|
-
| # | Subtask | Status | Date | Notes |
|
|
108
|
-
|
|
109
|
-
| ST-1 | ... | ⬜ Pending | — | |
|
|
110
|
-
| ST-2 | ... | ⬜ Pending | — | |
|
|
136
|
+
| # | Subtask | Status | Date | Notes | Est |
|
|
137
|
+
|---|---------|--------|------|-------|-----|
|
|
138
|
+
| ST-1 | ... | ⬜ Pending | — | | — |
|
|
139
|
+
| ST-2 | ... | ⬜ Pending | — | | — |
|
|
111
140
|
|
|
112
141
|
Status legend: ⬜ Pending · 🟡 In Progress · ✅ Done · 🔴 Blocked · ⏸ Paused
|
|
113
142
|
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "1.0",
|
|
3
|
+
"fetched_at": "2026-05-12T09:57:47.323Z",
|
|
4
|
+
"source": "osv.dev",
|
|
5
|
+
"ecosystem": "npm",
|
|
6
|
+
"package_count": 13,
|
|
7
|
+
"advisory_count": 2,
|
|
8
|
+
"advisories": [
|
|
9
|
+
{
|
|
10
|
+
"id": "GHSA-q3j6-qgpj-74h6",
|
|
11
|
+
"summary": "fast-uri vulnerable to path traversal via percent-encoded dot segments",
|
|
12
|
+
"details": "### Impact\n\n`fast-uri` v3.1.0 and earlier decodes percent-encoded path separators (`%2F`) and dot segments (`%2E`) before applying dot-segment removal in `normalize()` and `equal()`. This makes encoded path data behave like real `/` and `..`, so distinct URIs collapse onto the same normalized path.\n\nFor example, `http://example.com/public/%2e%2e/admin` normalizes to `http://example.com/admin`, and `equal()` considers them the same URI.\n\nApplications that normalize or compare attacker-controlled URLs to enforce path-based policy can be bypassed. A path that looks confined under an allowed prefix can normalize to a different location.\n\n### Patches\n\nUpgrade to `fast-uri` >= 3.1.1.\n\n### Workarounds\n\nNone. Upgrade to the patched version.",
|
|
13
|
+
"aliases": [
|
|
14
|
+
"CVE-2026-6321"
|
|
15
|
+
],
|
|
16
|
+
"modified": "2026-05-09T16:44:22.524341929Z",
|
|
17
|
+
"published": "2026-05-08T17:15:09Z",
|
|
18
|
+
"related": [
|
|
19
|
+
"CGA-9j5f-2hwm-8hfc"
|
|
20
|
+
],
|
|
21
|
+
"database_specific": {
|
|
22
|
+
"cwe_ids": [
|
|
23
|
+
"CWE-22"
|
|
24
|
+
],
|
|
25
|
+
"github_reviewed": true,
|
|
26
|
+
"github_reviewed_at": "2026-05-08T17:15:09Z",
|
|
27
|
+
"severity": "HIGH",
|
|
28
|
+
"nvd_published_at": "2026-05-04T20:16:20Z"
|
|
29
|
+
},
|
|
30
|
+
"references": [
|
|
31
|
+
{
|
|
32
|
+
"type": "WEB",
|
|
33
|
+
"url": "https://github.com/fastify/fast-uri/security/advisories/GHSA-q3j6-qgpj-74h6"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "ADVISORY",
|
|
37
|
+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-6321"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "WEB",
|
|
41
|
+
"url": "https://cna.openjsf.org/security-advisories.html"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "PACKAGE",
|
|
45
|
+
"url": "https://github.com/fastify/fast-uri"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"affected": [
|
|
49
|
+
{
|
|
50
|
+
"package": {
|
|
51
|
+
"name": "fast-uri",
|
|
52
|
+
"ecosystem": "npm",
|
|
53
|
+
"purl": "pkg:npm/fast-uri"
|
|
54
|
+
},
|
|
55
|
+
"ranges": [
|
|
56
|
+
{
|
|
57
|
+
"type": "SEMVER",
|
|
58
|
+
"events": [
|
|
59
|
+
{
|
|
60
|
+
"introduced": "0"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"fixed": "3.1.1"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"database_specific": {
|
|
69
|
+
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-q3j6-qgpj-74h6/GHSA-q3j6-qgpj-74h6.json",
|
|
70
|
+
"last_known_affected_version_range": "<= 3.1.0"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"schema_version": "1.7.5",
|
|
75
|
+
"severity": [
|
|
76
|
+
{
|
|
77
|
+
"type": "CVSS_V3",
|
|
78
|
+
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "GHSA-v39h-62p7-jpjc",
|
|
84
|
+
"summary": "fast-uri vulnerable to host confusion via percent-encoded authority delimiters",
|
|
85
|
+
"details": "### Impact\n\n`fast-uri` v3.1.1 and earlier decodes percent-encoded authority delimiters (`%40` as `@`, `%3A` as `:`) inside the host component and serializes them back as raw characters. This changes the URI structure, turning a hostname into userinfo plus a different host.\n\nFor example, `http://trusted.com%40evil.com/` normalizes to `http://trusted.com@evil.com/`, which reparses as host `evil.com` with userinfo `trusted.com`.\n\nApplications that normalize untrusted URLs before host allowlist checks, redirect validation, or outbound request routing can be steered to a different authority than the original URL appeared to contain.\n\n### Patches\n\nUpgrade to `fast-uri` >= 3.1.2.\n\n### Workarounds\n\nNone. Upgrade to the patched version.",
|
|
86
|
+
"aliases": [
|
|
87
|
+
"CVE-2026-6322"
|
|
88
|
+
],
|
|
89
|
+
"modified": "2026-05-10T04:44:28.903255090Z",
|
|
90
|
+
"published": "2026-05-08T19:13:01Z",
|
|
91
|
+
"related": [
|
|
92
|
+
"CGA-5vr9-c8qr-fqvg"
|
|
93
|
+
],
|
|
94
|
+
"database_specific": {
|
|
95
|
+
"cwe_ids": [
|
|
96
|
+
"CWE-436"
|
|
97
|
+
],
|
|
98
|
+
"github_reviewed": true,
|
|
99
|
+
"github_reviewed_at": "2026-05-08T19:13:01Z",
|
|
100
|
+
"severity": "HIGH",
|
|
101
|
+
"nvd_published_at": "2026-05-05T11:16:33Z"
|
|
102
|
+
},
|
|
103
|
+
"references": [
|
|
104
|
+
{
|
|
105
|
+
"type": "WEB",
|
|
106
|
+
"url": "https://github.com/fastify/fast-uri/security/advisories/GHSA-v39h-62p7-jpjc"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"type": "ADVISORY",
|
|
110
|
+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-6322"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "WEB",
|
|
114
|
+
"url": "https://cna.openjsf.org/security-advisories.html"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "PACKAGE",
|
|
118
|
+
"url": "https://github.com/fastify/fast-uri"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"affected": [
|
|
122
|
+
{
|
|
123
|
+
"package": {
|
|
124
|
+
"name": "fast-uri",
|
|
125
|
+
"ecosystem": "npm",
|
|
126
|
+
"purl": "pkg:npm/fast-uri"
|
|
127
|
+
},
|
|
128
|
+
"ranges": [
|
|
129
|
+
{
|
|
130
|
+
"type": "SEMVER",
|
|
131
|
+
"events": [
|
|
132
|
+
{
|
|
133
|
+
"introduced": "0"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"fixed": "3.1.2"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"database_specific": {
|
|
142
|
+
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-v39h-62p7-jpjc/GHSA-v39h-62p7-jpjc.json",
|
|
143
|
+
"last_known_affected_version_range": "<= 3.1.1"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"schema_version": "1.7.5",
|
|
148
|
+
"severity": [
|
|
149
|
+
{
|
|
150
|
+
"type": "CVSS_V3",
|
|
151
|
+
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"snapshot_sha": "sha256:0b6ca61019fb234c"
|
|
157
|
+
}
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,201 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may accept and charge a
|
|
167
|
+
fee for acceptance of support, warranty, indemnity, or other liability
|
|
168
|
+
obligations and/or rights consistent with this License. However, in
|
|
169
|
+
accepting such obligations, You may act only on Your own behalf
|
|
170
|
+
and on Your sole responsibility, not on behalf of any other
|
|
171
|
+
Contributor, and only if You agree to indemnify, defend, and hold
|
|
172
|
+
each Contributor harmless for any liability incurred by, or claims
|
|
173
|
+
asserted against, such Contributor by reason of your accepting any
|
|
174
|
+
such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Đặng Huy (huygdv) <huygdv19@gmail.com>
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
200
|
+
implied. See the License for the specific language governing permissions
|
|
201
|
+
and limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
dw-kit
|
|
2
|
+
Copyright 2026 Đặng Huy (huygdv) <huygdv19@gmail.com>
|
|
3
|
+
|
|
4
|
+
This product includes software developed by Đặng Huy and contributors
|
|
5
|
+
to the dw-kit project (https://github.com/dv-workflow/dv-workflow).
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
8
|
+
You may not use this file except in compliance with the License. You may
|
|
9
|
+
obtain a copy of the License at:
|
|
10
|
+
|
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
|
|
13
|
+
Project history:
|
|
14
|
+
Versions 0.x through 1.7.x were distributed under the MIT License.
|
|
15
|
+
Starting from the relicense commit (2026-05-26), all subsequent
|
|
16
|
+
contributions and releases are licensed under Apache License 2.0.
|
|
17
|
+
Prior MIT-licensed releases remain available under MIT terms; new
|
|
18
|
+
releases supersede them under Apache 2.0. Contributors before the
|
|
19
|
+
relicense are the same individual as the copyright holder; no third-
|
|
20
|
+
party contributions required relicensing consent.
|
|
21
|
+
|
|
22
|
+
Names and trademarks:
|
|
23
|
+
"dw", "dw-kit", and "dw Platform" are trademarks of the copyright
|
|
24
|
+
holder. See TRADEMARK.md for permitted and non-permitted uses. The
|
|
25
|
+
Apache License does not grant rights to use these trademarks beyond
|
|
26
|
+
fair descriptive reference (Apache 2.0 §6).
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> An AI development workflow toolkit for teams using agentic IDEs (Claude Code, Cursor) — from idea to review-ready commits.
|
|
4
4
|
|
|
5
|
-
**v1.
|
|
5
|
+
**v1.9.0** · `npm install -g dw-kit` · [Docs](docs/README.md) · [Get started](docs/get-started.md) · [Cheatsheet](docs/cheatsheet.md) · [Migration v1.3](MIGRATION-v1.3.md) · [Changelog](CHANGELOG.md)
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -36,7 +36,10 @@ It’s designed for collaboration (Dev / Tech Lead / QA / PM) and keeps work aud
|
|
|
36
36
|
|
|
37
37
|
## Release notes
|
|
38
38
|
|
|
39
|
-
- **v1.
|
|
39
|
+
- **v1.9.0 (current, stable)** — substrate-complete for the realtime voice-orchestration Root Goal: persistent CLI-agent sessions, Telegram bridge, multi-workspace registry, browser voice MVP + orchestrator action-execution, multi-agent live debate, and the **DW Event/Document schema + adapter protocol** ([ADR-0011](.dw/decisions/0011-session-runtime-voice-orchestrator.md)/[0014](.dw/decisions/0014-orchestrator-action-execution.md)/[0015](.dw/decisions/0015-multi-agent-live-debate.md)/[0016](.dw/decisions/0016-dw-goal-outcome-pursuit-loop.md)/[0017](.dw/decisions/0017-dw-document-schema-index.md)). Plus team-dogfood fixes: `dw goal status` (#20), deterministic index writers (#21), `task@v3.x` schema_version converge (#22), v3 template Functional Acceptance + role-lens DoD + Est (#24).
|
|
40
|
+
- **v1.8.0** — remote-agent-first substrate: `dw session *`, `dw connector telegram`, `dw workspace *`, `dw voice` (bilingual en+vi, hybrid orchestrator, action-execution with voice confirm).
|
|
41
|
+
- **v1.7.0** — **Goals Layer (OKR-inspired)** ([ADR-0010](.dw/decisions/0010-goals-management-layer.md)): strategic layer above tasks — `dw goal *`, `goals-index@v1`, bidirectional task↔goal linking, portfolio + HTML view.
|
|
42
|
+
- **v1.6.0** — **Agent OS Multi-Agent Orchestration** ([ADR-0009](.dw/decisions/0009-agent-os-multi-agent-orchestration.md)): file-based cooperative protocol for Claude Code / Codex / Gemini / human agents to work from same `task.md` without conflict. 6-command CLI `dw agent *` (claim / release / expire / claims / reports / conflicts). Dual ownership model: `subtasks` (semantic) + `write_scope` (filesystem). Audit trail via committed `reports/` + `events.jsonl`; claims gitignored ephemeral.
|
|
40
43
|
- **v1.5.0 — Task Docs v3** ([ADR-0008](.dw/decisions/0008-task-docs-format-one-file-timeline.md)): single-file `task.md` replaces v2 `spec.md` + `tracking.md` (drift fixed structurally). 8-command CLI `dw task *` (show / new / view / watch / render / lint / migrate / rotate). Lean HTML dashboard for human dev orchestrator (~10KB, scan-in-5-seconds) + bounded SVG sidecar via `dw-kit-render` v0.2. Live preview server with auto-refresh. Migration script with `--dry-run`, `--diff`, `--rollback`. Lint strict-default blocks drift markers. See [`MIGRATION-v1.5.md`](MIGRATION-v1.5.md).
|
|
41
44
|
- **v1.4 (in progress)** — Optional **Review Render Pipeline** ([ADR-0007](.dw/decisions/0007-decoupled-review-render-pipeline.md)): `/dw:review --visual` plus a separate `dw-kit-render` package turn findings into SVG + PNG cards for PR comments / Slack / stakeholders. Pure JS + WASM, universal `npm install`, no system deps. See [`docs/review-renderer.md`](docs/review-renderer.md).
|
|
42
45
|
- **v1.3.6** (2026-05-14) — Supply-Chain Guard upgraded to 3-pillar architecture: OSV snapshot + curated IoC fixture (version-aware, wired into default scan) + **AI-Native NEW-package heuristic** that catches zero-day-ish risk at the AI-edit boundary. See [`CHANGELOG.md#v136--2026-05-14`](CHANGELOG.md#v136--2026-05-14) and [ADR-0006](.dw/decisions/0006-supply-chain-guard-heuristic.md).
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported versions
|
|
4
|
+
|
|
5
|
+
dw-kit is in active pre-1.0 development. Only the most recent minor version line receives security fixes.
|
|
6
|
+
|
|
7
|
+
| Version line | Supported |
|
|
8
|
+
|---|---|
|
|
9
|
+
| 1.8.x | ✅ Active — fixes shipped as patches and `@rc` releases |
|
|
10
|
+
| 1.7.x | ⚠️ Critical fixes only, on request |
|
|
11
|
+
| ≤ 1.6.x | ❌ Not supported — upgrade to 1.8.x |
|
|
12
|
+
|
|
13
|
+
`@rc` and `@latest` npm dist-tags reflect current state; pin a specific version for production.
|
|
14
|
+
|
|
15
|
+
## Reporting a vulnerability
|
|
16
|
+
|
|
17
|
+
**Do NOT file a public GitHub issue for security reports.** Public disclosure before a fix is shipped puts every user at risk.
|
|
18
|
+
|
|
19
|
+
Send a report to: **huygdv19@gmail.com**
|
|
20
|
+
|
|
21
|
+
Subject line: `[dw-kit security] <short description>`
|
|
22
|
+
|
|
23
|
+
Include:
|
|
24
|
+
|
|
25
|
+
- Affected version(s) — output of `dw --version`
|
|
26
|
+
- Reproduction steps or proof-of-concept (minimal, no live exploitation against third parties)
|
|
27
|
+
- Impact assessment — what an attacker can achieve
|
|
28
|
+
- Suggested fix if you have one
|
|
29
|
+
- Whether you want public credit in the advisory (optional)
|
|
30
|
+
|
|
31
|
+
If you do not get a reply within **72 hours**, please re-send. Mail filtering occasionally drops legitimate reports.
|
|
32
|
+
|
|
33
|
+
## What counts as a security issue
|
|
34
|
+
|
|
35
|
+
In scope (high priority):
|
|
36
|
+
|
|
37
|
+
- Credential or token leakage — secrets ending up in logs, git history, telemetry, or events-global.jsonl
|
|
38
|
+
- Path traversal in any `dw` command that takes a user-controlled path or session id
|
|
39
|
+
- Command injection via voice transcript, chat connector message, or agent reply
|
|
40
|
+
- Auth bypass on the voice HTTP server (`X-Voice-Token` / `?t=` query param)
|
|
41
|
+
- SSE / event stream leakage across tokens or workspaces
|
|
42
|
+
- TLS cert generation defects that produce weak keys or expose private keys
|
|
43
|
+
- Remote code execution via crafted `agents.yml` / `dw.config.yml` content
|
|
44
|
+
- Privilege escalation through spawn helpers (Win32 PATHEXT, .cmd shell quoting)
|
|
45
|
+
- Dependency CVEs in any direct dependency listed in `package.json#dependencies`
|
|
46
|
+
|
|
47
|
+
Out of scope:
|
|
48
|
+
|
|
49
|
+
- Issues that require local file system access (the user already trusts the local machine)
|
|
50
|
+
- Denial of service against a `dw voice` server bound to localhost
|
|
51
|
+
- Social engineering or phishing against project maintainers
|
|
52
|
+
- Findings against forks or third-party redistributions (report those to their maintainers)
|
|
53
|
+
- Vulnerabilities in agent CLIs (`claude`, `codex`, `gemini`) — report those upstream to Anthropic / OpenAI / Google
|
|
54
|
+
|
|
55
|
+
## Response process
|
|
56
|
+
|
|
57
|
+
1. **Acknowledgement** within 72 hours (often within 24)
|
|
58
|
+
2. **Triage** within 7 days — severity assessed using CVSS 3.1
|
|
59
|
+
3. **Fix development** — depending on severity, 1 day (Critical) to 30 days (Low)
|
|
60
|
+
4. **Coordinated disclosure** — a private fix branch, then a coordinated release with a security advisory on GitHub
|
|
61
|
+
5. **Public advisory** — GitHub Security Advisory + CHANGELOG.md entry + npm advisory if applicable
|
|
62
|
+
|
|
63
|
+
Embargo periods are negotiated case-by-case. Default: 30 days from confirmed vulnerability to public disclosure, or fix release, whichever comes first.
|
|
64
|
+
|
|
65
|
+
## Hardening defaults dw-kit ships
|
|
66
|
+
|
|
67
|
+
For context — these are already implemented and should be preserved by contributors:
|
|
68
|
+
|
|
69
|
+
- `.gitignore` excludes `.env`, `.dw/cache/`, `.dw/events-global.jsonl`, `connectors.local.yml`, telemetry files
|
|
70
|
+
- Voice + Telegram connectors require an explicit token (no anonymous access)
|
|
71
|
+
- `connectors.local.yml` is written with mode `0600` and never echoed back via CLI
|
|
72
|
+
- `redactConfig()` masks tokens in any diagnostic output
|
|
73
|
+
- Session IDs validated against `SESSION_ID_PATTERN` to block path traversal
|
|
74
|
+
- Workspace paths validated by `validateWorkspacePath()` before spawn
|
|
75
|
+
- Spawn helpers route `.cmd` files via cmd.exe shell with conservative quoting (zero user content in args by default — user content goes via stdin per `goal_mode: stdin`)
|
|
76
|
+
- Pre-commit hooks (`privacy-block`, `pre-commit-gate`) block obvious secret patterns from being committed
|
|
77
|
+
|
|
78
|
+
## Credit
|
|
79
|
+
|
|
80
|
+
Researchers who report valid issues will be credited in the GitHub Security Advisory and `CHANGELOG.md` unless they request anonymity. No bug bounty program exists at this stage — that may change once dw-kit has a commercial layer.
|
|
81
|
+
|
|
82
|
+
## Contact
|
|
83
|
+
|
|
84
|
+
- Security: huygdv19@gmail.com
|
|
85
|
+
- Maintainer: huygdv <huygdv19@gmail.com>
|
|
86
|
+
|
|
87
|
+
Last updated: 2026-05-26
|