@kynver-app/runtime 0.1.123 → 0.1.129
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/dist/chat/chat-claim-loop.d.ts +11 -0
- package/dist/chat/command-allowlist.d.ts +8 -0
- package/dist/chat/command-executor.d.ts +13 -0
- package/dist/cli.js +62 -17782
- package/dist/config.d.ts +2 -0
- package/dist/cron/cron-cli-bin.d.ts +7 -0
- package/dist/cron/cron-readiness.d.ts +35 -0
- package/dist/daemon-heartbeat.d.ts +3 -0
- package/dist/disk-gate.d.ts +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +79 -19281
- package/dist/instruction-bundle/cache.d.ts +6 -0
- package/dist/instruction-bundle/client.d.ts +25 -0
- package/dist/instruction-bundle/contract.d.ts +4 -0
- package/dist/instruction-bundle/contract.js +5 -0
- package/dist/instruction-bundle/embedded-bundle.d.ts +3 -0
- package/dist/instruction-bundle/index.d.ts +7 -0
- package/dist/instruction-bundle/keys.d.ts +14 -0
- package/dist/instruction-bundle/state.d.ts +24 -0
- package/dist/instruction-bundle/types.d.ts +42 -0
- package/dist/instruction-bundle/verify.d.ts +15 -0
- package/dist/mesh-liveness/mesh-cron-lease-store.d.ts +9 -0
- package/dist/retry-limits.d.ts +4 -0
- package/dist/server/cleanup.js +16 -4054
- package/dist/server/default-repo.js +1 -458
- package/dist/server/harness-notice.js +15 -287
- package/dist/server/heavy-verification.js +1 -223
- package/dist/server/landing.js +1 -44
- package/dist/server/memory-cost-enforce.js +2 -480
- package/dist/server/memory-cost.js +2 -184
- package/dist/server/monitor.js +8 -1805
- package/dist/server/orchestration.js +1 -444
- package/dist/server/pr-evidence.js +1 -163
- package/dist/server/repo-search.js +1 -224
- package/dist/server/worker-policy.js +1 -432
- package/dist/worker-persona-catalog.d.ts +5 -0
- package/dist/worker-persona-catalog.js +5 -138
- package/package.json +8 -2
- package/dist/cli.js.map +0 -7
- package/dist/index.js.map +0 -7
- package/dist/server/cleanup.js.map +0 -7
- package/dist/server/default-repo.js.map +0 -7
- package/dist/server/harness-notice.js.map +0 -7
- package/dist/server/heavy-verification.js.map +0 -7
- package/dist/server/landing.js.map +0 -7
- package/dist/server/memory-cost-enforce.js.map +0 -7
- package/dist/server/memory-cost.js.map +0 -7
- package/dist/server/monitor.js.map +0 -7
- package/dist/server/orchestration.js.map +0 -7
- package/dist/server/pr-evidence.js.map +0 -7
- package/dist/server/repo-search.js.map +0 -7
- package/dist/server/worker-policy.js.map +0 -7
- package/dist/worker-persona-catalog.js.map +0 -7
|
@@ -1,138 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
];
|
|
7
|
-
var WORKER_PERSONA_DEFAULT_ROLE_LANES = [
|
|
8
|
-
"plan_author",
|
|
9
|
-
"implementer",
|
|
10
|
-
"report_reviewer",
|
|
11
|
-
"deep_reviewer",
|
|
12
|
-
"runtime_verifier",
|
|
13
|
-
"system"
|
|
14
|
-
];
|
|
15
|
-
var WORKER_PERSONA_CATALOG = [
|
|
16
|
-
{
|
|
17
|
-
slug: "ghost",
|
|
18
|
-
displayName: "Ghost",
|
|
19
|
-
description: "Orchestration \u2014 coordinates lanes, handoffs, and operator decisions.",
|
|
20
|
-
dispatchLane: null,
|
|
21
|
-
defaultRoleLane: "system"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
slug: "astra",
|
|
25
|
-
displayName: "Astra",
|
|
26
|
-
description: "Planning \u2014 plan authoring, milestones, and operational flow design.",
|
|
27
|
-
dispatchLane: "implementation",
|
|
28
|
-
defaultRoleLane: "plan_author"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
slug: "rhea",
|
|
32
|
-
displayName: "Rhea",
|
|
33
|
-
description: "Runtime / control-plane implementation \u2014 harness, dispatch, and AgentOS plumbing.",
|
|
34
|
-
dispatchLane: "implementation",
|
|
35
|
-
defaultRoleLane: "implementer"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
slug: "mnemo",
|
|
39
|
-
displayName: "Mnemo",
|
|
40
|
-
description: "Memory-quality implementation \u2014 MARM lanes, retrieval hygiene, and consolidation.",
|
|
41
|
-
dispatchLane: "implementation",
|
|
42
|
-
defaultRoleLane: "implementer"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
slug: "sentinel",
|
|
46
|
-
displayName: "Sentinel",
|
|
47
|
-
description: "Security / privacy implementation and security verification gates.",
|
|
48
|
-
dispatchLane: "review",
|
|
49
|
-
defaultRoleLane: "deep_reviewer"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
slug: "pixel",
|
|
53
|
-
displayName: "Pixel",
|
|
54
|
-
description: "Frontend \u2014 Command Center UI, dashboards, and client surfaces.",
|
|
55
|
-
dispatchLane: "implementation",
|
|
56
|
-
defaultRoleLane: "implementer"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
slug: "schema",
|
|
60
|
-
displayName: "Schema",
|
|
61
|
-
description: "Data / migrations \u2014 Prisma schema, seeds, and persistence contracts.",
|
|
62
|
-
dispatchLane: "implementation",
|
|
63
|
-
defaultRoleLane: "implementer"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
slug: "atlas",
|
|
67
|
-
displayName: "Atlas",
|
|
68
|
-
description: "Infra / reliability \u2014 deploy pipelines, observability, and runtime health.",
|
|
69
|
-
dispatchLane: "implementation",
|
|
70
|
-
defaultRoleLane: "runtime_verifier"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
slug: "bridge",
|
|
74
|
-
displayName: "Bridge",
|
|
75
|
-
description: "Integrations / MCP \u2014 tool manifests, OpenClaw bridges, and cross-service wiring.",
|
|
76
|
-
dispatchLane: "implementation",
|
|
77
|
-
defaultRoleLane: "implementer"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
slug: "catalyst",
|
|
81
|
-
displayName: "Catalyst",
|
|
82
|
-
description: "Product / domain \u2014 business rules, domain packs, and feature semantics.",
|
|
83
|
-
dispatchLane: "implementation",
|
|
84
|
-
defaultRoleLane: "implementer"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
slug: "lorentz",
|
|
88
|
-
displayName: "Lorentz",
|
|
89
|
-
description: "Deep/adversarial review lane expert for risk, correctness, and safety gates. Run adversarial review and validation gating.",
|
|
90
|
-
dispatchLane: "review",
|
|
91
|
-
defaultRoleLane: "report_reviewer"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
slug: "dalton",
|
|
95
|
-
displayName: "Dalton",
|
|
96
|
-
description: "Landing-only \u2014 merge-ready handoff and final verification evidence; no implementation ownership.",
|
|
97
|
-
dispatchLane: "landing",
|
|
98
|
-
defaultRoleLane: "implementer"
|
|
99
|
-
}
|
|
100
|
-
];
|
|
101
|
-
var BY_SLUG = new Map(WORKER_PERSONA_CATALOG.map((entry) => [entry.slug, entry]));
|
|
102
|
-
function getWorkerPersonaCatalogEntry(slug) {
|
|
103
|
-
if (!slug) return null;
|
|
104
|
-
const key = slug.trim().toLowerCase();
|
|
105
|
-
return BY_SLUG.get(key) ?? null;
|
|
106
|
-
}
|
|
107
|
-
function getPersonaDispatchLane(slug) {
|
|
108
|
-
return getWorkerPersonaCatalogEntry(slug)?.dispatchLane ?? null;
|
|
109
|
-
}
|
|
110
|
-
function getPersonaDefaultRoleLane(slug) {
|
|
111
|
-
return getWorkerPersonaCatalogEntry(slug)?.defaultRoleLane ?? null;
|
|
112
|
-
}
|
|
113
|
-
function isKnownWorkerPersonaSlug(slug) {
|
|
114
|
-
if (!slug) return false;
|
|
115
|
-
return BY_SLUG.has(slug.trim().toLowerCase());
|
|
116
|
-
}
|
|
117
|
-
function workerPersonaReviewSlugs() {
|
|
118
|
-
return WORKER_PERSONA_CATALOG.filter((entry) => entry.dispatchLane === "review").map(
|
|
119
|
-
(entry) => entry.slug
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
function workerPersonaLandingSlugs() {
|
|
123
|
-
return WORKER_PERSONA_CATALOG.filter((entry) => entry.dispatchLane === "landing").map(
|
|
124
|
-
(entry) => entry.slug
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
|
-
export {
|
|
128
|
-
WORKER_PERSONA_CATALOG,
|
|
129
|
-
WORKER_PERSONA_DEFAULT_ROLE_LANES,
|
|
130
|
-
WORKER_PERSONA_DISPATCH_LANES,
|
|
131
|
-
getPersonaDefaultRoleLane,
|
|
132
|
-
getPersonaDispatchLane,
|
|
133
|
-
getWorkerPersonaCatalogEntry,
|
|
134
|
-
isKnownWorkerPersonaSlug,
|
|
135
|
-
workerPersonaLandingSlugs,
|
|
136
|
-
workerPersonaReviewSlugs
|
|
137
|
-
};
|
|
138
|
-
//# sourceMappingURL=worker-persona-catalog.js.map
|
|
1
|
+
var d="embedded-1",c=[{slug:"ghost",displayName:"Ghost",description:"Orchestration persona.",dispatchLane:null,defaultRoleLane:"system"},{slug:"astra",displayName:"Astra",description:"Planning persona.",dispatchLane:"implementation",defaultRoleLane:"plan_author"},{slug:"rhea",displayName:"Rhea",description:"Implementation persona.",dispatchLane:"implementation",defaultRoleLane:"implementer"},{slug:"mnemo",displayName:"Mnemo",description:"Implementation persona.",dispatchLane:"implementation",defaultRoleLane:"implementer"},{slug:"sentinel",displayName:"Sentinel",description:"Review persona.",dispatchLane:"review",defaultRoleLane:"deep_reviewer"},{slug:"pixel",displayName:"Pixel",description:"Implementation persona.",dispatchLane:"implementation",defaultRoleLane:"implementer"},{slug:"schema",displayName:"Schema",description:"Implementation persona.",dispatchLane:"implementation",defaultRoleLane:"implementer"},{slug:"atlas",displayName:"Atlas",description:"Implementation persona.",dispatchLane:"implementation",defaultRoleLane:"runtime_verifier"},{slug:"bridge",displayName:"Bridge",description:"Implementation persona.",dispatchLane:"implementation",defaultRoleLane:"implementer"},{slug:"catalyst",displayName:"Catalyst",description:"Implementation persona.",dispatchLane:"implementation",defaultRoleLane:"implementer"},{slug:"lorentz",displayName:"Lorentz",description:"Review persona.",dispatchLane:"review",defaultRoleLane:"report_reviewer"},{slug:"dalton",displayName:"Dalton",description:"Landing persona.",dispatchLane:"landing",defaultRoleLane:"implementer"}],m={"worker.prompt.core_rules":["Structured final result (recommended): record completion as JSON with summary, files, PR URLs, verification, risks, and blockers.","Completion handoff (required): before you stop, summarize the outcome in your last message and append a heartbeat line with phase `complete`. Commit your work cleanly and open a GitHub PR (draft OK) for substantial changes \u2014 never leave uncommitted changes behind without reporting them.","Review-only workers must not open new implementation PRs \u2014 review the existing PR and record a verdict in the final result.","Keep verification targeted to touched paths; avoid full-monorepo verification unless explicitly requested.","Do not run `npm publish`.","If verification fails, append a heartbeat line immediately with the failing command, reason, and next action."].join(`
|
|
2
|
+
`),"worker.prompt.progress.compact":"Plan progress: when planId is set, report progress with `kynver plan progress --plan <planId> --row <rowKey> --role implementer --status in_progress|running|partial|blocked`. Do not mark rows done from the worker CLI.","worker.prompt.progress.full":["Structured plan progress (required when planId is set):","- Report checkpoints with `kynver plan progress --plan <planId> --row <rowKey> --role implementer --status in_progress|running|partial|blocked`.","- When a slice is finished, emit `partial` with evidence (`--evidence pr:<url>`, `--evidence path:<file>`, or `--evidence command:<cmd>`).","- Do not propose or confirm row `done` from the worker CLI."].join(`
|
|
3
|
+
`),"worker.prompt.merge_gate.compact":"Verification cost control: prefer local verification before requesting CI runs; do not push empty commits to re-trigger CI; record verification evidence on the PR.","worker.prompt.merge_gate.full":["Verification cost control:","- Prefer local verification of touched paths before requesting any CI run.","- Do not push empty commits to re-trigger CI.","- Record verification evidence on the PR before requesting review."].join(`
|
|
4
|
+
`),"worker.prompt.plan_artifacts.compact":"Plan artifacts: when authoring or revising plan documents, open a GitHub PR early and iterate from that PR branch; do not leave the canonical plan only in a local worktree.","worker.prompt.plan_artifacts.full":["Plan artifacts (when authoring or revising plan documents):","- Create a feature branch and open a GitHub PR (draft OK) before substantial drafting; commit and push the plan file.","- Iterate on that PR branch and link the PR URL on the related task and progress evidence."].join(`
|
|
5
|
+
`)},f={"harness.maxTaskAttempts":4,"harness.dispatchCooldownMs":5e3,"daemon.idleIntervalMs":5*6e4,"daemon.maxIdleStreak":10},r={version:d,generatedAt:"1970-01-01T00:00:00.000Z",personas:c,instructions:m,policyThresholds:f};var g=r;function o(e){if(!e)return null;let n=e.trim().toLowerCase();return g.personas.find(t=>t.slug===n)??null}var h=["implementation","review","landing"],L=["plan_author","implementer","report_reviewer","deep_reviewer","runtime_verifier","system"];function R(e){return h.includes(e)}function y(e){return L.includes(e)}function l(e){return{slug:e.slug,displayName:e.displayName,description:e.description,dispatchLane:e.dispatchLane===null||R(e.dispatchLane)?e.dispatchLane:null,defaultRoleLane:y(e.defaultRoleLane)?e.defaultRoleLane:"implementer"}}var a=r.personas.map(l),u=new Map(a.map(e=>[e.slug,e]));function p(e){if(!e)return null;let n=e.trim().toLowerCase(),t=u.get(n)??null,i=o(n);if(!i)return t;let s=l(i);return t?{...s,dispatchLane:t.dispatchLane,defaultRoleLane:t.defaultRoleLane}:s}function _(e){return p(e)?.dispatchLane??null}function k(e){return p(e)?.defaultRoleLane??null}function D(e){if(!e)return!1;let n=e.trim().toLowerCase();return u.has(n)||o(n)!==null}function N(){return a.filter(e=>e.dispatchLane==="review").map(e=>e.slug)}function S(){return a.filter(e=>e.dispatchLane==="landing").map(e=>e.slug)}export{a as WORKER_PERSONA_CATALOG,L as WORKER_PERSONA_DEFAULT_ROLE_LANES,h as WORKER_PERSONA_DISPATCH_LANES,k as getPersonaDefaultRoleLane,_ as getPersonaDispatchLane,p as getWorkerPersonaCatalogEntry,D as isKnownWorkerPersonaSlug,S as workerPersonaLandingSlugs,N as workerPersonaReviewSlugs};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kynver-app/runtime",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.129",
|
|
4
4
|
"description": "Kynver AgentOS local execution runtime and CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,6 +19,11 @@
|
|
|
19
19
|
"import": "./dist/worker-persona-catalog.js",
|
|
20
20
|
"default": "./dist/worker-persona-catalog.js"
|
|
21
21
|
},
|
|
22
|
+
"./instruction-bundle": {
|
|
23
|
+
"types": "./dist/instruction-bundle/contract.d.ts",
|
|
24
|
+
"import": "./dist/instruction-bundle/contract.js",
|
|
25
|
+
"default": "./dist/instruction-bundle/contract.js"
|
|
26
|
+
},
|
|
22
27
|
"./server/monitor": {
|
|
23
28
|
"types": "./dist/server/monitor.d.ts",
|
|
24
29
|
"import": "./dist/server/monitor.js",
|
|
@@ -83,10 +88,11 @@
|
|
|
83
88
|
},
|
|
84
89
|
"files": [
|
|
85
90
|
"dist/**",
|
|
91
|
+
"!dist/**/*.map",
|
|
86
92
|
"README.md"
|
|
87
93
|
],
|
|
88
94
|
"scripts": {
|
|
89
|
-
"build": "esbuild src/cli.ts src/index.ts src/worker-persona-catalog.ts src/server/monitor.ts src/server/landing.ts src/server/worker-policy.ts src/server/orchestration.ts src/server/heavy-verification.ts src/server/memory-cost.ts src/server/pr-evidence.ts src/server/default-repo.ts src/server/cleanup.ts src/server/repo-search.ts src/server/harness-notice.ts src/server/memory-cost-enforce.ts --bundle --platform=node --format=esm --packages=external --outbase=src --outdir=dist --
|
|
95
|
+
"build": "esbuild src/cli.ts src/index.ts src/worker-persona-catalog.ts src/instruction-bundle/contract.ts src/server/monitor.ts src/server/landing.ts src/server/worker-policy.ts src/server/orchestration.ts src/server/heavy-verification.ts src/server/memory-cost.ts src/server/pr-evidence.ts src/server/default-repo.ts src/server/cleanup.ts src/server/repo-search.ts src/server/harness-notice.ts src/server/memory-cost-enforce.ts --bundle --platform=node --format=esm --packages=external --outbase=src --outdir=dist --minify && tsc -p tsconfig.json --emitDeclarationOnly && node scripts/chmod-cli-bin.mjs",
|
|
90
96
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
91
97
|
"test": "vitest run --config vitest.config.ts",
|
|
92
98
|
"prepublishOnly": "node ../../scripts/npm-publish-guard.mjs && npm run build"
|