@onesi/genesis 0.0.1-stage → 0.2.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/README.md +29 -0
- package/dist/auto.d.ts +1010 -0
- package/dist/auto.js +125 -0
- package/dist/beacons.d.ts +145 -0
- package/dist/beacons.js +148 -0
- package/dist/blinds-owner-enrollment.d.ts +280 -0
- package/dist/blinds-owner-enrollment.js +169 -0
- package/dist/client.d.ts +52 -0
- package/dist/client.js +384 -0
- package/dist/context.d.ts +50 -0
- package/dist/context.js +153 -0
- package/dist/dials.d.ts +299 -0
- package/dist/dials.js +100 -0
- package/dist/errors.d.ts +35 -0
- package/dist/errors.js +66 -0
- package/dist/flares.d.ts +202 -0
- package/dist/flares.js +61 -0
- package/dist/fleets.d.ts +218 -0
- package/dist/fleets.js +189 -0
- package/dist/flocks.d.ts +439 -0
- package/dist/flocks.js +98 -0
- package/dist/foundry-billing.d.ts +97 -0
- package/dist/foundry-billing.js +107 -0
- package/dist/foundry.d.ts +424 -0
- package/dist/foundry.js +133 -0
- package/dist/garden.d.ts +754 -0
- package/dist/garden.js +76 -0
- package/dist/gateway.d.ts +365 -0
- package/dist/gateway.js +82 -0
- package/dist/gears.d.ts +226 -0
- package/dist/gears.js +42 -0
- package/dist/generated/operations.d.ts +4 -0
- package/dist/generated/operations.js +65134 -0
- package/dist/generated/schema.d.ts +87658 -0
- package/dist/generated/schema.js +1 -0
- package/dist/genesis.d.ts +9574 -0
- package/dist/genesis.js +271 -0
- package/dist/genesis.openapi.json +128522 -0
- package/dist/henry.d.ts +369 -0
- package/dist/henry.js +268 -0
- package/dist/hives-cells.d.ts +127 -0
- package/dist/hives-cells.js +151 -0
- package/dist/hives-environment.d.ts +37 -0
- package/dist/hives-environment.js +80 -0
- package/dist/hives-functions.d.ts +36 -0
- package/dist/hives-functions.js +185 -0
- package/dist/hives-marketplace.d.ts +128 -0
- package/dist/hives-marketplace.js +187 -0
- package/dist/hives-node.d.ts +9 -0
- package/dist/hives-node.js +155 -0
- package/dist/hives-operations.d.ts +451 -0
- package/dist/hives-operations.js +43 -0
- package/dist/hives-platform.d.ts +149 -0
- package/dist/hives-platform.js +183 -0
- package/dist/hives-queue-consumer.d.ts +56 -0
- package/dist/hives-queue-consumer.js +95 -0
- package/dist/hives-queue-funding.d.ts +28 -0
- package/dist/hives-queue-funding.js +81 -0
- package/dist/hives-queues.d.ts +137 -0
- package/dist/hives-queues.js +143 -0
- package/dist/hives-resources-transport.d.ts +23 -0
- package/dist/hives-resources-transport.js +204 -0
- package/dist/hives-response.d.ts +2 -0
- package/dist/hives-response.js +32 -0
- package/dist/hives-runtimes.d.ts +34 -0
- package/dist/hives-runtimes.js +32 -0
- package/dist/hives-sse.d.ts +24 -0
- package/dist/hives-sse.js +111 -0
- package/dist/hives-topics.d.ts +51 -0
- package/dist/hives-topics.js +79 -0
- package/dist/hives-upload.d.ts +9 -0
- package/dist/hives-upload.js +23 -0
- package/dist/hives-volumes.d.ts +64 -0
- package/dist/hives-volumes.js +117 -0
- package/dist/iam-directory.d.ts +8 -0
- package/dist/iam-directory.js +23 -0
- package/dist/iam.d.ts +391 -0
- package/dist/iam.js +92 -0
- package/dist/idempotency.d.ts +7 -0
- package/dist/idempotency.js +39 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +37 -0
- package/dist/instances.d.ts +200 -0
- package/dist/instances.js +43 -0
- package/dist/lanes.d.ts +267 -0
- package/dist/lanes.js +41 -0
- package/dist/minds-agent.d.ts +88 -0
- package/dist/minds-agent.js +233 -0
- package/dist/minds-engine.d.ts +394 -0
- package/dist/minds-engine.js +555 -0
- package/dist/minds-owner.d.ts +110 -0
- package/dist/minds-owner.js +226 -0
- package/dist/minds.d.ts +377 -0
- package/dist/minds.js +228 -0
- package/dist/orgs.d.ts +405 -0
- package/dist/orgs.js +63 -0
- package/dist/relays-enrollment.d.ts +33 -0
- package/dist/relays-enrollment.js +115 -0
- package/dist/runner-grant.d.ts +10 -0
- package/dist/runner-grant.js +133 -0
- package/dist/runner.d.ts +72 -0
- package/dist/runner.js +117 -0
- package/dist/scopes.d.ts +310 -0
- package/dist/scopes.js +40 -0
- package/dist/taps.d.ts +118 -0
- package/dist/taps.js +45 -0
- package/dist/traces.d.ts +574 -0
- package/dist/traces.js +97 -0
- package/dist/types.d.ts +98 -0
- package/dist/types.js +1 -0
- package/dist/urls.d.ts +6 -0
- package/dist/urls.js +31 -0
- package/package.json +49 -1
package/dist/scopes.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ifMatchHeaders } from './idempotency.js';
|
|
2
|
+
const page = (p) => ({ ...(p.after === undefined ? {} : { after: p.after }), ...(p.limit === undefined ? {} : { limit: p.limit }) });
|
|
3
|
+
/** Scopes (work graph): projects, tasks, dependencies, assignments to agents or people, comments and activity.
|
|
4
|
+
* Scopes never runs agents; the assignee's runtime (Henry, Fleets or Flocks) does. Updates, archives and assignee
|
|
5
|
+
* changes take the `version` you read (sent as If-Match); a stale one is a 409. Archiving needs scopes:admin. */
|
|
6
|
+
export function scopesModule(client) {
|
|
7
|
+
return {
|
|
8
|
+
whoami: () => client.request('scopes_whoami'),
|
|
9
|
+
workload: (projectId) => client.request('scopes_getWorkload', projectId === undefined ? {} : { project_id: projectId }),
|
|
10
|
+
projects: {
|
|
11
|
+
list: (filter = {}) => client.request('scopes_listProjects', filter),
|
|
12
|
+
get: (project) => client.request('scopes_getProject', { project }),
|
|
13
|
+
create: (body) => client.request('scopes_createProject', { body }),
|
|
14
|
+
update: (project, version, body) => client.request('scopes_updateProject', { project, body }, { headers: ifMatchHeaders('scopes_updateProject', version) }),
|
|
15
|
+
archive: (project, version) => client.request('scopes_archiveProject', { project }, { headers: ifMatchHeaders('scopes_archiveProject', version) }),
|
|
16
|
+
graph: (project) => client.request('scopes_getGraph', { project }),
|
|
17
|
+
ready: (project, unassigned) => client.request('scopes_listReady', unassigned === undefined ? { project } : { project, unassigned }),
|
|
18
|
+
tasks: (project, filter = {}) => client.request('scopes_listProjectTasks', { ...filter, project }),
|
|
19
|
+
createTask: (project, body) => client.request('scopes_createTask', { project, body }),
|
|
20
|
+
activity: (project, p = {}) => client.request('scopes_getProjectActivity', { project, ...page(p) }),
|
|
21
|
+
},
|
|
22
|
+
tasks: {
|
|
23
|
+
list: (filter = {}) => client.request('scopes_listTasks', filter),
|
|
24
|
+
get: (task) => client.request('scopes_getTask', { task }),
|
|
25
|
+
update: (task, version, body) => client.request('scopes_updateTask', { task, body }, { headers: ifMatchHeaders('scopes_updateTask', version) }),
|
|
26
|
+
archive: (task, version) => client.request('scopes_archiveTask', { task }, { headers: ifMatchHeaders('scopes_archiveTask', version) }),
|
|
27
|
+
assign: (task, version, body) => client.request('scopes_assignTask', { task, body }, { headers: ifMatchHeaders('scopes_assignTask', version) }),
|
|
28
|
+
unassign: (task, version) => client.request('scopes_unassignTask', { task }, { headers: ifMatchHeaders('scopes_unassignTask', version) }),
|
|
29
|
+
assignments: (task) => client.request('scopes_listAssignments', { task }),
|
|
30
|
+
dependencies: (task) => client.request('scopes_listDependencies', { task }),
|
|
31
|
+
addDependency: (task, body) => client.request('scopes_addDependency', { task, body }),
|
|
32
|
+
comments: (task) => client.request('scopes_listComments', { task }),
|
|
33
|
+
addComment: (task, body) => client.request('scopes_addComment', { task, body }),
|
|
34
|
+
activity: (task, p = {}) => client.request('scopes_getTaskActivity', { task, ...page(p) }),
|
|
35
|
+
},
|
|
36
|
+
dependencies: {
|
|
37
|
+
remove: (dependency) => client.request('scopes_removeDependency', { dependency }),
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
}
|
package/dist/taps.d.ts
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { GenesisClient } from './client.js';
|
|
2
|
+
import type { OperationInput as In } from './types.js';
|
|
3
|
+
/** Taps: ask a human to approve, choose or answer, and read or manage what follows.
|
|
4
|
+
* An org API key may raise, read, cancel and manage taps; responding and agent lineage
|
|
5
|
+
* requests need a `genesis login` human session. GET needs taps:read, the rest taps:write.
|
|
6
|
+
* A repeated create with the same body `idempotency_key` returns the original tap. */
|
|
7
|
+
export declare function tapsModule(client: GenesisClient): {
|
|
8
|
+
create: (body: In<"taps_createTap">["body"]) => Promise<{
|
|
9
|
+
tap: import("./index.js").components["schemas"]["Taps.Tap"];
|
|
10
|
+
}>;
|
|
11
|
+
list: (q?: In<"taps_listTaps">) => Promise<{
|
|
12
|
+
taps: import("./index.js").components["schemas"]["Taps.Tap"][];
|
|
13
|
+
total: number;
|
|
14
|
+
limit: number;
|
|
15
|
+
offset: number;
|
|
16
|
+
}>;
|
|
17
|
+
get: (id: string) => Promise<{
|
|
18
|
+
tap: import("./index.js").components["schemas"]["Taps.Tap"];
|
|
19
|
+
}>;
|
|
20
|
+
cancel: (id: string) => Promise<void>;
|
|
21
|
+
/** Human only: an org API key gets 403 human_required. */
|
|
22
|
+
respond: (id: string, body: In<"taps_respondToTap">["body"]) => Promise<{
|
|
23
|
+
response: import("./index.js").components["schemas"]["Taps.TapResponse"];
|
|
24
|
+
tap: import("./index.js").components["schemas"]["Taps.Tap"];
|
|
25
|
+
}>;
|
|
26
|
+
events: (id: string) => Promise<{
|
|
27
|
+
events: import("./index.js").components["schemas"]["Taps.TapEvent"][];
|
|
28
|
+
}>;
|
|
29
|
+
routingRules: {
|
|
30
|
+
list: () => Promise<{
|
|
31
|
+
rules: import("./index.js").components["schemas"]["Taps.RoutingRule"][];
|
|
32
|
+
}>;
|
|
33
|
+
create: (body: In<"taps_createRoutingRule">["body"]) => Promise<{
|
|
34
|
+
rule: import("./index.js").components["schemas"]["Taps.RoutingRule"];
|
|
35
|
+
}>;
|
|
36
|
+
setEnabled: (id: string, enabled: boolean) => Promise<{
|
|
37
|
+
rule: import("./index.js").components["schemas"]["Taps.RoutingRule"];
|
|
38
|
+
}>;
|
|
39
|
+
delete: (id: string) => Promise<void>;
|
|
40
|
+
};
|
|
41
|
+
escalationPolicies: {
|
|
42
|
+
list: () => Promise<{
|
|
43
|
+
policies: import("./index.js").components["schemas"]["Taps.EscalationPolicyRecord"][];
|
|
44
|
+
}>;
|
|
45
|
+
create: (body: In<"taps_createEscalationPolicy">["body"]) => Promise<{
|
|
46
|
+
policy: import("./index.js").components["schemas"]["Taps.EscalationPolicyRecord"];
|
|
47
|
+
}>;
|
|
48
|
+
update: (id: string, body: In<"taps_updateEscalationPolicy">["body"]) => Promise<{
|
|
49
|
+
policy: import("./index.js").components["schemas"]["Taps.EscalationPolicyRecord"];
|
|
50
|
+
}>;
|
|
51
|
+
delete: (id: string) => Promise<void>;
|
|
52
|
+
};
|
|
53
|
+
settings: {
|
|
54
|
+
get: () => Promise<{
|
|
55
|
+
settings: import("./index.js").components["schemas"]["Taps.Settings"];
|
|
56
|
+
}>;
|
|
57
|
+
update: (body: In<"taps_updateSettings">["body"]) => Promise<{
|
|
58
|
+
settings: import("./index.js").components["schemas"]["Taps.Settings"];
|
|
59
|
+
}>;
|
|
60
|
+
};
|
|
61
|
+
garden: {
|
|
62
|
+
get: () => Promise<{
|
|
63
|
+
connected: boolean;
|
|
64
|
+
mode: string;
|
|
65
|
+
requires_separate_login: boolean;
|
|
66
|
+
organization_id: string;
|
|
67
|
+
principal_id: string;
|
|
68
|
+
principal_kind: string;
|
|
69
|
+
platform_id: string;
|
|
70
|
+
taps_base_url: string;
|
|
71
|
+
hitl_available: boolean;
|
|
72
|
+
agent_lineage_available: boolean;
|
|
73
|
+
billing_metered_by_garden: boolean;
|
|
74
|
+
keystone_authority: boolean;
|
|
75
|
+
sigil_lineage_required_for_agents: boolean;
|
|
76
|
+
hitl_surfaces: string[];
|
|
77
|
+
next_steps: string[];
|
|
78
|
+
}>;
|
|
79
|
+
enable: () => Promise<{
|
|
80
|
+
connected: boolean;
|
|
81
|
+
mode: string;
|
|
82
|
+
requires_separate_login: boolean;
|
|
83
|
+
organization_id: string;
|
|
84
|
+
principal_id: string;
|
|
85
|
+
principal_kind: string;
|
|
86
|
+
platform_id: string;
|
|
87
|
+
taps_base_url: string;
|
|
88
|
+
hitl_available: boolean;
|
|
89
|
+
agent_lineage_available: boolean;
|
|
90
|
+
billing_metered_by_garden: boolean;
|
|
91
|
+
keystone_authority: boolean;
|
|
92
|
+
sigil_lineage_required_for_agents: boolean;
|
|
93
|
+
hitl_surfaces: string[];
|
|
94
|
+
next_steps: string[];
|
|
95
|
+
}>;
|
|
96
|
+
};
|
|
97
|
+
lineage: {
|
|
98
|
+
/** Human only. */
|
|
99
|
+
challenge: (body: In<"taps_createAgentLineageChallenge">["body"]) => Promise<{
|
|
100
|
+
challenge: import("./index.js").components["schemas"]["Taps.AgentChallenge"];
|
|
101
|
+
}>;
|
|
102
|
+
requests: {
|
|
103
|
+
/** Human only. */
|
|
104
|
+
create: (body: In<"taps_createAgentLineageRequest">["body"]) => Promise<{
|
|
105
|
+
request: import("./index.js").components["schemas"]["Taps.AgentLineageRequest"];
|
|
106
|
+
tap: import("./index.js").components["schemas"]["Taps.Tap"];
|
|
107
|
+
}>;
|
|
108
|
+
list: (q?: In<"taps_listAgentLineageRequests">) => Promise<{
|
|
109
|
+
requests: import("./index.js").components["schemas"]["Taps.AgentLineageRequest"][];
|
|
110
|
+
limit: number;
|
|
111
|
+
offset: number;
|
|
112
|
+
}>;
|
|
113
|
+
get: (id: string) => Promise<{
|
|
114
|
+
request: import("./index.js").components["schemas"]["Taps.AgentLineageRequest"];
|
|
115
|
+
}>;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
};
|
package/dist/taps.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Taps: ask a human to approve, choose or answer, and read or manage what follows.
|
|
2
|
+
* An org API key may raise, read, cancel and manage taps; responding and agent lineage
|
|
3
|
+
* requests need a `genesis login` human session. GET needs taps:read, the rest taps:write.
|
|
4
|
+
* A repeated create with the same body `idempotency_key` returns the original tap. */
|
|
5
|
+
export function tapsModule(client) {
|
|
6
|
+
return {
|
|
7
|
+
create: (body) => client.request('taps_createTap', { body }),
|
|
8
|
+
list: (q = {}) => client.request('taps_listTaps', q),
|
|
9
|
+
get: (id) => client.request('taps_getTap', { id }),
|
|
10
|
+
cancel: (id) => client.request('taps_cancelTap', { id }),
|
|
11
|
+
/** Human only: an org API key gets 403 human_required. */
|
|
12
|
+
respond: (id, body) => client.request('taps_respondToTap', { id, body }),
|
|
13
|
+
events: (id) => client.request('taps_listTapEvents', { id }),
|
|
14
|
+
routingRules: {
|
|
15
|
+
list: () => client.request('taps_listRoutingRules'),
|
|
16
|
+
create: (body) => client.request('taps_createRoutingRule', { body }),
|
|
17
|
+
setEnabled: (id, enabled) => client.request('taps_updateRoutingRule', { id, body: { enabled } }),
|
|
18
|
+
delete: (id) => client.request('taps_deleteRoutingRule', { id }),
|
|
19
|
+
},
|
|
20
|
+
escalationPolicies: {
|
|
21
|
+
list: () => client.request('taps_listEscalationPolicies'),
|
|
22
|
+
create: (body) => client.request('taps_createEscalationPolicy', { body }),
|
|
23
|
+
update: (id, body) => client.request('taps_updateEscalationPolicy', { id, body }),
|
|
24
|
+
delete: (id) => client.request('taps_deleteEscalationPolicy', { id }),
|
|
25
|
+
},
|
|
26
|
+
settings: {
|
|
27
|
+
get: () => client.request('taps_getSettings'),
|
|
28
|
+
update: (body) => client.request('taps_updateSettings', { body }),
|
|
29
|
+
},
|
|
30
|
+
garden: {
|
|
31
|
+
get: () => client.request('taps_getGardenIntegration'),
|
|
32
|
+
enable: () => client.request('taps_enableGardenIntegration', { body: {} }),
|
|
33
|
+
},
|
|
34
|
+
lineage: {
|
|
35
|
+
/** Human only. */
|
|
36
|
+
challenge: (body) => client.request('taps_createAgentLineageChallenge', { body }),
|
|
37
|
+
requests: {
|
|
38
|
+
/** Human only. */
|
|
39
|
+
create: (body) => client.request('taps_createAgentLineageRequest', { body }),
|
|
40
|
+
list: (q = {}) => client.request('taps_listAgentLineageRequests', q),
|
|
41
|
+
get: (id) => client.request('taps_getAgentLineageRequest', { id }),
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|