autark-cli 0.5.1 → 0.5.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.
- package/autark.mjs +20 -4
- package/package.json +1 -1
package/autark.mjs
CHANGED
|
@@ -515,10 +515,8 @@ async function refreshRuntimeFiles() {
|
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
async function refreshSkills() {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
if (res.status !== 0) throw new Error(`skill ${name} install failed`)
|
|
521
|
-
}
|
|
518
|
+
const res = await spawnSync('pnpm', ['dlx', '--silent', 'skills', 'add', 'kiluazen/kstack', '-s', SKILL_NAMES.join(','), '-y', '-g'])
|
|
519
|
+
if (res.status !== 0) throw new Error(`kstack skills install failed`)
|
|
522
520
|
}
|
|
523
521
|
|
|
524
522
|
async function reloadLaunchd() {
|
|
@@ -1165,6 +1163,16 @@ function printHypothesisContext(result) {
|
|
|
1165
1163
|
kv('hypothesis.code', result.hypothesis.code)
|
|
1166
1164
|
kv('hypothesis.title', result.hypothesis.title)
|
|
1167
1165
|
kv('hypothesis.status', result.hypothesis.status)
|
|
1166
|
+
// Feedback — operator nudges left on this hypothesis, oldest first. The
|
|
1167
|
+
// worker returns them; previously the CLI silently dropped them, so agents
|
|
1168
|
+
// never saw the operator's running corrections. Now surface them up top
|
|
1169
|
+
// (before runs/actions) so the agent reads them at the start of every run.
|
|
1170
|
+
for (const f of (result.feedback || [])) {
|
|
1171
|
+
const shortF = actionShortId(f.id)
|
|
1172
|
+
kv(`feedback.${shortF}.created_at`, f.created_at)
|
|
1173
|
+
if (f.action_id) kv(`feedback.${shortF}.action_id`, f.action_id)
|
|
1174
|
+
kv(`feedback.${shortF}.text`, f.text)
|
|
1175
|
+
}
|
|
1168
1176
|
for (const run of (result.runs || [])) {
|
|
1169
1177
|
const shortRun = actionShortId(run.id)
|
|
1170
1178
|
kv(`run.${shortRun}.id`, run.id)
|
|
@@ -1195,6 +1203,14 @@ function printHypothesisContext(result) {
|
|
|
1195
1203
|
// ---- narrative ----
|
|
1196
1204
|
console.log(`# ${result.product.slug}/${result.hypothesis.code} — ${result.hypothesis.title}\n`)
|
|
1197
1205
|
console.log(result.hypothesis.hypothesis_md)
|
|
1206
|
+
if ((result.feedback || []).length > 0) {
|
|
1207
|
+
console.log(`\n\n## Feedback (operator nudges, oldest first)\n`)
|
|
1208
|
+
for (const f of result.feedback) {
|
|
1209
|
+
const when = f.created_at || ''
|
|
1210
|
+
const tag = f.action_id ? ` (on action ${f.action_id})` : ''
|
|
1211
|
+
console.log(`- [${when}]${tag} ${f.text}`)
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1198
1214
|
for (const run of (result.runs || [])) {
|
|
1199
1215
|
console.log(`\n\n## Run ${run.run_number} (${run.id})`)
|
|
1200
1216
|
console.log(`started: ${run.started_at}${run.finished_at ? ` finished: ${run.finished_at}` : ' (in progress)'}`)
|
package/package.json
CHANGED