agentxjs 2.9.0-dev-20260317060607 → 2.9.0-dev-20260317112104
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/{chunk-SFWLYRLB.js → chunk-TKYJYJS5.js} +21 -21
- package/dist/{chunk-SFWLYRLB.js.map → chunk-TKYJYJS5.js.map} +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.js +28 -28
- package/dist/index.js.map +1 -1
- package/dist/{server-CFC6ONC6.js → server-N3SRHICW.js} +2 -2
- package/package.json +3 -3
- package/src/LocalClient.ts +10 -10
- package/src/handlers/__tests__/workspace-handler.test.ts +34 -34
- package/src/handlers/index.ts +2 -2
- package/src/handlers/workspace.ts +20 -20
- package/src/index.ts +3 -3
- package/src/namespaces/presentations.ts +7 -7
- package/src/presentation/Presentation.ts +16 -16
- package/src/presentation/__tests__/workspace-init.test.ts +20 -20
- package/src/presentation/__tests__/workspace.test.ts +17 -17
- package/src/presentation/index.ts +3 -3
- package/src/presentation/reducer.ts +1 -1
- package/src/presentation/types.ts +10 -10
- /package/dist/{server-CFC6ONC6.js.map → server-N3SRHICW.js.map} +0 -0
|
@@ -163,9 +163,9 @@ export interface FileTreeEntry {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* OS state — real-time file tree view
|
|
167
167
|
*/
|
|
168
|
-
export interface
|
|
168
|
+
export interface OSState {
|
|
169
169
|
/**
|
|
170
170
|
* Current file tree (recursive).
|
|
171
171
|
* Frontend just renders this tree directly.
|
|
@@ -174,14 +174,14 @@ export interface WorkspaceState {
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
// ============================================================================
|
|
177
|
-
// Presentation
|
|
177
|
+
// Presentation OS Operations
|
|
178
178
|
// ============================================================================
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
182
|
-
* Wraps the underlying
|
|
181
|
+
* PresentationOS — file operations exposed to the consumer.
|
|
182
|
+
* Wraps the underlying AgentOS with a simple API.
|
|
183
183
|
*/
|
|
184
|
-
export interface
|
|
184
|
+
export interface PresentationOS {
|
|
185
185
|
/** Read file content */
|
|
186
186
|
read(path: string): Promise<string>;
|
|
187
187
|
/** Write content to a file */
|
|
@@ -232,10 +232,10 @@ export interface PresentationState {
|
|
|
232
232
|
metrics: PresentationMetrics;
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
|
-
*
|
|
236
|
-
* null when agent has no
|
|
235
|
+
* OS state — real-time file tree.
|
|
236
|
+
* null when agent has no OS.
|
|
237
237
|
*/
|
|
238
|
-
|
|
238
|
+
os: OSState | null;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
/**
|
|
@@ -262,5 +262,5 @@ export const initialPresentationState: PresentationState = {
|
|
|
262
262
|
status: "idle",
|
|
263
263
|
connection: "connected",
|
|
264
264
|
metrics: initialMetrics,
|
|
265
|
-
|
|
265
|
+
os: null,
|
|
266
266
|
};
|
|
File without changes
|