@sjawhar/opencode-legion-envoy 1.12.0 → 1.13.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.
@@ -14102,12 +14102,24 @@ var controllerIssue = strictObject({
14102
14102
  issue: nonEmptyString
14103
14103
  });
14104
14104
  var TREE_STATUSES = ["queued", "active", "lingering", "dead", "launch-failed", "closed"];
14105
- var stateWindowLocator = strictObject({
14105
+ var stateTmuxLocator = strictObject({
14106
+ runtime: literal("tmux"),
14106
14107
  tmuxSession: nonEmptyString,
14107
14108
  tmuxWindowId: nonEmptyString,
14108
14109
  tmuxPaneId: nonEmptyString.optional()
14109
14110
  });
14110
- var stateTreeLocator = stateWindowLocator.extend({ ompSessionFile: nonEmptyString.optional() });
14111
+ var stateK8sLocator = strictObject({
14112
+ runtime: literal("kubernetes"),
14113
+ namespace: nonEmptyString,
14114
+ podName: nonEmptyString,
14115
+ podUid: nonEmptyString,
14116
+ pvcName: nonEmptyString
14117
+ });
14118
+ var stateLocator = discriminatedUnion("runtime", [stateTmuxLocator, stateK8sLocator]);
14119
+ var stateTreeLocator = discriminatedUnion("runtime", [
14120
+ stateTmuxLocator.extend({ ompSessionFile: nonEmptyString.optional() }),
14121
+ stateK8sLocator.extend({ ompSessionFile: nonEmptyString.optional() })
14122
+ ]);
14111
14123
  var stateIssue = strictObject({
14112
14124
  key: nonEmptyString,
14113
14125
  title: string2(),
@@ -14134,7 +14146,7 @@ var stateRole = strictObject({
14134
14146
  sessionId: nonEmptyString.optional(),
14135
14147
  readyConfirmedAt: number2().optional(),
14136
14148
  launchFailures: number2().int().nonnegative().optional(),
14137
- locator: stateWindowLocator.optional()
14149
+ locator: stateLocator.optional()
14138
14150
  });
14139
14151
  var LegionDaemonApi = {
14140
14152
  State: {
@@ -14149,7 +14161,7 @@ var LegionDaemonApi = {
14149
14161
  queue: array(nonEmptyString)
14150
14162
  }),
14151
14163
  gates: record(string2(), stateGate),
14152
- controllerLocator: stateWindowLocator.optional(),
14164
+ controllerLocator: stateLocator.optional(),
14153
14165
  roles: record(string2(), stateRole),
14154
14166
  controllerPendingNotices: number2().int().nonnegative(),
14155
14167
  pendingStatusWrites: array(nonEmptyString)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "type": "module",
5
5
  "main": "dist/src/server.js",
6
6
  "exports": {
@@ -36,6 +36,12 @@ it to the agent through `dispatch.token` in `~/.config/opencode/envoy.json` or `
36
36
  The server records the minting human as the owner of that session's writes. `DISPATCH_AGENT_TOKEN`
37
37
  is the shared devbox fallback; do not configure it for an individual agent.
38
38
 
39
+ The deployed Dispatch server's browser origin is configured separately with
40
+ `DISPATCH_SERVER_URL` in the deployment `compose/.env`. Do not change an
41
+ agent's `envoy.json` to set the GitHub OAuth callback origin: the value must
42
+ be the exact URL humans type in their browser, and the GitHub App callback is
43
+ `<DISPATCH_SERVER_URL>/auth/callback`.
44
+
39
45
  ## Writing a spec
40
46
 
41
47
  A spec has two readers: the human who decides reads the top; the implementer who builds reads the