@kody-ade/kody-engine 0.4.264 → 0.4.265
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.
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"name": "agent-factory",
|
|
3
3
|
"action": "agent-factory",
|
|
4
4
|
"describe": "Create or assemble Kody agency model definitions from an operator request.",
|
|
5
|
-
"capabilityKind": "act",
|
|
6
5
|
"role": "primitive",
|
|
7
6
|
"kind": "oneshot",
|
|
8
7
|
"inputs": [
|
|
@@ -22,7 +21,11 @@
|
|
|
22
21
|
"systemPromptAppend": null,
|
|
23
22
|
"cacheable": true,
|
|
24
23
|
"enableVerifyTool": false,
|
|
25
|
-
"tools": [
|
|
24
|
+
"tools": [
|
|
25
|
+
"Read",
|
|
26
|
+
"Grep",
|
|
27
|
+
"Glob"
|
|
28
|
+
],
|
|
26
29
|
"hooks": [],
|
|
27
30
|
"skills": [],
|
|
28
31
|
"commands": [],
|
|
@@ -33,15 +36,27 @@
|
|
|
33
36
|
"cliTools": [],
|
|
34
37
|
"scripts": {
|
|
35
38
|
"preflight": [
|
|
36
|
-
{
|
|
37
|
-
|
|
39
|
+
{
|
|
40
|
+
"script": "loadIssueContext"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"script": "composePrompt"
|
|
44
|
+
}
|
|
38
45
|
],
|
|
39
46
|
"postflight": [
|
|
40
|
-
{
|
|
41
|
-
|
|
47
|
+
{
|
|
48
|
+
"script": "parseAgentResult"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"script": "openAgentFactoryStatePr"
|
|
52
|
+
}
|
|
42
53
|
]
|
|
43
54
|
},
|
|
44
55
|
"output": {
|
|
45
|
-
"actionTypes": [
|
|
56
|
+
"actionTypes": [
|
|
57
|
+
"AGENT_FACTORY_COMPLETED",
|
|
58
|
+
"AGENT_FACTORY_FAILED",
|
|
59
|
+
"AGENT_NOT_RUN"
|
|
60
|
+
]
|
|
46
61
|
}
|
|
47
62
|
}
|
|
@@ -15,8 +15,6 @@ import type { Phase } from "../state.js"
|
|
|
15
15
|
// Profile shape (mirrors the JSON on disk).
|
|
16
16
|
// ────────────────────────────────────────────────────────────────────────────
|
|
17
17
|
|
|
18
|
-
export type CapabilityKind = "observe" | "act" | "verify"
|
|
19
|
-
|
|
20
18
|
export interface Profile {
|
|
21
19
|
name: string
|
|
22
20
|
/**
|
|
@@ -35,11 +33,6 @@ export interface Profile {
|
|
|
35
33
|
*/
|
|
36
34
|
agent?: string
|
|
37
35
|
describe: string
|
|
38
|
-
/**
|
|
39
|
-
* Author-facing capability promise for a capability/executable. This classifies the
|
|
40
|
-
* shape of result it should return; it does not change executor control flow.
|
|
41
|
-
*/
|
|
42
|
-
capabilityKind?: CapabilityKind
|
|
43
36
|
/**
|
|
44
37
|
* Semantic role — what this executable IS, not when it runs.
|
|
45
38
|
* - primitive: single-step agent executor (flow → agent → verify → commit → PR).
|
|
@@ -389,58 +382,6 @@ export interface OutputContract {
|
|
|
389
382
|
}
|
|
390
383
|
}
|
|
391
384
|
|
|
392
|
-
export interface CapabilityAlert {
|
|
393
|
-
level?: "info" | "warning" | "error"
|
|
394
|
-
message: string
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
export interface CapabilitySuggestedAction {
|
|
398
|
-
action: string
|
|
399
|
-
args?: Record<string, unknown>
|
|
400
|
-
reason?: string
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
export interface CapabilityResourceRef {
|
|
404
|
-
type: string
|
|
405
|
-
id?: string | number
|
|
406
|
-
number?: number
|
|
407
|
-
url?: string
|
|
408
|
-
name?: string
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
export interface CapabilityEvidenceItem {
|
|
412
|
-
source?: string
|
|
413
|
-
message: string
|
|
414
|
-
url?: string
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
export interface ObserveResult {
|
|
418
|
-
kind: "observe"
|
|
419
|
-
facts?: Record<string, unknown>
|
|
420
|
-
alerts?: CapabilityAlert[]
|
|
421
|
-
suggestedActions?: CapabilitySuggestedAction[]
|
|
422
|
-
evidence?: Record<string, unknown>
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export interface ActResult {
|
|
426
|
-
kind: "act"
|
|
427
|
-
status: "created" | "changed" | "triggered" | "skipped" | "failed"
|
|
428
|
-
changedResources?: CapabilityResourceRef[]
|
|
429
|
-
createdResources?: CapabilityResourceRef[]
|
|
430
|
-
actionResult?: Record<string, unknown>
|
|
431
|
-
evidence?: Record<string, unknown>
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
export interface VerifyResult {
|
|
435
|
-
kind: "verify"
|
|
436
|
-
passed: boolean
|
|
437
|
-
evidence?: CapabilityEvidenceItem[]
|
|
438
|
-
blockers?: string[]
|
|
439
|
-
facts?: Record<string, unknown>
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
export type CapabilityResult = ObserveResult | ActResult | VerifyResult
|
|
443
|
-
|
|
444
385
|
// ────────────────────────────────────────────────────────────────────────────
|
|
445
386
|
// Run-time context passed to every script.
|
|
446
387
|
// ────────────────────────────────────────────────────────────────────────────
|
|
@@ -472,6 +413,7 @@ export interface Context {
|
|
|
472
413
|
nextDispatch?: {
|
|
473
414
|
action?: string
|
|
474
415
|
capability?: string
|
|
416
|
+
workflow?: string
|
|
475
417
|
executable?: string
|
|
476
418
|
cliArgs: Record<string, unknown>
|
|
477
419
|
saveReport?: boolean
|
|
@@ -482,6 +424,7 @@ export interface Context {
|
|
|
482
424
|
afterNextJob?: {
|
|
483
425
|
action?: string
|
|
484
426
|
capability?: string
|
|
427
|
+
workflow?: string
|
|
485
428
|
executable?: string
|
|
486
429
|
cliArgs: Record<string, unknown>
|
|
487
430
|
saveReport?: boolean
|
|
@@ -538,6 +481,8 @@ export interface Job {
|
|
|
538
481
|
executable?: string
|
|
539
482
|
/** Why (referenced): a capability slug whose intent drives the run. */
|
|
540
483
|
capability?: string
|
|
484
|
+
/** Why (referenced): a stored workflow definition to run as an ordered capability chain. */
|
|
485
|
+
workflow?: string
|
|
541
486
|
/** Why (inline): free-text intent, e.g. an `@kody` comment body. Untrusted —
|
|
542
487
|
* fenced where it enters a prompt, not here. */
|
|
543
488
|
why?: string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.265",
|
|
4
4
|
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|