@intentic/sandbox-contract 1.375.0 → 1.377.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/contracts/access-profiles.contract.d.ts.map +1 -1
- package/dist/contracts/access-profiles.contract.js +3 -1
- package/dist/contracts/access-profiles.contract.js.map +1 -1
- package/dist/contracts/accounts.contract.d.ts +4 -0
- package/dist/contracts/accounts.contract.d.ts.map +1 -1
- package/dist/contracts/accounts.contract.js +6 -5
- package/dist/contracts/accounts.contract.js.map +1 -1
- package/dist/contracts/agent.contract.d.ts +4 -0
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +76 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/areas.contract.d.ts.map +1 -1
- package/dist/contracts/areas.contract.js +3 -1
- package/dist/contracts/areas.contract.js.map +1 -1
- package/dist/contracts/compliance.contract.js +1 -1
- package/dist/contracts/compliance.contract.js.map +1 -1
- package/dist/contracts/git.contract.d.ts +10 -0
- package/dist/contracts/git.contract.d.ts.map +1 -1
- package/dist/contracts/git.contract.js +11 -2
- package/dist/contracts/git.contract.js.map +1 -1
- package/dist/contracts/panels.contract.d.ts +1 -0
- package/dist/contracts/panels.contract.d.ts.map +1 -1
- package/dist/contracts/ports.contract.js +1 -1
- package/dist/contracts/ports.contract.js.map +1 -1
- package/dist/contracts/privacy.contract.d.ts.map +1 -1
- package/dist/contracts/privacy.contract.js +6 -5
- package/dist/contracts/privacy.contract.js.map +1 -1
- package/dist/contracts/runner.contract.d.ts +123 -123
- package/dist/contracts/runs.contract.d.ts +2 -1
- package/dist/contracts/runs.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.js +4 -3
- package/dist/contracts/secrets.contract.js.map +1 -1
- package/dist/contracts/settings.contract.js +1 -1
- package/dist/contracts/settings.contract.js.map +1 -1
- package/dist/contracts/system.contract.d.ts +24 -0
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.d.ts +17 -0
- package/dist/contracts/workspace.contract.d.ts.map +1 -1
- package/dist/events/system-events.d.ts +16 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/formats/archives.d.ts.map +1 -0
- package/dist/formats/archives.js.map +1 -0
- package/dist/formats/packed-formats.d.ts.map +1 -0
- package/dist/formats/packed-formats.js.map +1 -0
- package/dist/ids/conversation-ids.d.ts +4 -0
- package/dist/ids/conversation-ids.d.ts.map +1 -1
- package/dist/ids/conversation-ids.js +1 -0
- package/dist/ids/conversation-ids.js.map +1 -1
- package/dist/index.d.ts +168 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/models/account-moves.d.ts +8 -0
- package/dist/models/account-moves.d.ts.map +1 -0
- package/dist/models/account-moves.js +3 -0
- package/dist/models/account-moves.js.map +1 -0
- package/dist/policy/command-classes.d.ts.map +1 -1
- package/dist/policy/command-classes.js +1 -1
- package/dist/policy/command-classes.js.map +1 -1
- package/dist/protocol/member-reach.d.ts +2 -1
- package/dist/protocol/member-reach.d.ts.map +1 -1
- package/dist/protocol/member-reach.js +5 -1
- package/dist/protocol/member-reach.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +37 -0
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +10 -4
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +9 -9
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/protocol/route-meta.d.ts +3 -0
- package/dist/protocol/route-meta.d.ts.map +1 -1
- package/dist/protocol/route-meta.js +1 -0
- package/dist/protocol/route-meta.js.map +1 -1
- package/dist/schemas/agent.d.ts +8 -0
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +4 -1
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents-list.d.ts +8 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +12 -0
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +4 -1
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/conversation-links.d.ts +9 -0
- package/dist/schemas/conversation-links.d.ts.map +1 -1
- package/dist/schemas/conversation-links.js +13 -0
- package/dist/schemas/conversation-links.js.map +1 -1
- package/dist/schemas/git/git.d.ts +3 -0
- package/dist/schemas/git/git.d.ts.map +1 -1
- package/dist/schemas/git/git.js +2 -1
- package/dist/schemas/git/git.js.map +1 -1
- package/dist/schemas/git/index-run.d.ts +1 -0
- package/dist/schemas/git/index-run.d.ts.map +1 -1
- package/dist/schemas/members.d.ts +60 -1
- package/dist/schemas/members.d.ts.map +1 -1
- package/dist/schemas/members.js +42 -5
- package/dist/schemas/members.js.map +1 -1
- package/dist/schemas/panels.d.ts +2 -0
- package/dist/schemas/panels.d.ts.map +1 -1
- package/dist/schemas/panels.js +4 -0
- package/dist/schemas/panels.js.map +1 -1
- package/dist/schemas/providers/account-sharing.d.ts +2 -0
- package/dist/schemas/providers/account-sharing.d.ts.map +1 -1
- package/dist/schemas/providers/provider-oauth.d.ts +4 -0
- package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/providers/provider-oauth.js +4 -0
- package/dist/schemas/providers/provider-oauth.js.map +1 -1
- package/dist/schemas/run-targets.d.ts +11 -4
- package/dist/schemas/run-targets.d.ts.map +1 -1
- package/dist/schemas/run-targets.js +8 -2
- package/dist/schemas/run-targets.js.map +1 -1
- package/dist/schemas/shared.d.ts +7 -0
- package/dist/schemas/shared.d.ts.map +1 -1
- package/dist/schemas/shared.js +13 -0
- package/dist/schemas/shared.js.map +1 -1
- package/dist/schemas/workspace/workspace-repos.d.ts +2 -0
- package/dist/schemas/workspace/workspace-repos.d.ts.map +1 -1
- package/dist/schemas/workspace/workspace-repos.js +2 -1
- package/dist/schemas/workspace/workspace-repos.js.map +1 -1
- package/dist/schemas/workspace/workspace-tree.d.ts +16 -0
- package/dist/schemas/workspace/workspace-tree.d.ts.map +1 -1
- package/dist/schemas/workspace/workspace-tree.js +4 -0
- package/dist/schemas/workspace/workspace-tree.js.map +1 -1
- package/dist/text/git-branch-switch.d.ts +2 -0
- package/dist/text/git-branch-switch.d.ts.map +1 -0
- package/dist/text/git-branch-switch.js +7 -0
- package/dist/text/git-branch-switch.js.map +1 -0
- package/package.json +5 -5
- package/src/contracts/access-profiles.contract.ts +3 -1
- package/src/contracts/accounts.contract.ts +9 -5
- package/src/contracts/areas.contract.ts +3 -1
- package/src/contracts/compliance.contract.ts +1 -1
- package/src/contracts/git.contract.ts +12 -2
- package/src/contracts/ports.contract.ts +1 -1
- package/src/contracts/privacy.contract.ts +10 -8
- package/src/contracts/secrets.contract.ts +6 -3
- package/src/contracts/settings.contract.ts +1 -1
- package/src/ids/conversation-ids.ts +4 -0
- package/src/models/account-moves.test.ts +24 -0
- package/src/models/account-moves.ts +26 -0
- package/src/policy/command-classes.ts +1 -4
- package/src/policy/tests/command-classes.test.ts +23 -0
- package/src/protocol/member-reach.test.ts +61 -4
- package/src/protocol/member-reach.ts +12 -4
- package/src/protocol/raw/raw-routes.ts +19 -16
- package/src/protocol/route-meta.ts +5 -0
- package/src/schemas/agent.ts +4 -1
- package/src/schemas/agents.ts +11 -3
- package/src/schemas/conversation-links.ts +25 -0
- package/src/schemas/git/git.ts +2 -2
- package/src/schemas/members.test.ts +53 -1
- package/src/schemas/members.ts +93 -11
- package/src/schemas/panels.ts +7 -0
- package/src/schemas/providers/provider-oauth.ts +6 -0
- package/src/schemas/run-targets.ts +35 -7
- package/src/schemas/shared.ts +21 -0
- package/src/schemas/workspace/workspace-repos.ts +5 -3
- package/src/schemas/workspace/workspace-tree.ts +8 -0
- package/src/text/git-branch-switch.ts +16 -0
- package/dist/text/archives.d.ts.map +0 -1
- package/dist/text/archives.js.map +0 -1
- package/dist/text/packed-formats.d.ts.map +0 -1
- package/dist/text/packed-formats.js.map +0 -1
- /package/dist/{text → formats}/archives.d.ts +0 -0
- /package/dist/{text → formats}/archives.js +0 -0
- /package/dist/{text → formats}/packed-formats.d.ts +0 -0
- /package/dist/{text → formats}/packed-formats.js +0 -0
- /package/src/{text → formats}/archives.test.ts +0 -0
- /package/src/{text → formats}/archives.ts +0 -0
- /package/src/{text → formats}/packed-formats.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { accessRefusal, landsHere, memberAccess, tierOf } from "./members.js";
|
|
1
|
+
import { accessRefusal, holdsRight, landsHere, memberAccess, peopleChangeRefusal, tierOf } from "./members.js";
|
|
2
2
|
|
|
3
3
|
// A person's access is three answers, and the tier is what they add up to; a row from before the answers reads as its
|
|
4
4
|
// role meant, so nobody's access moves when the daemon learns the new fields.
|
|
@@ -73,3 +73,55 @@ describe(`home-only access`, () => {
|
|
|
73
73
|
expect(landsHere({ manage: false, agents: `run`, lands: true })).toBe(false);
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
|
+
|
|
77
|
+
describe(`rights`, () => {
|
|
78
|
+
test(`the owner and Full access run every part; anyone else what their row names`, () => {
|
|
79
|
+
expect(holdsRight({ role: `owner` }, `people`)).toBe(true);
|
|
80
|
+
expect(holdsRight({ role: `maintainer` }, `secrets`)).toBe(true);
|
|
81
|
+
expect(holdsRight({ role: `collaborator`, manages: [`people`] }, `people`)).toBe(true);
|
|
82
|
+
expect(holdsRight({ role: `collaborator`, manages: [`people`] }, `secrets`)).toBe(false);
|
|
83
|
+
expect(holdsRight({ role: `writer` }, `privacy`)).toBe(false);
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
test(`a row's rights ride on its access, and never make a tier`, () => {
|
|
87
|
+
const access = memberAccess({ role: `collaborator`, agents: `run`, manages: [`people`, `ownAccounts`] });
|
|
88
|
+
expect(access.manages).toEqual([`people`, `ownAccounts`]);
|
|
89
|
+
expect(tierOf(access)).toBe(`collaborator`);
|
|
90
|
+
expect(memberAccess({ role: `collaborator`, agents: `run`, manages: [] }).manages).toBeUndefined();
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
test(`someone who only chats or works through their home holds none`, () => {
|
|
94
|
+
expect(accessRefusal({ manage: false, agents: `chat`, see: [`docs`], edit: `none`, manages: [`people`] })).toContain(`holds no rights`);
|
|
95
|
+
expect(accessRefusal({ manage: false, agents: `home`, see: undefined, edit: `none`, manages: [`secrets`] })).toContain(`holds no rights`);
|
|
96
|
+
expect(accessRefusal({ manage: false, agents: `off`, see: undefined, edit: `none`, manages: [`people`] })).toBeUndefined();
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
describe(`peopleChangeRefusal`, () => {
|
|
101
|
+
const lead = { email: `lead@example.com`, role: `collaborator` as const, manages: [`people` as const, `ownAccounts` as const] };
|
|
102
|
+
|
|
103
|
+
test(`the owner and Full access change anyone, themselves included`, () => {
|
|
104
|
+
expect(peopleChangeRefusal({ email: `o@example.com`, role: `owner` }, { email: `x@example.com`, after: { role: `maintainer` } })).toBeUndefined();
|
|
105
|
+
const full = { email: `m@example.com`, role: `maintainer` as const };
|
|
106
|
+
expect(peopleChangeRefusal(full, { email: `m@example.com`, before: { role: `maintainer` }, after: { role: `collaborator` } })).toBeUndefined();
|
|
107
|
+
expect(peopleChangeRefusal(full, { email: `x@example.com`, before: { role: `maintainer` } })).toBeUndefined();
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
test(`People & access changes anyone below Full access but its holder`, () => {
|
|
111
|
+
expect(peopleChangeRefusal(lead, { email: `new@example.com`, after: { role: `writer` } })).toBeUndefined();
|
|
112
|
+
expect(peopleChangeRefusal(lead, { email: `x@example.com`, before: { role: `viewer` } })).toBeUndefined();
|
|
113
|
+
expect(peopleChangeRefusal(lead, { email: `LEAD@example.com`, before: { role: `collaborator` }, after: { role: `writer` } })).toContain(`your own access`);
|
|
114
|
+
expect(peopleChangeRefusal(lead, { email: `x@example.com`, after: { role: `maintainer` } })).toContain(`Full access is granted`);
|
|
115
|
+
expect(peopleChangeRefusal(lead, { email: `x@example.com`, before: { role: `maintainer` } })).toContain(`Full access person`);
|
|
116
|
+
expect(peopleChangeRefusal({ ...lead, manages: [] }, { email: `x@example.com`, after: { role: `viewer` } })).toContain(`People & access`);
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
test(`it hands out only the rights its holder has, and leaves the ones already held alone`, () => {
|
|
120
|
+
expect(peopleChangeRefusal(lead, { email: `x@example.com`, after: { role: `viewer`, manages: [`people`, `ownAccounts`] } })).toBeUndefined();
|
|
121
|
+
expect(peopleChangeRefusal(lead, { email: `x@example.com`, after: { role: `viewer`, manages: [`secrets`] } })).toContain(`secrets`);
|
|
122
|
+
expect(
|
|
123
|
+
peopleChangeRefusal(lead, { email: `x@example.com`, before: { role: `viewer`, manages: [`secrets`] }, after: { role: `writer`, manages: [`secrets`] } }),
|
|
124
|
+
).toBeUndefined();
|
|
125
|
+
expect(peopleChangeRefusal(lead, { email: `x@example.com`, before: { role: `viewer`, manages: [`secrets`] }, after: { role: `writer` } })).toBeUndefined();
|
|
126
|
+
});
|
|
127
|
+
});
|
package/src/schemas/members.ts
CHANGED
|
@@ -2,9 +2,62 @@
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import type { CapabilityKind } from "./capabilities.js";
|
|
4
4
|
import { entryId } from "./internal.js";
|
|
5
|
-
import { type GrantedRole, GrantedRoleSchema, MemberRoleSchema } from "./shared.js";
|
|
5
|
+
import { type GrantedRole, GrantedRoleSchema, type MemberRole, MemberRoleSchema } from "./shared.js";
|
|
6
6
|
import { ToolCeilingSchema } from "./tool-ceiling.js";
|
|
7
7
|
|
|
8
|
+
// WHAT A PERSON MAY RUN BESIDES THEIR OWN WORK, one part of the sandbox at a time. Full access (the maintainer tier) holds
|
|
9
|
+
// every one; a person with access of their own holds the ones named on their row, so the owner can hand over who gets in
|
|
10
|
+
// without handing over the whole box (docs/architecture/access.md).
|
|
11
|
+
// `people`: who has access and to what (the roster, the requests for more, areas, access profiles, who opens previews,
|
|
12
|
+
// another member's passkeys). Bounded below Full access by `peopleChangeRefusal`.
|
|
13
|
+
// `secrets`: the Secrets page whole: stored secrets, who must approve a use, where a secret may go, and how a command-line
|
|
14
|
+
// tool's credential reaches the agent.
|
|
15
|
+
// `privacy`: the privacy shield: what it masks, reading masked values back, and forgetting a taught dataset.
|
|
16
|
+
// `ownAccounts`: connecting AI accounts of their own. An account a person connected is theirs to run on whatever their
|
|
17
|
+
// `aiAccounts` says, and theirs to rename or disconnect (the daemon's auth/members/account-connectors.ts).
|
|
18
|
+
export const ManageRightSchema = z.enum(["people", "secrets", "privacy", "ownAccounts"]);
|
|
19
|
+
export type ManageRight = z.infer<typeof ManageRightSchema>;
|
|
20
|
+
export const MANAGE_RIGHTS: readonly ManageRight[] = ManageRightSchema.options;
|
|
21
|
+
|
|
22
|
+
/** Whether this person may run one part of the sandbox: the owner and Full access run every part, anyone else what their row names. */
|
|
23
|
+
export const holdsRight = (caller: { readonly role: MemberRole; readonly manages?: readonly ManageRight[] | undefined }, right: ManageRight): boolean =>
|
|
24
|
+
caller.role === "owner" || caller.role === "maintainer" || (caller.manages?.includes(right) ?? false);
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Why someone who manages people may not make this change to one person's access; undefined when they may. The owner and
|
|
28
|
+
* Full access change anyone's, their own included. The People & access right alone changes the access of anyone below
|
|
29
|
+
* Full access but its holder: it never grants Full access, never changes a Full access person's, never its holder's own
|
|
30
|
+
* (that is how a limit set on them holds), and hands out only the rights its holder has. `after` absent is a removal;
|
|
31
|
+
* its `manages` absent keeps the row's, as a grant reads it.
|
|
32
|
+
*/
|
|
33
|
+
export const peopleChangeRefusal = (
|
|
34
|
+
manager: { readonly email: string; readonly role: MemberRole; readonly manages?: readonly ManageRight[] | undefined },
|
|
35
|
+
target: {
|
|
36
|
+
readonly email: string;
|
|
37
|
+
readonly before?: { readonly role: GrantedRole; readonly manages?: readonly ManageRight[] | undefined } | undefined;
|
|
38
|
+
readonly after?: { readonly role: GrantedRole; readonly manages?: readonly ManageRight[] | undefined } | undefined;
|
|
39
|
+
},
|
|
40
|
+
): string | undefined => {
|
|
41
|
+
if (manager.role === "owner" || manager.role === "maintainer") {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (!holdsRight(manager, "people")) {
|
|
45
|
+
return "only the owner, Full access, or someone given People & access changes who has access";
|
|
46
|
+
}
|
|
47
|
+
if (manager.email.toLowerCase() === target.email.toLowerCase()) {
|
|
48
|
+
return "your own access is changed by the owner or someone with Full access";
|
|
49
|
+
}
|
|
50
|
+
if (target.before?.role === "maintainer") {
|
|
51
|
+
return "a Full access person's access is changed by the owner or someone with Full access";
|
|
52
|
+
}
|
|
53
|
+
if (target.after?.role === "maintainer") {
|
|
54
|
+
return "Full access is granted by the owner or someone with Full access";
|
|
55
|
+
}
|
|
56
|
+
const had = new Set(target.before?.manages ?? []);
|
|
57
|
+
const handed = (target.after?.manages ?? []).filter((right) => !had.has(right) && !(manager.manages ?? []).includes(right));
|
|
58
|
+
return handed.length === 0 ? undefined : `you can hand out only the rights you hold yourself, and ${handed.join(", ")} is not one of yours`;
|
|
59
|
+
};
|
|
60
|
+
|
|
8
61
|
// WHAT A PERSON'S CONVERSATIONS MAY SPEND: the connected capabilities (by id) and the stored secrets (by name) an agent
|
|
9
62
|
// working for them is handed. Enforced by the daemon, not told to the model: a capability outside it is never mounted
|
|
10
63
|
// for their turns, its variables and skill are left out, and every exit that spends a credential (a `{{secret:…}}`
|
|
@@ -90,6 +143,9 @@ export interface MemberAccess {
|
|
|
90
143
|
// A home-only person's answer to whether their home conversation lands what it accepts by itself, and so whether
|
|
91
144
|
// they may land it (`landsHere`). Absent is no; only `agents: "home"` may carry it.
|
|
92
145
|
readonly lands?: boolean | undefined;
|
|
146
|
+
// The parts of the sandbox they run besides their own work (`ManageRightSchema`). Full access holds every one, so
|
|
147
|
+
// its rows never list them; absent is none.
|
|
148
|
+
readonly manages?: readonly ManageRight[] | undefined;
|
|
93
149
|
}
|
|
94
150
|
|
|
95
151
|
// The fields of a row or a grant that decide a person's access.
|
|
@@ -99,6 +155,7 @@ interface AccessFields {
|
|
|
99
155
|
readonly agents?: AgentAccess | undefined;
|
|
100
156
|
readonly edit?: EditScope | undefined;
|
|
101
157
|
readonly lands?: boolean | undefined;
|
|
158
|
+
readonly manages?: readonly ManageRight[] | undefined;
|
|
102
159
|
}
|
|
103
160
|
|
|
104
161
|
/** A row's access: what it says, and for a row written before `agents` and `edit` existed, what its role meant then. */
|
|
@@ -109,7 +166,8 @@ export const memberAccess = (row: AccessFields): MemberAccess => {
|
|
|
109
166
|
const agents = row.agents ?? (row.role === "guest" ? "chat" : row.role === "viewer" ? "off" : "run");
|
|
110
167
|
// A writer from before `edit` changes files where it sees them, which its areas always named.
|
|
111
168
|
const edit = row.edit ?? (row.role === "writer" && row.areas !== undefined ? [...row.areas] : "none");
|
|
112
|
-
const
|
|
169
|
+
const base: MemberAccess = { manage: false, agents, see: row.areas, edit: agents === "chat" || agents === "home" ? "none" : edit };
|
|
170
|
+
const access = row.manages !== undefined && row.manages.length > 0 ? { ...base, manages: [...row.manages] } : base;
|
|
113
171
|
return row.lands === true ? { ...access, lands: true } : access;
|
|
114
172
|
};
|
|
115
173
|
|
|
@@ -135,20 +193,26 @@ export const tierOf = (access: MemberAccess): GrantedRole => {
|
|
|
135
193
|
return access.agents === "run" ? "collaborator" : "viewer";
|
|
136
194
|
};
|
|
137
195
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
return undefined;
|
|
142
|
-
}
|
|
196
|
+
// Why a way of working cannot carry what else the access says: landing by itself, rights, areas and hand edits each
|
|
197
|
+
// belong to some ways of working only.
|
|
198
|
+
const workingRefusal = (access: MemberAccess): string | undefined => {
|
|
143
199
|
if (access.lands === true && access.agents !== "home") {
|
|
144
200
|
return "landing their own work by itself is a home-only answer; anyone else's work lands when somebody who manages the sandbox lands it";
|
|
145
201
|
}
|
|
202
|
+
if ((access.manages?.length ?? 0) > 0 && (access.agents === "chat" || access.agents === "home")) {
|
|
203
|
+
return "running part of the sandbox needs someone who sees it: a person who only chats, or works through their home conversation, holds no rights";
|
|
204
|
+
}
|
|
146
205
|
if (access.agents === "chat" && (access.see?.length ?? 0) === 0) {
|
|
147
206
|
return "chatting with assistants needs at least one area: the assistants that work there are the ones they talk to";
|
|
148
207
|
}
|
|
149
208
|
if (access.agents === "home" && access.edit !== "none") {
|
|
150
209
|
return "a home-only person changes nothing by hand: their home conversation does the work";
|
|
151
210
|
}
|
|
211
|
+
return undefined;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
// Why where a person edits by hand does not fit where they see.
|
|
215
|
+
const editRefusal = (access: MemberAccess): string | undefined => {
|
|
152
216
|
if (access.edit === "all") {
|
|
153
217
|
return access.see === undefined ? undefined : "editing everything they see needs the whole workspace; name the areas to edit instead";
|
|
154
218
|
}
|
|
@@ -163,6 +227,9 @@ export const accessRefusal = (access: MemberAccess): string | undefined => {
|
|
|
163
227
|
return unseen.length === 0 ? undefined : `they can only edit where they can see: ${unseen.join(", ")} is not among their areas`;
|
|
164
228
|
};
|
|
165
229
|
|
|
230
|
+
/** Why an access cannot be granted on its face, before any area or assistant is looked up; undefined when it can. */
|
|
231
|
+
export const accessRefusal = (access: MemberAccess): string | undefined => (access.manage ? undefined : (workingRefusal(access) ?? editRefusal(access)));
|
|
232
|
+
|
|
166
233
|
// One person on the roster as the daemon answers it. `areas` fences what of the workspace they reach, and with it which
|
|
167
234
|
// assistants they may talk to: absent is the whole workspace, empty is nothing.
|
|
168
235
|
export const MemberSchema = z.object({
|
|
@@ -208,6 +275,12 @@ export const MemberSchema = z.object({
|
|
|
208
275
|
.describe(
|
|
209
276
|
"The access profile their answers come from (docs/architecture/access.md). Its answers are written out on this row too, and saving the profile rewrites them. Absent means answers of their own.",
|
|
210
277
|
),
|
|
278
|
+
manages: z
|
|
279
|
+
.array(ManageRightSchema)
|
|
280
|
+
.optional()
|
|
281
|
+
.describe(
|
|
282
|
+
"The parts of the sandbox they run besides their own work: people and access, secrets, the privacy shield, AI accounts of their own. Never on a maintainer, who runs every part. Absent means none.",
|
|
283
|
+
),
|
|
211
284
|
});
|
|
212
285
|
export type Member = z.infer<typeof MemberSchema>;
|
|
213
286
|
|
|
@@ -237,6 +310,10 @@ export type MembersRoster = z.infer<typeof MembersRosterSchema>;
|
|
|
237
310
|
// the row and ignores the access fields sent beside it, and the role sent must still be the tier the profile makes.
|
|
238
311
|
// Absent is answers of the row's own, so a re-grade from an editor that predates profiles unlinks the row, keeping
|
|
239
312
|
// the answers it carried, rather than leaving a link the grant did not mean. A maintainer is refused one.
|
|
313
|
+
// `manages` reads as `credentials` does: a list sets the rights, `[]` takes them all back, absent keeps the row's, so a
|
|
314
|
+
// profile written over a row and a re-grade from an editor that predates rights keep what the person runs. A maintainer
|
|
315
|
+
// holds every right and stores none. Rights ride beside a profile, never in one: like Full access, running part of the
|
|
316
|
+
// sandbox is handed to a person, never through something shared.
|
|
240
317
|
export const MemberGrantSchema = z.object({
|
|
241
318
|
email: z.string(),
|
|
242
319
|
role: GrantedRoleSchema,
|
|
@@ -250,6 +327,7 @@ export const MemberGrantSchema = z.object({
|
|
|
250
327
|
tools: z.union([z.literal("all"), ToolCeilingSchema]).optional(),
|
|
251
328
|
assistants: z.union([z.literal("all"), z.array(entryId).max(50)]).optional(),
|
|
252
329
|
profile: entryId.optional(),
|
|
330
|
+
manages: z.array(ManageRightSchema).max(10).optional(),
|
|
253
331
|
});
|
|
254
332
|
export type MemberGrant = z.infer<typeof MemberGrantSchema>;
|
|
255
333
|
|
|
@@ -271,6 +349,10 @@ export const MemberSelfSchema = z.object({
|
|
|
271
349
|
tools: ToolCeilingSchema.optional().describe("The most their conversations' tools may be. Absent means no limit."),
|
|
272
350
|
assistants: z.array(entryId).optional().describe("For a guest who chats: the assistants they may talk to. Absent means every one in their areas."),
|
|
273
351
|
profile: entryId.optional().describe("The access profile their access comes from. Absent means answers of their own."),
|
|
352
|
+
manages: z
|
|
353
|
+
.array(ManageRightSchema)
|
|
354
|
+
.optional()
|
|
355
|
+
.describe("The parts of the sandbox they run besides their own work: every one for the owner and Full access. Absent means none."),
|
|
274
356
|
askedAt: z
|
|
275
357
|
.number()
|
|
276
358
|
.int()
|
|
@@ -279,10 +361,10 @@ export const MemberSelfSchema = z.object({
|
|
|
279
361
|
});
|
|
280
362
|
export type MemberSelf = z.infer<typeof MemberSelfSchema>;
|
|
281
363
|
|
|
282
|
-
// ASKING
|
|
283
|
-
//
|
|
284
|
-
// where granting the person what they asked for answers it. One open request per person: a later ask replaces
|
|
285
|
-
// `want` is what stood in the way, in the terms a grant answers: a tier (`viewer` is a guest asking to see more),
|
|
364
|
+
// ASKING FOR MORE ACCESS, from where the person was refused: the editor draws an "Ask for access" press on a place or an
|
|
365
|
+
// action their access refuses, and whoever runs people and access sees each open request beside the roster (Access ▸
|
|
366
|
+
// People), where granting the person what they asked for answers it. One open request per person: a later ask replaces
|
|
367
|
+
// theirs. `want` is what stood in the way, in the terms a grant answers: a tier (`viewer` is a guest asking to see more),
|
|
286
368
|
// running agents (`agents`), or a folder outside their areas (`areas`).
|
|
287
369
|
// `aiAccounts`: the AI accounts their turns may run on (`aiAccounts` on their row) leave them nothing to run on that they
|
|
288
370
|
// asked for, asked from a model picker with no model of theirs in it.
|
package/src/schemas/panels.ts
CHANGED
|
@@ -27,6 +27,13 @@ export const PanelSummarySchema = z.object({
|
|
|
27
27
|
})
|
|
28
28
|
.optional()
|
|
29
29
|
.describe("What Start runs. Absent for a repository with nothing to start."),
|
|
30
|
+
// Optional on the wire, like `start`: a sandbox older than this field lists such targets with nothing.
|
|
31
|
+
sandboxTargets: z
|
|
32
|
+
.boolean()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe(
|
|
35
|
+
"Whether its .intentic/run.json declares targets that run in the sandbox. Each is one of its apps, with its own preview address, Start and Stop.",
|
|
36
|
+
),
|
|
30
37
|
running: z.boolean().describe("Whether the sandbox has it running."),
|
|
31
38
|
// True for a repo with nothing runnable — nothing to install for.
|
|
32
39
|
installed: z
|
|
@@ -24,6 +24,12 @@ export const OauthAccountSchema = z.object({
|
|
|
24
24
|
),
|
|
25
25
|
scope: z.string().optional().describe("What the credential is permitted to do, in the provider's terms."),
|
|
26
26
|
connectedAt: z.number().describe("When it was connected, in milliseconds."),
|
|
27
|
+
connectedBy: z
|
|
28
|
+
.string()
|
|
29
|
+
.optional()
|
|
30
|
+
.describe(
|
|
31
|
+
"Who connected it, by the address they signed in with, where a person on this sandbox did. An account is always its connector's to run on. Absent for one connected before this was recorded, or by the owner's own tools.",
|
|
32
|
+
),
|
|
27
33
|
needsReauth: z
|
|
28
34
|
.boolean()
|
|
29
35
|
.optional()
|
|
@@ -2,9 +2,15 @@ import { STATE_DIR } from "@intentic/constants";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { ArtifactNameSchema } from "./device-artifacts.js";
|
|
4
4
|
|
|
5
|
-
// <repo>/.intentic/run.json declares
|
|
6
|
-
//
|
|
7
|
-
//
|
|
5
|
+
// <repo>/.intentic/run.json declares what a repository can run, and where: in the sandbox, on the owner's own computers, or
|
|
6
|
+
// either. One file behind the editor's Run dialog (the sandbox beside every computer, one choice of where), the Browsers
|
|
7
|
+
// view's Start and `devices run <target>`.
|
|
8
|
+
// - In the sandbox: `command`, run from the repository's root as Start runs it, handed the PORT its preview address is
|
|
9
|
+
// routed to and the sandbox desktop's DISPLAY. A repository whose first such target exists runs it on Start
|
|
10
|
+
// (_sandbox/sandbox/src/panels/run-plan.ts).
|
|
11
|
+
// - On a computer: `artifact`. Each run builds in the sandbox, pushes the artifact, reaches the declared device ports and
|
|
12
|
+
// starts the program via app_start.
|
|
13
|
+
// Declaring one never starts it automatically.
|
|
8
14
|
|
|
9
15
|
export const RUN_TARGETS_FILE = `${STATE_DIR}/run.json`;
|
|
10
16
|
|
|
@@ -17,19 +23,27 @@ const BundleNameSchema = z
|
|
|
17
23
|
.string()
|
|
18
24
|
.regex(/^[A-Za-z0-9][A-Za-z0-9 ._()+-]{0,199}(\/[A-Za-z0-9][A-Za-z0-9 ._()+-]{0,199})*$/, "a relative name, folders by /");
|
|
19
25
|
|
|
26
|
+
// What an app inside a repository may be called (workspace-repos.ts AppParamSchema), kept short enough for its preview
|
|
27
|
+
// hostname.
|
|
28
|
+
const SANDBOX_TARGET_NAME = /^[a-z][a-z0-9-]{0,39}$/;
|
|
29
|
+
|
|
20
30
|
export const RunTargetSchema = z
|
|
21
31
|
.object({
|
|
22
32
|
// What `devices run <name>` and the button call it.
|
|
23
33
|
name: ArtifactNameSchema,
|
|
24
34
|
description: z.string().max(300).optional(),
|
|
35
|
+
// What runs it in the sandbox, from the repository's root: a dev server listens on $PORT, a program with a window
|
|
36
|
+
// opens it on the sandbox desktop. Absent means it runs only on a computer.
|
|
37
|
+
command: z.string().min(1).max(4000).optional(),
|
|
25
38
|
// The computer it runs on unless one is named at the run; the device's name as its tools are mounted.
|
|
26
39
|
device: z.string().min(1).max(100).optional(),
|
|
27
40
|
// A shell command run from the repository's root, in the sandbox, before every run; absent means the artifact
|
|
28
41
|
// is already there.
|
|
29
42
|
build: z.string().min(1).max(4000).optional(),
|
|
30
|
-
// What is carried: one file or one folder, or a set of files and folders gathered into one folder
|
|
31
|
-
// their own (an .exe beside the sidecars, DLLs and resource folders it looks for next to itself).
|
|
32
|
-
|
|
43
|
+
// What is carried to a computer: one file or one folder, or a set of files and folders gathered into one folder
|
|
44
|
+
// under names of their own (an .exe beside the sidecars, DLLs and resource folders it looks for next to itself).
|
|
45
|
+
// Absent means it runs only in the sandbox.
|
|
46
|
+
artifact: z.union([RepoPathSchema, z.record(BundleNameSchema, RepoPathSchema)]).optional(),
|
|
33
47
|
// Which file to start when the artifact is a folder or a set; a lone file is started as itself.
|
|
34
48
|
program: BundleNameSchema.optional(),
|
|
35
49
|
args: z.array(z.string().max(4000)).max(100).default([]),
|
|
@@ -40,9 +54,22 @@ export const RunTargetSchema = z
|
|
|
40
54
|
// opened at the same port in the sandbox.
|
|
41
55
|
reach: z.array(z.int().min(1).max(65535)).max(16).default([]),
|
|
42
56
|
})
|
|
43
|
-
.strict()
|
|
57
|
+
.strict()
|
|
58
|
+
.refine(
|
|
59
|
+
(target) => target.command !== undefined || target.artifact !== undefined,
|
|
60
|
+
`a target needs a "command" (to run in the sandbox) or an "artifact" (to run on your computers), or both`,
|
|
61
|
+
)
|
|
62
|
+
// A sandbox run is served at preview-<repo>--<name>-<sandboxId>.<zone>, so its name is a piece of a DNS label.
|
|
63
|
+
.refine(
|
|
64
|
+
(target) => target.command === undefined || SANDBOX_TARGET_NAME.test(target.name),
|
|
65
|
+
`a target that runs in the sandbox names its preview address: lowercase letters, digits and dashes, starting with a letter`,
|
|
66
|
+
);
|
|
44
67
|
export type RunTarget = z.infer<typeof RunTargetSchema>;
|
|
45
68
|
|
|
69
|
+
// Where a target can run: in the sandbox when it has a command, on a computer when it carries an artifact.
|
|
70
|
+
export const runsInSandbox = (target: Pick<RunTarget, "command">): boolean => target.command !== undefined;
|
|
71
|
+
export const runsOnComputers = (target: Pick<RunTarget, "artifact">): boolean => target.artifact !== undefined;
|
|
72
|
+
|
|
46
73
|
export const RunTargetsFileSchema = z
|
|
47
74
|
.object({
|
|
48
75
|
targets: z
|
|
@@ -60,6 +87,7 @@ export const RepoRunTargetsSchema = z.object({
|
|
|
60
87
|
targets: z.array(RunTargetSchema),
|
|
61
88
|
error: z.string().optional(),
|
|
62
89
|
});
|
|
90
|
+
export type RepoRunTargets = z.infer<typeof RepoRunTargetsSchema>;
|
|
63
91
|
|
|
64
92
|
export const RunTargetsListSchema = z.object({
|
|
65
93
|
repos: z.array(RepoRunTargetsSchema),
|
package/src/schemas/shared.ts
CHANGED
|
@@ -35,3 +35,24 @@ export const RepoParamSchema = object({
|
|
|
35
35
|
'Which repository. "root" is the workspace itself; anything else is a repository\'s folder relative to the workspace root, URL-encoded.',
|
|
36
36
|
),
|
|
37
37
|
});
|
|
38
|
+
// A shared checkout's main line (the daemon's git/main-line-lock.ts), named on a repository's changes only when
|
|
39
|
+
// something moved it elsewhere.
|
|
40
|
+
export const MainBranchSchema = string()
|
|
41
|
+
.optional()
|
|
42
|
+
.describe(
|
|
43
|
+
"The branch this shared checkout belongs on, given only when it stands somewhere else: agents' work waits rather than land on the wrong branch until it is back. Absent, the normal case, means it is on its main line.",
|
|
44
|
+
);
|
|
45
|
+
// One branch of one workspace repository, for what looks at it or starts from it while the shared checkout stays on its
|
|
46
|
+
// main line: the Workspace's per-person view of it, an agent started from it. A remote-only branch is named by its
|
|
47
|
+
// short name; the daemon makes the local one at the remote's tip the first time it is needed.
|
|
48
|
+
export const BranchNameSchema = string()
|
|
49
|
+
.regex(/^[A-Za-z0-9][A-Za-z0-9._/-]*$/)
|
|
50
|
+
.max(200)
|
|
51
|
+
.describe("The branch, by its short name: `feature/login`, not `refs/heads/feature/login` or `origin/feature/login`.");
|
|
52
|
+
export const RepoBranchSchema = object({
|
|
53
|
+
repo: string()
|
|
54
|
+
.min(1)
|
|
55
|
+
.describe('Which repository. "root" is the workspace itself; anything else is a repository\'s folder relative to the workspace root.'),
|
|
56
|
+
branch: BranchNameSchema,
|
|
57
|
+
});
|
|
58
|
+
export type RepoBranch = z.infer<typeof RepoBranchSchema>;
|
|
@@ -67,16 +67,18 @@ export const TemplatesListSchema = z.object({
|
|
|
67
67
|
templates: z.array(TemplateSummarySchema).describe("The kinds of app the configured source repository knows how to scaffold."),
|
|
68
68
|
});
|
|
69
69
|
export type TemplatesList = z.infer<typeof TemplatesListSchema>;
|
|
70
|
-
// One app
|
|
71
|
-
// https://preview-<repo>--<app>-<sandboxId>.<zone>, absent without
|
|
70
|
+
// One app inside a repository, with its own dev server and status: a target its .intentic/run.json runs in the sandbox,
|
|
71
|
+
// or an instance in a monorepo's `_apps/`. previewUrl is https://preview-<repo>--<app>-<sandboxId>.<zone>, absent without
|
|
72
|
+
// a zone or connect token.
|
|
72
73
|
export const RepoAppSchema = z.object({
|
|
73
|
-
app: z.string().describe("The app's name
|
|
74
|
+
app: z.string().describe("The app's name: its run.json target's name, or its folder under _apps/."),
|
|
74
75
|
kind: z
|
|
75
76
|
.string()
|
|
76
77
|
.optional()
|
|
77
78
|
.describe(
|
|
78
79
|
"What sort of app it is: the template it came from, or the framework worked out from its dependencies. Absent when it was found purely by having a dev script.",
|
|
79
80
|
),
|
|
81
|
+
command: z.string().optional().describe("What runs it, as the repository's .intentic/run.json says. Absent for an app found under _apps/."),
|
|
80
82
|
previewUrl: z.string().optional().describe("Where to open it. Absent when this sandbox has no outside address."),
|
|
81
83
|
running: z.boolean().describe("Whether its dev server is up."),
|
|
82
84
|
healthy: z.boolean().describe("Whether it is actually answering."),
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
// workspace tree + files
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { ConversationIdSchema } from "../agent.js";
|
|
4
|
+
import { BranchNameSchema } from "../shared.js";
|
|
4
5
|
// Which copy of the workspace a read means: the shared /work tree, or (if `agent` is set) that conversation's own
|
|
5
6
|
// checkout, resolved in one place so the escape guard, denylist and ignore rules apply the same either way.
|
|
6
7
|
export const WorkspaceScopeSchema = z.object({
|
|
7
8
|
agent: ConversationIdSchema.optional().describe(
|
|
8
9
|
"Read a conversation's own private copy of the workspace rather than the shared tree. Leave it out for the shared tree. A conversation that is not working privately resolves back to the shared tree rather than failing, so a link need not know which mode it runs in.",
|
|
9
10
|
),
|
|
11
|
+
// A branch the shared checkout is not on (it stays on its main line): read from a checkout the daemon keeps of it,
|
|
12
|
+
// read-only; inside `repo` from the branch, everywhere else from the shared tree. Never together with `agent`.
|
|
13
|
+
branch: BranchNameSchema.optional()
|
|
14
|
+
.describe(
|
|
15
|
+
"Read a branch of one repository as it stands, without the shared workspace leaving its main line: files inside that repository come from the branch, everything else from the shared tree. Never together with `agent`.",
|
|
16
|
+
),
|
|
17
|
+
repo: z.string().min(1).optional().describe('With `branch`: which repository it is a branch of, "root" or left out for the workspace itself.'),
|
|
10
18
|
});
|
|
11
19
|
export type WorkspaceScope = z.infer<typeof WorkspaceScopeSchema>;
|
|
12
20
|
// path is root-relative with forward slashes, feeding straight into the file routes. The interface is declared by hand:
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// What moves a checkout's HEAD, for the `git.branch-switch` class (policy/command-classes.ts). `switch` exists only to move
|
|
2
|
+
// HEAD, so every form of it counts. `checkout` is two commands wearing one name: with `-- <path>` or a bare `.` it
|
|
3
|
+
// restores files and moves nothing, and those are the common ones, so they are cut out; a bare trailing `--` names no
|
|
4
|
+
// path and still switches. `symbolic-ref HEAD refs/…` is
|
|
5
|
+
// the plumbing spelling of the same move; reading it (no target) moves nothing.
|
|
6
|
+
//
|
|
7
|
+
// git's own options may stand between `git` and the verb (`git -C /work checkout x`, `git -c k=v switch x`), and they are
|
|
8
|
+
// read through, or naming a directory would be a way around the class.
|
|
9
|
+
|
|
10
|
+
const GLOBALS = String.raw`(?:\s+(?:-C\s+\S+|-c\s+\S+|--git-dir(?:=|\s+)\S+|--work-tree(?:=|\s+)\S+|--no-pager|--no-optional-locks|-P))*`;
|
|
11
|
+
|
|
12
|
+
export const GIT_BRANCH_SWITCH: readonly RegExp[] = [
|
|
13
|
+
new RegExp(String.raw`\bgit${GLOBALS}\s+switch\b`),
|
|
14
|
+
new RegExp(String.raw`\bgit${GLOBALS}\s+checkout\b(?![^|;&]*\s--\s+[^\s|;&])(?![^|;&]*\s\.(?:\s|$))`),
|
|
15
|
+
new RegExp(String.raw`\bgit${GLOBALS}\s+symbolic-ref\b[^|;&]*\sHEAD\s+refs\/`),
|
|
16
|
+
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"archives.d.ts","sourceRoot":"","sources":["../../src/text/archives.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;AAgC7E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,IAAY,EAAW,EAAE,CACvE,QAAQ,CAAC,WAAW,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"packed-formats.d.ts","sourceRoot":"","sources":["../../src/text/packed-formats.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY,SAAU,MAAM,KAAG,OAI3C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"packed-formats.js","sourceRoot":"","sources":["../../src/text/packed-formats.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,GAAG,IAAI,GAAG,CAClB,CACI,uIAAuI;IACvI,wGAAwG,CAC3G,CAAC,KAAK,CAAC,GAAG,CAAC,CACf,CAAC;AAGF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAW,EAAE;IAClD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IACnD,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAClC,OAAO,GAAG,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AACpE,CAAC,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|