@lincyaw/kernel 1.0.0-rc.92 → 1.0.0-rc.94

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lincyaw/kernel",
3
- "version": "1.0.0-rc.92",
3
+ "version": "1.0.0-rc.94",
4
4
  "description": "Presmium's shared kernel: the IR and plugin contracts, the service registry, anchors and checks",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -0,0 +1,18 @@
1
+ import type { Member } from './server.ts'
2
+
3
+ export type AgentActivityOperation = 'read' | 'edit' | 'navigate' | 'preview' | 'build' | 'voice' | 'workspace'
4
+ export interface AgentActivityTarget { section?: string, block?: string, step?: string }
5
+ /** Ephemeral UI presence. Never contains tool arguments, document text, credentials or failure details. */
6
+ export interface AgentActivity {
7
+ id: string
8
+ operation: AgentActivityOperation
9
+ document?: string
10
+ targets: AgentActivityTarget[]
11
+ state: 'running' | 'done' | 'failed' | 'cancelled'
12
+ startedAt: number
13
+ finishedAt?: number
14
+ }
15
+ export interface AgentActivitySnapshot { activities: AgentActivity[] }
16
+ export interface AgentActivityObserver {
17
+ begin(input: Pick<AgentActivity, 'operation' | 'document' | 'targets'>, member: Member): (state: Exclude<AgentActivity['state'], 'running'>) => void
18
+ }
package/src/contracts.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './contracts/agent.ts'
2
+ export * from './contracts/agent-activity.ts'
2
3
  export * from './contracts/authoring.ts'
3
4
  export * from './contracts/capture.ts'
4
5
  export * from './contracts/document-reads.ts'