@deepseek-ai/dsh-tool-cordis 0.1.2-alpha.2 → 0.1.2-alpha.3

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.
Files changed (2) hide show
  1. package/lib/index.js +11 -19
  2. package/package.json +18 -18
package/lib/index.js CHANGED
@@ -2297,7 +2297,7 @@ const SERVICE_API = [
2297
2297
  methods: [
2298
2298
  {
2299
2299
  signature: "abstract locate(meta: SessionHeader): SessionLocation | undefined",
2300
- description: "Resolve this backend's independent local artifact for a session without reading, creating, flushing, or otherwise materializing it. Backends such as SQLite that do not own one artifact per session return `undefined`.",
2300
+ description: "Resolve this backend's independent local artifact for a session without reading, creating, flushing, or otherwise materializing it. A backend that does not own one artifact per Session returns `undefined`.",
2301
2301
  parameters: [{
2302
2302
  name: "meta",
2303
2303
  description: "the immutable session header whose artifact is requested."
@@ -2396,7 +2396,7 @@ const SERVICE_API = [
2396
2396
  },
2397
2397
  {
2398
2398
  signature: "abstract readFrom(id: SessionId, fromSeq: number, signal?: AbortSignal): Promise<{ meta: SessionHeader; events: SessionEvent[] }>",
2399
- description: "Read the stored events from `fromSeq` onward — the read-from-seq primitive for read models that resume from a watermark (e.g. a persisted projection cache folding only the tail past its checkpoint). Unlike inspect, it is a detached physical suffix read: no preparation cache, torn-tail truncation, synthetic closers, or coordinator-state publication. Only events from the valid contiguous stored prefix are returned, so a torn fragment never reaches the caller. `fromSeq` at or beyond the stored prefix returns an empty event list (never an error). Backends whose medium can seek by seq (SQLite) read only the suffix; sequential media (JSONL, both encodings) still parse the whole artifact and skip forward the primitive bounds what is RETURNED and refolded, not every backend's physical read.",
2399
+ description: "Read the stored events from `fromSeq` onward — the read-from-seq primitive for read models that resume from a watermark (e.g. a persisted projection cache folding only the tail past its checkpoint). Unlike inspect, it is a detached physical suffix read: no preparation cache, torn-tail truncation, synthetic closers, or coordinator-state publication. Only events from the valid contiguous stored prefix are returned, so a torn fragment never reaches the caller. `fromSeq` at or beyond the stored prefix returns an empty event list (never an error). A backend whose medium can seek by seq may read only the suffix; sequential media such as JSONL still parse the whole artifact and skip forward. The primitive bounds what is returned and refolded, not every backend's physical read.",
2400
2400
  parameters: [
2401
2401
  {
2402
2402
  name: "id",
@@ -2495,7 +2495,7 @@ const SERVICE_API = [
2495
2495
  {
2496
2496
  key: "sessionProjections",
2497
2497
  summary: "`ctx.sessionProjections`: the projection unit table and its drive.",
2498
- description: "`ctx.sessionProjections`: the projection unit table and its drive. The service subscribes to `session/event` once; every committed event passes every registered unit's `apply` (eager drive), and a changed state reference in a client-visible unit notifies the change feed with the schema-validated view. Cells build lazily — a unit registered after events flowed, or a session older than the registry, folds `init` over the in-memory log on first touch (event or read). Registration is an effect (disposer rides the calling fiber): an unloaded domain plugin's key disappears from snapshots and clients read it as capability absence. A host reader either declares `sessionProjections` in its plugin `inject` or fails explicitly when the registry or required key is absent. Contributors may preserve optional registration through `ctx.inject(['sessionProjections'], ...)`. Registrants sharing a key share one unit and are counted: the same tool package mounted in N agent presets registers N times, and the key survives until the last one unloads.",
2498
+ description: "`ctx.sessionProjections`: the projection unit table and its drive. The service subscribes to `session/event` once; every committed event passes every registered unit's `apply` (eager drive). A changed state reference computes the next client view; the change feed is notified only when its raw result changes by `Object.is`. Cells build lazily — a unit registered after events flowed, or a session older than the registry, folds `init` over the in-memory log on first touch (event or read). Registration is an effect (disposer rides the calling fiber): an unloaded domain plugin's key disappears from snapshots and clients read it as capability absence. A host reader either declares `sessionProjections` in its plugin `inject` or fails explicitly when the registry or required key is absent. Contributors may preserve optional registration through `ctx.inject(['sessionProjections'], ...)`. Registrants sharing a key share one unit and are counted: the same tool package mounted in N agent presets registers N times, and the key survives until the last one unloads.",
2499
2499
  methods: [
2500
2500
  {
2501
2501
  signature: "register< K extends keyof SessionProjectionMap, S extends SessionProjectionStateMap[K], >( definition: Omit<ProjectionDefinition<K, S>, 'wire'> & { wire: NonNullable<ProjectionDefinition<K, S>['wire']> }, ): () => void",
@@ -2520,7 +2520,7 @@ const SERVICE_API = [
2520
2520
  description: "Subscribe to the change feed. The registration is an effect on the calling context's fiber.",
2521
2521
  parameters: [{
2522
2522
  name: "listener",
2523
- description: "called once per client-visible unit whose state reference changed, per committed event."
2523
+ description: "called once per client-visible unit whose raw view changed by `Object.is`, per committed event."
2524
2524
  }],
2525
2525
  returns: "the exact disposer that unsubscribes."
2526
2526
  },
@@ -3681,7 +3681,7 @@ const SERVICE_API = [
3681
3681
  },
3682
3682
  {
3683
3683
  signature: "@Remote('prompt') async prompt(request: SubagentPromptRequest, signal: AbortSignal): Promise<SubagentPromptReceipt>",
3684
- description: "Deliver one browser-authored message to a continuable child through the exact live direct parent, retaining the caller-minted request identity and validated browser zone on the accepted message. Success identifies the message the child's FIFO inbox accepted; later execution is independent of this call.",
3684
+ description: "Deliver one browser-authored message to a continuable child through the exact live direct parent, retaining the caller-minted request identity and validated browser zone on the accepted message. Success identifies the message the child's FIFO inbox accepted; later execution is independent of this call. Image parts are admitted and persisted through the attachment store before delivery, and the child's model must accept image input.",
3685
3685
  parameters: [{
3686
3686
  name: "request",
3687
3687
  description: "durable address, minted identity, content, and optional browser zone."
@@ -3690,7 +3690,7 @@ const SERVICE_API = [
3690
3690
  description: "carrier cancellation, owning the call until inbox acceptance."
3691
3691
  }],
3692
3692
  returns: "the accepted message's inbox identity.",
3693
- throws: ["{RemoteError} `gateway/bad-request`, `subagent/attachment-unsupported`, `subagent/invalid-time-zone`, `subagent/parent-unavailable`, `subagent/not-resumable`, `subagent/unauthorized`, `subagent/delivery-unavailable`, `gateway/cancelled`, or `gateway/internal`."]
3693
+ throws: ["{RemoteError} `gateway/bad-request`, `subagent/attachment-invalid`, `subagent/invalid-time-zone`, `subagent/parent-unavailable`, `subagent/not-resumable`, `subagent/unauthorized`, `subagent/delivery-unavailable`, `gateway/cancelled`, or `gateway/internal`."]
3694
3694
  },
3695
3695
  {
3696
3696
  signature: "@Remote('interruptByParent') interruptByParent( childSessionId: SessionId, parentSessionId: SessionId, mode: 'continuable', ): SubagentInterruptReceipt",
@@ -5619,6 +5619,10 @@ const TYPE_API = [
5619
5619
  name: "Branded",
5620
5620
  declaration: "export type Branded<B extends string> = string & {\n readonly [BRAND]: B;\n};"
5621
5621
  },
5622
+ {
5623
+ name: "ChunkRow",
5624
+ declaration: "export type ChunkRow = {\n type: 'text-chunks';\n seq0: number;\n time0: number;\n data: TextRunData;\n} | {\n type: 'reasoning-chunks';\n seq0: number;\n time0: number;\n data: TextRunData;\n} | {\n type: 'tool-call-chunks';\n seq0: number;\n time0: number;\n data: ToolCallRunData;\n};"
5625
+ },
5622
5626
  {
5623
5627
  name: "ChunkRowEvent",
5624
5628
  declaration: "export type ChunkRowEvent = {\n [Kind in ChunkRow['type']]: {\n readonly type: `chunkrow/${Kind}`;\n readonly seq: number;\n readonly time: number;\n readonly data: Extract<ChunkRow, {\n readonly type: Kind;\n }>['data'];\n };\n}[ChunkRow['type']];"
@@ -5995,10 +5999,6 @@ const TYPE_API = [
5995
5999
  name: "EncodedImageAttachment",
5996
6000
  declaration: "export interface EncodedImageAttachment {\n mediaType: ImageMediaType;\n data: string;\n name?: string;\n}"
5997
6001
  },
5998
- {
5999
- name: "EncodedImagePromptBlock",
6000
- declaration: "export interface EncodedImagePromptBlock extends EncodedImageAttachment {\n readonly type: 'image';\n}"
6001
- },
6002
6002
  {
6003
6003
  name: "EpochHeader",
6004
6004
  declaration: "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n system?: string;\n tools?: ToolSchema[];\n}"
@@ -6595,10 +6595,6 @@ const TYPE_API = [
6595
6595
  name: "PromptAssembly",
6596
6596
  declaration: "export interface PromptAssembly {\n sections: AssembledSection[];\n contexts: AssembledContext[];\n tools: ToolSchema[];\n variables: Record<string, string | undefined>;\n}"
6597
6597
  },
6598
- {
6599
- name: "PromptContentPart",
6600
- declaration: "export type PromptContentPart = {\n readonly type: 'text';\n readonly text: string;\n} | {\n readonly type: 'image';\n readonly mediaType: ImageMediaType;\n readonly data: string;\n readonly name?: string;\n};"
6601
- },
6602
6598
  {
6603
6599
  name: "PromptContext",
6604
6600
  declaration: "export interface PromptContext {\n readonly name: string;\n readonly order: number;\n readonly text: string | ((context: AssembleContext) => string);\n}"
@@ -7431,17 +7427,13 @@ const TYPE_API = [
7431
7427
  name: "SubagentListEntry",
7432
7428
  declaration: "export type SubagentListEntry = {\n readonly kind: 'child';\n readonly id: SessionId;\n readonly activity: 'running' | 'inactive';\n readonly hasChildren: boolean;\n} & ({\n readonly mode: 'one-shot';\n readonly label?: string;\n} | {\n readonly mode: 'continuable';\n readonly label: string;\n}) | {\n readonly kind: 'diagnostic';\n readonly id: SessionId;\n readonly reason: 'corrupt' | 'unsupported' | 'unavailable';\n};"
7433
7429
  },
7434
- {
7435
- name: "SubagentPromptContentPart",
7436
- declaration: "export type SubagentPromptContentPart = ContentBlock | EncodedImagePromptBlock;"
7437
- },
7438
7430
  {
7439
7431
  name: "SubagentPromptReceipt",
7440
7432
  declaration: "export interface SubagentPromptReceipt {\n readonly messageId: MessageId;\n}"
7441
7433
  },
7442
7434
  {
7443
7435
  name: "SubagentPromptRequest",
7444
- declaration: "export interface SubagentPromptRequest {\n readonly requestId: SubagentPromptRequestId;\n readonly parentSessionId: SessionId;\n readonly childSessionId: SessionId;\n readonly mode: 'continuable';\n readonly content: readonly SubagentPromptContentPart[];\n readonly clientTimeZone?: string;\n}"
7436
+ declaration: "export interface SubagentPromptRequest {\n readonly requestId: SubagentPromptRequestId;\n readonly parentSessionId: SessionId;\n readonly childSessionId: SessionId;\n readonly mode: 'continuable';\n readonly content: readonly PromptContentPart[];\n readonly clientTimeZone?: string;\n}"
7445
7437
  },
7446
7438
  {
7447
7439
  name: "SubagentPromptRequestId",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-cordis",
3
3
  "description": "Self-referential cordis toolset: inspect the live runtime, mount and dispose model-written plugins",
4
- "version": "0.1.2-alpha.2",
4
+ "version": "0.1.2-alpha.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -32,26 +32,26 @@
32
32
  ],
33
33
  "license": "MIT",
34
34
  "peerDependencies": {
35
- "@deepseek-ai/dsh-cordis-host-runner": "^0.1.2-alpha.2",
36
- "@deepseek-ai/dsh-llm": "^0.1.2-alpha.2",
37
- "@deepseek-ai/dsh-system-prompt": "^0.1.2-alpha.2",
38
- "@deepseek-ai/dsh-scope": "^0.1.2-alpha.2",
39
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.2",
40
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
41
- "@deepseek-ai/dsh-tools": "^0.1.2-alpha.2",
42
- "@deepseek-ai/dsh-agent": "^0.1.2-alpha.2",
35
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.3",
36
+ "@deepseek-ai/dsh-cordis-host-runner": "^0.1.2-alpha.3",
37
+ "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3",
38
+ "@deepseek-ai/dsh-llm": "^0.1.2-alpha.3",
39
+ "@deepseek-ai/dsh-scope": "^0.1.2-alpha.3",
40
+ "@deepseek-ai/dsh-session": "^0.1.2-alpha.3",
41
+ "@deepseek-ai/dsh-system-prompt": "^0.1.2-alpha.3",
42
+ "@deepseek-ai/dsh-tools": "^0.1.2-alpha.3",
43
43
  "@deepseek-ai/cordis": "^4.0.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
47
- "@deepseek-ai/dsh-agent": "^0.1.2-alpha.2",
48
- "@deepseek-ai/dsh-cordis-host-runner": "^0.1.2-alpha.2",
49
- "@deepseek-ai/dsh-scope": "^0.1.2-alpha.2",
50
- "@deepseek-ai/dsh-llm": "^0.1.2-alpha.2",
51
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
52
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.2",
53
- "@deepseek-ai/dsh-system-prompt": "^0.1.2-alpha.2",
54
- "@deepseek-ai/dsh-tools": "^0.1.2-alpha.2",
55
- "@deepseek-ai/cordis": "^4.0.2"
47
+ "@deepseek-ai/dsh-cordis-host-runner": "^0.1.2-alpha.3",
48
+ "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3",
49
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.3",
50
+ "@deepseek-ai/dsh-llm": "^0.1.2-alpha.3",
51
+ "@deepseek-ai/dsh-scope": "^0.1.2-alpha.3",
52
+ "@deepseek-ai/dsh-session": "^0.1.2-alpha.3",
53
+ "@deepseek-ai/dsh-system-prompt": "^0.1.2-alpha.3",
54
+ "@deepseek-ai/cordis": "^4.0.2",
55
+ "@deepseek-ai/dsh-tools": "^0.1.2-alpha.3"
56
56
  }
57
57
  }