@dxos/assistant-toolkit 0.13.0 → 0.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/assistant-toolkit",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Assistant toolkit, definitions, and utilities.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -104,41 +104,41 @@
104
104
  "src"
105
105
  ],
106
106
  "dependencies": {
107
- "@dxos/agent-runtime": "0.13.0",
108
- "@dxos/ai": "0.13.0",
109
- "@dxos/app-toolkit": "0.13.0",
110
- "@dxos/assistant": "0.13.0",
111
- "@dxos/client-protocol": "0.13.0",
112
- "@dxos/compute": "0.13.0",
113
- "@dxos/compute-runtime": "0.13.0",
114
- "@dxos/echo": "0.13.0",
115
- "@dxos/edge-client": "0.13.0",
116
- "@dxos/effect": "0.13.0",
117
- "@dxos/errors": "0.13.0",
118
- "@dxos/invariant": "0.13.0",
119
- "@dxos/keys": "0.13.0",
120
- "@dxos/log": "0.13.0",
121
- "@dxos/protocols": "0.13.0",
122
- "@dxos/react-ui": "0.13.0",
123
- "@dxos/schema": "0.13.0",
124
- "@dxos/types": "0.13.0",
125
- "@dxos/util": "0.13.0"
107
+ "@dxos/agent-runtime": "0.14.0",
108
+ "@dxos/ai": "0.14.0",
109
+ "@dxos/app-toolkit": "0.14.0",
110
+ "@dxos/assistant": "0.14.0",
111
+ "@dxos/client-protocol": "0.14.0",
112
+ "@dxos/compute": "0.14.0",
113
+ "@dxos/compute-runtime": "0.14.0",
114
+ "@dxos/echo": "0.14.0",
115
+ "@dxos/edge-client": "0.14.0",
116
+ "@dxos/effect": "0.14.0",
117
+ "@dxos/errors": "0.14.0",
118
+ "@dxos/invariant": "0.14.0",
119
+ "@dxos/keys": "0.14.0",
120
+ "@dxos/log": "0.14.0",
121
+ "@dxos/protocols": "0.14.0",
122
+ "@dxos/react-ui": "0.14.0",
123
+ "@dxos/schema": "0.14.0",
124
+ "@dxos/types": "0.14.0",
125
+ "@dxos/util": "0.14.0"
126
126
  },
127
127
  "devDependencies": {
128
128
  "effect": "4.0.0",
129
129
  "react": "~19.2.7",
130
130
  "react-dom": "~19.2.7",
131
- "@dxos/app-framework": "0.13.0",
132
- "@dxos/client-protocol": "0.13.0",
133
- "@dxos/plugin-markdown": "0.13.0",
134
- "@dxos/react-ui-syntax-highlighter": "0.13.0",
135
- "@dxos/ui-theme": "0.13.0"
131
+ "@dxos/app-framework": "0.14.0",
132
+ "@dxos/client-protocol": "0.14.0",
133
+ "@dxos/plugin-markdown": "0.14.0",
134
+ "@dxos/react-ui-syntax-highlighter": "0.14.0",
135
+ "@dxos/ui-theme": "0.14.0"
136
136
  },
137
137
  "peerDependencies": {
138
138
  "effect": "4.0.0",
139
139
  "react": "~19.2.7",
140
140
  "react-dom": "~19.2.7",
141
- "@dxos/ui-theme": "^0.13.0"
141
+ "@dxos/ui-theme": "^0.14.0"
142
142
  },
143
143
  "publishConfig": {
144
144
  "access": "public"
@@ -54,7 +54,7 @@ const handler: Operation.WithHandler<typeof Relay> = Relay.pipe(
54
54
 
55
55
  // The durable session is bound to the chat, so it recovers its steering (and its queue)
56
56
  // from the chat itself on every rehydration.
57
- const session = yield* AgentService.getSession(chat, { location: chat.remote ? 'edge' : 'local' });
57
+ const session = yield* AgentService.getSession(chat, { location: Agent.chatLocation(chat) });
58
58
  const content = prompt ?? JSON.stringify(event);
59
59
  yield* session.submitPrompt([{ _tag: 'text', text: content, disposition: 'synthetic' }]);
60
60
  },
@@ -10,8 +10,9 @@ import { type Delegation, type DelegationStrategy } from '@dxos/agent-runtime';
10
10
  import { AiContext } from '@dxos/assistant';
11
11
  import * as Agent from '@dxos/assistant/Agent';
12
12
  import * as Chat from '@dxos/assistant/Chat';
13
- import { ProcessManager } from '@dxos/compute-runtime';
13
+ import { OperationProcess } from '@dxos/compute-runtime';
14
14
  import * as Instructions from '@dxos/compute/Instructions';
15
+ import * as Process from '@dxos/compute/Process';
15
16
  import { Database, Feed, Filter, Obj, Query, Ref } from '@dxos/echo';
16
17
  import * as EffectEx from '@dxos/effect/EffectEx';
17
18
  import { EID, EntityId } from '@dxos/keys';
@@ -202,14 +203,13 @@ export const makeDelegationStrategy = (): DelegationStrategy => ({
202
203
  delegations.push({
203
204
  id: task.id,
204
205
  spawn: Effect.gen(function* () {
205
- const invoker = yield* ProcessManager.ProcessOperationInvoker.Service;
206
206
  // The task ↔ process mapping lives runtime-side (the supervisor's activeIds keyed by
207
207
  // task id) — nothing is stamped on the durable task.
208
- const fiber = yield* invoker.invokeFiber(AgentOperation.RunInstructions, {
208
+ const handle = yield* Process.spawn(OperationProcess.make(AgentOperation.RunInstructions), {
209
209
  instructions: Ref.make(instructions),
210
210
  input: {},
211
211
  });
212
- return fiber.pid;
212
+ return handle.pid;
213
213
  }),
214
214
  });
215
215
  }