@langspan/client 0.26.0 → 0.27.0

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.
@@ -1,4 +1,4 @@
1
1
  // Commands: intents, admissions and source versions; completions and
2
- // observed operations, files, branches and Git state (`CommandWire` in
2
+ // observed operations, files, branches and Git state (`Command` in
3
3
  // `crates/langspan-core/src/command.rs`, in its order).
4
4
  export {};
@@ -1,3 +1,3 @@
1
1
  // Commands: checks and test results; landings and landing turns
2
- // (`CommandWire` in `crates/langspan-core/src/command.rs`, in its order).
2
+ // (`Command` in `crates/langspan-core/src/command.rs`, in its order).
3
3
  export {};
@@ -1,4 +1,4 @@
1
1
  // Commands: the source graph; write checks, interface alerts and outlines
2
- // (`CommandWire` in `crates/langspan-core/src/command.rs`, in its order).
2
+ // (`Command` in `crates/langspan-core/src/command.rs`, in its order).
3
3
  // The daemon answers these from its source index.
4
4
  export {};
@@ -1,4 +1,4 @@
1
- // Every command a coordinator answers with one answer, as `CommandWire` in
1
+ // Every command a coordinator answers with one answer, as `Command` in
2
2
  // `crates/langspan-core/src/command.rs` decodes it. test/rust-source.test.ts
3
3
  // checks each one, field by field, against that enum.
4
4
  /** Every `op` of wire version 10, sorted. */
@@ -1,3 +1,3 @@
1
- // Commands: interface changes and notes; messages (`CommandWire` in
1
+ // Commands: interface changes and notes; messages (`Command` in
2
2
  // `crates/langspan-core/src/command.rs`, in its order).
3
3
  export {};
@@ -46,6 +46,6 @@ export interface RecordWaitCommand {
46
46
  export interface RecordUsageCommand {
47
47
  op: "record_usage";
48
48
  session_id: string;
49
- model?: string | null;
49
+ model?: string;
50
50
  tokens: TokenCounts;
51
51
  }
@@ -1,3 +1,3 @@
1
- // Commands: refusals, the conflict policy and waits (`CommandWire` in
1
+ // Commands: refusals, the conflict policy and waits (`Command` in
2
2
  // `crates/langspan-core/src/command.rs`, in its order).
3
3
  export {};
@@ -70,8 +70,8 @@ export interface CountCommand {
70
70
  /** Read-only: the token counts recorded per session and model; capability `usage`. */
71
71
  export interface UsageCommand {
72
72
  op: "usage";
73
- workspace_id?: string | null;
74
- from_ms?: number | null;
73
+ workspace_id?: string;
74
+ from_ms?: number;
75
75
  }
76
76
  /** Read-only: the person's status line for the directory `root`. */
77
77
  export interface StatusLineCommand {
@@ -84,8 +84,8 @@ export interface StatusCommand {
84
84
  }
85
85
  export interface StatusRecordsCommand {
86
86
  op: "status_records";
87
- after?: string | null;
88
- page_bytes?: number | null;
87
+ after?: string;
88
+ page_bytes?: number;
89
89
  }
90
90
  export interface DashboardCommand {
91
91
  op: "dashboard";
@@ -1,4 +1,4 @@
1
1
  // Commands: recaps, trails, recall and reports; reads of the state and the
2
- // event log, the version and retention (`CommandWire` in
2
+ // event log, the version and retention (`Command` in
3
3
  // `crates/langspan-core/src/command.rs`, in its order).
4
4
  export {};
@@ -1,3 +1,3 @@
1
- // Commands: remote publication (`CommandWire` in
1
+ // Commands: remote publication (`Command` in
2
2
  // `crates/langspan-core/src/command.rs`, in its order).
3
3
  export {};
@@ -1,4 +1,4 @@
1
1
  // Commands: scans, checkouts, uncoordinated changes and hosts
2
- // (`CommandWire` in `crates/langspan-core/src/command.rs`, in its order).
2
+ // (`Command` in `crates/langspan-core/src/command.rs`, in its order).
3
3
  // Most are sent by the daemon's own scan and hooks.
4
4
  export {};
@@ -8,7 +8,7 @@ export interface WorkspaceRegisterCommand {
8
8
  /** Read-only: one page of the registered workspaces, after the ID `after`. */
9
9
  export interface WorkspaceListCommand {
10
10
  op: "workspace_list";
11
- after?: string | null;
11
+ after?: string;
12
12
  }
13
13
  /** Rebind the workspace to `root`. An owner command. */
14
14
  export interface WorkspaceMoveCommand {
@@ -1,3 +1,3 @@
1
- // Commands: workspaces and sessions (`CommandWire` in
1
+ // Commands: workspaces and sessions (`Command` in
2
2
  // `crates/langspan-core/src/command.rs`, in its order).
3
3
  export {};
@@ -1,3 +1,3 @@
1
1
  // Commands: prompts, presence and a session's turns; briefings and adoption
2
- // (`CommandWire` in `crates/langspan-core/src/command.rs`, in its order).
2
+ // (`Command` in `crates/langspan-core/src/command.rs`, in its order).
3
3
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langspan/client",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "A TypeScript client for the LangSpan coordination protocol",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/Langspan/LangSpan.dev/tree/main/clients/typescript",