@nyte-ai/sdk 0.0.24 → 0.0.25-nightly.20261025.2

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.
@@ -55,6 +55,11 @@ SOFTWARE.
55
55
  `@earendil-works/pi-codemode` 1.0.0 supply the MCP client and QuickJS
56
56
  executor. Tool discovery and code-mode integration are adapted from commit
57
57
  `86dfceec402ad77e563bf4feab5f26c42d5f5db6`.
58
+ - BM25 tool search (`tool_search`, `searchTools()`), tool namespaces with
59
+ `describeNamespace()`, the budgeted codemode listing and the one-line MCP
60
+ server summary (`packages/plugin/src/tool-search.ts`,
61
+ `packages/plugin/src/codemode.ts`, `packages/core/src/builtins/mcp.ts`) are
62
+ ported from commit `d5b3de22d0e24a3e9c38a9410d3329b099717283`.
58
63
  - Transcript reconciliation, checkpoint instruction snapshots, provider system
59
64
  updates, and cache warming are ported from the 1.0.0 release commit
60
65
  `a13d35a742c6ef8462812a28fbe1d8c8b7431c32`.
@@ -312,11 +317,14 @@ Copyright 2025 OpenAI
312
317
  front of the queue (`packages/tui/src/model/interactions.ts`) is its
313
318
  `onEmptySubmit`. The rename
314
319
  plugin's context construction, prompt, model fallback, and output cleanup
315
- (`packages/plugin/src/rename.ts`) port OpenCode v2. The web-search
316
- plugin set (`packages/plugin/src/web-search.ts`) ports its Exa, Firecrawl,
317
- Parallel, and Tavily adapters, its stateless MCP `tools/call` transport and
318
- response bounds, its result and error vocabulary, and its arrangement of one
319
- plugin per provider from OpenCode v2.
320
+ (`packages/plugin/src/rename.ts`) port OpenCode v2. The web plugin
321
+ (`packages/plugin/src/web/`) ports OpenCode v2's web search and fetch tools:
322
+ the search provider registry any plugin can add to (`searchProviders` in
323
+ `packages/core/src/contract/plugin.ts`), its Exa, Firecrawl, Parallel, and
324
+ Tavily adapters, their stateless MCP `tools/call` transport and response
325
+ bounds, the result and error vocabulary, `web_fetch`'s Accept headers,
326
+ Cloudflare-challenge retry and size limits, and the streaming HTML-to-Markdown
327
+ and HTML-to-text converters (`packages/plugin/src/web/html-markdown.ts`).
320
328
  - Core's ripgrep resolver and search adapter (`packages/core/src/ripgrep.ts`,
321
329
  `packages/core/src/ripgrep/binary.ts`) and filename search
322
330
  (`packages/core/src/file-search.ts`) adapt OpenCode v2's core implementation.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pushed2
3
- } from "./capability-ctnsbfx9.js";
3
+ } from "./capability-vpn6wcc0.js";
4
4
 
5
5
  // src/history.ts
6
6
  function pagedViews2(head, options) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createSendJournal2
3
- } from "./capability-ke5yk1as.js";
3
+ } from "./capability-nt11y4gm.js";
4
4
  import {
5
5
  parsed2
6
6
  } from "./capability-2q3s96kg.js";
7
7
  import {
8
8
  createClient2
9
- } from "./capability-ht2xg669.js";
9
+ } from "./capability-jrhgvas1.js";
10
10
 
11
11
  // src/connect.ts
12
12
  import { IdentityChallengeSchema, isJson, SdkError } from "@nyte-ai/schema";
@@ -8,11 +8,11 @@ function tracePaints2(views, session, painted) {
8
8
  [Symbol.asyncIterator]() {
9
9
  let shown = null;
10
10
  return mapped(views, (view) => {
11
- if (view.messages === shown)
11
+ if (view.messages === shown?.messages && view.queue === shown.queue)
12
12
  return view;
13
- const known = shown === null ? null : new Set(shown.map((message) => message.id));
13
+ const known = shown === null ? null : new Set([...shown.messages, ...shown.queue].map((message) => message.id));
14
14
  const followed = followedTrace(session);
15
- for (const message of view.messages) {
15
+ for (const message of [...view.messages, ...view.queue]) {
16
16
  if (known === null ? message.id !== followed : known.has(message.id))
17
17
  continue;
18
18
  const user = message.kind === "user";
@@ -22,7 +22,7 @@ function tracePaints2(views, session, painted) {
22
22
  });
23
23
  painted().then(() => ended());
24
24
  }
25
- shown = view.messages;
25
+ shown = view;
26
26
  return view;
27
27
  })[Symbol.asyncIterator]();
28
28
  }
@@ -3,17 +3,17 @@ import {
3
3
  watchHead2,
4
4
  watchHost2,
5
5
  withUnsent2
6
- } from "./capability-ctnsbfx9.js";
6
+ } from "./capability-vpn6wcc0.js";
7
7
  import {
8
8
  createLink2,
9
9
  createRows2
10
10
  } from "./capability-artgq59v.js";
11
11
  import {
12
12
  journalLoop2
13
- } from "./capability-ke5yk1as.js";
13
+ } from "./capability-nt11y4gm.js";
14
14
  import {
15
15
  partHandle2
16
- } from "./capability-9747w1b1.js";
16
+ } from "./capability-ws7azpye.js";
17
17
  import {
18
18
  receiptHandle2,
19
19
  sendReceipt2,
@@ -29,7 +29,7 @@ import {
29
29
 
30
30
  // src/client.ts
31
31
  import { asId, isJson, SdkError } from "@nyte-ai/schema";
32
- import { dev, followTrace, traced, watchStore } from "@nyte-ai/core";
32
+ import { dev, followTrace, holdMessage, traced, watchStore } from "@nyte-ai/core";
33
33
  import { sessionLists } from "@nyte-ai/protocol";
34
34
  var MAIN = asId("main");
35
35
  function createClient2(transport, context) {
@@ -38,7 +38,8 @@ function createClient2(transport, context) {
38
38
  const bound = {
39
39
  rows,
40
40
  journal: journalLoop2(rows, context.journal),
41
- views: createHeadViews2(rows)
41
+ views: createHeadViews2(rows),
42
+ seen: new Map
42
43
  };
43
44
  bound.journal.replay(context.journaled);
44
45
  let hostFrames = context.hostFrames;
@@ -67,7 +68,8 @@ function createClient2(transport, context) {
67
68
  list: () => rows.call("workspaces.list", {}),
68
69
  inspect: (target) => rows.call("workspaces.inspect", { target }),
69
70
  add: (target, options) => rows.call("workspaces.add", { target, options }),
70
- forget: (id) => rows.call("workspaces.forget", { id })
71
+ forget: (id) => rows.call("workspaces.forget", { id }),
72
+ cleanWorktrees: () => rows.call("workspaces.cleanWorktrees", {})
71
73
  },
72
74
  session: (id) => sessionHandle(bound, id),
73
75
  workspace: (id) => workspaceHandle2(rows, id),
@@ -156,6 +158,7 @@ function sessionHandle(bound, session) {
156
158
  }
157
159
  function headHandle(bound, session, head) {
158
160
  const { rows, journal } = bound;
161
+ const revise = (message, content, options) => rows.call("head.revise", { session, head, message, content, options });
159
162
  return {
160
163
  sessionId: session,
161
164
  name: head,
@@ -174,6 +177,14 @@ function headHandle(bound, session, head) {
174
177
  }));
175
178
  return sendReceipt2(rows, session, sent.receipt, sent.message);
176
179
  },
180
+ revise,
181
+ hold: (message) => holdMessage(message, {
182
+ hold: () => rows.call("head.hold", { session, head, message }),
183
+ revise: (content, options) => revise(message, content, options),
184
+ async release() {
185
+ await rows.call("head.release", { session, head, message });
186
+ }
187
+ }),
177
188
  configure: (patch) => rows.call("head.configure", { session, head, patch }),
178
189
  async view(options) {
179
190
  const view = await rows.call("head.view", { session, head, options });
@@ -181,6 +192,13 @@ function headHandle(bound, session, head) {
181
192
  return withUnsent2(view, journal.unsent(session, head));
182
193
  },
183
194
  watch: (options) => watchHead2(bound.views, journal, { session, head, options }),
195
+ async see(commit) {
196
+ const key = JSON.stringify([session, head]);
197
+ if (bound.seen.get(key) === commit)
198
+ return;
199
+ await rows.call("head.see", { session, head, commit });
200
+ bound.seen.set(key, commit);
201
+ },
184
202
  ...watchStore(() => watchHead2(bound.views, journal, { session, head })),
185
203
  history: (input) => rows.call("head.history", { session, head, ...input }),
186
204
  tree: () => rows.call("head.tree", { session, head }),
@@ -128,7 +128,7 @@ function journalLoop2(rows, journal) {
128
128
  shown.set(key, Math.max(shown.get(key) ?? 0, view.seq));
129
129
  if (held.size === 0)
130
130
  return;
131
- const ids = new Set(view.messages.map((message) => message.id));
131
+ const ids = new Set([...view.messages, ...view.queue].map((message) => message.id));
132
132
  if (view.leadingPrompt !== null)
133
133
  ids.add(view.leadingPrompt.id);
134
134
  for (const [receipt, current] of held) {
@@ -125,16 +125,17 @@ function withUnsent2(view, unsent) {
125
125
  if (held.length === 0)
126
126
  return view;
127
127
  const over = new Map(held.map((message) => [message.id, message]));
128
- const known = new Set(view.messages.map((message) => message.id));
129
- const missing = held.filter((message) => !known.has(message.id));
130
- if (missing.length === 0 && !view.messages.some((message) => over.has(message.id)))
131
- return view;
128
+ const known = new Set([...view.messages, ...view.queue].map((message) => message.id));
129
+ const live = view.execution.kind !== "idle";
130
+ const waiting = held.filter((message) => !known.has(message.id) && (message.status.kind === "unsent" && message.status.retrying !== null || live && message.delivery !== "steer"));
131
+ const missing = held.filter((message) => !known.has(message.id) && !waiting.includes(message));
132
132
  const messages = view.messages.map((message) => over.get(message.id) ?? message);
133
133
  const at = messages.findIndex((message) => message.kind === "user" && message.status.kind === "pending");
134
134
  const index = at < 0 ? messages.length : at;
135
135
  return {
136
136
  ...view,
137
- messages: [...messages.slice(0, index), ...missing, ...messages.slice(index)]
137
+ messages: [...messages.slice(0, index), ...missing, ...messages.slice(index)],
138
+ queue: [...view.queue.map((message) => over.get(message.id) ?? message), ...waiting]
138
139
  };
139
140
  }
140
141
  function hostView(wire, link, operations) {
@@ -36,6 +36,7 @@ function partHandle2(rows, session, id, kind) {
36
36
  throw error;
37
37
  }
38
38
  },
39
+ watch: () => rows.watch("part.watch", { session, part: id }),
39
40
  async close() {
40
41
  await rows.call("part.close", { session, part: id });
41
42
  }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createClient2
3
- } from "../chunks/capability-ht2xg669.js";
4
- import"../chunks/capability-9747w1b1.js";
3
+ } from "../chunks/capability-jrhgvas1.js";
4
+ import"../chunks/capability-ws7azpye.js";
5
5
  import"../chunks/capability-xavf3m2f.js";
6
6
  import"../chunks/capability-nh422cp0.js";
7
7
  import"../chunks/capability-2q3s96kg.js";
8
8
  import"../chunks/capability-mr5m2wn2.js";
9
- import"../chunks/capability-ctnsbfx9.js";
10
- import"../chunks/capability-ke5yk1as.js";
9
+ import"../chunks/capability-vpn6wcc0.js";
10
+ import"../chunks/capability-nt11y4gm.js";
11
11
  import"../chunks/capability-artgq59v.js";
12
12
  export {
13
13
  createClient2 as createClient
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  connect2
3
- } from "../chunks/capability-gc5bfr6a.js";
4
- import"../chunks/capability-ht2xg669.js";
5
- import"../chunks/capability-9747w1b1.js";
3
+ } from "../chunks/capability-5c9mk5zb.js";
4
+ import"../chunks/capability-jrhgvas1.js";
5
+ import"../chunks/capability-ws7azpye.js";
6
6
  import"../chunks/capability-xavf3m2f.js";
7
7
  import"../chunks/capability-nh422cp0.js";
8
8
  import"../chunks/capability-2q3s96kg.js";
9
9
  import"../chunks/capability-mr5m2wn2.js";
10
- import"../chunks/capability-ctnsbfx9.js";
11
- import"../chunks/capability-ke5yk1as.js";
10
+ import"../chunks/capability-vpn6wcc0.js";
11
+ import"../chunks/capability-nt11y4gm.js";
12
12
  import"../chunks/capability-artgq59v.js";
13
13
  export {
14
14
  connect2 as connect
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  pagedViews2
3
- } from "../chunks/capability-t9k5jy3d.js";
4
- import"../chunks/capability-ctnsbfx9.js";
3
+ } from "../chunks/capability-3azc6j5s.js";
4
+ import"../chunks/capability-vpn6wcc0.js";
5
5
  export {
6
6
  pagedViews2 as pagedViews
7
7
  };
@@ -1,23 +1,23 @@
1
- import"../chunks/capability-ctnsbfx9.js";
1
+ import"../chunks/capability-vpn6wcc0.js";
2
2
  import"../chunks/capability-artgq59v.js";
3
3
  import {
4
4
  createSendJournal2
5
- } from "../chunks/capability-ke5yk1as.js";
6
- import"../chunks/capability-9747w1b1.js";
5
+ } from "../chunks/capability-nt11y4gm.js";
6
+ import"../chunks/capability-ws7azpye.js";
7
7
  import"../chunks/capability-2q3s96kg.js";
8
8
  import"../chunks/capability-nh422cp0.js";
9
9
  import"../chunks/capability-mr5m2wn2.js";
10
10
  import"../chunks/capability-xavf3m2f.js";
11
- import"../chunks/capability-ht2xg669.js";
11
+ import"../chunks/capability-jrhgvas1.js";
12
12
  import {
13
13
  connect2
14
- } from "../chunks/capability-gc5bfr6a.js";
14
+ } from "../chunks/capability-5c9mk5zb.js";
15
15
  import {
16
16
  pagedViews2
17
- } from "../chunks/capability-t9k5jy3d.js";
17
+ } from "../chunks/capability-3azc6j5s.js";
18
18
  import {
19
19
  tracePaints2
20
- } from "../chunks/capability-swbs68d8.js";
20
+ } from "../chunks/capability-h1kbxnde.js";
21
21
  import {
22
22
  dev2,
23
23
  watchStore2,
package/dist/src/index.js CHANGED
@@ -1,23 +1,23 @@
1
- import"../chunks/capability-ctnsbfx9.js";
1
+ import"../chunks/capability-vpn6wcc0.js";
2
2
  import"../chunks/capability-artgq59v.js";
3
3
  import {
4
4
  createSendJournal2
5
- } from "../chunks/capability-ke5yk1as.js";
6
- import"../chunks/capability-9747w1b1.js";
5
+ } from "../chunks/capability-nt11y4gm.js";
6
+ import"../chunks/capability-ws7azpye.js";
7
7
  import"../chunks/capability-2q3s96kg.js";
8
8
  import"../chunks/capability-nh422cp0.js";
9
9
  import"../chunks/capability-mr5m2wn2.js";
10
10
  import"../chunks/capability-xavf3m2f.js";
11
- import"../chunks/capability-ht2xg669.js";
11
+ import"../chunks/capability-jrhgvas1.js";
12
12
  import {
13
13
  connect2
14
- } from "../chunks/capability-gc5bfr6a.js";
14
+ } from "../chunks/capability-5c9mk5zb.js";
15
15
  import {
16
16
  pagedViews2
17
- } from "../chunks/capability-t9k5jy3d.js";
17
+ } from "../chunks/capability-3azc6j5s.js";
18
18
  import {
19
19
  tracePaints2
20
- } from "../chunks/capability-swbs68d8.js";
20
+ } from "../chunks/capability-h1kbxnde.js";
21
21
  import {
22
22
  dev2,
23
23
  watchStore2,
@@ -1,23 +1,23 @@
1
- import"../chunks/capability-ctnsbfx9.js";
1
+ import"../chunks/capability-vpn6wcc0.js";
2
2
  import"../chunks/capability-artgq59v.js";
3
3
  import {
4
4
  createSendJournal2
5
- } from "../chunks/capability-ke5yk1as.js";
6
- import"../chunks/capability-9747w1b1.js";
5
+ } from "../chunks/capability-nt11y4gm.js";
6
+ import"../chunks/capability-ws7azpye.js";
7
7
  import"../chunks/capability-2q3s96kg.js";
8
8
  import"../chunks/capability-nh422cp0.js";
9
9
  import"../chunks/capability-mr5m2wn2.js";
10
10
  import"../chunks/capability-xavf3m2f.js";
11
- import"../chunks/capability-ht2xg669.js";
11
+ import"../chunks/capability-jrhgvas1.js";
12
12
  import {
13
13
  connect2
14
- } from "../chunks/capability-gc5bfr6a.js";
14
+ } from "../chunks/capability-5c9mk5zb.js";
15
15
  import {
16
16
  pagedViews2
17
- } from "../chunks/capability-t9k5jy3d.js";
17
+ } from "../chunks/capability-3azc6j5s.js";
18
18
  import {
19
19
  tracePaints2
20
- } from "../chunks/capability-swbs68d8.js";
20
+ } from "../chunks/capability-h1kbxnde.js";
21
21
  import {
22
22
  dev2,
23
23
  watchStore2,
@@ -1,11 +1,11 @@
1
- import type { Disposer, HeadName, JournalEntry, Message, SessionId, SessionView } from "@nyte-ai/schema";
1
+ import type { Disposer, HeadName, JournalEntry, QueuedMessage, SessionId, SessionView } from "@nyte-ai/schema";
2
2
  import type { RequestJournal } from "@nyte-ai/core";
3
3
  import type { OperationOutput } from "@nyte-ai/protocol";
4
4
  import type { Rows } from "./rows.ts";
5
5
  export interface JournalLoop {
6
6
  send(entry: JournalEntry): Promise<Sent>;
7
7
  replay(entries: readonly JournalEntry[]): void;
8
- unsent(session: SessionId, head: HeadName): readonly Message[];
8
+ unsent(session: SessionId, head: HeadName): readonly QueuedMessage[];
9
9
  landed(session: SessionId, head: HeadName, view: SessionView): void;
10
10
  subscribe(listener: () => void): Disposer;
11
11
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createSendJournal2,
3
3
  journalLoop2
4
- } from "../chunks/capability-ke5yk1as.js";
4
+ } from "../chunks/capability-nt11y4gm.js";
5
5
  import"../chunks/capability-artgq59v.js";
6
6
  export {
7
7
  createSendJournal2 as createSendJournal,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tracePaints2
3
- } from "../chunks/capability-swbs68d8.js";
3
+ } from "../chunks/capability-h1kbxnde.js";
4
4
  export {
5
5
  tracePaints2 as tracePaints
6
6
  };
package/dist/src/part.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  partHandle2
3
- } from "../chunks/capability-9747w1b1.js";
3
+ } from "../chunks/capability-ws7azpye.js";
4
4
  export {
5
5
  partHandle2 as partHandle
6
6
  };
@@ -1,5 +1,5 @@
1
- export type { ActionContext, ActionOutput, ActionSchemas, Agent, Available, BrowserApi, ClientApi, Command, ConnectOptions, Connection, ContributionTable, Decide, Declared, Durable, EnvironmentProvider, EnvironmentWrap, ExecutionEnv, FileBatch, FilesApi, ForegroundJobs, GitApi, GitHubAccountApi, GitHubApi, Head, HookEntry, HookHandler, HookName, HookTable, Host, Job, Jobs, Keybinding, ListenOptions, Listener, Login, McpApi, ModelContextPolicy, ModelsApi, ObjectStore, Observe, OpenOptions, Page, Part, PartActions, PartDefinition, PartState, Plugin, PluginApi, PluginFile, PluginsApi, PluginStorage, PrincipalsApi, PromptSection, Receipt, RefStore, Registries, Registry, RegistryDraft, Renderer, RequestJournal, Resources, Row, Run, SendReceipt, Session, Sessions, Setting, SettingDefinition, SettingsApi, Side, SideTable, Skill, SnapshotsApi, Store, StoreConnection, ToolDefinition, ToolInvocation, Transform, Workspace, Workspaces, } from "@nyte-ai/core";
2
- export type { ActOutcome, Activation, AddOutcome, AdvanceReport, AgentInfo, Authority, Availability, Awaitable, BackgroundItem, BatchOutcome, BlameView, BlobId, ByteReader, CallId, Capability, CatalogGeneration, ChangeSet, ChangeSource, CommandCompletion, CommandInfo, CommandOutcome, CommitBody, CommitId, CompactionPlan, Configuration, ConfigurationPatch, ConfigureOutcome, ConsoleEntry, ContextView, CreateHeadOutcome, CredentialSource, Cursor, Decision, Declaration, DecodedObjectView, Delivery, DiffOptions, Disposer, DocumentRevision, DurableEvent, EndReason, EnvironmentIdentity, ExcerptSource, Execution, Failure, ExecutionCoverage, FileDocument, FileEntryView, FileEvent, FileStatus, FileVersion, ForgetOutcome, FormatOutcome, GitCommitId, GitOutcome, GitRefsView, GitRevision, GitScope, GitStatus, GitWrite, GitHubAccount, GitHubAccountState, GitHubCheck, GitHubDeviceCode, GitHubPullRequest, GitHubPullRequestContext, GitHubPullRequestInput, GitHubPullRequestOutcome, GitHubRepository, GitHubState, HeadInfo, HeadName, HostDescription, HostId, HostView, Hunk, Id, IdentityChallenge, Infer, IntegrityReport, JobEnd, JobId, JobKey, JobState, JobView, JournalEntry, Json, LineStat, LoginMethod, McpChange, McpExposure, McpExposureName, McpOAuthConfig, McpScope, McpServerConfig, McpServerState, McpServerView, McpToolView, McpView, MergeOutcome, Message, MessageId, MessageSource, ModelAccount, ModelCatalogView, ModelInfo, ModelListing, ModelRef, ModelRequest, ModelRequestInput, ModelRequestOutcome, MoveOptions, MoveOutcome, ObjectId, OutputFrame, Owned, PageId, PageOutcome, PageSnapshot, PageView, Paged, ParentFilter, PartId, PartStatus, PartView, PatchEntry, PatchEvent, PatchSet, Placement, PluginCheckReport, PluginLoadOutcome, PluginReplacementReport, Position, PrincipalId, PrincipalView, PromptOverride, ProviderUsage, ReceiptId, Ref, RefUpdate, RemoveHeadOutcome, RemoveSessionOutcome, RepairPage, RequestOptions, Revision, RunEnd, RunId, RunView, ScanFrame, Schedule, SdkErrorCode, Schema, SearchFrame, SearchInput, SendOptions, Seq, SessionCatalogView, SessionEvent, SessionId, SessionInfo, SessionView, SetOutcome, SettingInfo, SettingOutcome, SkillInfo, SnapshotId, StopOutcome, Submission, SubmitDraft, Thinking, ToolCall, ToolClass, ToolContent, ToolInfo, ToolOutcome, ToolPartState, ToolProgress, ToolResult, Transcript, TreeNode, TreeView, TurnId, TurnInfo, UpdateOutcome, Usage, UserContent, UserStatus, ValidationIssue, ViewOptions, WaitOutcome, WaitTarget, WorkspaceCatalogView, WorkspaceCommandOutcome, WorkspaceId, WorkspaceInfo, WorkspaceInspection, WorkspaceTarget, WriteOutcome, } from "@nyte-ai/schema";
1
+ export type { ActionContext, ActionOutput, ActionSchemas, Agent, Available, BrowserApi, ClientApi, Command, ConnectOptions, Connection, ContributionTable, Decide, Declared, Durable, EnvironmentProvider, EnvironmentWrap, ExecutionEnv, FileBatch, FilesApi, ForegroundJobs, GitApi, GitHubAccountApi, GitHubApi, Head, HeldMessage, HoldOutcome, HookEntry, HookHandler, HookName, HookTable, Host, Job, Jobs, Keybinding, ListenOptions, Listener, Login, McpApi, ModelContextPolicy, ModelsApi, ObjectStore, Observe, OpenOptions, Page, Part, PartActions, PartDefinition, PartState, Plugin, PluginApi, PluginFile, PluginsApi, PluginStorage, PrincipalsApi, PromptSection, Receipt, RefStore, Registries, Registry, RegistryDraft, ReleaseOutcome, Renderer, RequestJournal, Resources, Row, Run, SendReceipt, Session, Sessions, Setting, SettingDefinition, SettingsApi, Side, SideTable, Skill, SnapshotsApi, Store, StoreConnection, ToolDefinition, ToolInvocation, Transform, Workspace, Workspaces, } from "@nyte-ai/core";
2
+ export type { ActOutcome, Activation, AddOutcome, AdvanceReport, AgentInfo, Authority, Availability, Awaitable, BackgroundItem, BatchOutcome, BlameView, BlobId, ByteReader, CallId, Capability, CatalogGeneration, ChangeSet, ChangeSource, CommandCompletion, CommandInfo, CommandOutcome, CommitBody, CommitId, CompactionPlan, Configuration, ConfigurationPatch, ConfigureOutcome, ConsoleEntry, ContextView, CreateHeadOutcome, CredentialSource, Cursor, Decision, Declaration, DecodedObjectView, Delivery, DiffOptions, Disposer, DocumentRevision, DurableEvent, EndReason, EnvironmentIdentity, ExcerptSource, Execution, Failure, ExecutionCoverage, FileDocument, FileEntryView, FileEvent, FileStatus, FileVersion, ForgetOutcome, FormatOutcome, WorktreeCleanup, GitCommitId, GitOutcome, GitRefsView, GitRevision, GitScope, GitStatus, GitWrite, GitHubAccount, GitHubAccountState, GitHubCheck, GitHubDeviceCode, GitHubPullRequest, GitHubPullRequestContext, GitHubPullRequestInput, GitHubPullRequestOutcome, GitHubRepository, GitHubState, HeadInfo, HeadName, HostDescription, HostId, HostView, Hunk, Id, IdentityChallenge, Infer, IntegrityReport, JobEnd, JobId, JobKey, JobState, JobView, JournalEntry, Json, LineStat, LoginMethod, McpChange, McpExposure, McpExposureName, McpOAuthConfig, McpScope, McpServerConfig, McpServerState, McpServerView, McpToolView, McpView, MergeOutcome, Message, MessageId, MessageSource, ModelAccount, ModelCatalogView, ModelInfo, ModelListing, ModelRef, ModelRequest, ModelRequestInput, ModelRequestOutcome, MoveOptions, MoveOutcome, ObjectId, OutputFrame, Owned, PageId, PageOutcome, PageSnapshot, PageView, Paged, ParentFilter, PartId, PartStatus, PartView, PatchEntry, PatchEvent, PatchSet, Placement, PluginCheckReport, PluginLoadOutcome, PluginReplacementReport, Position, PrincipalId, PrincipalView, PromptOverride, ProviderUsage, QueuedMessage, ReceiptId, Ref, RefUpdate, RemoveHeadOutcome, RemoveSessionOutcome, RepairPage, RequestOptions, ReviseOptions, ReviseOutcome, Revision, RunEnd, RunId, RunView, ScanFrame, Schedule, SdkErrorCode, Schema, SearchFrame, SearchInput, SendOptions, Seq, SessionCatalogView, SessionEvent, SessionId, SessionInfo, SessionView, SetOutcome, SettingInfo, SettingOutcome, SkillInfo, SnapshotId, StopOutcome, Submission, SubmitDraft, Thinking, ToolCall, ToolClass, ToolContent, ToolInfo, ToolOutcome, ToolPartState, ToolProgress, ToolResult, Transcript, TreeNode, TreeView, TurnId, TurnInfo, UpdateOutcome, Usage, UserContent, UserStatus, ValidationIssue, ViewOptions, WaitOutcome, WaitTarget, WorkspaceCatalogView, WorkspaceCommandOutcome, WorkspaceId, WorkspaceInfo, WorkspaceInspection, WorkspaceTarget, WriteOutcome, } from "@nyte-ai/schema";
3
3
  export { dev, watchStore } from "@nyte-ai/core";
4
4
  export type { WatchStore } from "@nyte-ai/core";
5
5
  export { clearSpans, enableTracing, followTrace, followedTrace, readSpans, SPAN_NAMES, startSpan, traced, tracing, } from "@nyte-ai/core";
@@ -15,11 +15,11 @@ import {
15
15
  } from "../chunks/capability-b52hty54.js";
16
16
  import {
17
17
  tracePaints2
18
- } from "../chunks/capability-swbs68d8.js";
18
+ } from "../chunks/capability-h1kbxnde.js";
19
19
  import {
20
20
  pagedViews2
21
- } from "../chunks/capability-t9k5jy3d.js";
22
- import"../chunks/capability-ctnsbfx9.js";
21
+ } from "../chunks/capability-3azc6j5s.js";
22
+ import"../chunks/capability-vpn6wcc0.js";
23
23
  export {
24
24
  SPAN_NAMES2 as SPAN_NAMES,
25
25
  SdkError2 as SdkError,
@@ -1,4 +1,4 @@
1
- import type { Disposer, HeadName, HostView, Json, Message, SessionId, SessionView, ViewOptions } from "@nyte-ai/schema";
1
+ import type { Disposer, HeadName, HostView, Json, QueuedMessage, SessionId, SessionView, ViewOptions } from "@nyte-ai/schema";
2
2
  import type { JournalLoop } from "./journal.ts";
3
3
  import type { Rows } from "./rows.ts";
4
4
  export type Sink<T> = {
@@ -20,7 +20,6 @@ export declare function watchHead(views: HeadViews, journal: JournalLoop, input:
20
20
  readonly options?: ViewOptions;
21
21
  }): AsyncIterable<SessionView>;
22
22
  export declare function watchHost(rows: Rows, opened?: AsyncIterator<Json>): AsyncIterable<HostView>;
23
- /** Returns `view` with the sends the journal still holds: one the view carries replaces its message there, one it does not carry joins its messages, and one that is the view's `leadingPrompt` is left to it. */
24
- export declare function withUnsent(view: SessionView, unsent: readonly Message[]): SessionView;
23
+ export declare function withUnsent(view: SessionView, unsent: readonly QueuedMessage[]): SessionView;
25
24
  export declare function pushed<T>(start: (sink: Sink<T>) => () => void): AsyncIterable<T>;
26
25
  export {};
package/dist/src/watch.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  watchHost2,
5
5
  withUnsent2,
6
6
  pushed2
7
- } from "../chunks/capability-ctnsbfx9.js";
7
+ } from "../chunks/capability-vpn6wcc0.js";
8
8
  export {
9
9
  createHeadViews2 as createHeadViews,
10
10
  pushed2 as pushed,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyte-ai/sdk",
3
- "version": "0.0.24",
3
+ "version": "0.0.25-nightly.20261025.2",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -39,15 +39,14 @@
39
39
  "provenance": true
40
40
  },
41
41
  "dependencies": {
42
- "@nyte-ai/core": "0.0.24",
43
- "@nyte-ai/host": "0.0.24",
44
- "@nyte-ai/protocol": "0.0.24",
45
- "@nyte-ai/schema": "0.0.24"
42
+ "@nyte-ai/core": "0.0.25-nightly.20261025.2",
43
+ "@nyte-ai/host": "0.0.25-nightly.20261025.2",
44
+ "@nyte-ai/protocol": "0.0.25-nightly.20261025.2",
45
+ "@nyte-ai/schema": "0.0.25-nightly.20261025.2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@nyte-ai/bench": "0.0.0",
49
49
  "@types/node": "^26.6.5",
50
- "typescript": "6.0.3",
51
50
  "vitest": "^5.0.5"
52
51
  },
53
52
  "engines": {
@@ -55,7 +54,7 @@
55
54
  },
56
55
  "scripts": {
57
56
  "clean": "rm -rf node_modules .turbo",
58
- "typecheck": "tsrs --noEmit && tsrs --noEmit -p tsconfig.web.json",
57
+ "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.web.json",
59
58
  "test": "vitest --run",
60
59
  "build:package": "bun ../../scripts/sdk-packages.mjs build sdk"
61
60
  }