@dawn-ai/core 0.8.0 → 0.8.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-fs.d.ts","sourceRoot":"","sources":["../../src/capabilities/workspace-fs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAG3D,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAA;IACnC,QAAQ,CAAC,WAAW,EAAE,gBAAgB,GAAG,SAAS,CAAA;IAClD,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAA;CACnC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"workspace-fs.d.ts","sourceRoot":"","sources":["../../src/capabilities/workspace-fs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAG3D,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAA;IACnC,QAAQ,CAAC,WAAW,EAAE,gBAAgB,GAAG,SAAS,CAAA;IAClD,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAA;CACnC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,GAAG,WAAW,CAsC7E"}
|
|
@@ -9,7 +9,9 @@ export function createWorkspaceFs(opts) {
|
|
|
9
9
|
const bctx = { signal: opts.signal, workspaceRoot: opts.workspaceRoot };
|
|
10
10
|
async function gate(operation, path) {
|
|
11
11
|
const absPath = resolve(opts.workspaceRoot, path);
|
|
12
|
-
const
|
|
12
|
+
const canonicalPath = await opts.backend.realPath(absPath, bctx);
|
|
13
|
+
const canonicalRoot = await opts.backend.realPath(opts.workspaceRoot, bctx);
|
|
14
|
+
const result = await gatePathOp(opts.permissions, operation, canonicalPath, canonicalRoot, {
|
|
13
15
|
interruptCapable: opts.interruptCapable,
|
|
14
16
|
});
|
|
15
17
|
if (!result.allowed)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dawn-ai/core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"tsx": "^4.8.1",
|
|
35
35
|
"typescript": "5.8.3",
|
|
36
36
|
"zod": "^4.4.3",
|
|
37
|
-
"@dawn-ai/permissions": "0.8.
|
|
38
|
-
"@dawn-ai/sdk": "0.8.
|
|
39
|
-
"@dawn-ai/
|
|
40
|
-
"@dawn-ai/
|
|
37
|
+
"@dawn-ai/permissions": "0.8.1",
|
|
38
|
+
"@dawn-ai/sdk": "0.8.1",
|
|
39
|
+
"@dawn-ai/sqlite-storage": "0.8.1",
|
|
40
|
+
"@dawn-ai/workspace": "0.8.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@langchain/langgraph-checkpoint": "^1.0.2"
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@langchain/langgraph-checkpoint": "^1.0.2",
|
|
47
47
|
"@types/node": "25.6.0",
|
|
48
|
-
"@dawn-ai/config-typescript": "0.8.
|
|
49
|
-
"@dawn-ai/sqlite-storage": "0.8.
|
|
48
|
+
"@dawn-ai/config-typescript": "0.8.1",
|
|
49
|
+
"@dawn-ai/sqlite-storage": "0.8.1"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsc -b tsconfig.json",
|