fix(everything): require key parameter for get-env tool to prevent env leakage #7956
Annotations
8 errors
|
Test everything
Process completed with exit code 1.
|
|
__tests__/tools.test.ts > Tools > get-env > should return valid JSON:
src/everything/tools/get-env.ts#L32
ZodError: [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"key"
],
"message": "Required"
}
]
❯ Object.get error [as error] ../../node_modules/zod/v3/types.js:39:31
❯ ZodObject.parse ../../node_modules/zod/v3/types.js:114:22
❯ tools/get-env.ts:32:34
❯ __tests__/tools.test.ts:176:28
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'key' ], message: 'Required' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'key' ], message: 'Required' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { key: [ 'Required' ] } } }
|
|
__tests__/tools.test.ts > Tools > get-env > should return all environment variables as JSON:
src/everything/tools/get-env.ts#L32
ZodError: [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"key"
],
"message": "Required"
}
]
❯ Object.get error [as error] ../../node_modules/zod/v3/types.js:39:31
❯ ZodObject.parse ../../node_modules/zod/v3/types.js:114:22
❯ tools/get-env.ts:32:34
❯ __tests__/tools.test.ts:160:28
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'key' ], message: 'Required' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'key' ], message: 'Required' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { key: [ 'Required' ] } } }
|
|
Test memory
The strategy configuration was canceled because "test.everything" failed
|
|
Test filesystem
The strategy configuration was canceled because "test.everything" failed
|
|
Test filesystem
The operation was canceled.
|
|
Test sequentialthinking
The strategy configuration was canceled because "test.everything" failed
|
|
Test sequentialthinking
The operation was canceled.
|