@silo-code/sdk 0.37.1 → 0.38.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.
|
@@ -18,6 +18,19 @@ export interface ProcessSpawnOptions {
|
|
|
18
18
|
cols?: number;
|
|
19
19
|
/** Initial row count. */
|
|
20
20
|
rows?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Extra environment variables, **merged over** the session's inherited
|
|
23
|
+
* environment. Use it for things a long-lived shell needs from the start —
|
|
24
|
+
* `NO_COLOR`, a locale, a tool's config directory — without clobbering
|
|
25
|
+
* `PATH`.
|
|
26
|
+
*
|
|
27
|
+
* Keys beginning `SILO_` (and the bare `SILO`) are **reserved by the host**
|
|
28
|
+
* and are dropped: Silo stamps its own
|
|
29
|
+
* {@link https://getsilo.dev/api/terminal-environment | terminal identity}
|
|
30
|
+
* there, and a guard keyed on a value any caller could write would be no
|
|
31
|
+
* guard at all. Dropped keys are logged to the Extension Host output channel.
|
|
32
|
+
*/
|
|
33
|
+
env?: Record<string, string>;
|
|
21
34
|
}
|
|
22
35
|
/**
|
|
23
36
|
* A live handle to one persistent process session, returned by
|
|
@@ -65,6 +78,11 @@ export interface ProcessExecOptions {
|
|
|
65
78
|
* Extra environment variables, **merged over** the host's environment (the
|
|
66
79
|
* command inherits the host env; these keys add to or override it). Use it to
|
|
67
80
|
* set things like `GIT_PAGER=cat` or a locale without clobbering `PATH`.
|
|
81
|
+
*
|
|
82
|
+
* Keys beginning `SILO_` (and the bare `SILO`) are **reserved by the host**
|
|
83
|
+
* and are dropped — same rule as
|
|
84
|
+
* {@link ProcessSpawnOptions.env}, so the reservation can't be sidestepped
|
|
85
|
+
* by launching through `exec` instead of `spawn`.
|
|
68
86
|
*/
|
|
69
87
|
env?: Record<string, string>;
|
|
70
88
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-service.d.ts","sourceRoot":"","sources":["../src/process-service.ts"],"names":[],"mappings":"AAAA,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,CAAC;IACrD,4DAA4D;IAC5D,MAAM,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,GAAG,UAAU,CAAC;CAC1D;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;;;;;OASG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,uDAAuD;IACvD,MAAM,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,KAAK,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1D;;;OAGG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GACtC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC/B"}
|
package/package.json
CHANGED
package/src/process-service.ts
CHANGED
|
@@ -22,6 +22,19 @@ export interface ProcessSpawnOptions {
|
|
|
22
22
|
cols?: number;
|
|
23
23
|
/** Initial row count. */
|
|
24
24
|
rows?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Extra environment variables, **merged over** the session's inherited
|
|
27
|
+
* environment. Use it for things a long-lived shell needs from the start —
|
|
28
|
+
* `NO_COLOR`, a locale, a tool's config directory — without clobbering
|
|
29
|
+
* `PATH`.
|
|
30
|
+
*
|
|
31
|
+
* Keys beginning `SILO_` (and the bare `SILO`) are **reserved by the host**
|
|
32
|
+
* and are dropped: Silo stamps its own
|
|
33
|
+
* {@link https://getsilo.dev/api/terminal-environment | terminal identity}
|
|
34
|
+
* there, and a guard keyed on a value any caller could write would be no
|
|
35
|
+
* guard at all. Dropped keys are logged to the Extension Host output channel.
|
|
36
|
+
*/
|
|
37
|
+
env?: Record<string, string>;
|
|
25
38
|
}
|
|
26
39
|
|
|
27
40
|
/**
|
|
@@ -71,6 +84,11 @@ export interface ProcessExecOptions {
|
|
|
71
84
|
* Extra environment variables, **merged over** the host's environment (the
|
|
72
85
|
* command inherits the host env; these keys add to or override it). Use it to
|
|
73
86
|
* set things like `GIT_PAGER=cat` or a locale without clobbering `PATH`.
|
|
87
|
+
*
|
|
88
|
+
* Keys beginning `SILO_` (and the bare `SILO`) are **reserved by the host**
|
|
89
|
+
* and are dropped — same rule as
|
|
90
|
+
* {@link ProcessSpawnOptions.env}, so the reservation can't be sidestepped
|
|
91
|
+
* by launching through `exec` instead of `spawn`.
|
|
74
92
|
*/
|
|
75
93
|
env?: Record<string, string>;
|
|
76
94
|
/**
|