@kody-ade/kody-engine 0.4.237 → 0.4.239
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/README.md +18 -18
- package/dist/agent-actions/run/profile.json +83 -0
- package/dist/agent-actions/run/prompt.md +81 -0
- package/dist/agent-actions/types.ts +551 -0
- package/dist/agent-responsibilities/run/agent-responsibility.md +10 -0
- package/dist/agent-responsibilities/run/profile.json +6 -0
- package/dist/bin/kody.js +948 -942
- package/dist/executables/types.ts +10 -10
- package/dist/plugins/hooks/block-write.json +1 -1
- package/kody.config.schema.json +8 -8
- package/package.json +2 -2
|
@@ -26,14 +26,14 @@ export interface Profile {
|
|
|
26
26
|
*/
|
|
27
27
|
action?: string
|
|
28
28
|
/**
|
|
29
|
-
* Optional
|
|
30
|
-
* loads `.kody/
|
|
29
|
+
* Optional agent this executable runs *as*. When set, the executor
|
|
30
|
+
* loads `.kody/agents/<agent>.md` and injects that agent (authoritative
|
|
31
31
|
* identity) ahead of the executable's own system-prompt append. This is the
|
|
32
|
-
* unification hook: a "duty" is just an executable +
|
|
33
|
-
* runs with no
|
|
34
|
-
*
|
|
32
|
+
* unification hook: a "duty" is just an executable + an agent. Absent →
|
|
33
|
+
* runs with no agent (unchanged legacy behaviour). A declared-but-missing
|
|
34
|
+
* agent file is fatal at run time (see src/agents.ts).
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
agent?: string
|
|
37
37
|
describe: string
|
|
38
38
|
/**
|
|
39
39
|
* Author-facing capability promise for a duty/executable. This classifies the
|
|
@@ -59,8 +59,8 @@ export interface Profile {
|
|
|
59
59
|
* A duty is the WHY/WHEN layer: it references an executable (the HOW) by name
|
|
60
60
|
* rather than embedding it. When set, the loader resolves that executable's
|
|
61
61
|
* full profile (claudeCode/scripts/prompt/agents) and overlays this duty's
|
|
62
|
-
* name +
|
|
63
|
-
* executable (defines its own how). executable = how,
|
|
62
|
+
* name + agent (WHO) + every (WHEN) + mentions. Absent → this profile IS an
|
|
63
|
+
* executable (defines its own how). executable = how, agent = who, duty = why.
|
|
64
64
|
*/
|
|
65
65
|
executable?: string
|
|
66
66
|
/**
|
|
@@ -536,8 +536,8 @@ export interface Job {
|
|
|
536
536
|
/** Why (inline): free-text intent, e.g. an `@kody` comment body. Untrusted —
|
|
537
537
|
* fenced where it enters a prompt, not here. */
|
|
538
538
|
why?: string
|
|
539
|
-
/** Who:
|
|
540
|
-
|
|
539
|
+
/** Who: an agent identity slug. */
|
|
540
|
+
agent?: string
|
|
541
541
|
/** When: cron expression. Set for scheduled jobs, absent for instant. */
|
|
542
542
|
schedule?: string
|
|
543
543
|
/** The issue/PR number this job acts on, when applicable. */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"hooks": [
|
|
8
8
|
{
|
|
9
9
|
"type": "command",
|
|
10
|
-
"command": "node -e 'process.stderr.write(\"kody read-only mode: this
|
|
10
|
+
"command": "node -e 'process.stderr.write(\"kody read-only mode: this agentAction does not modify files; do not call Write/Edit/NotebookEdit\\n\");process.exit(2)'"
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
13
|
}
|
package/kody.config.schema.json
CHANGED
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"enum": ["off", "low", "medium", "high"],
|
|
69
69
|
"description": "Default thinking effort for the Claude Agent SDK. Maps to maxThinkingTokens. 'off' (default) skips the thinking block entirely — no reasoning preamble, no extra tokens. 'low'/'medium'/'high' enable extended thinking with budgets 2_048/10_000/32_000. Overridable per-session via the REASONING_EFFORT env var or the dashboard's chat-level thinking dropdown."
|
|
70
70
|
},
|
|
71
|
-
"
|
|
71
|
+
"perAgentAction": {
|
|
72
72
|
"type": "object",
|
|
73
|
-
"description": "Optional provider/model override by
|
|
73
|
+
"description": "Optional provider/model override by agentAction name.",
|
|
74
74
|
"additionalProperties": {
|
|
75
75
|
"type": "string",
|
|
76
76
|
"pattern": "^[^/]+/.+$"
|
|
@@ -104,22 +104,22 @@
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
|
-
"
|
|
107
|
+
"defaultAgentAction": {
|
|
108
108
|
"type": "string",
|
|
109
|
-
"description": "
|
|
109
|
+
"description": "AgentAction used for bare @kody comments on issues.",
|
|
110
110
|
"default": "run"
|
|
111
111
|
},
|
|
112
|
-
"
|
|
112
|
+
"defaultPrAgentAction": {
|
|
113
113
|
"type": "string",
|
|
114
|
-
"description": "Optional
|
|
114
|
+
"description": "Optional agentAction used for bare @kody comments on PRs. Leave unset to require explicit PR commands."
|
|
115
115
|
},
|
|
116
116
|
"onPullRequest": {
|
|
117
117
|
"type": "string",
|
|
118
|
-
"description": "Optional
|
|
118
|
+
"description": "Optional agentAction to run on pull_request opened, synchronize, or reopened events."
|
|
119
119
|
},
|
|
120
120
|
"aliases": {
|
|
121
121
|
"type": "object",
|
|
122
|
-
"description": "Comment subcommand aliases, mapping typed word to
|
|
122
|
+
"description": "Comment subcommand aliases, mapping typed word to agentAction name.",
|
|
123
123
|
"additionalProperties": {
|
|
124
124
|
"type": "string"
|
|
125
125
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative
|
|
3
|
+
"version": "0.4.239",
|
|
4
|
+
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative agentAction profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|