@otto-code/client 0.6.7 → 0.7.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.
- package/dist/daemon-client-runtime-metrics.d.ts +31 -0
- package/dist/daemon-client-runtime-metrics.js +57 -0
- package/dist/daemon-client.d.ts +335 -5
- package/dist/daemon-client.js +653 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { AgentSnapshotPayload, CreateAgentRequestMessage, FetchWorkspacesRe
|
|
|
2
2
|
import { DaemonClient } from "./daemon-client.js";
|
|
3
3
|
import type { FetchAgentTimelineCursor, FetchAgentTimelineDirection, FetchAgentTimelinePayload, FetchAgentTimelineProjection } from "./daemon-client.js";
|
|
4
4
|
export { DaemonClient };
|
|
5
|
-
export type { DaemonClientConfig, DaemonEvent, BrowserAutomationExecuteRequestMessage, BrowserAutomationExecuteResponseMessage, HostingAuthStatusPayload, HostingSearchPayload, WebSocketFactory, WebSocketLike, } from "./daemon-client.js";
|
|
5
|
+
export type { DaemonClientConfig, DaemonEvent, BrowserAutomationExecuteRequestMessage, BrowserAutomationExecuteResponseMessage, CodeRenameApplyOutcome, CodeRenameApplyQuery, CodeRenamePlan, CodeRenameUndoOutcome, HostingAuthStatusPayload, HostingListOwnersPayload, HostingListRepositoriesPayload, HostingSearchPayload, ProjectScaffoldPayload, WebSocketFactory, WebSocketLike, } from "./daemon-client.js";
|
|
6
6
|
export type ConnectionState = {
|
|
7
7
|
status: "idle";
|
|
8
8
|
} | {
|
package/dist/index.js
CHANGED
|
@@ -121,7 +121,9 @@ function createAgentHandleFactory(daemonClient) {
|
|
|
121
121
|
latest = result?.agent ?? null;
|
|
122
122
|
return result;
|
|
123
123
|
},
|
|
124
|
-
send: (text, options) =>
|
|
124
|
+
send: async (text, options) => {
|
|
125
|
+
await daemonClient.sendAgentMessage(id, text, options);
|
|
126
|
+
},
|
|
125
127
|
archive: async () => {
|
|
126
128
|
const result = await daemonClient.archiveAgent(id);
|
|
127
129
|
if (latest) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@otto-code/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Otto client SDK package",
|
|
5
5
|
"license": "AGPL-3.0-or-later",
|
|
6
6
|
"files": [
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"test": "vitest run"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@otto-code/protocol": "0.
|
|
40
|
-
"@otto-code/relay": "0.
|
|
39
|
+
"@otto-code/protocol": "0.7.0",
|
|
40
|
+
"@otto-code/relay": "0.7.0",
|
|
41
41
|
"zod": "^4.4.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|