@sjawhar/opencode-legion-envoy 0.36.0 → 0.36.1

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 (2) hide show
  1. package/dist/src/server.js +51 -1
  2. package/package.json +1 -1
@@ -13963,9 +13963,59 @@ var controllerIssue = strictObject({
13963
13963
  secret: nonEmptyString,
13964
13964
  issue: nonEmptyString
13965
13965
  });
13966
+ var TREE_STATUSES = ["queued", "active", "lingering", "dead", "launch-failed", "closed"];
13967
+ var stateWindowLocator = strictObject({
13968
+ tmuxSession: nonEmptyString,
13969
+ tmuxWindowId: nonEmptyString,
13970
+ tmuxPaneId: nonEmptyString.optional()
13971
+ });
13972
+ var stateTreeLocator = stateWindowLocator.extend({ ompSessionFile: nonEmptyString.optional() });
13973
+ var stateIssue = strictObject({
13974
+ key: nonEmptyString,
13975
+ title: string2(),
13976
+ status: _enum2(LIFECYCLE_STATUSES).optional(),
13977
+ children: array(nonEmptyString),
13978
+ parent: nonEmptyString.optional(),
13979
+ lastAppliedSeq: number2().int().nonnegative().optional()
13980
+ });
13981
+ var stateTree = strictObject({
13982
+ status: _enum2(TREE_STATUSES),
13983
+ generation: number2().int().nonnegative(),
13984
+ launchFailures: number2().int().nonnegative(),
13985
+ readyConfirmedAt: number2().optional(),
13986
+ locator: stateTreeLocator.optional()
13987
+ });
13988
+ var stateGate = strictObject({
13989
+ designAskId: nonEmptyString.optional(),
13990
+ designApproved: nonEmptyString.optional()
13991
+ });
13992
+ var stateRole = strictObject({
13993
+ role: nonEmptyString,
13994
+ issue: nonEmptyString.optional(),
13995
+ generation: number2().int().nonnegative().optional(),
13996
+ sessionId: nonEmptyString.optional(),
13997
+ readyConfirmedAt: number2().optional(),
13998
+ launchFailures: number2().int().nonnegative().optional(),
13999
+ locator: stateWindowLocator.optional()
14000
+ });
13966
14001
  var LegionDaemonApi = {
13967
14002
  State: {
13968
- response: object({ project: nonEmptyString })
14003
+ response: strictObject({
14004
+ project: nonEmptyString,
14005
+ version: number2().int(),
14006
+ issues: record(string2(), stateIssue),
14007
+ trees: record(string2(), stateTree),
14008
+ admission: strictObject({
14009
+ cap: number2().int().nonnegative(),
14010
+ active: array(nonEmptyString),
14011
+ queue: array(nonEmptyString)
14012
+ }),
14013
+ gates: record(string2(), stateGate),
14014
+ controllerLocator: stateWindowLocator.optional(),
14015
+ roles: record(string2(), stateRole),
14016
+ controllerPendingNotices: number2().int().nonnegative(),
14017
+ pendingStatusWrites: array(nonEmptyString)
14018
+ })
13969
14019
  },
13970
14020
  ControllerReady: {
13971
14021
  request: strictObject({ secret: nonEmptyString, sessionId: nonEmptyString }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
4
4
  "type": "module",
5
5
  "main": "dist/src/server.js",
6
6
  "exports": {