openwork 0.1.1-rc.5 → 0.1.1-rc.6

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/out/main/index.js CHANGED
@@ -1007,11 +1007,11 @@ When delegating to subagents:
1007
1007
  - read_file: Read file contents
1008
1008
  - edit_file: Replace exact strings in files (must read first, provide unique old_string)
1009
1009
  - write_file: Create or overwrite files
1010
- - ls: List directory contents (use "/" for workspace root)
1010
+ - ls: List directory contents
1011
1011
  - glob: Find files by pattern (e.g., "**/*.py")
1012
1012
  - grep: Search file contents
1013
1013
 
1014
- All file paths are virtual paths relative to the workspace root, starting with /.
1014
+ All file paths should use fully qualified absolute system paths (e.g., /Users/name/project/src/file.ts).
1015
1015
 
1016
1016
  ### Shell Tool
1017
1017
  - execute: Run shell commands in the workspace directory
@@ -1067,11 +1067,11 @@ function getSystemPrompt(workspacePath) {
1067
1067
  ### File System and Paths
1068
1068
 
1069
1069
  **IMPORTANT - Path Handling:**
1070
- - All file paths use virtual paths starting with \`/\` (the workspace root)
1071
- - \`/\` refers to the workspace root directory
1072
- - Example: \`/src/index.ts\`, \`/README.md\`, \`/package.json\`
1073
- - To list the workspace root, use \`ls("/")\`
1074
- - Never use fully qualified system paths like \`${workspacePath}/...\`
1070
+ - All file paths use fully qualified absolute system paths
1071
+ - The workspace root is: \`${workspacePath}\`
1072
+ - Example: \`${workspacePath}/src/index.ts\`, \`${workspacePath}/README.md\`
1073
+ - To list the workspace root, use \`ls("${workspacePath}")\`
1074
+ - Always use full absolute paths for all file operations
1075
1075
  `;
1076
1076
  return workingDirSection + BASE_SYSTEM_PROMPT;
1077
1077
  }
@@ -1124,18 +1124,31 @@ async function createAgentRuntime(options) {
1124
1124
  console.log("[Runtime] Checkpointer ready");
1125
1125
  const backend = new LocalSandbox({
1126
1126
  rootDir: workspacePath,
1127
- virtualMode: true,
1127
+ virtualMode: false,
1128
+ // Use absolute system paths for consistency with shell commands
1128
1129
  timeout: 12e4,
1129
1130
  // 2 minutes
1130
1131
  maxOutputBytes: 1e5
1131
1132
  // ~100KB
1132
1133
  });
1133
1134
  const systemPrompt = getSystemPrompt(workspacePath);
1135
+ const filesystemSystemPrompt = `You have access to a filesystem. All file paths use fully qualified absolute system paths.
1136
+
1137
+ - ls: list files in a directory (e.g., ls("${workspacePath}"))
1138
+ - read_file: read a file from the filesystem
1139
+ - write_file: write to a file in the filesystem
1140
+ - edit_file: edit a file in the filesystem
1141
+ - glob: find files matching a pattern (e.g., "**/*.py")
1142
+ - grep: search for text within files
1143
+
1144
+ The workspace root is: ${workspacePath}`;
1134
1145
  const agent = deepagents.createDeepAgent({
1135
1146
  model,
1136
1147
  checkpointer: checkpointer2,
1137
1148
  backend,
1138
1149
  systemPrompt,
1150
+ // Custom filesystem prompt for absolute paths (requires deepagents update)
1151
+ filesystemSystemPrompt,
1139
1152
  // Require human approval for all shell commands
1140
1153
  interruptOn: { execute: true }
1141
1154
  });
@@ -75565,7 +75565,7 @@ function App() {
75565
75565
  },
75566
75566
  children: [
75567
75567
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "app-badge-name", children: "OPENWORK" }),
75568
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "app-badge-version", children: "0.1.1-rc.5" })
75568
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "app-badge-version", children: "0.1.1-rc.6" })
75569
75569
  ]
75570
75570
  }
75571
75571
  ),
@@ -7,7 +7,7 @@
7
7
  http-equiv="Content-Security-Policy"
8
8
  content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:"
9
9
  />
10
- <script type="module" crossorigin src="./assets/index-D7l8y4Ya.js"></script>
10
+ <script type="module" crossorigin src="./assets/index-BOB_WPKv.js"></script>
11
11
  <link rel="stylesheet" crossorigin href="./assets/index-CK8V1Wgb.css">
12
12
  </head>
13
13
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openwork",
3
- "version": "0.1.1-rc.5",
3
+ "version": "0.1.1-rc.6",
4
4
  "description": "A tactical agent interface for deepagentsjs",
5
5
  "main": "./out/main/index.js",
6
6
  "files": [