@kody-ade/kody-engine 0.4.223 → 0.4.225

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 (110) hide show
  1. package/README.md +8 -7
  2. package/dist/bin/kody.js +1380 -1263
  3. package/dist/executables/run/profile.json +1 -1
  4. package/dist/executables/types.ts +3 -1
  5. package/package.json +23 -22
  6. package/dist/duties/duty-scheduler/duty.md +0 -3
  7. package/dist/duties/duty-scheduler/profile.json +0 -6
  8. package/dist/duties/duty-tick/duty.md +0 -3
  9. package/dist/duties/duty-tick/profile.json +0 -6
  10. package/dist/duties/duty-tick-scripted/duty.md +0 -3
  11. package/dist/duties/duty-tick-scripted/profile.json +0 -6
  12. package/dist/duties/fix/duty.md +0 -10
  13. package/dist/duties/fix/profile.json +0 -6
  14. package/dist/duties/fix-ci/duty.md +0 -10
  15. package/dist/duties/fix-ci/profile.json +0 -6
  16. package/dist/duties/goal-scheduler/duty.md +0 -3
  17. package/dist/duties/goal-scheduler/profile.json +0 -6
  18. package/dist/duties/goal-tick/duty.md +0 -3
  19. package/dist/duties/goal-tick/profile.json +0 -6
  20. package/dist/duties/init/duty.md +0 -10
  21. package/dist/duties/init/profile.json +0 -6
  22. package/dist/duties/job-live-verify/duty.md +0 -3
  23. package/dist/duties/job-live-verify/profile.json +0 -6
  24. package/dist/duties/merge/duty.md +0 -10
  25. package/dist/duties/merge/profile.json +0 -6
  26. package/dist/duties/plan-verify/duty.md +0 -3
  27. package/dist/duties/plan-verify/profile.json +0 -6
  28. package/dist/duties/preview-build/duty.md +0 -10
  29. package/dist/duties/preview-build/profile.json +0 -6
  30. package/dist/duties/probe-skill/duty.md +0 -3
  31. package/dist/duties/probe-skill/profile.json +0 -6
  32. package/dist/duties/qa-goal/duty.md +0 -3
  33. package/dist/duties/qa-goal/profile.json +0 -6
  34. package/dist/duties/release/duty.md +0 -10
  35. package/dist/duties/release/profile.json +0 -6
  36. package/dist/duties/release-deploy/duty.md +0 -10
  37. package/dist/duties/release-deploy/profile.json +0 -6
  38. package/dist/duties/release-prepare/duty.md +0 -10
  39. package/dist/duties/release-prepare/profile.json +0 -6
  40. package/dist/duties/release-publish/duty.md +0 -10
  41. package/dist/duties/release-publish/profile.json +0 -6
  42. package/dist/duties/resolve/duty.md +0 -10
  43. package/dist/duties/resolve/profile.json +0 -6
  44. package/dist/duties/revert/duty.md +0 -10
  45. package/dist/duties/revert/profile.json +0 -6
  46. package/dist/duties/sync/duty.md +0 -10
  47. package/dist/duties/sync/profile.json +0 -6
  48. package/dist/duties/task-job-fail-once/duty.md +0 -3
  49. package/dist/duties/task-job-fail-once/profile.json +0 -6
  50. package/dist/duties/task-job-pass-a/duty.md +0 -3
  51. package/dist/duties/task-job-pass-a/profile.json +0 -6
  52. package/dist/duties/task-job-pass-b/duty.md +0 -3
  53. package/dist/duties/task-job-pass-b/profile.json +0 -6
  54. package/dist/duties/task-jobs/duty.md +0 -3
  55. package/dist/duties/task-jobs/profile.json +0 -6
  56. package/dist/duties/worker-ask/duty.md +0 -10
  57. package/dist/duties/worker-ask/profile.json +0 -6
  58. package/dist/executables/duty-scheduler/profile.json +0 -57
  59. package/dist/executables/duty-tick/profile.json +0 -78
  60. package/dist/executables/duty-tick/prompt.md +0 -77
  61. package/dist/executables/duty-tick/prompts/locked.md +0 -50
  62. package/dist/executables/duty-tick-scripted/profile.json +0 -72
  63. package/dist/executables/fix/profile.json +0 -91
  64. package/dist/executables/fix/prompt.md +0 -90
  65. package/dist/executables/fix-ci/profile.json +0 -71
  66. package/dist/executables/fix-ci/prompt.md +0 -78
  67. package/dist/executables/goal-scheduler/profile.json +0 -53
  68. package/dist/executables/goal-scheduler/scheduler.sh +0 -82
  69. package/dist/executables/goal-tick/profile.json +0 -69
  70. package/dist/executables/init/profile.json +0 -36
  71. package/dist/executables/job-live-verify/profile.json +0 -36
  72. package/dist/executables/job-live-verify/prompt.md +0 -42
  73. package/dist/executables/merge/profile.json +0 -54
  74. package/dist/executables/plan-verify/profile.json +0 -38
  75. package/dist/executables/plan-verify/prompt.md +0 -72
  76. package/dist/executables/preview-build/profile.json +0 -61
  77. package/dist/executables/preview-health/profile.json +0 -48
  78. package/dist/executables/preview-health/tick.sh +0 -319
  79. package/dist/executables/probe-skill/profile.json +0 -35
  80. package/dist/executables/probe-skill/prompt.md +0 -31
  81. package/dist/executables/probe-skill/skills/probe-skill-marker/SKILL.md +0 -18
  82. package/dist/executables/qa-goal/profile.json +0 -65
  83. package/dist/executables/release/deploy.sh +0 -157
  84. package/dist/executables/release/prepare.sh +0 -353
  85. package/dist/executables/release/profile.json +0 -95
  86. package/dist/executables/release/publish.sh +0 -88
  87. package/dist/executables/release/release.sh +0 -183
  88. package/dist/executables/release/wait.sh +0 -88
  89. package/dist/executables/release-deploy/deploy.sh +0 -222
  90. package/dist/executables/release-deploy/profile.json +0 -53
  91. package/dist/executables/release-prepare/prepare.sh +0 -368
  92. package/dist/executables/release-prepare/profile.json +0 -70
  93. package/dist/executables/release-publish/profile.json +0 -53
  94. package/dist/executables/release-publish/publish.sh +0 -137
  95. package/dist/executables/resolve/apply-prefer.sh +0 -54
  96. package/dist/executables/resolve/profile.json +0 -107
  97. package/dist/executables/resolve/prompt.md +0 -51
  98. package/dist/executables/revert/profile.json +0 -82
  99. package/dist/executables/revert/revert.sh +0 -33
  100. package/dist/executables/sync/profile.json +0 -48
  101. package/dist/executables/task-job-fail-once/profile.json +0 -44
  102. package/dist/executables/task-job-fail-once/prompt.md +0 -1
  103. package/dist/executables/task-job-pass-a/profile.json +0 -43
  104. package/dist/executables/task-job-pass-a/prompt.md +0 -1
  105. package/dist/executables/task-job-pass-b/profile.json +0 -43
  106. package/dist/executables/task-job-pass-b/prompt.md +0 -1
  107. package/dist/executables/task-jobs/profile.json +0 -41
  108. package/dist/executables/task-jobs/prompt.md +0 -1
  109. package/dist/executables/worker-ask/profile.json +0 -70
  110. package/dist/executables/worker-ask/prompt.md +0 -60
package/README.md CHANGED
@@ -38,7 +38,7 @@ kody: reads the issue → writes the code → runs your tests → opens a PR
38
38
  In the repo you want kody to work on:
39
39
 
40
40
  ```bash
41
- npx -y -p @kody-ade/kody-engine@latest kody init
41
+ npx -y -p @kody-ade/kody-engine@latest kody-engine init
42
42
  ```
43
43
 
44
44
  Then add **one** repo secret — a model provider key (e.g. `ANTHROPIC_API_KEY`) —
@@ -72,7 +72,7 @@ See [SECURITY.md](SECURITY.md) to report a vulnerability.
72
72
  └─────────────────────────────────────────────┘
73
73
 
74
74
  ┌─────────────────────────────────────────────┐
75
- │ kody CLI (@kody-ade/kody-engine)
75
+ │ kody-engine CLI (@kody-ade/kody-engine)
76
76
  │ bin/kody.ts — entrypoint │
77
77
  │ src/dispatch.ts — duty-driven routing │
78
78
  │ src/executor.ts — runs duty implementations│
@@ -91,10 +91,10 @@ Executable directories are private implementation units and contain **only** thr
91
91
  ## Install in a consumer repo
92
92
 
93
93
  ```bash
94
- npx -y -p @kody-ade/kody-engine@latest kody init
94
+ npx -y -p @kody-ade/kody-engine@latest kody-engine init
95
95
  ```
96
96
 
97
- `kody init` scaffolds [kody.config.json](kody.config.schema.json), `.github/workflows/kody.yml` (generated from `WORKFLOW_TEMPLATE` in [src/scripts/initFlow.ts](src/scripts/initFlow.ts)), and per-scheduled-duty workflow files. Idempotent — pass `--force` to overwrite.
97
+ `kody-engine init` scaffolds [kody.config.json](kody.config.schema.json), `.github/workflows/kody.yml` (generated from `WORKFLOW_TEMPLATE` in [src/scripts/initFlow.ts](src/scripts/initFlow.ts)), and per-scheduled-duty workflow files. Idempotent — pass `--force` to overwrite.
98
98
 
99
99
  Required repo secrets: at least one model provider key (e.g. `MINIMAX_API_KEY`, `ANTHROPIC_API_KEY`). Recommended: `KODY_TOKEN` PAT so kody's commits trigger downstream CI and can modify `.github/workflows/*`.
100
100
 
@@ -121,13 +121,14 @@ kody-engine release --issue <N> [--bump patch|minor|major] [--dry-run]
121
121
  kody-engine release-prepare --issue <N> [--bump patch|minor|major] [--dry-run]
122
122
  kody-engine release-publish --issue <N> [--dry-run]
123
123
  kody-engine release-deploy --issue <N> [--dry-run]
124
+ kody-engine npm-publish [--tag latest] [--access public] [--dry-run]
124
125
 
125
126
  # scheduled duties and goals
126
127
  kody-engine duty-scheduler # fan out due .kody/duties/<slug>/ folders
127
128
  kody-engine duty-tick --duty <slug> [--force] # one agent tick for one duty
128
129
  kody-engine duty-tick-scripted --duty <slug> [--force] # one deterministic tickScript duty tick
129
- kody-engine goal-scheduler # fan out active .kody/goals/* state files
130
- kody-engine goal-tick --goal <id> # advance one stacked-PR goal
130
+ kody-engine goal-scheduler # fan out active .kody/goals/instances/* state files
131
+ kody-engine goal-manager --goal <id> # advance one managed goal instance
131
132
 
132
133
  # setup, servers, and utilities
133
134
  kody-engine init [--force] # scaffold consumer repo
@@ -143,7 +144,7 @@ kody-engine stats # inspect run/even
143
144
 
144
145
  ### Duties
145
146
 
146
- A **duty** is a folder at `.kody/duties/<slug>/` with `profile.json` metadata (`every`, `staff`, `action`, `executable`, `stage`, and related fields) plus human-owned prose in `duty.md`. `duty-scheduler` wakes on cron, finds due duties, and dispatches either `duty-tick` for an agent tick or `duty-tick-scripted` for a deterministic `tickScript` duty. `kody init` copies built-in starter duties and scaffolds `.kody/staff/kody.md`.
147
+ A **duty** is a folder at `.kody/duties/<slug>/` with `profile.json` metadata (`every`, `staff`, `action`, `executable`, `stage`, and related fields) plus human-owned prose in `duty.md`. `duty-scheduler` wakes on cron, finds due duties, and dispatches either `duty-tick` for an agent tick or `duty-tick-scripted` for a deterministic `tickScript` duty. `kody-engine init` copies built-in starter duties and scaffolds `.kody/staff/kody.md`.
147
148
 
148
149
  Locked-toolbox duties can declare `"tools": [...]` in `profile.json` to run with only the named high-level MCP intents plus `submit_state`; duties without `tools` keep the legacy Bash/gh toolbox.
149
150