|
|
@ -27,7 +27,13 @@ assert.doesNotMatch(streamHook, /onCustomEvent/); |
|
|
assert.match(streamHook, /ROOT_PUMP_CHANNELS/); |
|
|
assert.match(streamHook, /ROOT_PUMP_CHANNELS/); |
|
|
assert.match(streamHook, /"custom"/); |
|
|
assert.match(streamHook, /"custom"/); |
|
|
assert.match(streamHook, /attachment_ids:/); |
|
|
assert.match(streamHook, /attachment_ids:/); |
|
|
|
|
|
assert.match(streamHook, /stream\.submit\(/); |
|
|
|
|
|
assert.match(streamHook, /stream\.respond\(/); |
|
|
|
|
|
assert.match(streamHook, /role:\s*"user"/); |
|
|
|
|
|
assert.doesNotMatch(streamHook, /type:\s*"human"/); |
|
|
|
|
|
assert.doesNotMatch(streamHook, /super\.getState\(\)/); |
|
|
assert.match(streamHook, /const stopRun =/); |
|
|
assert.match(streamHook, /const stopRun =/); |
|
|
|
|
|
assert.match(streamHook, /await stream\.stop\(\)/); |
|
|
assert.match(streamHook, /disconnect:\s*stream\.disconnect/); |
|
|
assert.match(streamHook, /disconnect:\s*stream\.disconnect/); |
|
|
assert.match(streamHook, /eventRequestControllersRef/); |
|
|
assert.match(streamHook, /eventRequestControllersRef/); |
|
|
assert.match(streamHook, /isLifecycleWatcherRequest/); |
|
|
assert.match(streamHook, /isLifecycleWatcherRequest/); |
|
|
@ -38,6 +44,7 @@ assert.match(streamHook, /runtimeInterrupts/); |
|
|
assert.doesNotMatch(container, /useSuperAgentChat/); |
|
|
assert.doesNotMatch(container, /useSuperAgentChat/); |
|
|
assert.doesNotMatch(container, /respondSuperAgentCheckpoint/); |
|
|
assert.doesNotMatch(container, /respondSuperAgentCheckpoint/); |
|
|
assert.doesNotMatch(container, /sendSuperAgentChat/); |
|
|
assert.doesNotMatch(container, /sendSuperAgentChat/); |
|
|
|
|
|
assert.doesNotMatch(container, /cancelSuperAgentSession/); |
|
|
const generatedDecisionStart = container.indexOf("const response = {"); |
|
|
const generatedDecisionStart = container.indexOf("const response = {"); |
|
|
const generatedDecisionEnd = container.indexOf("};", generatedDecisionStart); |
|
|
const generatedDecisionEnd = container.indexOf("};", generatedDecisionStart); |
|
|
const generatedDecision = container.slice(generatedDecisionStart, generatedDecisionEnd); |
|
|
const generatedDecision = container.slice(generatedDecisionStart, generatedDecisionEnd); |
|
|
@ -63,5 +70,6 @@ assert.match(container, /syncSessionProgressSections/); |
|
|
assert.match(conversation, /toolCalls=\{item\.toolCalls\}/); |
|
|
assert.match(conversation, /toolCalls=\{item\.toolCalls\}/); |
|
|
assert.match(jsonRender, /toolCall\?\.name === "publish_ui"/); |
|
|
assert.match(jsonRender, /toolCall\?\.name === "publish_ui"/); |
|
|
assert.doesNotMatch(jsonRender, /```json-render|JSON_RENDER_FENCE/); |
|
|
assert.doesNotMatch(jsonRender, /```json-render|JSON_RENDER_FENCE/); |
|
|
assert.match(apiRoutes, /'\/api\/chat'/); |
|
|
assert.match(apiRoutes, /'\/super-agent\/threads\/:threadId\/commands'/); |
|
|
assert.match(apiRoutes, /'\/api\/checkpoint\/respond'/); |
|
|
assert.match(apiRoutes, /'\/super-agent\/threads\/:threadId\/stream\/events'/); |
|
|
|
|
|
assert.match(apiRoutes, /'\/super-agent\/threads\/:threadId\/runs\/:runId\/cancel'/); |
|
|
|