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.
Files changed (79) hide show
  1. package/.claude/hooks/stop-check.sh +10 -0
  2. package/.claude/rules/dw.md +2 -0
  3. package/.claude/skills/dw-decision/SKILL.md +2 -1
  4. package/.claude/skills/dw-goal/SKILL.md +206 -0
  5. package/.claude/skills/dw-goal-sync/SKILL.md +131 -0
  6. package/.claude/templates/agent-report.md +35 -35
  7. package/.dw/config/agents.yml +8 -0
  8. package/.dw/core/AGENTS.md +53 -53
  9. package/.dw/core/schemas/decision-frontmatter.schema.json +54 -0
  10. package/.dw/core/schemas/events/created.schema.json +33 -0
  11. package/.dw/core/schemas/events/debate_agent_failed.schema.json +42 -0
  12. package/.dw/core/schemas/events/debate_agent_replied.schema.json +44 -0
  13. package/.dw/core/schemas/events/debate_agent_started.schema.json +37 -0
  14. package/.dw/core/schemas/events/debate_completed.schema.json +36 -0
  15. package/.dw/core/schemas/events/debate_started.schema.json +47 -0
  16. package/.dw/core/schemas/events/goal_archived.schema.json +32 -0
  17. package/.dw/core/schemas/events/goal_created.schema.json +32 -0
  18. package/.dw/core/schemas/events/goal_field_updated.schema.json +35 -0
  19. package/.dw/core/schemas/events/goal_pivoted.schema.json +36 -0
  20. package/.dw/core/schemas/events/goal_status_changed.schema.json +40 -0
  21. package/.dw/core/schemas/events/goal_task_linked.schema.json +33 -0
  22. package/.dw/core/schemas/events/goal_task_unlinked.schema.json +33 -0
  23. package/.dw/core/schemas/events/index.json +185 -0
  24. package/.dw/core/schemas/events/orchestrator_cancelled.schema.json +29 -0
  25. package/.dw/core/schemas/events/orchestrator_completed.schema.json +38 -0
  26. package/.dw/core/schemas/events/orchestrator_confirm.schema.json +33 -0
  27. package/.dw/core/schemas/events/orchestrator_confirmed.schema.json +33 -0
  28. package/.dw/core/schemas/events/orchestrator_error.schema.json +29 -0
  29. package/.dw/core/schemas/events/orchestrator_pending_dropped.schema.json +29 -0
  30. package/.dw/core/schemas/events/orchestrator_pending_expired.schema.json +32 -0
  31. package/.dw/core/schemas/events/orchestrator_recommend_rejected.schema.json +37 -0
  32. package/.dw/core/schemas/events/orchestrator_recommended.schema.json +33 -0
  33. package/.dw/core/schemas/events/orchestrator_spawn_failed.schema.json +29 -0
  34. package/.dw/core/schemas/events/orchestrator_started.schema.json +33 -0
  35. package/.dw/core/schemas/events/orchestrator_timeout.schema.json +29 -0
  36. package/.dw/core/schemas/events/reconciled.schema.json +29 -0
  37. package/.dw/core/schemas/events/reconciled_stale.schema.json +29 -0
  38. package/.dw/core/schemas/events/session.created.schema.json +39 -0
  39. package/.dw/core/schemas/events/session.reconciled.schema.json +33 -0
  40. package/.dw/core/schemas/events/session.status_changed.schema.json +42 -0
  41. package/.dw/core/schemas/events/spawn_failed.schema.json +29 -0
  42. package/.dw/core/schemas/events/started.schema.json +59 -0
  43. package/.dw/core/schemas/events/stopped.schema.json +33 -0
  44. package/.dw/core/schemas/goal-frontmatter.schema.json +2 -2
  45. package/.dw/core/schemas/task-frontmatter.schema.json +2 -2
  46. package/.dw/core/templates/v3/task.md +38 -9
  47. package/.dw/security/advisory-snapshot.json +157 -0
  48. package/LICENSE +201 -21
  49. package/NOTICE +26 -0
  50. package/README.md +5 -2
  51. package/SECURITY.md +87 -0
  52. package/TRADEMARK.md +65 -0
  53. package/bin/dw.mjs +1 -1
  54. package/package.json +13 -5
  55. package/src/cli.mjs +33 -0
  56. package/src/commands/decision-index.mjs +45 -0
  57. package/src/commands/goal-delete.mjs +3 -1
  58. package/src/commands/goal-link.mjs +3 -1
  59. package/src/commands/goal-status.mjs +95 -0
  60. package/src/commands/lint-task.mjs +20 -0
  61. package/src/commands/task-index.mjs +47 -0
  62. package/src/commands/task-migrate.mjs +16 -5
  63. package/src/commands/task-new.mjs +6 -0
  64. package/src/commands/task-summary.mjs +4 -3
  65. package/src/commands/voice.mjs +590 -4
  66. package/src/lib/board-data.mjs +220 -0
  67. package/src/lib/debate.mjs +325 -0
  68. package/src/lib/decision-store.mjs +146 -0
  69. package/src/lib/event-schema.mjs +342 -0
  70. package/src/lib/goal-store.mjs +40 -1
  71. package/src/lib/lint-rules.mjs +10 -1
  72. package/src/lib/orchestrator.mjs +31 -9
  73. package/src/lib/session-store.mjs +36 -4
  74. package/src/lib/task-store.mjs +164 -0
  75. package/src/lib/voice-action.mjs +165 -0
  76. package/src/lib/voice-parser.mjs +13 -0
  77. package/.dw/config/connectors.local.yml +0 -38
  78. package/.dw/core/PILLARS.md +0 -122
  79. package/CLAUDE.md +0 -44
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/orchestrator_cancelled.schema.json",
4
+ "title": "DW Event: orchestrator_cancelled",
5
+ "description": "Category: voice-action. 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": "orchestrator_cancelled",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "action": {
20
+ "type": "string"
21
+ }
22
+ },
23
+ "required": [
24
+ "ts",
25
+ "event",
26
+ "action"
27
+ ],
28
+ "additionalProperties": true
29
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/orchestrator_completed.schema.json",
4
+ "title": "DW Event: orchestrator_completed",
5
+ "description": "Category: voice-orchestrator. 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": "orchestrator_completed",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "exit_code": {
20
+ "type": "integer"
21
+ },
22
+ "reply_chars": {
23
+ "type": "integer"
24
+ },
25
+ "stderr_chars": {
26
+ "type": "integer"
27
+ },
28
+ "reply_preview": {
29
+ "type": "string"
30
+ }
31
+ },
32
+ "required": [
33
+ "ts",
34
+ "event",
35
+ "exit_code"
36
+ ],
37
+ "additionalProperties": true
38
+ }
@@ -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/orchestrator_confirm.schema.json",
4
+ "title": "DW Event: orchestrator_confirm",
5
+ "description": "Category: voice-action. 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": "orchestrator_confirm",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "action": {
20
+ "type": "string"
21
+ },
22
+ "args": {
23
+ "type": "object"
24
+ }
25
+ },
26
+ "required": [
27
+ "ts",
28
+ "event",
29
+ "action",
30
+ "args"
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/orchestrator_confirmed.schema.json",
4
+ "title": "DW Event: orchestrator_confirmed",
5
+ "description": "Category: voice-action. 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": "orchestrator_confirmed",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "action": {
20
+ "type": "string"
21
+ },
22
+ "args": {
23
+ "type": "object"
24
+ }
25
+ },
26
+ "required": [
27
+ "ts",
28
+ "event",
29
+ "action",
30
+ "args"
31
+ ],
32
+ "additionalProperties": true
33
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/orchestrator_error.schema.json",
4
+ "title": "DW Event: orchestrator_error",
5
+ "description": "Category: voice-orchestrator. 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": "orchestrator_error",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "error": {
20
+ "type": "string"
21
+ }
22
+ },
23
+ "required": [
24
+ "ts",
25
+ "event",
26
+ "error"
27
+ ],
28
+ "additionalProperties": true
29
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/orchestrator_pending_dropped.schema.json",
4
+ "title": "DW Event: orchestrator_pending_dropped",
5
+ "description": "Category: voice-action. 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": "orchestrator_pending_dropped",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "action": {
20
+ "type": "string"
21
+ }
22
+ },
23
+ "required": [
24
+ "ts",
25
+ "event",
26
+ "action"
27
+ ],
28
+ "additionalProperties": true
29
+ }
@@ -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/orchestrator_pending_expired.schema.json",
4
+ "title": "DW Event: orchestrator_pending_expired",
5
+ "description": "Category: voice-action. 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": "orchestrator_pending_expired",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "action": {
20
+ "type": "string"
21
+ },
22
+ "ttl_ms": {
23
+ "type": "integer"
24
+ }
25
+ },
26
+ "required": [
27
+ "ts",
28
+ "event",
29
+ "action"
30
+ ],
31
+ "additionalProperties": true
32
+ }
@@ -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/orchestrator_recommend_rejected.schema.json",
4
+ "title": "DW Event: orchestrator_recommend_rejected",
5
+ "description": "Category: voice-action. 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": "orchestrator_recommend_rejected",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "action": {
20
+ "type": "string"
21
+ },
22
+ "args": {
23
+ "type": "object"
24
+ },
25
+ "error": {
26
+ "type": "string"
27
+ }
28
+ },
29
+ "required": [
30
+ "ts",
31
+ "event",
32
+ "action",
33
+ "args",
34
+ "error"
35
+ ],
36
+ "additionalProperties": true
37
+ }
@@ -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/orchestrator_recommended.schema.json",
4
+ "title": "DW Event: orchestrator_recommended",
5
+ "description": "Category: voice-action. 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": "orchestrator_recommended",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "action": {
20
+ "type": "string"
21
+ },
22
+ "args": {
23
+ "type": "object"
24
+ }
25
+ },
26
+ "required": [
27
+ "ts",
28
+ "event",
29
+ "action",
30
+ "args"
31
+ ],
32
+ "additionalProperties": true
33
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/orchestrator_spawn_failed.schema.json",
4
+ "title": "DW Event: orchestrator_spawn_failed",
5
+ "description": "Category: voice-orchestrator. 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": "orchestrator_spawn_failed",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "error": {
20
+ "type": "string"
21
+ }
22
+ },
23
+ "required": [
24
+ "ts",
25
+ "event",
26
+ "error"
27
+ ],
28
+ "additionalProperties": true
29
+ }
@@ -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/orchestrator_started.schema.json",
4
+ "title": "DW Event: orchestrator_started",
5
+ "description": "Category: voice-orchestrator. 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": "orchestrator_started",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "transcript_preview": {
20
+ "type": "string"
21
+ },
22
+ "agent": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ "required": [
27
+ "ts",
28
+ "event",
29
+ "transcript_preview",
30
+ "agent"
31
+ ],
32
+ "additionalProperties": true
33
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/orchestrator_timeout.schema.json",
4
+ "title": "DW Event: orchestrator_timeout",
5
+ "description": "Category: voice-orchestrator. 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": "orchestrator_timeout",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "timeout_ms": {
20
+ "type": "integer"
21
+ }
22
+ },
23
+ "required": [
24
+ "ts",
25
+ "event",
26
+ "timeout_ms"
27
+ ],
28
+ "additionalProperties": true
29
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/reconciled.schema.json",
4
+ "title": "DW Event: reconciled",
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": "reconciled",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "reason": {
20
+ "type": "string"
21
+ }
22
+ },
23
+ "required": [
24
+ "ts",
25
+ "event",
26
+ "reason"
27
+ ],
28
+ "additionalProperties": true
29
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/reconciled_stale.schema.json",
4
+ "title": "DW Event: reconciled_stale",
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": "reconciled_stale",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "by": {
20
+ "type": "string"
21
+ }
22
+ },
23
+ "required": [
24
+ "ts",
25
+ "event",
26
+ "by"
27
+ ],
28
+ "additionalProperties": true
29
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/session.created.schema.json",
4
+ "title": "DW Event: session.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": "session.created",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "session_id": {
20
+ "type": "string"
21
+ },
22
+ "agent": {
23
+ "type": "string"
24
+ },
25
+ "goal": {
26
+ "type": "string"
27
+ },
28
+ "workspace_path": {
29
+ "type": "string"
30
+ }
31
+ },
32
+ "required": [
33
+ "ts",
34
+ "event",
35
+ "session_id",
36
+ "agent"
37
+ ],
38
+ "additionalProperties": true
39
+ }
@@ -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/session.reconciled.schema.json",
4
+ "title": "DW Event: session.reconciled",
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": "session.reconciled",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "session_id": {
20
+ "type": "string"
21
+ },
22
+ "reason": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ "required": [
27
+ "ts",
28
+ "event",
29
+ "session_id",
30
+ "reason"
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/session.status_changed.schema.json",
4
+ "title": "DW Event: session.status_changed",
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": "session.status_changed",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "session_id": {
20
+ "type": "string"
21
+ },
22
+ "to_status": {
23
+ "type": "string"
24
+ },
25
+ "from_status": {
26
+ "type": "string"
27
+ },
28
+ "pid": {
29
+ "type": "integer"
30
+ },
31
+ "exit_code": {
32
+ "type": "integer"
33
+ }
34
+ },
35
+ "required": [
36
+ "ts",
37
+ "event",
38
+ "session_id",
39
+ "to_status"
40
+ ],
41
+ "additionalProperties": true
42
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/spawn_failed.schema.json",
4
+ "title": "DW Event: spawn_failed",
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": "spawn_failed",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "error": {
20
+ "type": "string"
21
+ }
22
+ },
23
+ "required": [
24
+ "ts",
25
+ "event",
26
+ "error"
27
+ ],
28
+ "additionalProperties": true
29
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/dv-workflow/dv-workflow/schemas/events/started.schema.json",
4
+ "title": "DW Event: started",
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": "started",
17
+ "description": "Event name (envelope)"
18
+ },
19
+ "pid": {
20
+ "type": "integer"
21
+ },
22
+ "command": {
23
+ "type": "string"
24
+ },
25
+ "via": {
26
+ "type": "string",
27
+ "enum": [
28
+ "cli",
29
+ "voice",
30
+ "voice-action",
31
+ "connector"
32
+ ]
33
+ },
34
+ "args": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string"
38
+ }
39
+ },
40
+ "goal_mode": {
41
+ "type": "string",
42
+ "enum": [
43
+ "stdin",
44
+ "trailing-arg"
45
+ ]
46
+ },
47
+ "workspace": {
48
+ "type": "string"
49
+ }
50
+ },
51
+ "required": [
52
+ "ts",
53
+ "event",
54
+ "pid",
55
+ "command",
56
+ "via"
57
+ ],
58
+ "additionalProperties": true
59
+ }