@stigmer/protos 1.0.3 → 2.0.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.
Files changed (135) hide show
  1. package/ai/stigmer/activity/v1/io_pb.d.ts +109 -0
  2. package/ai/stigmer/activity/v1/io_pb.js +25 -0
  3. package/ai/stigmer/activity/v1/io_pb.js.map +1 -0
  4. package/ai/stigmer/activity/v1/query_connect.d.ts +39 -0
  5. package/ai/stigmer/activity/v1/query_connect.js +46 -0
  6. package/ai/stigmer/activity/v1/query_connect.js.map +1 -0
  7. package/ai/stigmer/activity/v1/query_pb.d.ts +41 -0
  8. package/ai/stigmer/activity/v1/query_pb.js +28 -0
  9. package/ai/stigmer/activity/v1/query_pb.js.map +1 -0
  10. package/ai/stigmer/agentic/agent/v1/version_pb.d.ts +214 -0
  11. package/ai/stigmer/agentic/agent/v1/version_pb.js +43 -0
  12. package/ai/stigmer/agentic/agent/v1/version_pb.js.map +1 -0
  13. package/ai/stigmer/agentic/agentexecution/v1/api_pb.d.ts +20 -15
  14. package/ai/stigmer/agentic/agentexecution/v1/api_pb.js +2 -1
  15. package/ai/stigmer/agentic/agentexecution/v1/api_pb.js.map +1 -1
  16. package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +14 -0
  17. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js +1 -1
  18. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js.map +1 -1
  19. package/ai/stigmer/agentic/agentexecution/v1/spec_pb.d.ts +50 -9
  20. package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js +2 -1
  21. package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js.map +1 -1
  22. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.d.ts +26 -7
  23. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js +4 -4
  24. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js.map +1 -1
  25. package/ai/stigmer/agentic/agentinstance/v1/command_connect.d.ts +27 -0
  26. package/ai/stigmer/agentic/agentinstance/v1/command_connect.js +28 -0
  27. package/ai/stigmer/agentic/agentinstance/v1/command_connect.js.map +1 -1
  28. package/ai/stigmer/agentic/agentinstance/v1/command_pb.d.ts +27 -0
  29. package/ai/stigmer/agentic/agentinstance/v1/command_pb.js +2 -1
  30. package/ai/stigmer/agentic/agentinstance/v1/command_pb.js.map +1 -1
  31. package/ai/stigmer/agentic/executioncontext/v1/spec_pb.d.ts +3 -1
  32. package/ai/stigmer/agentic/executioncontext/v1/spec_pb.js +1 -1
  33. package/ai/stigmer/agentic/executioncontext/v1/spec_pb.js.map +1 -1
  34. package/ai/stigmer/agentic/session/v1/enum_pb.d.ts +50 -0
  35. package/ai/stigmer/agentic/session/v1/enum_pb.js +53 -2
  36. package/ai/stigmer/agentic/session/v1/enum_pb.js.map +1 -1
  37. package/ai/stigmer/agentic/session/v1/spec_pb.d.ts +37 -35
  38. package/ai/stigmer/agentic/session/v1/spec_pb.js +1 -1
  39. package/ai/stigmer/agentic/session/v1/spec_pb.js.map +1 -1
  40. package/ai/stigmer/agentic/workflow/v1/command_connect.d.ts +44 -0
  41. package/ai/stigmer/agentic/workflow/v1/command_connect.js +46 -0
  42. package/ai/stigmer/agentic/workflow/v1/command_connect.js.map +1 -1
  43. package/ai/stigmer/agentic/workflow/v1/command_pb.d.ts +44 -0
  44. package/ai/stigmer/agentic/workflow/v1/command_pb.js +3 -1
  45. package/ai/stigmer/agentic/workflow/v1/command_pb.js.map +1 -1
  46. package/ai/stigmer/agentic/workflow/v1/query_connect.d.ts +46 -2
  47. package/ai/stigmer/agentic/workflow/v1/query_connect.js +47 -2
  48. package/ai/stigmer/agentic/workflow/v1/query_connect.js.map +1 -1
  49. package/ai/stigmer/agentic/workflow/v1/query_pb.d.ts +45 -2
  50. package/ai/stigmer/agentic/workflow/v1/query_pb.js +2 -1
  51. package/ai/stigmer/agentic/workflow/v1/query_pb.js.map +1 -1
  52. package/ai/stigmer/agentic/workflow/v1/status_pb.d.ts +22 -0
  53. package/ai/stigmer/agentic/workflow/v1/status_pb.js +1 -1
  54. package/ai/stigmer/agentic/workflow/v1/status_pb.js.map +1 -1
  55. package/ai/stigmer/agentic/workflow/v1/version_pb.d.ts +281 -0
  56. package/ai/stigmer/agentic/workflow/v1/version_pb.js +42 -0
  57. package/ai/stigmer/agentic/workflow/v1/version_pb.js.map +1 -0
  58. package/ai/stigmer/agentic/workflowexecution/v1/api_pb.d.ts +32 -4
  59. package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js +1 -1
  60. package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js.map +1 -1
  61. package/ai/stigmer/agentic/workflowexecution/v1/command_connect.d.ts +44 -25
  62. package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js +44 -25
  63. package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js.map +1 -1
  64. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.d.ts +44 -25
  65. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js.map +1 -1
  66. package/ai/stigmer/agentic/workflowexecution/v1/enum_pb.d.ts +2 -0
  67. package/ai/stigmer/agentic/workflowexecution/v1/enum_pb.js +2 -0
  68. package/ai/stigmer/agentic/workflowexecution/v1/enum_pb.js.map +1 -1
  69. package/ai/stigmer/agentic/workflowexecution/v1/event_pb.d.ts +83 -5
  70. package/ai/stigmer/agentic/workflowexecution/v1/event_pb.js +13 -8
  71. package/ai/stigmer/agentic/workflowexecution/v1/event_pb.js.map +1 -1
  72. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.d.ts +234 -4
  73. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js +61 -10
  74. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js.map +1 -1
  75. package/ai/stigmer/agentic/workflowexecution/v1/spec_pb.d.ts +21 -0
  76. package/ai/stigmer/agentic/workflowexecution/v1/spec_pb.js +2 -1
  77. package/ai/stigmer/agentic/workflowexecution/v1/spec_pb.js.map +1 -1
  78. package/ai/stigmer/agentic/workflowinstance/v1/command_connect.d.ts +28 -0
  79. package/ai/stigmer/agentic/workflowinstance/v1/command_connect.js +29 -0
  80. package/ai/stigmer/agentic/workflowinstance/v1/command_connect.js.map +1 -1
  81. package/ai/stigmer/agentic/workflowinstance/v1/command_pb.d.ts +28 -0
  82. package/ai/stigmer/agentic/workflowinstance/v1/command_pb.js +2 -1
  83. package/ai/stigmer/agentic/workflowinstance/v1/command_pb.js.map +1 -1
  84. package/ai/stigmer/billing/v1/enum_pb.d.ts +35 -0
  85. package/ai/stigmer/billing/v1/enum_pb.js +43 -7
  86. package/ai/stigmer/billing/v1/enum_pb.js.map +1 -1
  87. package/ai/stigmer/billing/v1/io_pb.d.ts +13 -1
  88. package/ai/stigmer/billing/v1/io_pb.js +1 -1
  89. package/ai/stigmer/billing/v1/io_pb.js.map +1 -1
  90. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +0 -6
  91. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +1 -7
  92. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
  93. package/ai/stigmer/commons/apiresource/enum_pb.d.ts +21 -3
  94. package/ai/stigmer/commons/apiresource/enum_pb.js +21 -3
  95. package/ai/stigmer/commons/apiresource/enum_pb.js.map +1 -1
  96. package/ai/stigmer/commons/apiresource/io_pb.d.ts +17 -6
  97. package/ai/stigmer/commons/apiresource/io_pb.js +1 -1
  98. package/ai/stigmer/commons/apiresource/io_pb.js.map +1 -1
  99. package/ai/stigmer/commons/apiresource/metadata_pb.d.ts +24 -0
  100. package/ai/stigmer/commons/apiresource/metadata_pb.js +1 -1
  101. package/ai/stigmer/commons/apiresource/metadata_pb.js.map +1 -1
  102. package/ai/stigmer/iam/invitation/v1/query_connect.d.ts +2 -2
  103. package/ai/stigmer/iam/invitation/v1/query_connect.js +2 -2
  104. package/ai/stigmer/iam/invitation/v1/query_pb.d.ts +2 -2
  105. package/ai/stigmer/iam/invitation/v1/query_pb.js +1 -1
  106. package/ai/stigmer/tenancy/organization/v1/api_pb.js +1 -1
  107. package/ai/stigmer/tenancy/organization/v1/api_pb.js.map +1 -1
  108. package/buf/validate/validate_pb.d.ts +217 -156
  109. package/buf/validate/validate_pb.js +3 -3
  110. package/buf/validate/validate_pb.js.map +1 -1
  111. package/package.json +3 -2
  112. package/ai/stigmer/agentic/runner/v1/api_pb.d.ts +0 -247
  113. package/ai/stigmer/agentic/runner/v1/api_pb.js +0 -30
  114. package/ai/stigmer/agentic/runner/v1/api_pb.js.map +0 -1
  115. package/ai/stigmer/agentic/runner/v1/command_connect.d.ts +0 -198
  116. package/ai/stigmer/agentic/runner/v1/command_connect.js +0 -206
  117. package/ai/stigmer/agentic/runner/v1/command_connect.js.map +0 -1
  118. package/ai/stigmer/agentic/runner/v1/command_pb.d.ts +0 -193
  119. package/ai/stigmer/agentic/runner/v1/command_pb.js +0 -34
  120. package/ai/stigmer/agentic/runner/v1/command_pb.js.map +0 -1
  121. package/ai/stigmer/agentic/runner/v1/enum_pb.d.ts +0 -83
  122. package/ai/stigmer/agentic/runner/v1/enum_pb.js +0 -88
  123. package/ai/stigmer/agentic/runner/v1/enum_pb.js.map +0 -1
  124. package/ai/stigmer/agentic/runner/v1/io_pb.d.ts +0 -640
  125. package/ai/stigmer/agentic/runner/v1/io_pb.js +0 -114
  126. package/ai/stigmer/agentic/runner/v1/io_pb.js.map +0 -1
  127. package/ai/stigmer/agentic/runner/v1/query_connect.d.ts +0 -64
  128. package/ai/stigmer/agentic/runner/v1/query_connect.js +0 -73
  129. package/ai/stigmer/agentic/runner/v1/query_connect.js.map +0 -1
  130. package/ai/stigmer/agentic/runner/v1/query_pb.d.ts +0 -66
  131. package/ai/stigmer/agentic/runner/v1/query_pb.js +0 -24
  132. package/ai/stigmer/agentic/runner/v1/query_pb.js.map +0 -1
  133. package/ai/stigmer/agentic/runner/v1/spec_pb.d.ts +0 -36
  134. package/ai/stigmer/agentic/runner/v1/spec_pb.js +0 -14
  135. package/ai/stigmer/agentic/runner/v1/spec_pb.js.map +0 -1
@@ -1,247 +0,0 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
- import type { RunnerPhase } from "./enum_pb.js";
3
- import type { RunnerSpec } from "./spec_pb.js";
4
- import type { ApiResourceMetadata } from "../../../commons/apiresource/metadata_pb.js";
5
- import type { ApiResourceAudit } from "../../../commons/apiresource/status_pb.js";
6
- import type { Timestamp } from "@bufbuild/protobuf/wkt";
7
- import type { Message } from "@bufbuild/protobuf";
8
- /**
9
- * Describes the file ai/stigmer/agentic/runner/v1/api.proto.
10
- */
11
- export declare const file_ai_stigmer_agentic_runner_v1_api: GenFile;
12
- /**
13
- * Runner represents a process that executes work on the Stigmer platform.
14
- *
15
- * Runners are the computational backbone of the platform. Every execution
16
- * runs on a runner — whether auto-created by the platform for a cloud
17
- * execution or started by a user on their own machine via CLI or desktop app.
18
- *
19
- * Runner follows the Kubernetes Node pattern:
20
- * - **Thin spec**: the user declares intent (a name, a description). That's it.
21
- * - **Rich status**: the runner process self-reports everything via the
22
- * connect stream — phase, capacity, machine info, task queue.
23
- * - **Identity persists across restarts**: a runner that stops and restarts
24
- * reconnects to the same resource. The CLI stores the runner ID locally and
25
- * calls apply to reactivate the same identity, same queue.
26
- *
27
- * Two creation patterns:
28
- * - **User-created (persistent)**: user runs `stigmer runner start`, runner
29
- * appears in the session composer, user selects it for their sessions.
30
- * - **System-managed (ephemeral)**: platform auto-creates a runner for a cloud
31
- * execution, labels it stigmer.ai/system-managed: "true", tears it down when
32
- * the execution completes. Hidden from the session composer.
33
- *
34
- * Sessions bind to a runner via SessionSpec.runner_id. Executions record
35
- * which runner handled them via AgentExecutionStatus.runner_id.
36
- *
37
- * @generated from message ai.stigmer.agentic.runner.v1.Runner
38
- */
39
- export type Runner = Message<"ai.stigmer.agentic.runner.v1.Runner"> & {
40
- /**
41
- * API version for this resource type.
42
- *
43
- * @generated from field: string api_version = 1;
44
- */
45
- apiVersion: string;
46
- /**
47
- * Resource kind identifier.
48
- *
49
- * @generated from field: string kind = 2;
50
- */
51
- kind: string;
52
- /**
53
- * Standard resource metadata including name, organization, and labels.
54
- *
55
- * Notable labels:
56
- * - stigmer.ai/system-managed: "true" — set on ephemeral runners created by
57
- * the platform for cloud executions. These are hidden from the session
58
- * composer and garbage-collected after the execution completes.
59
- * - stigmer.ai/sandbox-id: "<id>" — set by the launcher when a cloud sandbox
60
- * is provisioned for this runner. Used by the deprovisioning step for
61
- * cleanup. Empty for local runners.
62
- *
63
- * @generated from field: ai.stigmer.commons.apiresource.ApiResourceMetadata metadata = 3;
64
- */
65
- metadata?: ApiResourceMetadata;
66
- /**
67
- * User-declared desired state. Intentionally thin — see RunnerSpec.
68
- *
69
- * @generated from field: ai.stigmer.agentic.runner.v1.RunnerSpec spec = 4;
70
- */
71
- spec?: RunnerSpec;
72
- /**
73
- * System-managed operational state reported by the runner process.
74
- *
75
- * @generated from field: ai.stigmer.agentic.runner.v1.RunnerStatus status = 5;
76
- */
77
- status?: RunnerStatus;
78
- };
79
- /**
80
- * Describes the message ai.stigmer.agentic.runner.v1.Runner.
81
- * Use `create(RunnerSchema)` to create a new message.
82
- */
83
- export declare const RunnerSchema: GenMessage<Runner>;
84
- /**
85
- * RunnerStatus contains all operational state for a runner.
86
- *
87
- * Every field here is either system-managed (phase, task_queue) or
88
- * runner-reported via heartbeat (last_heartbeat_at, current_executions,
89
- * connection_info). None of it is user-declared — that separation is the
90
- * spec/status invariant.
91
- *
92
- * @generated from message ai.stigmer.agentic.runner.v1.RunnerStatus
93
- */
94
- export type RunnerStatus = Message<"ai.stigmer.agentic.runner.v1.RunnerStatus"> & {
95
- /**
96
- * Standard audit information (created_at, updated_at, created_by, etc.)
97
- *
98
- * @generated from field: ai.stigmer.commons.apiresource.ApiResourceAudit audit = 99;
99
- */
100
- audit?: ApiResourceAudit;
101
- /**
102
- * Current operational phase of the runner process.
103
- *
104
- * @generated from field: ai.stigmer.agentic.runner.v1.RunnerPhase phase = 1;
105
- */
106
- phase: RunnerPhase;
107
- /**
108
- * Temporal task queue this runner polls for work.
109
- * Format: "runner:{runner-id}"
110
- * Set by the server when the runner resource is created; immutable after.
111
- * The execution workflow reads this field to route activities to the runner.
112
- *
113
- * @generated from field: string task_queue = 2;
114
- */
115
- taskQueue: string;
116
- /**
117
- * Timestamp of the last successful heartbeat from the runner process.
118
- * Used by the server to detect stale runners: if now - last_heartbeat_at
119
- * exceeds the heartbeat timeout (default 90s), the phase transitions to
120
- * STOPPED.
121
- *
122
- * @generated from field: google.protobuf.Timestamp last_heartbeat_at = 3;
123
- */
124
- lastHeartbeatAt?: Timestamp;
125
- /**
126
- * Timestamp when this runner first transitioned to READY.
127
- *
128
- * @generated from field: google.protobuf.Timestamp started_at = 4;
129
- */
130
- startedAt?: Timestamp;
131
- /**
132
- * Timestamp when this runner last transitioned to STOPPED or FAILED.
133
- * Empty while the runner is active (PENDING, READY, or BUSY).
134
- *
135
- * @generated from field: google.protobuf.Timestamp stopped_at = 5;
136
- */
137
- stoppedAt?: Timestamp;
138
- /**
139
- * Number of executions currently in progress on this runner.
140
- * Reported by the runner on each heartbeat. Used by the dispatch logic
141
- * to determine runner availability and load.
142
- *
143
- * @generated from field: int32 current_executions = 6;
144
- */
145
- currentExecutions: number;
146
- /**
147
- * Self-reported information about the machine running this runner.
148
- * Populated by the runner process on each heartbeat.
149
- *
150
- * @generated from field: ai.stigmer.agentic.runner.v1.RunnerConnectionInfo connection_info = 8;
151
- */
152
- connectionInfo?: RunnerConnectionInfo;
153
- /**
154
- * Per-process execution counts in a multi-process sandbox.
155
- *
156
- * In cloud mode, a single Runner resource hosts three co-located processes
157
- * (agent, cursor, workflow), each reporting its own execution count via
158
- * heartbeats with distinct process_type values. This map tracks the last
159
- * reported count for each process type.
160
- *
161
- * The aggregate current_executions field (above) is derived from the sum
162
- * of all values in this map. The runner is considered idle when every
163
- * value is zero.
164
- *
165
- * Keys: "agent", "cursor", "workflow".
166
- * Empty for single-process local runners (backward compatible).
167
- *
168
- * @generated from field: map<string, int32> process_executions = 9;
169
- */
170
- processExecutions: {
171
- [key: string]: number;
172
- };
173
- /**
174
- * Timestamp when all processes in this runner last became idle
175
- * (every value in process_executions is zero and no streams are active).
176
- *
177
- * Set by the server when the aggregate transitions from busy to idle.
178
- * Cleared when any process reports activity. Used by server-side idle
179
- * detection to trigger deprovisioning after a configurable timeout.
180
- *
181
- * Empty while any process has active executions.
182
- *
183
- * @generated from field: google.protobuf.Timestamp idle_since = 10;
184
- */
185
- idleSince?: Timestamp;
186
- };
187
- /**
188
- * Describes the message ai.stigmer.agentic.runner.v1.RunnerStatus.
189
- * Use `create(RunnerStatusSchema)` to create a new message.
190
- */
191
- export declare const RunnerStatusSchema: GenMessage<RunnerStatus>;
192
- /**
193
- * RunnerConnectionInfo contains self-reported details about the runner's
194
- * host environment. Populated by the runner process on each heartbeat
195
- * message sent over the connect stream.
196
- *
197
- * This information is used for:
198
- * - UI display: "Alice's MacBook Pro (darwin/arm64)"
199
- * - Debugging: matching runner behavior to specific OS/arch combinations
200
- * - Version tracking: ensuring runners stay up-to-date
201
- *
202
- * @generated from message ai.stigmer.agentic.runner.v1.RunnerConnectionInfo
203
- */
204
- export type RunnerConnectionInfo = Message<"ai.stigmer.agentic.runner.v1.RunnerConnectionInfo"> & {
205
- /**
206
- * Hostname or user-friendly machine name.
207
- * Example: "Alice's MacBook Pro", "ci-runner-3.internal"
208
- *
209
- * @generated from field: string hostname = 1;
210
- */
211
- hostname: string;
212
- /**
213
- * Operating system reported by the runner process.
214
- * Example: "darwin", "linux", "windows"
215
- *
216
- * @generated from field: string os = 2;
217
- */
218
- os: string;
219
- /**
220
- * CPU architecture reported by the runner process.
221
- * Example: "arm64", "amd64"
222
- *
223
- * @generated from field: string arch = 3;
224
- */
225
- arch: string;
226
- /**
227
- * Version of the runner software.
228
- * Example: "0.4.2"
229
- *
230
- * @generated from field: string runner_version = 4;
231
- */
232
- runnerVersion: string;
233
- /**
234
- * Stable machine identifier, generated once per Stigmer CLI installation
235
- * and persisted at ~/.stigmer/machine.json. Used for runner deduplication
236
- * across hostname changes. Format: "mach_" + 32 hex chars.
237
- * Example: "mach_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
238
- *
239
- * @generated from field: string machine_id = 5;
240
- */
241
- machineId: string;
242
- };
243
- /**
244
- * Describes the message ai.stigmer.agentic.runner.v1.RunnerConnectionInfo.
245
- * Use `create(RunnerConnectionInfoSchema)` to create a new message.
246
- */
247
- export declare const RunnerConnectionInfoSchema: GenMessage<RunnerConnectionInfo>;
@@ -1,30 +0,0 @@
1
- // @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
2
- // @generated from file ai/stigmer/agentic/runner/v1/api.proto (package ai.stigmer.agentic.runner.v1, syntax proto3)
3
- /* eslint-disable */
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
5
- import { file_ai_stigmer_agentic_runner_v1_enum } from "./enum_pb.js";
6
- import { file_ai_stigmer_agentic_runner_v1_spec } from "./spec_pb.js";
7
- import { file_ai_stigmer_commons_apiresource_metadata } from "../../../commons/apiresource/metadata_pb.js";
8
- import { file_ai_stigmer_commons_apiresource_status } from "../../../commons/apiresource/status_pb.js";
9
- import { file_buf_validate_validate } from "../../../../../buf/validate/validate_pb.js";
10
- import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
11
- /**
12
- * Describes the file ai/stigmer/agentic/runner/v1/api.proto.
13
- */
14
- export const file_ai_stigmer_agentic_runner_v1_api = /*@__PURE__*/ fileDesc("CiZhaS9zdGlnbWVyL2FnZW50aWMvcnVubmVyL3YxL2FwaS5wcm90bxIcYWkuc3RpZ21lci5hZ2VudGljLnJ1bm5lci52MSKbAgoGUnVubmVyEjEKC2FwaV92ZXJzaW9uGAEgASgJQhy6SBlyFwoVYWdlbnRpYy5zdGlnbWVyLmFpL3YxEhsKBGtpbmQYAiABKAlCDbpICnIICgZSdW5uZXISTQoIbWV0YWRhdGEYAyABKAsyMy5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VNZXRhZGF0YUIGukgDyAEBEjYKBHNwZWMYBCABKAsyKC5haS5zdGlnbWVyLmFnZW50aWMucnVubmVyLnYxLlJ1bm5lclNwZWMSOgoGc3RhdHVzGAUgASgLMiouYWkuc3RpZ21lci5hZ2VudGljLnJ1bm5lci52MS5SdW5uZXJTdGF0dXMi7AQKDFJ1bm5lclN0YXR1cxI/CgVhdWRpdBhjIAEoCzIwLmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZUF1ZGl0EjgKBXBoYXNlGAEgASgOMikuYWkuc3RpZ21lci5hZ2VudGljLnJ1bm5lci52MS5SdW5uZXJQaGFzZRISCgp0YXNrX3F1ZXVlGAIgASgJEjUKEWxhc3RfaGVhcnRiZWF0X2F0GAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgpzdGFydGVkX2F0GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIuCgpzdG9wcGVkX2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIaChJjdXJyZW50X2V4ZWN1dGlvbnMYBiABKAUSSwoPY29ubmVjdGlvbl9pbmZvGAggASgLMjIuYWkuc3RpZ21lci5hZ2VudGljLnJ1bm5lci52MS5SdW5uZXJDb25uZWN0aW9uSW5mbxJdChJwcm9jZXNzX2V4ZWN1dGlvbnMYCSADKAsyQS5haS5zdGlnbWVyLmFnZW50aWMucnVubmVyLnYxLlJ1bm5lclN0YXR1cy5Qcm9jZXNzRXhlY3V0aW9uc0VudHJ5Ei4KCmlkbGVfc2luY2UYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wGjgKFlByb2Nlc3NFeGVjdXRpb25zRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgFOgI4AUoECAcQCCJuChRSdW5uZXJDb25uZWN0aW9uSW5mbxIQCghob3N0bmFtZRgBIAEoCRIKCgJvcxgCIAEoCRIMCgRhcmNoGAMgASgJEhYKDnJ1bm5lcl92ZXJzaW9uGAQgASgJEhIKCm1hY2hpbmVfaWQYBSABKAliBnByb3RvMw", [file_ai_stigmer_agentic_runner_v1_enum, file_ai_stigmer_agentic_runner_v1_spec, file_ai_stigmer_commons_apiresource_metadata, file_ai_stigmer_commons_apiresource_status, file_buf_validate_validate, file_google_protobuf_timestamp]);
15
- /**
16
- * Describes the message ai.stigmer.agentic.runner.v1.Runner.
17
- * Use `create(RunnerSchema)` to create a new message.
18
- */
19
- export const RunnerSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_runner_v1_api, 0);
20
- /**
21
- * Describes the message ai.stigmer.agentic.runner.v1.RunnerStatus.
22
- * Use `create(RunnerStatusSchema)` to create a new message.
23
- */
24
- export const RunnerStatusSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_runner_v1_api, 1);
25
- /**
26
- * Describes the message ai.stigmer.agentic.runner.v1.RunnerConnectionInfo.
27
- * Use `create(RunnerConnectionInfoSchema)` to create a new message.
28
- */
29
- export const RunnerConnectionInfoSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_runner_v1_api, 2);
30
- //# sourceMappingURL=api_pb.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/runner/v1/api_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,oHAAoH;AACpH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,sCAAsC,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO,EAAE,sCAAsC,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO,EAAE,4CAA4C,EAAE,MAAM,6CAA6C,CAAC;AAE3G,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AACvG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAExF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wBAAwB,CAAC;AAGxE;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAY,aAAa,CACzE,QAAQ,CAAC,47CAA47C,EAAE,CAAC,sCAAsC,EAAE,sCAAsC,EAAE,4CAA4C,EAAE,0CAA0C,EAAE,0BAA0B,EAAE,8BAA8B,CAAC,CAAC,CAAC;AA0EjrD;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAuB,aAAa,CAC3D,WAAW,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAC;AAiHxD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAC;AA0DxD;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAqC,aAAa,CACvF,WAAW,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAC"}
@@ -1,198 +0,0 @@
1
- /**
2
- * RunnerCommandController handles write operations and the bidirectional
3
- * command stream for runners.
4
- *
5
- * Two creation patterns are supported:
6
- *
7
- * 1. **CLI/Desktop (persistent runners)**: The client calls apply with a slug
8
- * stored in ~/.stigmer/runner.json. If the runner exists, it reactivates.
9
- * If not, it creates. This is the primary registration path.
10
- *
11
- * 2. **Platform (ephemeral runners)**: The execution workflow calls create
12
- * with metadata label stigmer.ai/system-managed: "true". The runner is
13
- * torn down via delete when the execution completes.
14
- *
15
- * After registration, the runner opens the connect bidi stream — its only
16
- * ongoing communication channel with the server. Heartbeats flow runner to
17
- * server; commands (e.g., ListDirectory) flow server to runner.
18
- *
19
- * @generated from service ai.stigmer.agentic.runner.v1.RunnerCommandController
20
- */
21
- export declare const RunnerCommandController: {
22
- readonly typeName: "ai.stigmer.agentic.runner.v1.RunnerCommandController";
23
- readonly methods: {
24
- /**
25
- * Create or update a runner.
26
- *
27
- * @internal
28
- * Primary registration path for CLI/Desktop runners. The handler determines
29
- * whether to create or update based on whether the resource already exists
30
- * (resolved by org + slug). Authorization is handled in the handler.
31
- *
32
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.apply
33
- */
34
- readonly apply: {
35
- readonly name: "apply";
36
- readonly I: any;
37
- readonly O: any;
38
- readonly kind: any;
39
- };
40
- /**
41
- * Create a new runner.
42
- *
43
- * @internal
44
- * Authorization: Caller must have can_create_runner permission in the
45
- * organization. The server generates the task queue name (runner:{id})
46
- * and sets the initial phase to PENDING.
47
- *
48
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.create
49
- */
50
- readonly create: {
51
- readonly name: "create";
52
- readonly I: any;
53
- readonly O: any;
54
- readonly kind: any;
55
- };
56
- /**
57
- * Update an existing runner.
58
- *
59
- * @internal
60
- * Used for updating spec fields (e.g., description). Status fields are
61
- * updated via the connect stream heartbeat, not via this RPC.
62
- *
63
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.update
64
- */
65
- readonly update: {
66
- readonly name: "update";
67
- readonly I: any;
68
- readonly O: any;
69
- readonly kind: any;
70
- };
71
- /**
72
- * Delete a runner.
73
- *
74
- * @internal
75
- * For persistent runners: removes the resource and its task queue.
76
- * For system-managed runners: called by the execution workflow during
77
- * cleanup after the execution completes.
78
- *
79
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.delete
80
- */
81
- readonly delete: {
82
- readonly name: "delete";
83
- readonly I: any;
84
- readonly O: any;
85
- readonly kind: any;
86
- };
87
- /**
88
- * Send a command to a connected runner and return the response synchronously.
89
- *
90
- * This is the API entry point for UI-triggered runner commands. The server
91
- * looks up the runner's active bidi stream, pushes the command, and blocks
92
- * until the runner responds or the timeout (10s) expires.
93
- *
94
- * Requires an active connect stream — returns UNAVAILABLE if the runner
95
- * is not connected. Returns FAILED_PRECONDITION if the runner's phase
96
- * prevents command delivery (STOPPED, PENDING, FAILED).
97
- *
98
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.sendCommand
99
- */
100
- readonly sendCommand: {
101
- readonly name: "sendCommand";
102
- readonly I: any;
103
- readonly O: any;
104
- readonly kind: any;
105
- };
106
- /**
107
- * Stop a running runner gracefully.
108
- *
109
- * If the runner is connected: sends a StopRunnerRequest via the bidi
110
- * stream, waits for acknowledgment, then returns the updated Runner.
111
- * The runner will send a STOPPED heartbeat and close its stream after
112
- * acknowledging — the phase transition completes asynchronously.
113
- *
114
- * If the runner is not connected (offline, already stopped): directly
115
- * transitions the runner to STOPPED and returns the updated resource.
116
- *
117
- * Idempotent: stopping an already-STOPPED or FAILED runner returns the
118
- * resource as-is without error.
119
- *
120
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.stop
121
- */
122
- readonly stop: {
123
- readonly name: "stop";
124
- readonly I: any;
125
- readonly O: any;
126
- readonly kind: any;
127
- };
128
- /**
129
- * Establish a bidirectional command stream between the runner and the server.
130
- *
131
- * This is the runner's primary ongoing communication channel. The runner
132
- * pushes heartbeats (liveness + state); the server pushes commands
133
- * (e.g., ListDirectory for workspace browsing). Both directions use the
134
- * same open connection.
135
- *
136
- * Stream lifecycle:
137
- * 1. Runner calls apply to register/reactivate, then opens this stream.
138
- * 2. First message MUST be a RunnerHeartbeat (authenticates via runner_id).
139
- * 3. Runner sends heartbeats every 30s.
140
- * 4. Server pushes RunnerCommandRequest when the UI triggers an operation.
141
- * 5. Runner handles commands locally and sends RunnerCommandResponse.
142
- * 6. On graceful shutdown: runner sends phase=STOPPED heartbeat, closes stream.
143
- * 7. On disconnect: server starts heartbeat timeout (90s) -> STOPPED.
144
- *
145
- * @internal
146
- * Authorization is handled via the first heartbeat message: the server
147
- * looks up the runner_id and verifies ownership. Skipped at the interceptor
148
- * level because the stream input is not a resource type.
149
- *
150
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.connect
151
- */
152
- readonly connect: {
153
- readonly name: "connect";
154
- readonly I: any;
155
- readonly O: any;
156
- readonly kind: any;
157
- };
158
- /**
159
- * Create a one-time launch token for the browser-to-CLI runner handshake.
160
- *
161
- * Called by the web console when the user clicks "Launch Local Runner."
162
- * The server mints a Stigmer JWT for the caller, wraps it in an opaque
163
- * token stored in Redis (60s TTL, single-use), and returns the token for
164
- * the browser to embed in a stigmer:// URL.
165
- *
166
- * The caller must have can_create_runner permission in the organization —
167
- * if you can create a runner, you can create a launch token.
168
- *
169
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.createLaunchToken
170
- */
171
- readonly createLaunchToken: {
172
- readonly name: "createLaunchToken";
173
- readonly I: any;
174
- readonly O: any;
175
- readonly kind: any;
176
- };
177
- /**
178
- * Exchange a one-time launch token for long-lived runner credentials.
179
- *
180
- * Called by the CLI (or Desktop app) after receiving a stigmer:// URL from
181
- * the OS. The token is consumed atomically — a second exchange attempt
182
- * returns NOT_FOUND.
183
- *
184
- * @internal
185
- * This RPC is public — no Bearer token is required. The one-time launch
186
- * token IS the proof of authorization: it was created by an authenticated
187
- * user with can_create_runner permission, and can only be used once.
188
- *
189
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.exchangeLaunchToken
190
- */
191
- readonly exchangeLaunchToken: {
192
- readonly name: "exchangeLaunchToken";
193
- readonly I: any;
194
- readonly O: any;
195
- readonly kind: any;
196
- };
197
- };
198
- };
@@ -1,206 +0,0 @@
1
- // @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=js"
2
- // @generated from file ai/stigmer/agentic/runner/v1/command.proto (package ai.stigmer.agentic.runner.v1, syntax proto3)
3
- /* eslint-disable */
4
- // @ts-nocheck
5
- import { Runner } from "./api_pbjs";
6
- import { MethodKind } from "@bufbuild/protobuf";
7
- import { CreateLaunchTokenRequest, CreateLaunchTokenResponse, ExchangeLaunchTokenRequest, ExchangeLaunchTokenResponse, RunnerCommandResponse, RunnerId, RunnerSendCommandInput, RunnerStopInput, RunnerStreamClientMessage, RunnerStreamServerMessage } from "./io_pbjs";
8
- /**
9
- * RunnerCommandController handles write operations and the bidirectional
10
- * command stream for runners.
11
- *
12
- * Two creation patterns are supported:
13
- *
14
- * 1. **CLI/Desktop (persistent runners)**: The client calls apply with a slug
15
- * stored in ~/.stigmer/runner.json. If the runner exists, it reactivates.
16
- * If not, it creates. This is the primary registration path.
17
- *
18
- * 2. **Platform (ephemeral runners)**: The execution workflow calls create
19
- * with metadata label stigmer.ai/system-managed: "true". The runner is
20
- * torn down via delete when the execution completes.
21
- *
22
- * After registration, the runner opens the connect bidi stream — its only
23
- * ongoing communication channel with the server. Heartbeats flow runner to
24
- * server; commands (e.g., ListDirectory) flow server to runner.
25
- *
26
- * @generated from service ai.stigmer.agentic.runner.v1.RunnerCommandController
27
- */
28
- export const RunnerCommandController = {
29
- typeName: "ai.stigmer.agentic.runner.v1.RunnerCommandController",
30
- methods: {
31
- /**
32
- * Create or update a runner.
33
- *
34
- * @internal
35
- * Primary registration path for CLI/Desktop runners. The handler determines
36
- * whether to create or update based on whether the resource already exists
37
- * (resolved by org + slug). Authorization is handled in the handler.
38
- *
39
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.apply
40
- */
41
- apply: {
42
- name: "apply",
43
- I: Runner,
44
- O: Runner,
45
- kind: MethodKind.Unary,
46
- },
47
- /**
48
- * Create a new runner.
49
- *
50
- * @internal
51
- * Authorization: Caller must have can_create_runner permission in the
52
- * organization. The server generates the task queue name (runner:{id})
53
- * and sets the initial phase to PENDING.
54
- *
55
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.create
56
- */
57
- create: {
58
- name: "create",
59
- I: Runner,
60
- O: Runner,
61
- kind: MethodKind.Unary,
62
- },
63
- /**
64
- * Update an existing runner.
65
- *
66
- * @internal
67
- * Used for updating spec fields (e.g., description). Status fields are
68
- * updated via the connect stream heartbeat, not via this RPC.
69
- *
70
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.update
71
- */
72
- update: {
73
- name: "update",
74
- I: Runner,
75
- O: Runner,
76
- kind: MethodKind.Unary,
77
- },
78
- /**
79
- * Delete a runner.
80
- *
81
- * @internal
82
- * For persistent runners: removes the resource and its task queue.
83
- * For system-managed runners: called by the execution workflow during
84
- * cleanup after the execution completes.
85
- *
86
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.delete
87
- */
88
- delete: {
89
- name: "delete",
90
- I: RunnerId,
91
- O: Runner,
92
- kind: MethodKind.Unary,
93
- },
94
- /**
95
- * Send a command to a connected runner and return the response synchronously.
96
- *
97
- * This is the API entry point for UI-triggered runner commands. The server
98
- * looks up the runner's active bidi stream, pushes the command, and blocks
99
- * until the runner responds or the timeout (10s) expires.
100
- *
101
- * Requires an active connect stream — returns UNAVAILABLE if the runner
102
- * is not connected. Returns FAILED_PRECONDITION if the runner's phase
103
- * prevents command delivery (STOPPED, PENDING, FAILED).
104
- *
105
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.sendCommand
106
- */
107
- sendCommand: {
108
- name: "sendCommand",
109
- I: RunnerSendCommandInput,
110
- O: RunnerCommandResponse,
111
- kind: MethodKind.Unary,
112
- },
113
- /**
114
- * Stop a running runner gracefully.
115
- *
116
- * If the runner is connected: sends a StopRunnerRequest via the bidi
117
- * stream, waits for acknowledgment, then returns the updated Runner.
118
- * The runner will send a STOPPED heartbeat and close its stream after
119
- * acknowledging — the phase transition completes asynchronously.
120
- *
121
- * If the runner is not connected (offline, already stopped): directly
122
- * transitions the runner to STOPPED and returns the updated resource.
123
- *
124
- * Idempotent: stopping an already-STOPPED or FAILED runner returns the
125
- * resource as-is without error.
126
- *
127
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.stop
128
- */
129
- stop: {
130
- name: "stop",
131
- I: RunnerStopInput,
132
- O: Runner,
133
- kind: MethodKind.Unary,
134
- },
135
- /**
136
- * Establish a bidirectional command stream between the runner and the server.
137
- *
138
- * This is the runner's primary ongoing communication channel. The runner
139
- * pushes heartbeats (liveness + state); the server pushes commands
140
- * (e.g., ListDirectory for workspace browsing). Both directions use the
141
- * same open connection.
142
- *
143
- * Stream lifecycle:
144
- * 1. Runner calls apply to register/reactivate, then opens this stream.
145
- * 2. First message MUST be a RunnerHeartbeat (authenticates via runner_id).
146
- * 3. Runner sends heartbeats every 30s.
147
- * 4. Server pushes RunnerCommandRequest when the UI triggers an operation.
148
- * 5. Runner handles commands locally and sends RunnerCommandResponse.
149
- * 6. On graceful shutdown: runner sends phase=STOPPED heartbeat, closes stream.
150
- * 7. On disconnect: server starts heartbeat timeout (90s) -> STOPPED.
151
- *
152
- * @internal
153
- * Authorization is handled via the first heartbeat message: the server
154
- * looks up the runner_id and verifies ownership. Skipped at the interceptor
155
- * level because the stream input is not a resource type.
156
- *
157
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.connect
158
- */
159
- connect: {
160
- name: "connect",
161
- I: RunnerStreamClientMessage,
162
- O: RunnerStreamServerMessage,
163
- kind: MethodKind.BiDiStreaming,
164
- },
165
- /**
166
- * Create a one-time launch token for the browser-to-CLI runner handshake.
167
- *
168
- * Called by the web console when the user clicks "Launch Local Runner."
169
- * The server mints a Stigmer JWT for the caller, wraps it in an opaque
170
- * token stored in Redis (60s TTL, single-use), and returns the token for
171
- * the browser to embed in a stigmer:// URL.
172
- *
173
- * The caller must have can_create_runner permission in the organization —
174
- * if you can create a runner, you can create a launch token.
175
- *
176
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.createLaunchToken
177
- */
178
- createLaunchToken: {
179
- name: "createLaunchToken",
180
- I: CreateLaunchTokenRequest,
181
- O: CreateLaunchTokenResponse,
182
- kind: MethodKind.Unary,
183
- },
184
- /**
185
- * Exchange a one-time launch token for long-lived runner credentials.
186
- *
187
- * Called by the CLI (or Desktop app) after receiving a stigmer:// URL from
188
- * the OS. The token is consumed atomically — a second exchange attempt
189
- * returns NOT_FOUND.
190
- *
191
- * @internal
192
- * This RPC is public — no Bearer token is required. The one-time launch
193
- * token IS the proof of authorization: it was created by an authenticated
194
- * user with can_create_runner permission, and can only be used once.
195
- *
196
- * @generated from rpc ai.stigmer.agentic.runner.v1.RunnerCommandController.exchangeLaunchToken
197
- */
198
- exchangeLaunchToken: {
199
- name: "exchangeLaunchToken",
200
- I: ExchangeLaunchTokenRequest,
201
- O: ExchangeLaunchTokenResponse,
202
- kind: MethodKind.Unary,
203
- },
204
- }
205
- };
206
- //# sourceMappingURL=command_connect.js.map