@sandagent/daemon 0.9.7 → 0.9.9-beta.0
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/README.md +5 -1
- package/dist/bundle.mjs +1287 -1197
- package/dist/coding-run-env.d.ts +17 -0
- package/dist/coding-run-env.d.ts.map +1 -0
- package/dist/index.js +193 -112
- package/dist/nextjs.d.ts.map +1 -1
- package/dist/nextjs.js +112 -79
- package/dist/routes/coding.d.ts +2 -0
- package/dist/routes/coding.d.ts.map +1 -1
- package/dist/routes/fs.d.ts +2 -0
- package/dist/routes/fs.d.ts.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merge `POST /api/coding/run` body `env` into the daemon process environment.
|
|
3
|
+
* Kept in-package so `@sandagent/daemon` does not depend on `@sandagent/manager`.
|
|
4
|
+
* Only string values and valid env-style keys are accepted.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Normalize `body.env` from JSON (string keys and string values only).
|
|
8
|
+
*/
|
|
9
|
+
export declare function sanitizeCodingRunBodyEnv(parsed: unknown): Record<string, string> | undefined;
|
|
10
|
+
export interface CodingRunBodyWithEnv {
|
|
11
|
+
env?: unknown;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Merge daemon `process.env` with optional inline `env` from the request JSON.
|
|
15
|
+
*/
|
|
16
|
+
export declare function mergeCodingRunProcessEnv(daemonEnv: Record<string, string>, body: CodingRunBodyWithEnv): Record<string, string>;
|
|
17
|
+
//# sourceMappingURL=coding-run-env.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coding-run-env.d.ts","sourceRoot":"","sources":["../src/coding-run-env.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,OAAO,GACd,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAUpC;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACjC,IAAI,EAAE,oBAAoB,GACzB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAKxB"}
|