@coffre/core 0.14.4 → 0.15.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/{access-CembYDiI.js → access-CgQTlUMz.js} +93 -1
- package/dist/{access-CU3xEOLH.d.ts → access-DqLJjnLM.d.ts} +67 -1
- package/dist/access.d.ts +2 -2
- package/dist/access.js +2 -2
- package/dist/identity.d.ts +102 -2
- package/dist/identity.js +410 -161
- package/dist/mcp.d.ts +3 -2
- package/dist/mcp.js +6 -2
- package/dist/merkle.d.ts +456 -0
- package/dist/merkle.js +964 -0
- package/dist/schemas.d.ts +11 -3
- package/dist/schemas.js +12 -2
- package/dist/vault.d.ts +1181 -6
- package/dist/vault.js +280 -1
- package/dist/{workloads-CW2dK4AW.d.ts → workloads-D049JH0M.d.ts} +9 -1
- package/dist/workloads.d.ts +2 -2
- package/dist/workloads.js +9 -1
- package/package.json +8 -3
- package/src/access.ts +93 -0
- package/src/answers.ts +209 -0
- package/src/audit/leaf.ts +81 -0
- package/src/audit/merkle.ts +13 -0
- package/src/audit/note.ts +187 -0
- package/src/audit/pair.ts +86 -0
- package/src/audit/tiles.ts +197 -0
- package/src/audit/tree.ts +163 -0
- package/src/audit/verify.ts +393 -0
- package/src/audit/witness.ts +50 -0
- package/src/identity/index.ts +2 -0
- package/src/identity/profile-rules.ts +147 -0
- package/src/identity/run-proof.ts +159 -0
- package/src/identity/workloads.ts +11 -0
- package/src/mcp.ts +6 -2
- package/src/schemas.ts +11 -0
- package/src/vault.ts +955 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -23,6 +23,14 @@ export declare const TOMBSTONE = "~";
|
|
|
23
23
|
export declare function isTombstone(slug: string): boolean;
|
|
24
24
|
/** The slug a place deleted on `day` keeps: the `n`th that day is `market~deleted-2026-10-05-<n>`. */
|
|
25
25
|
export declare function tombstoneOf(slug: string, day: Date, n?: number): string;
|
|
26
|
+
/**
|
|
27
|
+
* The slug an environment deleted with its project keeps, with 0.15's log:
|
|
28
|
+
* `dev~deleted`, undated. Its project is deleted once, so within it no other
|
|
29
|
+
* environment holds it, and an environment deleted alone holds a dated one.
|
|
30
|
+
* The project's tombstone dates both; its old path still names it,
|
|
31
|
+
* `market~deleted-2026-10-05/dev` (`resolvePath`'s `tombstones`).
|
|
32
|
+
*/
|
|
33
|
+
export declare function deletedWithProject(slug: string): string;
|
|
26
34
|
export declare const displayName: z.ZodString;
|
|
27
35
|
/** A folder: 1 to 64 characters, no `/`, no control character, no space at either end (the tables check it too). */
|
|
28
36
|
export declare const folderName: z.ZodString;
|
|
@@ -39,11 +47,11 @@ export declare const principalType: z.ZodEnum<{
|
|
|
39
47
|
}>;
|
|
40
48
|
export declare const principalId: z.ZodString;
|
|
41
49
|
export declare const instanceRole: z.ZodEnum<{
|
|
42
|
-
developer: "developer";
|
|
43
|
-
auditor: "auditor";
|
|
44
|
-
owner: "owner";
|
|
45
50
|
member: "member";
|
|
51
|
+
auditor: "auditor";
|
|
52
|
+
developer: "developer";
|
|
46
53
|
admin: "admin";
|
|
54
|
+
owner: "owner";
|
|
47
55
|
}>;
|
|
48
56
|
/** A project role's id: one coffre ships, or one an Owner made (`ROLE_ID`). Which the instance defines, its policy says. */
|
|
49
57
|
export declare const roleId: z.ZodString;
|
package/dist/schemas.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as INSTANCE_ROLE_NAMES, v as ROLE_ID } from "./access-CgQTlUMz.js";
|
|
2
2
|
import { PROJECT_PAGES } from "./pages.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/schemas.ts
|
|
@@ -32,6 +32,16 @@ function tombstoneOf(slug, day, n = 1) {
|
|
|
32
32
|
const base = `${slug}~deleted-${day.toISOString().slice(0, 10)}`;
|
|
33
33
|
return n === 1 ? base : `${base}-${n}`;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* The slug an environment deleted with its project keeps, with 0.15's log:
|
|
37
|
+
* `dev~deleted`, undated. Its project is deleted once, so within it no other
|
|
38
|
+
* environment holds it, and an environment deleted alone holds a dated one.
|
|
39
|
+
* The project's tombstone dates both; its old path still names it,
|
|
40
|
+
* `market~deleted-2026-10-05/dev` (`resolvePath`'s `tombstones`).
|
|
41
|
+
*/
|
|
42
|
+
function deletedWithProject(slug) {
|
|
43
|
+
return `${slug}~deleted`;
|
|
44
|
+
}
|
|
35
45
|
const displayName = z.string().trim().min(1).max(120);
|
|
36
46
|
/** A folder: 1 to 64 characters, no `/`, no control character, no space at either end (the tables check it too). */
|
|
37
47
|
const folderName = z.string().min(1).max(64).refine((name) => name === name.trim(), "a folder name cannot start or end with a space").refine((name) => !/[/\p{Cc}]/u.test(name), "a folder name cannot hold \"/\" or a control character");
|
|
@@ -63,4 +73,4 @@ const scopeInput = z.object({
|
|
|
63
73
|
const grantId = z.string().uuid();
|
|
64
74
|
const emailAddress = z.string().email().max(320);
|
|
65
75
|
//#endregion
|
|
66
|
-
export { PERSONAL_SUFFIX, TOMBSTONE, displayName, emailAddress, environmentPath, environmentSlug, folderName, grantId, instanceRole, isTombstone, personalOf, principalId, principalType, roleId, scopeFilter, scopeInput, secretKey, shownMember, slug, tombstoneOf };
|
|
76
|
+
export { PERSONAL_SUFFIX, TOMBSTONE, deletedWithProject, displayName, emailAddress, environmentPath, environmentSlug, folderName, grantId, instanceRole, isTombstone, personalOf, principalId, principalType, roleId, scopeFilter, scopeInput, secretKey, shownMember, slug, tombstoneOf };
|