intentdna 1.2.0 → 1.2.2

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 (61) hide show
  1. package/dist/cli/commands/init.d.ts +2 -0
  2. package/dist/cli/commands/init.d.ts.map +1 -1
  3. package/dist/cli/commands/init.js +206 -13
  4. package/dist/cli/commands/init.js.map +1 -1
  5. package/dist/cli/commands/run.d.ts.map +1 -1
  6. package/dist/cli/commands/run.js +81 -0
  7. package/dist/cli/commands/run.js.map +1 -1
  8. package/dist/cli/commands/sync.d.ts.map +1 -1
  9. package/dist/cli/commands/sync.js +43 -1
  10. package/dist/cli/commands/sync.js.map +1 -1
  11. package/dist/cli/index.js +6 -0
  12. package/dist/cli/index.js.map +1 -1
  13. package/dist/compiler/cascade.d.ts +8 -1
  14. package/dist/compiler/cascade.d.ts.map +1 -1
  15. package/dist/compiler/cascade.js +40 -4
  16. package/dist/compiler/cascade.js.map +1 -1
  17. package/dist/compiler/compile.d.ts.map +1 -1
  18. package/dist/compiler/compile.js +28 -0
  19. package/dist/compiler/compile.js.map +1 -1
  20. package/dist/compiler/workflow.d.ts.map +1 -1
  21. package/dist/compiler/workflow.js +2 -0
  22. package/dist/compiler/workflow.js.map +1 -1
  23. package/dist/runtime/hooks.d.ts.map +1 -1
  24. package/dist/runtime/hooks.js +141 -1
  25. package/dist/runtime/hooks.js.map +1 -1
  26. package/dist/runtime/skill-adapter.d.ts.map +1 -1
  27. package/dist/runtime/skill-adapter.js +5 -1
  28. package/dist/runtime/skill-adapter.js.map +1 -1
  29. package/dist/runtime/workflow-runner.d.ts.map +1 -1
  30. package/dist/runtime/workflow-runner.js +13 -0
  31. package/dist/runtime/workflow-runner.js.map +1 -1
  32. package/dist/schema/types.d.ts +36 -0
  33. package/dist/schema/types.d.ts.map +1 -1
  34. package/dist/schema/validate.d.ts +1 -0
  35. package/dist/schema/validate.d.ts.map +1 -1
  36. package/dist/schema/validate.js +57 -4
  37. package/dist/schema/validate.js.map +1 -1
  38. package/dist/templates/api-backend.dna.yaml +1 -0
  39. package/dist/templates/brainstorming-first.dna.yaml +1 -0
  40. package/dist/templates/branch-finishing.dna.yaml +1 -0
  41. package/dist/templates/code-review-pipeline.dna.yaml +13 -0
  42. package/dist/templates/devops-cicd.dna.yaml +1 -0
  43. package/dist/templates/documentation-writer.dna.yaml +1 -0
  44. package/dist/templates/enterprise-baseline.dna.yaml +1 -0
  45. package/dist/templates/flutter-behavior-lock.dna.yaml +18 -0
  46. package/dist/templates/flutter-refactoring-rescue.dna.yaml +14 -0
  47. package/dist/templates/flutter-rewrite.dna.yaml +55 -16
  48. package/dist/templates/frontend-quality.dna.yaml +1 -0
  49. package/dist/templates/full-pipeline.dna.yaml +27 -0
  50. package/dist/templates/mobile-dev.dna.yaml +1 -0
  51. package/dist/templates/monorepo-governance.dna.yaml +1 -0
  52. package/dist/templates/multi-perspective-review.dna.yaml +14 -0
  53. package/dist/templates/pr-submitter.dna.yaml +1 -0
  54. package/dist/templates/safe-refactoring.dna.yaml +1 -0
  55. package/dist/templates/secure-dev.dna.yaml +1 -0
  56. package/dist/templates/subagent-parallel.dna.yaml +18 -0
  57. package/dist/templates/systematic-debugging.dna.yaml +1 -0
  58. package/dist/templates/tdd-strict.dna.yaml +1 -0
  59. package/dist/templates/verification-loop.dna.yaml +1 -0
  60. package/dist/templates/yolo-with-guardrails.dna.yaml +1 -0
  61. package/package.json +1 -1
@@ -7,6 +7,7 @@ version: "0.1.0"
7
7
  id: template_safe_refactoring
8
8
  name: Safe Refactoring
9
9
  type: project
10
+ namespace: sr
10
11
 
11
12
  cascade:
12
13
  inherits: ["species:default"]
@@ -6,6 +6,7 @@ version: "0.1.0"
6
6
  id: template_secure_dev
7
7
  name: Secure Development Baseline
8
8
  type: project
9
+ namespace: sd
9
10
 
10
11
  cascade:
11
12
  inherits: ["species:default"]
@@ -7,6 +7,7 @@ version: "0.1.0"
7
7
  id: template_subagent_parallel
8
8
  name: Subagent Parallel Development
9
9
  type: project
10
+ namespace: sap
10
11
 
11
12
  cascade:
12
13
  inherits: ["species:default"]
@@ -81,18 +82,35 @@ roles:
81
82
  - Do not modify files outside your assigned scope
82
83
  - Report completion with a summary of changes
83
84
 
85
+ modes:
86
+ plan:
87
+ description: "Decompose task into subtasks. Read-only."
88
+ tool_permissions:
89
+ deny: [Edit, Write, NotebookEdit]
90
+ execute:
91
+ description: "Execute subtask. Write to src/ and test/."
92
+ scope:
93
+ write: ["src/**", "test/**"]
94
+ review:
95
+ description: "Two-phase review. Read-only."
96
+ tool_permissions:
97
+ deny: [Edit, Write, NotebookEdit]
98
+
84
99
  workflows:
85
100
  parallel-dev:
86
101
  name: Parallel Development
87
102
  steps:
88
103
  - id: plan
89
104
  role: architect
105
+ mode: plan
90
106
  description: Decompose task into parallel subtasks
91
107
  - id: execute
92
108
  role: worker
109
+ mode: execute
93
110
  depends_on: [plan]
94
111
  description: Execute assigned subtask
95
112
  - id: review
96
113
  role: architect
114
+ mode: review
97
115
  depends_on: [execute]
98
116
  description: Two-phase review (spec + quality)
@@ -6,6 +6,7 @@ version: "0.1.0"
6
6
  id: template_systematic_debugging
7
7
  name: Systematic Debugging
8
8
  type: project
9
+ namespace: dbg
9
10
 
10
11
  cascade:
11
12
  inherits: ["species:default"]
@@ -6,6 +6,7 @@ version: "0.1.0"
6
6
  id: template_tdd_strict
7
7
  name: Strict Test-Driven Development
8
8
  type: project
9
+ namespace: tdd
9
10
 
10
11
  cascade:
11
12
  inherits: ["species:default"]
@@ -7,6 +7,7 @@ version: "0.1.0"
7
7
  id: template_verification_loop
8
8
  name: Verification Before Completion
9
9
  type: project
10
+ namespace: vl
10
11
 
11
12
  cascade:
12
13
  inherits: ["species:default"]
@@ -6,6 +6,7 @@ version: "0.1.0"
6
6
  id: template_yolo_guardrails
7
7
  name: YOLO with Guardrails
8
8
  type: personal
9
+ namespace: yolo
9
10
 
10
11
  cascade:
11
12
  inherits: ["species:default"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intentdna",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Intent DNA — Declarative policy layer for AI agent behavior",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",