@lambdacurry/arbor 0.21.22 → 0.21.23
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/arbor.js +35 -21
- package/package.json +1 -1
package/dist/arbor.js
CHANGED
|
@@ -1720,7 +1720,8 @@ var orgs = sqliteTable("orgs", {
|
|
|
1720
1720
|
status: text("status").$type().notNull().default("active"),
|
|
1721
1721
|
lockedAt: ts("locked_at"),
|
|
1722
1722
|
lockedReason: text("locked_reason"),
|
|
1723
|
-
systemKind: text("system_kind").unique()
|
|
1723
|
+
systemKind: text("system_kind").unique(),
|
|
1724
|
+
memberSpaceCreation: text("member_space_creation").$type().notNull().default("admins")
|
|
1724
1725
|
});
|
|
1725
1726
|
var profiles = sqliteTable("profiles", {
|
|
1726
1727
|
id: text("id").primaryKey(),
|
|
@@ -2322,7 +2323,8 @@ var artifacts = sqliteTable("artifacts", {
|
|
|
2322
2323
|
}, (t) => ({
|
|
2323
2324
|
statusIdx: index("artifacts_status_idx").on(t.status),
|
|
2324
2325
|
tierIdx: index("artifacts_tier_idx").on(t.retrievalTier),
|
|
2325
|
-
ownerIdx: index("artifacts_owner_idx").on(t.ownerProfileId)
|
|
2326
|
+
ownerIdx: index("artifacts_owner_idx").on(t.ownerProfileId),
|
|
2327
|
+
sourceThreadIdx: index("artifacts_source_thread_idx").on(t.sourceThreadId)
|
|
2326
2328
|
}));
|
|
2327
2329
|
var artifactLivePreviewSurfaces = sqliteTable("artifact_live_preview_surfaces", {
|
|
2328
2330
|
artifactId: text("artifact_id").primaryKey().references(() => artifacts.id),
|
|
@@ -2796,6 +2798,25 @@ var watches = sqliteTable("watches", {
|
|
|
2796
2798
|
watchUq: uniqueIndex("watches_watcher_target_uniq").on(t.watcherProfileId, t.targetType, t.targetId),
|
|
2797
2799
|
watchTargetIdx: index("watches_target_idx").on(t.targetType, t.targetId)
|
|
2798
2800
|
}));
|
|
2801
|
+
// ../core/src/ops/secret.ts
|
|
2802
|
+
var SECRET_PERMISSIONS = [
|
|
2803
|
+
"create",
|
|
2804
|
+
"metadata:read",
|
|
2805
|
+
"value:write",
|
|
2806
|
+
"rotate",
|
|
2807
|
+
"bind",
|
|
2808
|
+
"unbind",
|
|
2809
|
+
"revoke",
|
|
2810
|
+
"delete",
|
|
2811
|
+
"plaintext:read"
|
|
2812
|
+
];
|
|
2813
|
+
var SECRET_ADMIN_PERMISSIONS = SECRET_PERMISSIONS.filter((permission) => permission !== "create" && permission !== "plaintext:read");
|
|
2814
|
+
var ORG_ADMIN_CONTAINMENT_PERMISSIONS = new Set([
|
|
2815
|
+
"metadata:read",
|
|
2816
|
+
"unbind",
|
|
2817
|
+
"revoke"
|
|
2818
|
+
]);
|
|
2819
|
+
|
|
2799
2820
|
// ../core/src/ops/computer-run.ts
|
|
2800
2821
|
var COMPUTER_RUN_START_CHECKPOINT_RESERVATION_STALE_MS = 12 * 60 * 1000;
|
|
2801
2822
|
var TERMINAL = new Set(["finished", "failed", "cancelled"]);
|
|
@@ -2832,24 +2853,6 @@ var EMOJI_RE = new RegExp("^\\p{RGI_Emoji}$", "v");
|
|
|
2832
2853
|
var BASE_MS = Date.parse("2026-07-20T15:00:00.000Z");
|
|
2833
2854
|
// ../core/src/ops/agent-pairing.ts
|
|
2834
2855
|
var PAIRING_TTL_MS = 15 * 60 * 1000;
|
|
2835
|
-
// ../core/src/ops/secret.ts
|
|
2836
|
-
var SECRET_PERMISSIONS = [
|
|
2837
|
-
"create",
|
|
2838
|
-
"metadata:read",
|
|
2839
|
-
"value:write",
|
|
2840
|
-
"rotate",
|
|
2841
|
-
"bind",
|
|
2842
|
-
"unbind",
|
|
2843
|
-
"revoke",
|
|
2844
|
-
"delete",
|
|
2845
|
-
"plaintext:read"
|
|
2846
|
-
];
|
|
2847
|
-
var SECRET_ADMIN_PERMISSIONS = SECRET_PERMISSIONS.filter((permission) => permission !== "create" && permission !== "plaintext:read");
|
|
2848
|
-
var ORG_ADMIN_CONTAINMENT_PERMISSIONS = new Set([
|
|
2849
|
-
"metadata:read",
|
|
2850
|
-
"unbind",
|
|
2851
|
-
"revoke"
|
|
2852
|
-
]);
|
|
2853
2856
|
// ../core/src/ops/preview.ts
|
|
2854
2857
|
var PREVIEW_ENTRY_MIME = "text/html; charset=utf-8";
|
|
2855
2858
|
var PREVIEW_MAX_BYTES = 2 * 1024 * 1024;
|
|
@@ -20612,7 +20615,7 @@ var ACTION_DEFINITIONS = [
|
|
|
20612
20615
|
{
|
|
20613
20616
|
name: "space_create",
|
|
20614
20617
|
title: "Create a space",
|
|
20615
|
-
description: "Create a top-level Space for a new collaboration area
|
|
20618
|
+
description: "Create a top-level Space for a new collaboration area — open/private visibility plus optional seeded members (agents join directly, humans get invites); you become its first admin. Org owner/admins always can; other members only when their org enables member space creation.",
|
|
20616
20619
|
inputSchema: {
|
|
20617
20620
|
title: exports_external.string().min(1).describe("the space title"),
|
|
20618
20621
|
purpose: exports_external.string().optional().describe("optional one-line purpose"),
|
|
@@ -20673,6 +20676,17 @@ var ACTION_DEFINITIONS = [
|
|
|
20673
20676
|
toolset: "admin",
|
|
20674
20677
|
run: forward("human.invite")
|
|
20675
20678
|
},
|
|
20679
|
+
{
|
|
20680
|
+
name: "set_member_space_creation",
|
|
20681
|
+
title: "Set who may create spaces",
|
|
20682
|
+
description: "Set your org's space-creation policy (AD-052 rev): 'admins' (default — org owner/admin only) or 'members' (every active org member may create spaces they administer). Owner/admin only. Spaces remain visible/membership-governed exactly as before; this only moves who may stand one up.",
|
|
20683
|
+
inputSchema: {
|
|
20684
|
+
value: exports_external.enum(["admins", "members"]).describe("the new creation policy for the org")
|
|
20685
|
+
},
|
|
20686
|
+
surfaces: ["cli"],
|
|
20687
|
+
toolset: "admin",
|
|
20688
|
+
run: forward("org.setMemberSpaceCreation")
|
|
20689
|
+
},
|
|
20676
20690
|
{
|
|
20677
20691
|
name: "space_get",
|
|
20678
20692
|
title: "Read a space",
|
package/package.json
CHANGED