crawd 0.9.5 → 0.9.6
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/package.json
CHANGED
|
@@ -330,24 +330,24 @@ describe('Coordinator — Plan Mode', () => {
|
|
|
330
330
|
})
|
|
331
331
|
})
|
|
332
332
|
|
|
333
|
-
describe('chat batch
|
|
334
|
-
it('
|
|
333
|
+
describe('chat batch format', () => {
|
|
334
|
+
it('includes END OF CHAT delimiter', () => {
|
|
335
335
|
const coord = createCoordinator()
|
|
336
|
-
// No plan set
|
|
337
336
|
|
|
338
|
-
const batch = coord.formatBatch([makeChatMessage('
|
|
339
|
-
expect(batch).toContain('
|
|
340
|
-
expect(batch).toContain('plan_set')
|
|
337
|
+
const batch = coord.formatBatch([makeChatMessage('hello')])
|
|
338
|
+
expect(batch).toContain('[END OF CHAT]')
|
|
339
|
+
expect(batch).not.toContain('plan_set')
|
|
341
340
|
|
|
342
341
|
coord.stop()
|
|
343
342
|
})
|
|
344
343
|
|
|
345
|
-
it('does not
|
|
344
|
+
it('does not include plan instruction in chat batch', () => {
|
|
346
345
|
const coord = createCoordinator()
|
|
347
|
-
|
|
346
|
+
// No plan set, but chat batch should NOT include plan instruction
|
|
348
347
|
|
|
349
|
-
const batch = coord.formatBatch([makeChatMessage('
|
|
348
|
+
const batch = coord.formatBatch([makeChatMessage('do something cool')])
|
|
350
349
|
expect(batch).not.toContain('plan mode')
|
|
350
|
+
expect(batch).not.toContain('plan_set')
|
|
351
351
|
|
|
352
352
|
coord.stop()
|
|
353
353
|
})
|
|
@@ -1173,12 +1173,6 @@ export class Coordinator {
|
|
|
1173
1173
|
? '\n(To reply to a specific message, prefix with its ID: [msgId] your reply)'
|
|
1174
1174
|
: ''
|
|
1175
1175
|
|
|
1176
|
-
|
|
1177
|
-
let planInstruction = ''
|
|
1178
|
-
if (this.config.autonomyMode === 'plan' && !this.hasPendingPlanSteps()) {
|
|
1179
|
-
planInstruction = '\n\nCreate a plan using plan_set. Be creative and proactive — come up with something YOU want to do, not just "reply to chat". Browse the web, go down rabbit holes, check X/HN/YouTube, find weird stuff, have opinions. Each step should be a concrete action. Think aloud on stream about what you\'re doing. Never mention plans or steps to viewers.'
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
return `${header}\n${lines.join('\n')}${instruction}${planInstruction}`
|
|
1176
|
+
return `${header}\n${lines.join('\n')}\n[END OF CHAT]${instruction}`
|
|
1183
1177
|
}
|
|
1184
1178
|
}
|