@clawdreyhepburn/carapace 0.4.0 → 0.4.1
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/policy-source.d.ts
CHANGED
|
@@ -3,8 +3,13 @@
|
|
|
3
3
|
* so that OVID-ME can query the effective policy ceiling.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Must match @clawdreyhepburn/ovid-me PolicySource interface.
|
|
7
|
+
*
|
|
8
|
+
* Kept as a local copy because ovid-me pulls in native dependencies
|
|
9
|
+
* (better-sqlite3) that would bloat Carapace's install. A type
|
|
10
|
+
* compatibility test in test/policy-source.test.ts guards against drift.
|
|
11
|
+
*
|
|
12
|
+
* Canonical definition: ovid-me/src/config.ts
|
|
8
13
|
*/
|
|
9
14
|
export interface PolicySource {
|
|
10
15
|
getEffectivePolicy(principal: string): Promise<string | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy-source.js","sourceRoot":"","sources":["../src/policy-source.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"policy-source.js","sourceRoot":"","sources":["../src/policy-source.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAelC;;;;GAIG;AACH,MAAM,OAAO,oBAAoB;IACvB,SAAS,CAAS;IAE1B,YAAY,SAAkB;QAC5B,IAAI,CAAC,SAAS,GAAG,CAAC,SAAS,IAAI,2BAA2B,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,UAAkB;QACzC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC;YAAE,OAAO,IAAI,CAAC;QAE7C,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC5E,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QAEpC,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;QAChF,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;CACF"}
|
package/package.json
CHANGED
package/src/policy-source.ts
CHANGED
|
@@ -8,8 +8,13 @@ import { join } from "node:path";
|
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Must match @clawdreyhepburn/ovid-me PolicySource interface.
|
|
12
|
+
*
|
|
13
|
+
* Kept as a local copy because ovid-me pulls in native dependencies
|
|
14
|
+
* (better-sqlite3) that would bloat Carapace's install. A type
|
|
15
|
+
* compatibility test in test/policy-source.test.ts guards against drift.
|
|
16
|
+
*
|
|
17
|
+
* Canonical definition: ovid-me/src/config.ts
|
|
13
18
|
*/
|
|
14
19
|
export interface PolicySource {
|
|
15
20
|
getEffectivePolicy(principal: string): Promise<string | null>;
|