@nyte-ai/sdk 0.0.24 → 0.0.25-beta.1
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/dist/chunks/{capability-t9k5jy3d.js → capability-3azc6j5s.js} +1 -1
- package/dist/chunks/{capability-ht2xg669.js → capability-b4277jaq.js} +22 -5
- package/dist/chunks/{capability-gc5bfr6a.js → capability-gs0zb83v.js} +2 -2
- package/dist/chunks/{capability-swbs68d8.js → capability-h1kbxnde.js} +4 -4
- package/dist/chunks/{capability-ke5yk1as.js → capability-nt11y4gm.js} +1 -1
- package/dist/chunks/{capability-ctnsbfx9.js → capability-vpn6wcc0.js} +6 -5
- package/dist/chunks/{capability-9747w1b1.js → capability-ws7azpye.js} +1 -0
- package/dist/src/client.js +4 -4
- package/dist/src/connect.js +5 -5
- package/dist/src/history.js +2 -2
- package/dist/src/index.client.js +7 -7
- package/dist/src/index.js +7 -7
- package/dist/src/index.web.js +7 -7
- package/dist/src/journal.d.ts +2 -2
- package/dist/src/journal.js +1 -1
- package/dist/src/paint-spans.js +1 -1
- package/dist/src/part.js +1 -1
- package/dist/src/surface.d.ts +2 -2
- package/dist/src/surface.js +3 -3
- package/dist/src/watch.d.ts +2 -3
- package/dist/src/watch.js +1 -1
- package/package.json +6 -7
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
watchHead2,
|
|
4
4
|
watchHost2,
|
|
5
5
|
withUnsent2
|
|
6
|
-
} from "./capability-
|
|
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-
|
|
13
|
+
} from "./capability-nt11y4gm.js";
|
|
14
14
|
import {
|
|
15
15
|
partHandle2
|
|
16
|
-
} from "./capability-
|
|
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;
|
|
@@ -156,6 +157,7 @@ function sessionHandle(bound, session) {
|
|
|
156
157
|
}
|
|
157
158
|
function headHandle(bound, session, head) {
|
|
158
159
|
const { rows, journal } = bound;
|
|
160
|
+
const revise = (message, content, options) => rows.call("head.revise", { session, head, message, content, options });
|
|
159
161
|
return {
|
|
160
162
|
sessionId: session,
|
|
161
163
|
name: head,
|
|
@@ -174,6 +176,14 @@ function headHandle(bound, session, head) {
|
|
|
174
176
|
}));
|
|
175
177
|
return sendReceipt2(rows, session, sent.receipt, sent.message);
|
|
176
178
|
},
|
|
179
|
+
revise,
|
|
180
|
+
hold: (message) => holdMessage(message, {
|
|
181
|
+
hold: () => rows.call("head.hold", { session, head, message }),
|
|
182
|
+
revise: (content, options) => revise(message, content, options),
|
|
183
|
+
async release() {
|
|
184
|
+
await rows.call("head.release", { session, head, message });
|
|
185
|
+
}
|
|
186
|
+
}),
|
|
177
187
|
configure: (patch) => rows.call("head.configure", { session, head, patch }),
|
|
178
188
|
async view(options) {
|
|
179
189
|
const view = await rows.call("head.view", { session, head, options });
|
|
@@ -181,6 +191,13 @@ function headHandle(bound, session, head) {
|
|
|
181
191
|
return withUnsent2(view, journal.unsent(session, head));
|
|
182
192
|
},
|
|
183
193
|
watch: (options) => watchHead2(bound.views, journal, { session, head, options }),
|
|
194
|
+
async see(commit) {
|
|
195
|
+
const key = JSON.stringify([session, head]);
|
|
196
|
+
if (bound.seen.get(key) === commit)
|
|
197
|
+
return;
|
|
198
|
+
await rows.call("head.see", { session, head, commit });
|
|
199
|
+
bound.seen.set(key, commit);
|
|
200
|
+
},
|
|
184
201
|
...watchStore(() => watchHead2(bound.views, journal, { session, head })),
|
|
185
202
|
history: (input) => rows.call("head.history", { session, head, ...input }),
|
|
186
203
|
tree: () => rows.call("head.tree", { session, head }),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSendJournal2
|
|
3
|
-
} from "./capability-
|
|
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-
|
|
9
|
+
} from "./capability-b4277jaq.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
|
|
25
|
+
shown = view;
|
|
26
26
|
return view;
|
|
27
27
|
})[Symbol.asyncIterator]();
|
|
28
28
|
}
|
|
@@ -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
|
|
130
|
-
|
|
131
|
-
|
|
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) {
|
package/dist/src/client.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createClient2
|
|
3
|
-
} from "../chunks/capability-
|
|
4
|
-
import"../chunks/capability-
|
|
3
|
+
} from "../chunks/capability-b4277jaq.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-
|
|
10
|
-
import"../chunks/capability-
|
|
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
|
package/dist/src/connect.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
connect2
|
|
3
|
-
} from "../chunks/capability-
|
|
4
|
-
import"../chunks/capability-
|
|
5
|
-
import"../chunks/capability-
|
|
3
|
+
} from "../chunks/capability-gs0zb83v.js";
|
|
4
|
+
import"../chunks/capability-b4277jaq.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-
|
|
11
|
-
import"../chunks/capability-
|
|
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
|
package/dist/src/history.js
CHANGED
package/dist/src/index.client.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import"../chunks/capability-
|
|
1
|
+
import"../chunks/capability-vpn6wcc0.js";
|
|
2
2
|
import"../chunks/capability-artgq59v.js";
|
|
3
3
|
import {
|
|
4
4
|
createSendJournal2
|
|
5
|
-
} from "../chunks/capability-
|
|
6
|
-
import"../chunks/capability-
|
|
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-
|
|
11
|
+
import"../chunks/capability-b4277jaq.js";
|
|
12
12
|
import {
|
|
13
13
|
connect2
|
|
14
|
-
} from "../chunks/capability-
|
|
14
|
+
} from "../chunks/capability-gs0zb83v.js";
|
|
15
15
|
import {
|
|
16
16
|
pagedViews2
|
|
17
|
-
} from "../chunks/capability-
|
|
17
|
+
} from "../chunks/capability-3azc6j5s.js";
|
|
18
18
|
import {
|
|
19
19
|
tracePaints2
|
|
20
|
-
} from "../chunks/capability-
|
|
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-
|
|
1
|
+
import"../chunks/capability-vpn6wcc0.js";
|
|
2
2
|
import"../chunks/capability-artgq59v.js";
|
|
3
3
|
import {
|
|
4
4
|
createSendJournal2
|
|
5
|
-
} from "../chunks/capability-
|
|
6
|
-
import"../chunks/capability-
|
|
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-
|
|
11
|
+
import"../chunks/capability-b4277jaq.js";
|
|
12
12
|
import {
|
|
13
13
|
connect2
|
|
14
|
-
} from "../chunks/capability-
|
|
14
|
+
} from "../chunks/capability-gs0zb83v.js";
|
|
15
15
|
import {
|
|
16
16
|
pagedViews2
|
|
17
|
-
} from "../chunks/capability-
|
|
17
|
+
} from "../chunks/capability-3azc6j5s.js";
|
|
18
18
|
import {
|
|
19
19
|
tracePaints2
|
|
20
|
-
} from "../chunks/capability-
|
|
20
|
+
} from "../chunks/capability-h1kbxnde.js";
|
|
21
21
|
import {
|
|
22
22
|
dev2,
|
|
23
23
|
watchStore2,
|
package/dist/src/index.web.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import"../chunks/capability-
|
|
1
|
+
import"../chunks/capability-vpn6wcc0.js";
|
|
2
2
|
import"../chunks/capability-artgq59v.js";
|
|
3
3
|
import {
|
|
4
4
|
createSendJournal2
|
|
5
|
-
} from "../chunks/capability-
|
|
6
|
-
import"../chunks/capability-
|
|
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-
|
|
11
|
+
import"../chunks/capability-b4277jaq.js";
|
|
12
12
|
import {
|
|
13
13
|
connect2
|
|
14
|
-
} from "../chunks/capability-
|
|
14
|
+
} from "../chunks/capability-gs0zb83v.js";
|
|
15
15
|
import {
|
|
16
16
|
pagedViews2
|
|
17
|
-
} from "../chunks/capability-
|
|
17
|
+
} from "../chunks/capability-3azc6j5s.js";
|
|
18
18
|
import {
|
|
19
19
|
tracePaints2
|
|
20
|
-
} from "../chunks/capability-
|
|
20
|
+
} from "../chunks/capability-h1kbxnde.js";
|
|
21
21
|
import {
|
|
22
22
|
dev2,
|
|
23
23
|
watchStore2,
|
package/dist/src/journal.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Disposer, HeadName, JournalEntry,
|
|
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
|
|
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
|
}
|
package/dist/src/journal.js
CHANGED
package/dist/src/paint-spans.js
CHANGED
package/dist/src/part.js
CHANGED
package/dist/src/surface.d.ts
CHANGED
|
@@ -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, 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";
|
package/dist/src/surface.js
CHANGED
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
} from "../chunks/capability-b52hty54.js";
|
|
16
16
|
import {
|
|
17
17
|
tracePaints2
|
|
18
|
-
} from "../chunks/capability-
|
|
18
|
+
} from "../chunks/capability-h1kbxnde.js";
|
|
19
19
|
import {
|
|
20
20
|
pagedViews2
|
|
21
|
-
} from "../chunks/capability-
|
|
22
|
-
import"../chunks/capability-
|
|
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,
|
package/dist/src/watch.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Disposer, HeadName, HostView, Json,
|
|
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
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyte-ai/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25-beta.1",
|
|
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.
|
|
43
|
-
"@nyte-ai/host": "0.0.
|
|
44
|
-
"@nyte-ai/protocol": "0.0.
|
|
45
|
-
"@nyte-ai/schema": "0.0.
|
|
42
|
+
"@nyte-ai/core": "0.0.25-beta.1",
|
|
43
|
+
"@nyte-ai/host": "0.0.25-beta.1",
|
|
44
|
+
"@nyte-ai/protocol": "0.0.25-beta.1",
|
|
45
|
+
"@nyte-ai/schema": "0.0.25-beta.1"
|
|
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": "
|
|
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
|
}
|