@crewx/cli 0.9.0-rc.148 → 0.9.0-rc.149
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.
|
@@ -49,7 +49,13 @@ export declare function composeAdditionalArgsProviders(...providers: AdditionalA
|
|
|
49
49
|
/**
|
|
50
50
|
* Create an `AdditionalArgsProvider` (SDK extension point, WI-20260703-001)
|
|
51
51
|
* that injects CrewX home as a Codex writable root for `workspace-write`
|
|
52
|
-
* equivalent modes (`agent`, `auto`, `undefined`).
|
|
52
|
+
* equivalent modes (`agent`, `auto`, `undefined`). Only explicit `agent`
|
|
53
|
+
* also receives a permission profile allowing localhost network access and
|
|
54
|
+
* writes to the same CrewX home. `auto`/`undefined` keep their existing policy.
|
|
55
|
+
*
|
|
56
|
+
* All overrides use `-c`, supported by both `exec` and `exec resume`. Keep
|
|
57
|
+
* writable_roots for older Codex versions that ignore permission profiles
|
|
58
|
+
* and fall back to the closed workspace-write sandbox. No version gate.
|
|
53
59
|
*
|
|
54
60
|
* No-ops for:
|
|
55
61
|
* - Non-codex providers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.resolveCrewxHome=
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.resolveCrewxHome=i;exports.escapeTomlBasicString=t;exports.buildCodexWritableRootArgs=s;exports.createCodexSkipGitRepoCheckProvider=u;exports.composeAdditionalArgsProviders=p;exports.createCodexWritableRootsProvider=w;const a=require("os");const d=require("path");const l=new Set(["read-only","plan","agent-full-access","yolo","danger-full-access"]);function i(){return process.env.CREWX_HOME??(0,d.join)((0,a.homedir)(),".crewx")}function t(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}function s(e){const r=t(e);return["-c",`sandbox_workspace_write.writable_roots=["${r}"]`]}function n(e){return e.providerId==="codex"||e.providerStr==="cli/codex"}function u(e){return r=>{if(!n(r))return[];if(!e)return[];return["--skip-git-repo-check"]}}function p(...e){return r=>e.flatMap(o=>o(r))}function w(e=i()){return r=>{if(!n(r))return[];if(r.mode!==void 0&&l.has(r.mode))return[];const o=s(e);if(r.mode==="agent"){const c=t(e);o.push("-c","default_permissions=crewx","-c",'permissions.crewx.extends=":workspace"',"-c","features.network_proxy=true","-c","permissions.crewx.network.enabled=true","-c","permissions.crewx.network.allow_local_binding=true","-c",'permissions.crewx.network.domains={"localhost"="allow","127.0.0.1"="allow"}',"-c",`permissions.crewx.filesystem={"${c}"="write"}`)}return o}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewx/cli",
|
|
3
|
-
"version": "0.9.0-rc.
|
|
3
|
+
"version": "0.9.0-rc.149",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.19.0"
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"better-sqlite3": "*",
|
|
26
26
|
"dotenv": "17.2.3",
|
|
27
27
|
"isomorphic-git": "1.37.1",
|
|
28
|
-
"@crewx/sdk": "0.9.0-rc.
|
|
29
|
-
"@crewx/
|
|
30
|
-
"@crewx/
|
|
31
|
-
"@crewx/
|
|
32
|
-
"@crewx/
|
|
33
|
-
"@crewx/
|
|
34
|
-
"@crewx/
|
|
35
|
-
"@crewx/
|
|
36
|
-
"@crewx/chromex": "0.1.0-rc.
|
|
37
|
-
"@crewx/
|
|
38
|
-
"@crewx/
|
|
39
|
-
"@crewx/
|
|
40
|
-
"@crewx/
|
|
41
|
-
"@crewx/
|
|
28
|
+
"@crewx/sdk": "0.9.0-rc.149",
|
|
29
|
+
"@crewx/knowledge-core": "0.1.17-rc.159",
|
|
30
|
+
"@crewx/search": "0.1.10-rc.145",
|
|
31
|
+
"@crewx/wbs": "0.1.10-rc.175",
|
|
32
|
+
"@crewx/doc": "0.1.9-rc.142",
|
|
33
|
+
"@crewx/cron": "0.1.10-rc.184",
|
|
34
|
+
"@crewx/workflow": "0.3.22-rc.195",
|
|
35
|
+
"@crewx/wi": "0.1.10-rc.169",
|
|
36
|
+
"@crewx/chromex": "0.1.0-rc.182",
|
|
37
|
+
"@crewx/skill": "0.1.20-rc.43",
|
|
38
|
+
"@crewx/app": "0.1.0-rc.30",
|
|
39
|
+
"@crewx/memory": "0.1.23-rc.166",
|
|
40
|
+
"@crewx/shared": "0.0.6-rc.64",
|
|
41
|
+
"@crewx/notify": "0.1.0-rc.120"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/better-sqlite3": "*",
|