@iiiokojiadbi/shift 0.36.1 → 0.37.0
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/core/flows.ts +2 -2
- package/core/loop.ts +1 -1
- package/package.json +1 -1
package/core/flows.ts
CHANGED
|
@@ -388,7 +388,7 @@ export type LetGo = {
|
|
|
388
388
|
// What the history was let go into, as the harness gives it back.
|
|
389
389
|
messages: readonly { role: string; text: string }[]
|
|
390
390
|
before: number | undefined
|
|
391
|
-
after: number
|
|
391
|
+
after: number | undefined
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
// After the let-go: the summary and the outcome on disk, then continue or wait, as the agent asked. `back` is what
|
|
@@ -398,7 +398,7 @@ export async function settleShift(project: Project, letGo: LetGo, back?: HandedB
|
|
|
398
398
|
const { shift, before, after } = letGo
|
|
399
399
|
const summary = renderSummary(letGo.messages)
|
|
400
400
|
await store.write(`${shift.dir}/${NAMES.summary}`, summary)
|
|
401
|
-
const shrank = `${formatK(before
|
|
401
|
+
const shrank = `${before === undefined ? '?' : formatK(before)} → ${after === undefined ? '?' : formatK(after)}`
|
|
402
402
|
const outcome = (result: string) =>
|
|
403
403
|
store.write(
|
|
404
404
|
`${shift.dir}/${NAMES.about}`,
|
package/core/loop.ts
CHANGED
|
@@ -143,7 +143,7 @@ async function letGoShift(project: Project, loop: Loop, harness: LetGoHarness, s
|
|
|
143
143
|
shift,
|
|
144
144
|
messages: done.messages,
|
|
145
145
|
before: done.before ?? before,
|
|
146
|
-
after: done.after ?? (await harness.fill())
|
|
146
|
+
after: done.after ?? (await harness.fill()),
|
|
147
147
|
},
|
|
148
148
|
back ?? undefined,
|
|
149
149
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iiiokojiadbi/shift",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"description": "The agent decides by itself when to shift: it keeps a work board and task folders, writes a letter to itself, and continues from where it stopped.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|