openwork 0.1.1-rc.1 → 0.1.1-rc.2
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
|
@@ -819,14 +819,14 @@ When delegating to subagents:
|
|
|
819
819
|
## Tools
|
|
820
820
|
|
|
821
821
|
### File Tools
|
|
822
|
-
- read_file: Read file contents
|
|
822
|
+
- read_file: Read file contents
|
|
823
823
|
- edit_file: Replace exact strings in files (must read first, provide unique old_string)
|
|
824
824
|
- write_file: Create or overwrite files
|
|
825
|
-
- ls: List directory contents
|
|
825
|
+
- ls: List directory contents (use "/" for workspace root)
|
|
826
826
|
- glob: Find files by pattern (e.g., "**/*.py")
|
|
827
827
|
- grep: Search file contents
|
|
828
828
|
|
|
829
|
-
All file paths
|
|
829
|
+
All file paths are virtual paths relative to the workspace root, starting with /.
|
|
830
830
|
|
|
831
831
|
## Code References
|
|
832
832
|
When referencing code, use format: \`file_path:line_number\`
|
|
@@ -862,18 +862,15 @@ When using the write_todos tool:
|
|
|
862
862
|
The todo list is a planning tool - use it judiciously to avoid overwhelming the user with excessive task tracking.
|
|
863
863
|
`;
|
|
864
864
|
function getSystemPrompt(workspacePath) {
|
|
865
|
-
const workingDirSection =
|
|
866
|
-
|
|
867
|
-
The filesystem backend is currently operating in: \`${workspacePath}\`
|
|
868
|
-
|
|
865
|
+
const workingDirSection = `
|
|
869
866
|
### File System and Paths
|
|
870
867
|
|
|
871
868
|
**IMPORTANT - Path Handling:**
|
|
872
|
-
- All file paths
|
|
873
|
-
-
|
|
874
|
-
- Example:
|
|
875
|
-
-
|
|
876
|
-
|
|
869
|
+
- All file paths use virtual paths starting with \`/\` (the workspace root)
|
|
870
|
+
- \`/\` refers to the workspace root directory
|
|
871
|
+
- Example: \`/src/index.ts\`, \`/README.md\`, \`/package.json\`
|
|
872
|
+
- To list the workspace root, use \`ls("/")\`
|
|
873
|
+
- Never use fully qualified system paths like \`${workspacePath}/...\`
|
|
877
874
|
`;
|
|
878
875
|
return workingDirSection + BASE_SYSTEM_PROMPT;
|
|
879
876
|
}
|
|
@@ -917,7 +914,9 @@ function getModelInstance(modelId) {
|
|
|
917
914
|
async function createAgentRuntime(options) {
|
|
918
915
|
const { modelId, workspacePath } = options;
|
|
919
916
|
if (!workspacePath) {
|
|
920
|
-
throw new Error(
|
|
917
|
+
throw new Error(
|
|
918
|
+
"Workspace path is required. Please select a workspace folder before running the agent."
|
|
919
|
+
);
|
|
921
920
|
}
|
|
922
921
|
console.log("[Runtime] Creating agent runtime...");
|
|
923
922
|
console.log("[Runtime] Workspace path:", workspacePath);
|
|
@@ -928,7 +927,6 @@ async function createAgentRuntime(options) {
|
|
|
928
927
|
const backend = new deepagents.FilesystemBackend({
|
|
929
928
|
rootDir: workspacePath,
|
|
930
929
|
virtualMode: true
|
|
931
|
-
// Use virtual paths starting with /
|
|
932
930
|
});
|
|
933
931
|
const systemPrompt = getSystemPrompt(workspacePath);
|
|
934
932
|
const agent = deepagents.createDeepAgent({
|
|
@@ -75535,7 +75535,7 @@ function App() {
|
|
|
75535
75535
|
},
|
|
75536
75536
|
children: [
|
|
75537
75537
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "app-badge-name", children: "OPENWORK" }),
|
|
75538
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "app-badge-version", children: "0.1.1-rc.
|
|
75538
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "app-badge-version", children: "0.1.1-rc.2" })
|
|
75539
75539
|
]
|
|
75540
75540
|
}
|
|
75541
75541
|
),
|
package/out/renderer/index.html
CHANGED
|
@@ -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-
|
|
10
|
+
<script type="module" crossorigin src="./assets/index-Dyv8tZ_T.js"></script>
|
|
11
11
|
<link rel="stylesheet" crossorigin href="./assets/index-D2W2biEe.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|