Show live and historical turn activity trace (model, pack, steps) (0.15.17).
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { describe, it } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { slimActivityTrace } from '../src/activity.js';
|
||||
|
||||
describe('activity.js', () => {
|
||||
it('slimActivityTrace keeps model/pack steps for history', () => {
|
||||
const slim = slimActivityTrace({
|
||||
title: 'Готово',
|
||||
context: { model: 'qwen3:8b', pack: 'ordinary', persona: 'neutral' },
|
||||
steps: [
|
||||
{ id: 'model', kind: 'model', label: 'Модель', detail: 'qwen3:8b', status: 'done' },
|
||||
{ id: 'generate', kind: 'generate', label: 'Generate', detail: 'ok', status: 'done' },
|
||||
],
|
||||
});
|
||||
assert.ok(slim);
|
||||
assert.equal(slim.context.model, 'qwen3:8b');
|
||||
assert.equal(slim.steps.length, 2);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user