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/created.schema.json",
|
|
4
|
+
"title": "DW Event: created",
|
|
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": "created",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"agent": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"goal": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"ts",
|
|
28
|
+
"event",
|
|
29
|
+
"agent",
|
|
30
|
+
"goal"
|
|
31
|
+
],
|
|
32
|
+
"additionalProperties": true
|
|
33
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/debate_agent_failed.schema.json",
|
|
4
|
+
"title": "DW Event: debate_agent_failed",
|
|
5
|
+
"description": "Category: debate. 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": "debate_agent_failed",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"debate_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"agent": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"error": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"exit_code": {
|
|
29
|
+
"type": "integer"
|
|
30
|
+
},
|
|
31
|
+
"ms": {
|
|
32
|
+
"type": "integer"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"ts",
|
|
37
|
+
"event",
|
|
38
|
+
"debate_id",
|
|
39
|
+
"agent"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": true
|
|
42
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/debate_agent_replied.schema.json",
|
|
4
|
+
"title": "DW Event: debate_agent_replied",
|
|
5
|
+
"description": "Category: debate. 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": "debate_agent_replied",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"debate_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"agent": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"ms": {
|
|
26
|
+
"type": "integer"
|
|
27
|
+
},
|
|
28
|
+
"reply": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
"reply_chars": {
|
|
32
|
+
"type": "integer"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"ts",
|
|
37
|
+
"event",
|
|
38
|
+
"debate_id",
|
|
39
|
+
"agent",
|
|
40
|
+
"ms",
|
|
41
|
+
"reply"
|
|
42
|
+
],
|
|
43
|
+
"additionalProperties": true
|
|
44
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/debate_agent_started.schema.json",
|
|
4
|
+
"title": "DW Event: debate_agent_started",
|
|
5
|
+
"description": "Category: debate. 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": "debate_agent_started",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"debate_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"agent": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"pid": {
|
|
26
|
+
"type": "integer"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"ts",
|
|
31
|
+
"event",
|
|
32
|
+
"debate_id",
|
|
33
|
+
"agent",
|
|
34
|
+
"pid"
|
|
35
|
+
],
|
|
36
|
+
"additionalProperties": true
|
|
37
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/debate_completed.schema.json",
|
|
4
|
+
"title": "DW Event: debate_completed",
|
|
5
|
+
"description": "Category: debate. 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": "debate_completed",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"debate_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"agents": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"ts",
|
|
31
|
+
"event",
|
|
32
|
+
"debate_id",
|
|
33
|
+
"agents"
|
|
34
|
+
],
|
|
35
|
+
"additionalProperties": true
|
|
36
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/debate_started.schema.json",
|
|
4
|
+
"title": "DW Event: debate_started",
|
|
5
|
+
"description": "Category: debate. 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": "debate_started",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"debate_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"topic": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"roster": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"lang": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"audit_session_id": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": [
|
|
39
|
+
"ts",
|
|
40
|
+
"event",
|
|
41
|
+
"debate_id",
|
|
42
|
+
"topic",
|
|
43
|
+
"roster",
|
|
44
|
+
"lang"
|
|
45
|
+
],
|
|
46
|
+
"additionalProperties": true
|
|
47
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/goal_archived.schema.json",
|
|
4
|
+
"title": "DW Event: goal_archived",
|
|
5
|
+
"description": "Category: goal. 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": "goal_archived",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"goal_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"archived_at": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"ts",
|
|
28
|
+
"event",
|
|
29
|
+
"goal_id"
|
|
30
|
+
],
|
|
31
|
+
"additionalProperties": true
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/goal_created.schema.json",
|
|
4
|
+
"title": "DW Event: goal_created",
|
|
5
|
+
"description": "Category: goal. 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": "goal_created",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"goal_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"created_by": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"ts",
|
|
28
|
+
"event",
|
|
29
|
+
"goal_id"
|
|
30
|
+
],
|
|
31
|
+
"additionalProperties": true
|
|
32
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/goal_field_updated.schema.json",
|
|
4
|
+
"title": "DW Event: goal_field_updated",
|
|
5
|
+
"description": "Category: goal. 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": "goal_field_updated",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"goal_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"field": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"old": {},
|
|
26
|
+
"new": {}
|
|
27
|
+
},
|
|
28
|
+
"required": [
|
|
29
|
+
"ts",
|
|
30
|
+
"event",
|
|
31
|
+
"goal_id",
|
|
32
|
+
"field"
|
|
33
|
+
],
|
|
34
|
+
"additionalProperties": true
|
|
35
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/goal_pivoted.schema.json",
|
|
4
|
+
"title": "DW Event: goal_pivoted",
|
|
5
|
+
"description": "Category: goal. 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": "goal_pivoted",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"goal_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"from_version": {
|
|
23
|
+
"type": "integer"
|
|
24
|
+
},
|
|
25
|
+
"to_version": {
|
|
26
|
+
"type": "integer"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"ts",
|
|
31
|
+
"event",
|
|
32
|
+
"goal_id",
|
|
33
|
+
"from_version"
|
|
34
|
+
],
|
|
35
|
+
"additionalProperties": true
|
|
36
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/goal_status_changed.schema.json",
|
|
4
|
+
"title": "DW Event: goal_status_changed",
|
|
5
|
+
"description": "Category: goal. 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": "goal_status_changed",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"goal_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"from_status": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"to_status": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"changed_by": {
|
|
29
|
+
"type": "string"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"required": [
|
|
33
|
+
"ts",
|
|
34
|
+
"event",
|
|
35
|
+
"goal_id",
|
|
36
|
+
"from_status",
|
|
37
|
+
"to_status"
|
|
38
|
+
],
|
|
39
|
+
"additionalProperties": true
|
|
40
|
+
}
|
|
@@ -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/goal_task_linked.schema.json",
|
|
4
|
+
"title": "DW Event: goal_task_linked",
|
|
5
|
+
"description": "Category: goal. 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": "goal_task_linked",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"goal_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"task_id": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"ts",
|
|
28
|
+
"event",
|
|
29
|
+
"goal_id",
|
|
30
|
+
"task_id"
|
|
31
|
+
],
|
|
32
|
+
"additionalProperties": true
|
|
33
|
+
}
|
|
@@ -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/goal_task_unlinked.schema.json",
|
|
4
|
+
"title": "DW Event: goal_task_unlinked",
|
|
5
|
+
"description": "Category: goal. 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": "goal_task_unlinked",
|
|
17
|
+
"description": "Event name (envelope)"
|
|
18
|
+
},
|
|
19
|
+
"goal_id": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"task_id": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"ts",
|
|
28
|
+
"event",
|
|
29
|
+
"goal_id",
|
|
30
|
+
"task_id"
|
|
31
|
+
],
|
|
32
|
+
"additionalProperties": true
|
|
33
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/index.json",
|
|
4
|
+
"title": "DW Event Schema v1.0 — Index",
|
|
5
|
+
"description": "Generated from src/lib/event-schema.mjs EVENT_CATALOGUE by scripts/generate-event-schemas.mjs. Do not edit by hand; regenerate via 'npm run gen:event-schemas'.",
|
|
6
|
+
"schema_version": "1.0.0",
|
|
7
|
+
"generated_at": "2026-05-27T17:18:00Z",
|
|
8
|
+
"spec_url": "https://github.com/dv-workflow/dv-workflow/blob/main/docs/specs/dw-event-schema-v1.0.md",
|
|
9
|
+
"protocol_url": "https://github.com/dv-workflow/dv-workflow/blob/main/docs/specs/dw-adapter-protocol.md",
|
|
10
|
+
"total_events": 33,
|
|
11
|
+
"categories": [
|
|
12
|
+
"debate",
|
|
13
|
+
"goal",
|
|
14
|
+
"session-lifecycle",
|
|
15
|
+
"voice-action",
|
|
16
|
+
"voice-orchestrator"
|
|
17
|
+
],
|
|
18
|
+
"events": [
|
|
19
|
+
{
|
|
20
|
+
"name": "created",
|
|
21
|
+
"category": "session-lifecycle",
|
|
22
|
+
"file": "created.schema.json"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "debate_agent_failed",
|
|
26
|
+
"category": "debate",
|
|
27
|
+
"file": "debate_agent_failed.schema.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "debate_agent_replied",
|
|
31
|
+
"category": "debate",
|
|
32
|
+
"file": "debate_agent_replied.schema.json"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "debate_agent_started",
|
|
36
|
+
"category": "debate",
|
|
37
|
+
"file": "debate_agent_started.schema.json"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "debate_completed",
|
|
41
|
+
"category": "debate",
|
|
42
|
+
"file": "debate_completed.schema.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "debate_started",
|
|
46
|
+
"category": "debate",
|
|
47
|
+
"file": "debate_started.schema.json"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "goal_archived",
|
|
51
|
+
"category": "goal",
|
|
52
|
+
"file": "goal_archived.schema.json"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "goal_created",
|
|
56
|
+
"category": "goal",
|
|
57
|
+
"file": "goal_created.schema.json"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "goal_field_updated",
|
|
61
|
+
"category": "goal",
|
|
62
|
+
"file": "goal_field_updated.schema.json"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "goal_pivoted",
|
|
66
|
+
"category": "goal",
|
|
67
|
+
"file": "goal_pivoted.schema.json"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "goal_status_changed",
|
|
71
|
+
"category": "goal",
|
|
72
|
+
"file": "goal_status_changed.schema.json"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "goal_task_linked",
|
|
76
|
+
"category": "goal",
|
|
77
|
+
"file": "goal_task_linked.schema.json"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "goal_task_unlinked",
|
|
81
|
+
"category": "goal",
|
|
82
|
+
"file": "goal_task_unlinked.schema.json"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "orchestrator_cancelled",
|
|
86
|
+
"category": "voice-action",
|
|
87
|
+
"file": "orchestrator_cancelled.schema.json"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "orchestrator_completed",
|
|
91
|
+
"category": "voice-orchestrator",
|
|
92
|
+
"file": "orchestrator_completed.schema.json"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "orchestrator_confirm",
|
|
96
|
+
"category": "voice-action",
|
|
97
|
+
"file": "orchestrator_confirm.schema.json"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "orchestrator_confirmed",
|
|
101
|
+
"category": "voice-action",
|
|
102
|
+
"file": "orchestrator_confirmed.schema.json"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "orchestrator_error",
|
|
106
|
+
"category": "voice-orchestrator",
|
|
107
|
+
"file": "orchestrator_error.schema.json"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "orchestrator_pending_dropped",
|
|
111
|
+
"category": "voice-action",
|
|
112
|
+
"file": "orchestrator_pending_dropped.schema.json"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "orchestrator_pending_expired",
|
|
116
|
+
"category": "voice-action",
|
|
117
|
+
"file": "orchestrator_pending_expired.schema.json"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "orchestrator_recommend_rejected",
|
|
121
|
+
"category": "voice-action",
|
|
122
|
+
"file": "orchestrator_recommend_rejected.schema.json"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "orchestrator_recommended",
|
|
126
|
+
"category": "voice-action",
|
|
127
|
+
"file": "orchestrator_recommended.schema.json"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "orchestrator_spawn_failed",
|
|
131
|
+
"category": "voice-orchestrator",
|
|
132
|
+
"file": "orchestrator_spawn_failed.schema.json"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "orchestrator_started",
|
|
136
|
+
"category": "voice-orchestrator",
|
|
137
|
+
"file": "orchestrator_started.schema.json"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "orchestrator_timeout",
|
|
141
|
+
"category": "voice-orchestrator",
|
|
142
|
+
"file": "orchestrator_timeout.schema.json"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "reconciled",
|
|
146
|
+
"category": "session-lifecycle",
|
|
147
|
+
"file": "reconciled.schema.json"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "reconciled_stale",
|
|
151
|
+
"category": "session-lifecycle",
|
|
152
|
+
"file": "reconciled_stale.schema.json"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "session.created",
|
|
156
|
+
"category": "session-lifecycle",
|
|
157
|
+
"file": "session.created.schema.json"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "session.reconciled",
|
|
161
|
+
"category": "session-lifecycle",
|
|
162
|
+
"file": "session.reconciled.schema.json"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "session.status_changed",
|
|
166
|
+
"category": "session-lifecycle",
|
|
167
|
+
"file": "session.status_changed.schema.json"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "spawn_failed",
|
|
171
|
+
"category": "session-lifecycle",
|
|
172
|
+
"file": "spawn_failed.schema.json"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "started",
|
|
176
|
+
"category": "session-lifecycle",
|
|
177
|
+
"file": "started.schema.json"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"name": "stopped",
|
|
181
|
+
"category": "session-lifecycle",
|
|
182
|
+
"file": "stopped.schema.json"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
}
|