Apply the accepted pre-release package, service, type, directory, and role renames as one repository-wide change.
90 lines
4.4 KiB
TypeScript
90 lines
4.4 KiB
TypeScript
/**
|
|
* Context provenance projection: the role and producer name a transcript row
|
|
* shows for one logged non-user message, read from the durable source alone.
|
|
*/
|
|
|
|
import { describe, expect, it } from 'vitest'
|
|
import { contextForm, contextProvenance } from '../src/client/sessions/context-provenance.ts'
|
|
|
|
describe('contextProvenance', () => {
|
|
it('names a plugin producer by its logged plugin id', () => {
|
|
expect(contextProvenance({ kind: 'plugin', plugin: 'dsh-tool-skill' }))
|
|
.toEqual({ role: 'inject', label: 'dsh-tool-skill' })
|
|
})
|
|
|
|
it('names workspace instructions by the files they reconciled, deduplicated in first-seen order', () => {
|
|
expect(contextProvenance({
|
|
kind: 'agent-instructions',
|
|
baseline: true,
|
|
changes: [
|
|
{ action: 'set', scope: '. |