Skip to content

Commit 8b1743c

Browse files
thymikeeclaude
andcommitted
test(contracts): pin the restricted command-policy output denial
Address #3394 review: assert restrictedCommandPolicy() refuses local output paths, and cut the src/sdk/io.ts header to what the entry exports. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 897904e commit 8b1743c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎packages/contracts/src/command-policy.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ test('command policy presets expose local and restricted defaults', () => {
55
expect(localCommandPolicy().allowLocalInputPaths).toBe(true);
66
expect(localCommandPolicy().allowLocalOutputPaths).toBe(true);
77
expect(restrictedCommandPolicy().allowLocalInputPaths).toBe(false);
8+
expect(restrictedCommandPolicy().allowLocalOutputPaths).toBe(false);
89
expect(restrictedCommandPolicy({ allowLocalInputPaths: true }).allowLocalInputPaths).toBe(true);
910
});

‎src/sdk/io.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// The published `agent-device/io` façade. The artifact-adapter vocabulary now lives in
2-
// @agent-device/contracts/artifact-adapter; re-exporting it here keeps the published surface
3-
// unchanged for consumers (a public package entry may re-export its package boundary).
1+
// Published `agent-device/io` entry: local artifact I/O plus the contracts artifact-adapter types.
42
export * from '../io.ts';
53
export type {
64
ArtifactAdapter,

0 commit comments

Comments
 (0)