@agentorg/cli 0.0.1 → 0.0.2
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/README.md +3 -3
- package/dist/src/bindings/mcp/encoding.js +1 -4
- package/dist/src/clients/cli/commands.js +1 -1
- package/dist/src/clients/cli/index.js +1 -1
- package/dist/src/clients/mcp/agent.d.ts +3 -5
- package/dist/src/clients/mcp/agent.js +10 -23
- package/dist/src/clients/mcp/command.d.ts +1 -1
- package/dist/src/clients/mcp/command.js +5 -11
- package/dist/src/clients/mcp/projects.d.ts +1 -2
- package/dist/src/clients/mcp/projects.js +5 -9
- package/dist/src/clients/mcp/sessions.d.ts +1 -5
- package/dist/src/clients/mcp/sessions.js +1 -10
- package/dist/src/clients/mcp/setup.js +4 -8
- package/dist/src/clients/mcp/waiter.d.ts +0 -2
- package/dist/src/clients/mcp/waiter.js +9 -20
- package/dist/src/domain/actors.js +3 -7
- package/dist/src/domain/attention.d.ts +8 -7
- package/dist/src/domain/attention.js +31 -47
- package/dist/src/domain/capabilities.js +0 -1
- package/dist/src/domain/claims.js +2 -2
- package/dist/src/domain/errors.d.ts +1 -1
- package/dist/src/domain/errors.js +1 -1
- package/dist/src/domain/index.d.ts +1 -15
- package/dist/src/domain/model/attention.d.ts +1 -5
- package/dist/src/domain/model/attention.js +5 -6
- package/dist/src/domain/model/builtins.d.ts +12 -179
- package/dist/src/domain/model/builtins.js +3 -6
- package/dist/src/domain/model/claims.d.ts +1 -3
- package/dist/src/domain/model/claims.js +1 -3
- package/dist/src/domain/model/index.d.ts +0 -7
- package/dist/src/domain/model/index.js +0 -3
- package/dist/src/domain/model/json-schema.d.ts +1 -4
- package/dist/src/domain/model/records.d.ts +0 -3
- package/dist/src/domain/model/records.js +3 -7
- package/dist/src/domain/model/system.d.ts +1 -5
- package/dist/src/domain/model/system.js +1 -5
- package/dist/src/domain/model/team.d.ts +4 -119
- package/dist/src/domain/model/team.js +8 -19
- package/dist/src/domain/model/workspace.d.ts +2 -86
- package/dist/src/domain/model/workspace.js +0 -1
- package/dist/src/domain/ports.d.ts +3 -4
- package/dist/src/domain/registry.d.ts +2 -16
- package/dist/src/domain/registry.js +22 -54
- package/dist/src/domain/system.js +1 -5
- package/dist/src/domain/team.d.ts +1 -1
- package/dist/src/domain/team.js +13 -33
- package/dist/src/domain/workspace.js +2 -10
- package/dist/src/home.d.ts +5 -5
- package/dist/src/home.js +6 -6
- package/dist/src/server/command.js +2 -2
- package/dist/src/server/index.d.ts +1 -1
- package/dist/src/server/index.js +2 -2
- package/dist/src/storage/sqlite/database.d.ts +5 -0
- package/dist/src/storage/sqlite/database.js +32 -1
- package/dist/src/storage/sqlite/index.js +1 -2
- package/dist/src/storage/sqlite/schema.d.ts +3 -4
- package/dist/src/storage/sqlite/schema.js +4 -4
- package/node_modules/@uniac/agentic-workspace/README.md +5 -5
- package/node_modules/@uniac/agentic-workspace/dist/examples/authority.d.ts +0 -1
- package/node_modules/@uniac/agentic-workspace/dist/examples/authority.js +3 -16
- package/node_modules/@uniac/agentic-workspace/dist/src/actors/index.d.ts +13 -13
- package/node_modules/@uniac/agentic-workspace/dist/src/actors/index.js +9 -25
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/common.d.ts +1 -9
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/common.js +2 -4
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/forms.d.ts +0 -13
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/forms.js +0 -3
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/messages.d.ts +0 -3
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/messages.js +3 -3
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/work.d.ts +2 -15
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/work.js +9 -14
- package/node_modules/@uniac/agentic-workspace/dist/src/mcp/index.js +1 -1
- package/node_modules/@uniac/agentic-workspace/dist/src/persistence/index.d.ts +1 -4
- package/node_modules/@uniac/agentic-workspace/dist/src/persistence/sqlite.js +2 -15
- package/node_modules/@uniac/agentic-workspace/dist/src/records.d.ts +0 -7
- package/node_modules/@uniac/agentic-workspace/dist/src/records.js +0 -14
- package/node_modules/@uniac/agentic-workspace/dist/src/work/asks.d.ts +20 -19
- package/node_modules/@uniac/agentic-workspace/dist/src/work/asks.js +39 -41
- package/node_modules/@uniac/agentic-workspace/dist/src/work/index.js +18 -24
- package/node_modules/@uniac/agentic-workspace/docs/contracts.md +23 -29
- package/node_modules/@uniac/agentic-workspace/docs/design.md +13 -13
- package/node_modules/@uniac/agentic-workspace/docs/hub-integration.md +25 -50
- package/node_modules/@uniac/agentic-workspace/package.json +1 -1
- package/package.json +3 -3
- package/skills/agentorg/SKILL.md +39 -38
- package/skills/agentorg/references/claude-code.md +3 -4
- package/vendor/uniac-agentic-workspace-0.0.2-8aebc44.tgz +0 -0
- package/vendor/workspace.json +6 -6
- package/dist/src/clients/mcp/levels.d.ts +0 -17
- package/dist/src/clients/mcp/levels.js +0 -7
- package/vendor/uniac-agentic-workspace-0.0.1-26fd0ee.tgz +0 -0
|
@@ -22,7 +22,6 @@ export declare const CLAIMS: {
|
|
|
22
22
|
interfaces: {
|
|
23
23
|
readonly claim: {
|
|
24
24
|
readonly writes: true;
|
|
25
|
-
readonly level: "organization";
|
|
26
25
|
readonly request: z.ZodObject<{
|
|
27
26
|
resource: z.ZodString;
|
|
28
27
|
note: z.ZodString;
|
|
@@ -39,7 +38,6 @@ export declare const CLAIMS: {
|
|
|
39
38
|
};
|
|
40
39
|
readonly release: {
|
|
41
40
|
readonly writes: true;
|
|
42
|
-
readonly level: "organization";
|
|
43
41
|
readonly request: z.ZodObject<{
|
|
44
42
|
resource: z.ZodString;
|
|
45
43
|
}, z.core.$strict>;
|
|
@@ -50,7 +48,7 @@ export declare const CLAIMS: {
|
|
|
50
48
|
until: z.ZodNullable<z.ZodISODateTime>;
|
|
51
49
|
claimed_at: z.ZodISODateTime;
|
|
52
50
|
}, z.core.$strict>;
|
|
53
|
-
readonly description: "Release a shared resource you hold; the
|
|
51
|
+
readonly description: "Release a shared resource you hold; the person may release any.";
|
|
54
52
|
};
|
|
55
53
|
};
|
|
56
54
|
};
|
|
@@ -26,16 +26,14 @@ export const ReleaseRequest = z.strictObject({ resource: Resource });
|
|
|
26
26
|
export const CLAIMS = toolDefinition("claims", {
|
|
27
27
|
claim: {
|
|
28
28
|
writes: true,
|
|
29
|
-
level: "organization",
|
|
30
29
|
request: ClaimRequest,
|
|
31
30
|
response: Claim,
|
|
32
31
|
description: "Claim a shared resource. Claiming another Actor's current resource is refused; claiming your own renews it. A claim ends when released, expired or its holder is closed.",
|
|
33
32
|
},
|
|
34
33
|
release: {
|
|
35
34
|
writes: true,
|
|
36
|
-
level: "organization",
|
|
37
35
|
request: ReleaseRequest,
|
|
38
36
|
response: Claim,
|
|
39
|
-
description: "Release a shared resource you hold; the
|
|
37
|
+
description: "Release a shared resource you hold; the person may release any.",
|
|
40
38
|
},
|
|
41
39
|
});
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* the built-ins' schemas, the communication standard's records and requests, and the shapes of a
|
|
4
4
|
* Hub caller's answer.
|
|
5
5
|
*/
|
|
6
|
-
import { Level } from "@uniac/agentic-workspace/contracts";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
import { Interface } from "./records.ts";
|
|
9
8
|
export * from "./attention.ts";
|
|
@@ -14,7 +13,6 @@ export * from "./records.ts";
|
|
|
14
13
|
export * from "./system.ts";
|
|
15
14
|
export * from "./team.ts";
|
|
16
15
|
export * from "./workspace.ts";
|
|
17
|
-
export { Level };
|
|
18
16
|
export type InterfaceDescriptor = z.output<typeof Interface>;
|
|
19
17
|
/** A Hub Tool's stable identity, name and callable interfaces. */
|
|
20
18
|
export declare const Tool: z.ZodObject<{
|
|
@@ -32,11 +30,6 @@ export declare const Tool: z.ZodObject<{
|
|
|
32
30
|
}, z.core.$strict>;
|
|
33
31
|
call: z.ZodString;
|
|
34
32
|
read_only: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
-
level: z.ZodOptional<z.ZodEnum<{
|
|
36
|
-
organization: "organization";
|
|
37
|
-
report: "report";
|
|
38
|
-
team: "team";
|
|
39
|
-
}>>;
|
|
40
33
|
}, z.core.$strict>>;
|
|
41
34
|
}, z.core.$strict>;
|
|
42
35
|
export type ToolDescriptor = z.output<typeof Tool>;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* the built-ins' schemas, the communication standard's records and requests, and the shapes of a
|
|
4
4
|
* Hub caller's answer.
|
|
5
5
|
*/
|
|
6
|
-
import { Level } from "@uniac/agentic-workspace/contracts";
|
|
7
6
|
import { z } from "zod";
|
|
8
7
|
import { Id, Interface } from "./records.js";
|
|
9
8
|
export * from "./attention.js";
|
|
@@ -14,7 +13,6 @@ export * from "./records.js";
|
|
|
14
13
|
export * from "./system.js";
|
|
15
14
|
export * from "./team.js";
|
|
16
15
|
export * from "./workspace.js";
|
|
17
|
-
export { Level };
|
|
18
16
|
/** A Hub Tool's stable identity, name and callable interfaces. */
|
|
19
17
|
export const Tool = z
|
|
20
18
|
.strictObject({
|
|
@@ -26,7 +24,6 @@ export const Tool = z
|
|
|
26
24
|
.string()
|
|
27
25
|
.describe("The alias to pass to call, independent of the local interface name."),
|
|
28
26
|
read_only: z.boolean().optional().describe("An interface that only reads."),
|
|
29
|
-
level: Level.optional().describe("The smallest organization level that presents it: report, team or organization. Every Hub interface carries one."),
|
|
30
27
|
})),
|
|
31
28
|
})
|
|
32
29
|
.meta({ id: "Tool" });
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
/** JSON Schema for the model's Zod schemas, in the shape interfaces and commands read it. */
|
|
2
|
-
import type { Level } from "@uniac/agentic-workspace/contracts";
|
|
3
2
|
import { z } from "zod";
|
|
4
3
|
export type JsonSchema = {
|
|
5
4
|
[key: string]: unknown;
|
|
6
5
|
};
|
|
7
|
-
/** A built-in's schemas, audit policy
|
|
6
|
+
/** A built-in's schemas, audit policy and caller-facing description. */
|
|
8
7
|
export interface BuiltinSpec {
|
|
9
8
|
readonly writes: boolean;
|
|
10
|
-
/** The smallest organization level that presents it; it grants and refuses nothing. */
|
|
11
|
-
readonly level: Level;
|
|
12
9
|
readonly request: z.ZodType;
|
|
13
10
|
readonly response: z.ZodType;
|
|
14
11
|
/** The first paragraph is the summary. */
|
|
@@ -29,9 +29,7 @@ export declare const Interface: z.ZodObject<{
|
|
|
29
29
|
export declare const Actor: z.ZodObject<{
|
|
30
30
|
id: z.ZodString;
|
|
31
31
|
name: z.ZodString;
|
|
32
|
-
path: z.ZodString;
|
|
33
32
|
purpose: z.ZodString;
|
|
34
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
35
33
|
online: z.ZodBoolean;
|
|
36
34
|
created_at: z.ZodISODateTime;
|
|
37
35
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -49,7 +47,6 @@ export declare const ActorRecord: z.ZodObject<{
|
|
|
49
47
|
id: z.ZodString;
|
|
50
48
|
name: z.ZodString;
|
|
51
49
|
purpose: z.ZodString;
|
|
52
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
53
50
|
created_at: z.ZodISODateTime;
|
|
54
51
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
55
52
|
credential_hash: z.ZodString;
|
|
@@ -12,7 +12,7 @@ export const Count = z.number().int().min(0);
|
|
|
12
12
|
export const Handle = z
|
|
13
13
|
.string()
|
|
14
14
|
.regex(/^[a-z0-9][a-z0-9-]{0,39}$/, "a lowercase handle such as storage or web-ui")
|
|
15
|
-
.describe("A short handle, unique among
|
|
15
|
+
.describe("A short handle, unique among open Actors, that names the Actor in the organization.");
|
|
16
16
|
/** The local name of a Hub Tool interface. */
|
|
17
17
|
export const INTERFACE_NAME = /^[A-Za-z0-9_-]{1,64}$/;
|
|
18
18
|
const JsonSchema = z.record(z.string(), z.unknown()).describe("A JSON Schema.");
|
|
@@ -31,16 +31,12 @@ export const Actor = z
|
|
|
31
31
|
.strictObject({
|
|
32
32
|
id: Id.describe("Issued by the core."),
|
|
33
33
|
name: Handle,
|
|
34
|
-
path: z
|
|
35
|
-
.string()
|
|
36
|
-
.describe("The handles from the root's report down to this actor, joined by dots, as the root names it; empty for the root."),
|
|
37
34
|
purpose: Text,
|
|
38
|
-
manager: Id.nullable().describe("The managing actor; null for the root."),
|
|
39
35
|
online: z.boolean().describe("True while the Actor has an admitted Hub connection."),
|
|
40
36
|
created_at: Timestamp,
|
|
41
37
|
closed_at: Timestamp.nullable(),
|
|
42
38
|
})
|
|
43
|
-
.meta({ id: "Actor", description: "
|
|
39
|
+
.meta({ id: "Actor", description: "An Actor in the organization, on its one flat level." });
|
|
44
40
|
export const AuditEntry = z
|
|
45
41
|
.strictObject({
|
|
46
42
|
id: z.number().int(),
|
|
@@ -56,6 +52,6 @@ export const AuditEntry = z
|
|
|
56
52
|
})
|
|
57
53
|
.meta({ id: "AuditEntry" });
|
|
58
54
|
/** Durable identity and lifecycle; connection state is owned separately. */
|
|
59
|
-
export const ActorRecord = Actor.omit({
|
|
55
|
+
export const ActorRecord = Actor.omit({ online: true }).extend({
|
|
60
56
|
credential_hash: z.string(),
|
|
61
57
|
});
|
|
@@ -191,7 +191,6 @@ export declare const SYSTEM: {
|
|
|
191
191
|
interfaces: {
|
|
192
192
|
readonly system_status: {
|
|
193
193
|
readonly writes: false;
|
|
194
|
-
readonly level: "organization";
|
|
195
194
|
readonly request: z.ZodObject<{
|
|
196
195
|
diagnosticLimit: z.ZodDefault<z.ZodNumber>;
|
|
197
196
|
}, z.core.$strict>;
|
|
@@ -249,7 +248,6 @@ export declare const SYSTEM: {
|
|
|
249
248
|
};
|
|
250
249
|
readonly connection_list: {
|
|
251
250
|
readonly writes: false;
|
|
252
|
-
readonly level: "organization";
|
|
253
251
|
readonly request: z.ZodObject<{
|
|
254
252
|
instanceId: z.ZodOptional<z.ZodUUID>;
|
|
255
253
|
after: z.ZodDefault<z.ZodNumber>;
|
|
@@ -292,7 +290,6 @@ export declare const SYSTEM: {
|
|
|
292
290
|
};
|
|
293
291
|
readonly provider_list: {
|
|
294
292
|
readonly writes: false;
|
|
295
|
-
readonly level: "organization";
|
|
296
293
|
readonly request: z.ZodObject<{
|
|
297
294
|
instanceId: z.ZodOptional<z.ZodUUID>;
|
|
298
295
|
after: z.ZodDefault<z.ZodNumber>;
|
|
@@ -316,7 +313,6 @@ export declare const SYSTEM: {
|
|
|
316
313
|
};
|
|
317
314
|
readonly connection_disconnect: {
|
|
318
315
|
readonly writes: true;
|
|
319
|
-
readonly level: "organization";
|
|
320
316
|
readonly request: z.ZodObject<{
|
|
321
317
|
instanceId: z.ZodUUID;
|
|
322
318
|
connectionId: z.ZodUUID;
|
|
@@ -326,7 +322,7 @@ export declare const SYSTEM: {
|
|
|
326
322
|
connectionId: z.ZodUUID;
|
|
327
323
|
closed: z.ZodLiteral<true>;
|
|
328
324
|
}, z.core.$strict>;
|
|
329
|
-
readonly description: "Detach one exact Hub socket with transient close code 1000. Refused for the calling socket or observed local work. Actor authority is
|
|
325
|
+
readonly description: "Detach one exact Hub socket with transient close code 1000. Refused for the calling socket or observed local work. Actor authority is your own other socket, or the person; Provider authority is the person. Clients may reconnect; this neither stops native work nor revokes identity. Never retry an unknown outcome blindly.";
|
|
330
326
|
};
|
|
331
327
|
};
|
|
332
328
|
};
|
|
@@ -105,30 +105,26 @@ export const ConnectionDisconnected = z.strictObject({
|
|
|
105
105
|
export const SYSTEM = toolDefinition("system", {
|
|
106
106
|
system_status: {
|
|
107
107
|
writes: false,
|
|
108
|
-
level: "organization",
|
|
109
108
|
request: z.strictObject({ diagnosticLimit: z.number().int().min(1).max(100).default(20) }),
|
|
110
109
|
response: SystemStatus,
|
|
111
110
|
description: "Observe this answering Hub run and its bounded fixed-code diagnostics. Connection presence and local work counts do not establish native health or idleness. Message operations produce no diagnostic events.",
|
|
112
111
|
},
|
|
113
112
|
connection_list: {
|
|
114
113
|
writes: false,
|
|
115
|
-
level: "organization",
|
|
116
114
|
request: ConnectionQuery,
|
|
117
115
|
response: ConnectionPage,
|
|
118
116
|
description: "Inspect admitted Hub sockets matching all supplied criteria before the limit. Continuations belong to the same run, caller and filters; refresh from zero for current membership. No remote-worker health is inferred.",
|
|
119
117
|
},
|
|
120
118
|
provider_list: {
|
|
121
119
|
writes: false,
|
|
122
|
-
level: "organization",
|
|
123
120
|
request: ProviderQuery,
|
|
124
121
|
response: ProviderPage,
|
|
125
122
|
description: "Inspect configured Provider identities, admitted socket counts and selected factory routes. Presence is not responsiveness, execution readiness or native health.",
|
|
126
123
|
},
|
|
127
124
|
connection_disconnect: {
|
|
128
125
|
writes: true,
|
|
129
|
-
level: "organization",
|
|
130
126
|
request: z.strictObject({ instanceId: InstanceId, connectionId: InstanceId }),
|
|
131
127
|
response: ConnectionDisconnected,
|
|
132
|
-
description: "Detach one exact Hub socket with transient close code 1000. Refused for the calling socket or observed local work. Actor authority is
|
|
128
|
+
description: "Detach one exact Hub socket with transient close code 1000. Refused for the calling socket or observed local work. Actor authority is your own other socket, or the person; Provider authority is the person. Clients may reconnect; this neither stops native work nor revokes identity. Never retry an unknown outcome blindly.",
|
|
133
129
|
},
|
|
134
130
|
});
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const TeamRequest: z.ZodObject<{
|
|
3
|
-
actor: z.ZodOptional<z.ZodString>;
|
|
4
|
-
depth: z.ZodDefault<z.ZodNumber>;
|
|
5
|
-
}, z.core.$strict>;
|
|
2
|
+
export declare const TeamRequest: z.ZodObject<{}, z.core.$strict>;
|
|
6
3
|
export declare const PositionState: z.ZodEnum<{
|
|
7
4
|
active: "active";
|
|
8
5
|
idle: "idle";
|
|
@@ -40,9 +37,7 @@ export declare const Headline: z.ZodObject<{
|
|
|
40
37
|
export declare const Position: z.ZodObject<{
|
|
41
38
|
id: z.ZodString;
|
|
42
39
|
name: z.ZodString;
|
|
43
|
-
path: z.ZodString;
|
|
44
40
|
purpose: z.ZodString;
|
|
45
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
46
41
|
online: z.ZodBoolean;
|
|
47
42
|
created_at: z.ZodISODateTime;
|
|
48
43
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -81,17 +76,13 @@ export declare const Position: z.ZodObject<{
|
|
|
81
76
|
}, z.core.$strict>>;
|
|
82
77
|
}, z.core.$strict>;
|
|
83
78
|
asks: z.ZodNumber;
|
|
84
|
-
branchAsks: z.ZodNumber;
|
|
85
79
|
lastActiveAt: z.ZodNullable<z.ZodISODateTime>;
|
|
86
80
|
}, z.core.$strict>;
|
|
87
81
|
export declare const Team: z.ZodObject<{
|
|
88
|
-
root: z.ZodString;
|
|
89
82
|
positions: z.ZodArray<z.ZodObject<{
|
|
90
83
|
id: z.ZodString;
|
|
91
84
|
name: z.ZodString;
|
|
92
|
-
path: z.ZodString;
|
|
93
85
|
purpose: z.ZodString;
|
|
94
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
95
86
|
online: z.ZodBoolean;
|
|
96
87
|
created_at: z.ZodISODateTime;
|
|
97
88
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -130,7 +121,6 @@ export declare const Team: z.ZodObject<{
|
|
|
130
121
|
}, z.core.$strict>>;
|
|
131
122
|
}, z.core.$strict>;
|
|
132
123
|
asks: z.ZodNumber;
|
|
133
|
-
branchAsks: z.ZodNumber;
|
|
134
124
|
lastActiveAt: z.ZodNullable<z.ZodISODateTime>;
|
|
135
125
|
}, z.core.$strict>>;
|
|
136
126
|
}, z.core.$strict>;
|
|
@@ -143,9 +133,7 @@ export declare const ActorView: z.ZodObject<{
|
|
|
143
133
|
actor: z.ZodObject<{
|
|
144
134
|
actorID: z.ZodString;
|
|
145
135
|
name: z.ZodString;
|
|
146
|
-
path: z.ZodString;
|
|
147
136
|
purpose: z.ZodString;
|
|
148
|
-
managerID: z.ZodNullable<z.ZodString>;
|
|
149
137
|
online: z.ZodBoolean;
|
|
150
138
|
lastActiveAt: z.ZodNullable<z.ZodISODateTime>;
|
|
151
139
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -282,10 +270,6 @@ export declare const ActorView: z.ZodObject<{
|
|
|
282
270
|
note: z.ZodOptional<z.ZodString>;
|
|
283
271
|
at: z.ZodISODateTime;
|
|
284
272
|
}, z.core.$strict>>;
|
|
285
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
286
|
-
actorID: z.ZodString;
|
|
287
|
-
at: z.ZodISODateTime;
|
|
288
|
-
}, z.core.$strict>>;
|
|
289
273
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
290
274
|
text: z.ZodString;
|
|
291
275
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -340,10 +324,6 @@ export declare const ActorView: z.ZodObject<{
|
|
|
340
324
|
note: z.ZodOptional<z.ZodString>;
|
|
341
325
|
at: z.ZodISODateTime;
|
|
342
326
|
}, z.core.$strict>>;
|
|
343
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
344
|
-
actorID: z.ZodString;
|
|
345
|
-
at: z.ZodISODateTime;
|
|
346
|
-
}, z.core.$strict>>;
|
|
347
327
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
348
328
|
text: z.ZodString;
|
|
349
329
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -397,10 +377,6 @@ export declare const ActorView: z.ZodObject<{
|
|
|
397
377
|
note: z.ZodOptional<z.ZodString>;
|
|
398
378
|
at: z.ZodISODateTime;
|
|
399
379
|
}, z.core.$strict>>;
|
|
400
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
401
|
-
actorID: z.ZodString;
|
|
402
|
-
at: z.ZodISODateTime;
|
|
403
|
-
}, z.core.$strict>>;
|
|
404
380
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
405
381
|
text: z.ZodString;
|
|
406
382
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -509,10 +485,6 @@ export declare const ActorView: z.ZodObject<{
|
|
|
509
485
|
note: z.ZodOptional<z.ZodString>;
|
|
510
486
|
at: z.ZodISODateTime;
|
|
511
487
|
}, z.core.$strict>>;
|
|
512
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
513
|
-
actorID: z.ZodString;
|
|
514
|
-
at: z.ZodISODateTime;
|
|
515
|
-
}, z.core.$strict>>;
|
|
516
488
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
517
489
|
text: z.ZodString;
|
|
518
490
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -622,10 +594,6 @@ export declare const ActorView: z.ZodObject<{
|
|
|
622
594
|
note: z.ZodOptional<z.ZodString>;
|
|
623
595
|
at: z.ZodISODateTime;
|
|
624
596
|
}, z.core.$strict>>;
|
|
625
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
626
|
-
actorID: z.ZodString;
|
|
627
|
-
at: z.ZodISODateTime;
|
|
628
|
-
}, z.core.$strict>>;
|
|
629
597
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
630
598
|
text: z.ZodString;
|
|
631
599
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -735,10 +703,6 @@ export declare const ActorView: z.ZodObject<{
|
|
|
735
703
|
note: z.ZodOptional<z.ZodString>;
|
|
736
704
|
at: z.ZodISODateTime;
|
|
737
705
|
}, z.core.$strict>>;
|
|
738
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
739
|
-
actorID: z.ZodString;
|
|
740
|
-
at: z.ZodISODateTime;
|
|
741
|
-
}, z.core.$strict>>;
|
|
742
706
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
743
707
|
text: z.ZodString;
|
|
744
708
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -793,10 +757,6 @@ export declare const ActorView: z.ZodObject<{
|
|
|
793
757
|
note: z.ZodOptional<z.ZodString>;
|
|
794
758
|
at: z.ZodISODateTime;
|
|
795
759
|
}, z.core.$strict>>;
|
|
796
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
797
|
-
actorID: z.ZodString;
|
|
798
|
-
at: z.ZodISODateTime;
|
|
799
|
-
}, z.core.$strict>>;
|
|
800
760
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
801
761
|
text: z.ZodString;
|
|
802
762
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -905,10 +865,6 @@ export declare const ActorView: z.ZodObject<{
|
|
|
905
865
|
note: z.ZodOptional<z.ZodString>;
|
|
906
866
|
at: z.ZodISODateTime;
|
|
907
867
|
}, z.core.$strict>>;
|
|
908
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
909
|
-
actorID: z.ZodString;
|
|
910
|
-
at: z.ZodISODateTime;
|
|
911
|
-
}, z.core.$strict>>;
|
|
912
868
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
913
869
|
text: z.ZodString;
|
|
914
870
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1018,10 +974,6 @@ export declare const ActorView: z.ZodObject<{
|
|
|
1018
974
|
note: z.ZodOptional<z.ZodString>;
|
|
1019
975
|
at: z.ZodISODateTime;
|
|
1020
976
|
}, z.core.$strict>>;
|
|
1021
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1022
|
-
actorID: z.ZodString;
|
|
1023
|
-
at: z.ZodISODateTime;
|
|
1024
|
-
}, z.core.$strict>>;
|
|
1025
977
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1026
978
|
text: z.ZodString;
|
|
1027
979
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1033,16 +985,6 @@ export declare const ActorView: z.ZodObject<{
|
|
|
1033
985
|
}, z.core.$strict>>;
|
|
1034
986
|
}, z.core.$strict>>>;
|
|
1035
987
|
}, z.core.$strict>>;
|
|
1036
|
-
reports: z.ZodArray<z.ZodObject<{
|
|
1037
|
-
id: z.ZodString;
|
|
1038
|
-
name: z.ZodString;
|
|
1039
|
-
path: z.ZodString;
|
|
1040
|
-
purpose: z.ZodString;
|
|
1041
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
1042
|
-
online: z.ZodBoolean;
|
|
1043
|
-
created_at: z.ZodISODateTime;
|
|
1044
|
-
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
1045
|
-
}, z.core.$strict>>;
|
|
1046
988
|
actors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1047
989
|
name: z.ZodString;
|
|
1048
990
|
}, z.core.$strict>>;
|
|
@@ -1053,19 +995,12 @@ export declare const TEAM: {
|
|
|
1053
995
|
interfaces: {
|
|
1054
996
|
readonly team: {
|
|
1055
997
|
readonly writes: false;
|
|
1056
|
-
readonly
|
|
1057
|
-
readonly request: z.ZodObject<{
|
|
1058
|
-
actor: z.ZodOptional<z.ZodString>;
|
|
1059
|
-
depth: z.ZodDefault<z.ZodNumber>;
|
|
1060
|
-
}, z.core.$strict>;
|
|
998
|
+
readonly request: z.ZodObject<{}, z.core.$strict>;
|
|
1061
999
|
readonly response: z.ZodObject<{
|
|
1062
|
-
root: z.ZodString;
|
|
1063
1000
|
positions: z.ZodArray<z.ZodObject<{
|
|
1064
1001
|
id: z.ZodString;
|
|
1065
1002
|
name: z.ZodString;
|
|
1066
|
-
path: z.ZodString;
|
|
1067
1003
|
purpose: z.ZodString;
|
|
1068
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
1069
1004
|
online: z.ZodBoolean;
|
|
1070
1005
|
created_at: z.ZodISODateTime;
|
|
1071
1006
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -1104,15 +1039,13 @@ export declare const TEAM: {
|
|
|
1104
1039
|
}, z.core.$strict>>;
|
|
1105
1040
|
}, z.core.$strict>;
|
|
1106
1041
|
asks: z.ZodNumber;
|
|
1107
|
-
branchAsks: z.ZodNumber;
|
|
1108
1042
|
lastActiveAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1109
1043
|
}, z.core.$strict>>;
|
|
1110
1044
|
}, z.core.$strict>;
|
|
1111
|
-
readonly description: "Read
|
|
1045
|
+
readonly description: "Read every open Actor, oldest first: identity, purpose, timestamps, actual Hub connection presence, its last write, its own open asks, and from the Work on it its state and headline. A closed Actor is read with actor_view.";
|
|
1112
1046
|
};
|
|
1113
1047
|
readonly actor_view: {
|
|
1114
1048
|
readonly writes: false;
|
|
1115
|
-
readonly level: "team";
|
|
1116
1049
|
readonly request: z.ZodObject<{
|
|
1117
1050
|
actorID: z.ZodOptional<z.ZodString>;
|
|
1118
1051
|
completed: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1122,9 +1055,7 @@ export declare const TEAM: {
|
|
|
1122
1055
|
actor: z.ZodObject<{
|
|
1123
1056
|
actorID: z.ZodString;
|
|
1124
1057
|
name: z.ZodString;
|
|
1125
|
-
path: z.ZodString;
|
|
1126
1058
|
purpose: z.ZodString;
|
|
1127
|
-
managerID: z.ZodNullable<z.ZodString>;
|
|
1128
1059
|
online: z.ZodBoolean;
|
|
1129
1060
|
lastActiveAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1130
1061
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -1261,10 +1192,6 @@ export declare const TEAM: {
|
|
|
1261
1192
|
note: z.ZodOptional<z.ZodString>;
|
|
1262
1193
|
at: z.ZodISODateTime;
|
|
1263
1194
|
}, z.core.$strict>>;
|
|
1264
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1265
|
-
actorID: z.ZodString;
|
|
1266
|
-
at: z.ZodISODateTime;
|
|
1267
|
-
}, z.core.$strict>>;
|
|
1268
1195
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1269
1196
|
text: z.ZodString;
|
|
1270
1197
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1319,10 +1246,6 @@ export declare const TEAM: {
|
|
|
1319
1246
|
note: z.ZodOptional<z.ZodString>;
|
|
1320
1247
|
at: z.ZodISODateTime;
|
|
1321
1248
|
}, z.core.$strict>>;
|
|
1322
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1323
|
-
actorID: z.ZodString;
|
|
1324
|
-
at: z.ZodISODateTime;
|
|
1325
|
-
}, z.core.$strict>>;
|
|
1326
1249
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1327
1250
|
text: z.ZodString;
|
|
1328
1251
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1376,10 +1299,6 @@ export declare const TEAM: {
|
|
|
1376
1299
|
note: z.ZodOptional<z.ZodString>;
|
|
1377
1300
|
at: z.ZodISODateTime;
|
|
1378
1301
|
}, z.core.$strict>>;
|
|
1379
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1380
|
-
actorID: z.ZodString;
|
|
1381
|
-
at: z.ZodISODateTime;
|
|
1382
|
-
}, z.core.$strict>>;
|
|
1383
1302
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1384
1303
|
text: z.ZodString;
|
|
1385
1304
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1488,10 +1407,6 @@ export declare const TEAM: {
|
|
|
1488
1407
|
note: z.ZodOptional<z.ZodString>;
|
|
1489
1408
|
at: z.ZodISODateTime;
|
|
1490
1409
|
}, z.core.$strict>>;
|
|
1491
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1492
|
-
actorID: z.ZodString;
|
|
1493
|
-
at: z.ZodISODateTime;
|
|
1494
|
-
}, z.core.$strict>>;
|
|
1495
1410
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1496
1411
|
text: z.ZodString;
|
|
1497
1412
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1601,10 +1516,6 @@ export declare const TEAM: {
|
|
|
1601
1516
|
note: z.ZodOptional<z.ZodString>;
|
|
1602
1517
|
at: z.ZodISODateTime;
|
|
1603
1518
|
}, z.core.$strict>>;
|
|
1604
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1605
|
-
actorID: z.ZodString;
|
|
1606
|
-
at: z.ZodISODateTime;
|
|
1607
|
-
}, z.core.$strict>>;
|
|
1608
1519
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1609
1520
|
text: z.ZodString;
|
|
1610
1521
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1714,10 +1625,6 @@ export declare const TEAM: {
|
|
|
1714
1625
|
note: z.ZodOptional<z.ZodString>;
|
|
1715
1626
|
at: z.ZodISODateTime;
|
|
1716
1627
|
}, z.core.$strict>>;
|
|
1717
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1718
|
-
actorID: z.ZodString;
|
|
1719
|
-
at: z.ZodISODateTime;
|
|
1720
|
-
}, z.core.$strict>>;
|
|
1721
1628
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1722
1629
|
text: z.ZodString;
|
|
1723
1630
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1772,10 +1679,6 @@ export declare const TEAM: {
|
|
|
1772
1679
|
note: z.ZodOptional<z.ZodString>;
|
|
1773
1680
|
at: z.ZodISODateTime;
|
|
1774
1681
|
}, z.core.$strict>>;
|
|
1775
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1776
|
-
actorID: z.ZodString;
|
|
1777
|
-
at: z.ZodISODateTime;
|
|
1778
|
-
}, z.core.$strict>>;
|
|
1779
1682
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1780
1683
|
text: z.ZodString;
|
|
1781
1684
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1884,10 +1787,6 @@ export declare const TEAM: {
|
|
|
1884
1787
|
note: z.ZodOptional<z.ZodString>;
|
|
1885
1788
|
at: z.ZodISODateTime;
|
|
1886
1789
|
}, z.core.$strict>>;
|
|
1887
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1888
|
-
actorID: z.ZodString;
|
|
1889
|
-
at: z.ZodISODateTime;
|
|
1890
|
-
}, z.core.$strict>>;
|
|
1891
1790
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1892
1791
|
text: z.ZodString;
|
|
1893
1792
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1997,10 +1896,6 @@ export declare const TEAM: {
|
|
|
1997
1896
|
note: z.ZodOptional<z.ZodString>;
|
|
1998
1897
|
at: z.ZodISODateTime;
|
|
1999
1898
|
}, z.core.$strict>>;
|
|
2000
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
2001
|
-
actorID: z.ZodString;
|
|
2002
|
-
at: z.ZodISODateTime;
|
|
2003
|
-
}, z.core.$strict>>;
|
|
2004
1899
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
2005
1900
|
text: z.ZodString;
|
|
2006
1901
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2012,21 +1907,11 @@ export declare const TEAM: {
|
|
|
2012
1907
|
}, z.core.$strict>>;
|
|
2013
1908
|
}, z.core.$strict>>>;
|
|
2014
1909
|
}, z.core.$strict>>;
|
|
2015
|
-
reports: z.ZodArray<z.ZodObject<{
|
|
2016
|
-
id: z.ZodString;
|
|
2017
|
-
name: z.ZodString;
|
|
2018
|
-
path: z.ZodString;
|
|
2019
|
-
purpose: z.ZodString;
|
|
2020
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
2021
|
-
online: z.ZodBoolean;
|
|
2022
|
-
created_at: z.ZodISODateTime;
|
|
2023
|
-
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
2024
|
-
}, z.core.$strict>>;
|
|
2025
1910
|
actors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2026
1911
|
name: z.ZodString;
|
|
2027
1912
|
}, z.core.$strict>>;
|
|
2028
1913
|
}, z.core.$strict>;
|
|
2029
|
-
readonly description: "Read an Actor's report as one view, computed now: its state and headline, the Work on it with its open asks, its own open asks, the asks routed to it, the submissions it answers, the Work it must take up or hand on, its follow-ups
|
|
1914
|
+
readonly description: "Read an Actor's report as one view, computed now: its state and headline, the Work on it with its open asks, its own open asks, the asks routed to it, the submissions it answers, the Work it must take up or hand on, its follow-ups and recent completions. Anyone may view any Actor, a closed one included. Default: you.";
|
|
2030
1915
|
};
|
|
2031
1916
|
};
|
|
2032
1917
|
};
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
/** Organization identity,
|
|
1
|
+
/** Organization identity, presence and each Actor's report, on one flat level. */
|
|
2
2
|
import { Form, Work } from "@uniac/agentic-workspace/contracts";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { toolDefinition } from "./json-schema.js";
|
|
5
5
|
import { Actor, Count, Id, Timestamp } from "./records.js";
|
|
6
|
-
export const TeamRequest = z
|
|
7
|
-
.strictObject({
|
|
8
|
-
actor: Id.optional().describe("The position to start from. Default: you."),
|
|
9
|
-
depth: z.number().int().min(0).max(20).default(1).describe("Levels of reports to include."),
|
|
10
|
-
})
|
|
11
|
-
.meta({ id: "TeamRequest" });
|
|
6
|
+
export const TeamRequest = z.strictObject({}).meta({ id: "TeamRequest" });
|
|
12
7
|
export const PositionState = z
|
|
13
8
|
.enum(["waiting", "review", "active", "idle"])
|
|
14
9
|
.describe("The most urgent among the Work on it: waiting (its owner's open ask on Work not submitted), then review (submitted), then active; idle with none. A stored blocked reads as active.");
|
|
@@ -25,7 +20,7 @@ export const Headline = z
|
|
|
25
20
|
text: z.string(),
|
|
26
21
|
})
|
|
27
22
|
.nullable()
|
|
28
|
-
.describe('The first that applies to the subject: its owner\'s oldest open ask on it, by title, as ask or approval; "with <X> for review", X being its requester or, once that is closed,
|
|
23
|
+
.describe('The first that applies to the subject: its owner\'s oldest open ask on it, by title, as ask or approval; "with <X> for review", X being its requester or, once that is closed, the person; what it waits on; its current step, else the first sentence of its progress. The caller is "you".'),
|
|
29
24
|
more: Count.describe("Its other Work that is waiting, in review or active."),
|
|
30
25
|
notStarted: Count.describe("Open Work on it with no open ask by its owner."),
|
|
31
26
|
finished: z
|
|
@@ -41,13 +36,12 @@ export const Position = Actor.extend({
|
|
|
41
36
|
state: PositionState,
|
|
42
37
|
headline: Headline,
|
|
43
38
|
asks: Count.describe("Its own open asks."),
|
|
44
|
-
branchAsks: Count.describe("Open asks of every Actor below it, closed ones included."),
|
|
45
39
|
lastActiveAt: LastActiveAt,
|
|
46
40
|
}).meta({
|
|
47
41
|
id: "Position",
|
|
48
|
-
description: "Identity
|
|
42
|
+
description: "Identity and connection presence, with its state and headline from the Work on it.",
|
|
49
43
|
});
|
|
50
|
-
export const Team = z.strictObject({
|
|
44
|
+
export const Team = z.strictObject({ positions: z.array(Position) }).meta({ id: "Team" });
|
|
51
45
|
export const ActorViewRequest = z
|
|
52
46
|
.strictObject({
|
|
53
47
|
actorID: Id.optional().describe("The Actor to view. Default: you."),
|
|
@@ -66,9 +60,7 @@ export const ActorView = z
|
|
|
66
60
|
actor: z.strictObject({
|
|
67
61
|
actorID: Id,
|
|
68
62
|
name: z.string(),
|
|
69
|
-
path: z.string(),
|
|
70
63
|
purpose: z.string(),
|
|
71
|
-
managerID: Actor.shape.manager,
|
|
72
64
|
online: z.boolean(),
|
|
73
65
|
lastActiveAt: LastActiveAt,
|
|
74
66
|
closed_at: Actor.shape.closed_at,
|
|
@@ -83,7 +75,7 @@ export const ActorView = z
|
|
|
83
75
|
.describe("Its own open asks, wherever they are: on its Work, on other Work, or on none."),
|
|
84
76
|
needs: z
|
|
85
77
|
.array(Form)
|
|
86
|
-
.describe("Open asks routed to it:
|
|
78
|
+
.describe("Open asks routed to it: asks on Work it requested, or that a closed Actor requested whom it stands in for; for the person, also asks on Work their asker requested itself or on no Work."),
|
|
87
79
|
reviews: z
|
|
88
80
|
.array(Work)
|
|
89
81
|
.describe("Submitted Work routed to it: Work it requested, or a closed Actor requested whom it stands in for."),
|
|
@@ -99,7 +91,6 @@ export const ActorView = z
|
|
|
99
91
|
.describe("With answeredBy: its asks, open or closed, that Actor answered."),
|
|
100
92
|
followUps: z.array(Work).describe("Open Work it requested of itself."),
|
|
101
93
|
completed: z.array(Work).describe("Accepted Work it owns, newest first."),
|
|
102
|
-
reports: z.array(Actor).describe("Its open direct reports."),
|
|
103
94
|
actors: z
|
|
104
95
|
.record(z.string(), z.strictObject({ name: z.string() }))
|
|
105
96
|
.describe("Names of the Actors these records mention."),
|
|
@@ -108,16 +99,14 @@ export const ActorView = z
|
|
|
108
99
|
export const TEAM = toolDefinition("team", {
|
|
109
100
|
team: {
|
|
110
101
|
writes: false,
|
|
111
|
-
level: "team",
|
|
112
102
|
request: TeamRequest,
|
|
113
103
|
response: Team,
|
|
114
|
-
description: "Read
|
|
104
|
+
description: "Read every open Actor, oldest first: identity, purpose, timestamps, actual Hub connection presence, its last write, its own open asks, and from the Work on it its state and headline. A closed Actor is read with actor_view.",
|
|
115
105
|
},
|
|
116
106
|
actor_view: {
|
|
117
107
|
writes: false,
|
|
118
|
-
level: "team",
|
|
119
108
|
request: ActorViewRequest,
|
|
120
109
|
response: ActorView,
|
|
121
|
-
description: "Read an Actor's report as one view, computed now: its state and headline, the Work on it with its open asks, its own open asks, the asks routed to it, the submissions it answers, the Work it must take up or hand on, its follow-ups
|
|
110
|
+
description: "Read an Actor's report as one view, computed now: its state and headline, the Work on it with its open asks, its own open asks, the asks routed to it, the submissions it answers, the Work it must take up or hand on, its follow-ups and recent completions. Anyone may view any Actor, a closed one included. Default: you.",
|
|
122
111
|
},
|
|
123
112
|
});
|