@rivet-dev/agentos-core 0.0.0-nathan-binding-workspace.abc7ec9 → 0.0.0-nathan-binding-workspace.379bd10
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/agent-os.d.ts +1 -1
- package/dist/agent-os.js +4 -3
- package/dist/runtime-compat.js +3 -2
- package/package.json +2 -2
package/dist/agent-os.d.ts
CHANGED
|
@@ -297,7 +297,7 @@ export interface ResumeSessionOptions {
|
|
|
297
297
|
* fallback tier arms a continuation preamble pointing the agent at it.
|
|
298
298
|
*/
|
|
299
299
|
transcriptPath?: string;
|
|
300
|
-
/** Working directory for the resumed agent session (default `/
|
|
300
|
+
/** Working directory for the resumed agent session (default `/workspace`). */
|
|
301
301
|
cwd?: string;
|
|
302
302
|
/** Environment variables to pass to the resumed agent process. */
|
|
303
303
|
env?: Record<string, string>;
|
package/dist/agent-os.js
CHANGED
|
@@ -367,6 +367,7 @@ const KERNEL_POSIX_BOOTSTRAP_DIRS = [
|
|
|
367
367
|
"/media",
|
|
368
368
|
"/home",
|
|
369
369
|
"/home/user",
|
|
370
|
+
"/workspace",
|
|
370
371
|
"/usr",
|
|
371
372
|
"/usr/bin",
|
|
372
373
|
"/usr/games",
|
|
@@ -1544,7 +1545,7 @@ export class AgentOs {
|
|
|
1544
1545
|
session,
|
|
1545
1546
|
vm: nativeVm,
|
|
1546
1547
|
env,
|
|
1547
|
-
cwd: "/
|
|
1548
|
+
cwd: "/workspace",
|
|
1548
1549
|
localMounts,
|
|
1549
1550
|
commandGuestPaths,
|
|
1550
1551
|
onDispose: cleanup,
|
|
@@ -2524,7 +2525,7 @@ export class AgentOs {
|
|
|
2524
2525
|
// skipOsInstructions plus the agent's static launch args and env.
|
|
2525
2526
|
const launchArgs = [...(config.launchArgs ?? [])];
|
|
2526
2527
|
let launchEnv = { ...config.defaultEnv, ...options?.env };
|
|
2527
|
-
const sessionCwd = options?.cwd ?? "/
|
|
2528
|
+
const sessionCwd = options?.cwd ?? "/workspace";
|
|
2528
2529
|
const adapterEntrypoint = this._resolveAdapterBin(config.acpAdapter);
|
|
2529
2530
|
if ((agentType === "pi" || agentType === "pi-cli") &&
|
|
2530
2531
|
!launchEnv.PI_ACP_PI_COMMAND) {
|
|
@@ -2602,7 +2603,7 @@ export class AgentOs {
|
|
|
2602
2603
|
}
|
|
2603
2604
|
const adapterEntrypoint = this._resolveAdapterBin(config.acpAdapter);
|
|
2604
2605
|
let launchEnv = { ...config.defaultEnv, ...options?.env };
|
|
2605
|
-
const sessionCwd = options?.cwd ?? "/
|
|
2606
|
+
const sessionCwd = options?.cwd ?? "/workspace";
|
|
2606
2607
|
if ((agentType === "pi" || agentType === "pi-cli") &&
|
|
2607
2608
|
!launchEnv.PI_ACP_PI_COMMAND) {
|
|
2608
2609
|
launchEnv = {
|
package/dist/runtime-compat.js
CHANGED
|
@@ -37,6 +37,7 @@ const KERNEL_POSIX_BOOTSTRAP_DIRS = [
|
|
|
37
37
|
"/media",
|
|
38
38
|
"/home",
|
|
39
39
|
"/home/user",
|
|
40
|
+
"/workspace",
|
|
40
41
|
"/usr",
|
|
41
42
|
"/usr/bin",
|
|
42
43
|
"/usr/games",
|
|
@@ -1632,7 +1633,7 @@ class NativeKernel {
|
|
|
1632
1633
|
constructor(options) {
|
|
1633
1634
|
this.options = options;
|
|
1634
1635
|
this.env = { ...(options.env ?? {}) };
|
|
1635
|
-
this.cwd = options.cwd ?? "/
|
|
1636
|
+
this.cwd = options.cwd ?? "/workspace";
|
|
1636
1637
|
this.socketTable = {
|
|
1637
1638
|
hasHostNetworkAdapter: () => Boolean(options.hostNetworkAdapter),
|
|
1638
1639
|
findListener: (request) => this.proxy?.findListener(request) ?? null,
|
|
@@ -1987,7 +1988,7 @@ class NativeKernel {
|
|
|
1987
1988
|
vm,
|
|
1988
1989
|
env: this.env,
|
|
1989
1990
|
cwd: this.cwd,
|
|
1990
|
-
defaultExecCwd: this.options.cwd === undefined ? "/
|
|
1991
|
+
defaultExecCwd: this.options.cwd === undefined ? "/workspace" : this.cwd,
|
|
1991
1992
|
localMounts: this.pendingLocalMounts,
|
|
1992
1993
|
commandGuestPaths: new Map(),
|
|
1993
1994
|
onWasmCommandResolved: (command) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivet-dev/agentos-core",
|
|
3
|
-
"version": "0.0.0-nathan-binding-workspace.
|
|
3
|
+
"version": "0.0.0-nathan-binding-workspace.379bd10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@agentos-software/common": "0.3.0-rc.2",
|
|
58
58
|
"@aws-sdk/client-s3": "^3.1019.0",
|
|
59
|
-
"@rivet-dev/agentos-sidecar": "0.0.0-nathan-binding-workspace.
|
|
59
|
+
"@rivet-dev/agentos-sidecar": "0.0.0-nathan-binding-workspace.379bd10",
|
|
60
60
|
"@rivetkit/bare-ts": "^0.6.2",
|
|
61
61
|
"@secure-exec/core": "0.0.0-nathan-workspace-binding-agentos.83db3e3",
|
|
62
62
|
"@xterm/headless": "^6.0.0",
|