@descryy/runtime-environment-profile 0.0.0 → 0.1.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/dist/profile.d.ts +4 -4
- package/dist/profile.d.ts.map +1 -1
- package/dist/profile.js +1 -1
- package/package.json +2 -2
package/dist/profile.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* `mode` and `remoteLogSource` are RT-197/DEC-271's addition. Until this
|
|
18
18
|
* pass `EnvironmentProfile` had no field naming which of DEC-266's four
|
|
19
|
-
* kinds a given profile actually was — `@
|
|
19
|
+
* kinds a given profile actually was — `@descryy/runtime-remote-log-ingestion`
|
|
20
20
|
* existed with real tests and zero callers, and there was no profile-level
|
|
21
21
|
* place for a "remote/production" target to declare where its logs live,
|
|
22
22
|
* so nothing could have called it. `mode` closes that: it is what
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* choose DEC-271's mechanism — a real `InboundProxy` for `"localBooted"`,
|
|
25
25
|
* `remote-log-ingestion` for `"remote"`/`"production"`, never both.
|
|
26
26
|
*/
|
|
27
|
-
import type { RemoteLogSourceConfig } from "@
|
|
27
|
+
import type { RemoteLogSourceConfig } from "@descryy/runtime-remote-log-ingestion";
|
|
28
28
|
/** Set once by the user per profile. Never inferred from `name` (DEC-270's core rule). */
|
|
29
29
|
export declare const SAFETY_LEVELS: readonly ["readOnly", "write", "destructiveWithApproval"];
|
|
30
30
|
export type SafetyLevel = (typeof SAFETY_LEVELS)[number];
|
|
@@ -52,7 +52,7 @@ export interface EnvironmentProfile {
|
|
|
52
52
|
/**
|
|
53
53
|
* DEC-271's "ask, don't guess" input for the remote/production mechanism
|
|
54
54
|
* — where the user says their logs live, per
|
|
55
|
-
* `@
|
|
55
|
+
* `@descryy/runtime-remote-log-ingestion`'s `RemoteLogSourceConfig`. Only
|
|
56
56
|
* meaningful for `mode: "remote"` or `mode: "production"`;
|
|
57
57
|
* `validateProfile` rejects it on a `"localBooted"`/`"localAttached"`
|
|
58
58
|
* profile rather than silently ignoring it, because a caller that set it
|
|
@@ -61,7 +61,7 @@ export interface EnvironmentProfile {
|
|
|
61
61
|
* `null`/absent on a remote or production profile is a real, honest
|
|
62
62
|
* state — DEC-271's own "or a plain 'not observable here' when there's
|
|
63
63
|
* nothing to work with" — not an error. This type has no dependency in
|
|
64
|
-
* the other direction: `@
|
|
64
|
+
* the other direction: `@descryy/runtime-remote-log-ingestion` does not
|
|
65
65
|
* import from this package.
|
|
66
66
|
*/
|
|
67
67
|
readonly remoteLogSource?: RemoteLogSourceConfig | null;
|
package/dist/profile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../src/profile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../src/profile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAEnF,0FAA0F;AAC1F,eAAO,MAAM,aAAa,2DAA4D,CAAC;AACvF,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD;;;;GAIG;AACH,eAAO,MAAM,aAAa,mEAAoE,CAAC;AAC/F,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IACjC,gGAAgG;IAChG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,2HAA2H;IAC3H,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACzD;AAED,MAAM,MAAM,sBAAsB,GAC9B,YAAY,GACZ,sBAAsB,GACtB,aAAa,GACb,sBAAsB,GACtB,cAAc,GACd,wCAAwC,CAAC;AAE7C;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,eAAe,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACzD,GAAG,SAAS,sBAAsB,EAAE,CA6BpC;AAWD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,eAAe,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACzD,GAAG,kBAAkB,CAarB"}
|
package/dist/profile.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* `mode` and `remoteLogSource` are RT-197/DEC-271's addition. Until this
|
|
18
18
|
* pass `EnvironmentProfile` had no field naming which of DEC-266's four
|
|
19
|
-
* kinds a given profile actually was — `@
|
|
19
|
+
* kinds a given profile actually was — `@descryy/runtime-remote-log-ingestion`
|
|
20
20
|
* existed with real tests and zero callers, and there was no profile-level
|
|
21
21
|
* place for a "remote/production" target to declare where its logs live,
|
|
22
22
|
* so nothing could have called it. `mode` closes that: it is what
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descryy/runtime-environment-profile",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Environment profiles per DEC-270/DEC-266: a user-named target (local booted/attached, remote dev/staging/preview, production) carrying a declared safety level, scoped credentials, and the safety-gate enforcement point destructive actions must call before running.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"build": "tsc -b"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@
|
|
27
|
+
"@descryy/runtime-remote-log-ingestion": "0.1.0"
|
|
28
28
|
}
|
|
29
29
|
}
|