@sjawhar/pi-legion 11.4.0 → 11.5.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.
package/dist/legion.js CHANGED
@@ -4767,6 +4767,7 @@ var CheckoutFileSchema = looseObject({
4767
4767
  $schema: string2().optional(),
4768
4768
  dispatch: DispatchSectionSchema.optional()
4769
4769
  });
4770
+ var AskgateSectionSchema = strictObject({ enabled: boolean2().optional() });
4770
4771
  function offWithNotice(notice) {
4771
4772
  return { enabled: false, notice, error: null };
4772
4773
  }
@@ -4975,7 +4976,8 @@ function readEnvoyConfig(filePath, env, options) {
4975
4976
  kind: "valid",
4976
4977
  path: checkoutPath,
4977
4978
  dispatch: checkoutFile.settings.dispatch ?? {},
4978
- envoyError: Object.hasOwn(checkoutFile.settings, "envoy") ? `${checkoutPath}: envoy is not read from a checkout's envoy.json; put it in ${filePath}` : null
4979
+ envoyError: Object.hasOwn(checkoutFile.settings, "envoy") ? `${checkoutPath}: envoy is not read from a checkout's envoy.json; put it in ${filePath}` : null,
4980
+ askgateError: Object.hasOwn(checkoutFile.settings, "askgate") ? `askgate in ${checkoutPath} is not read; set it in ${filePath}` : null
4979
4981
  };
4980
4982
  }
4981
4983
  const oldCheckout = path.resolve(options.cwd, ".opencode", "envoy.json");
@@ -6705,6 +6707,11 @@ import {
6705
6707
  } from "fs";
6706
6708
  import { homedir as homedir2 } from "os";
6707
6709
  import { join as join2 } from "path";
6710
+
6711
+ // ../envoy-client/src/askgate-marker.ts
6712
+ var MARKER_MAX_AGE_MS = 2 * 60 * 60000;
6713
+
6714
+ // ../envoy-client/src/dispatch-session-state.ts
6708
6715
  var SESSION_ID = /^[A-Za-z0-9._-]{1,128}$/;
6709
6716
  var PRIVATE_DIR = 448;
6710
6717
  var PRIVATE_FILE = 384;
@@ -8151,7 +8158,7 @@ async function bootLegionClaim(host) {
8151
8158
  // package.json
8152
8159
  var package_default = {
8153
8160
  name: "@sjawhar/pi-legion",
8154
- version: "11.4.0",
8161
+ version: "11.5.1",
8155
8162
  license: "Apache-2.0",
8156
8163
  type: "module",
8157
8164
  omp: {
@@ -51,12 +51,13 @@ When the gate is armed, run this exact sequence before the tree's work starts:
51
51
  them to answer: give such a point its own decision block first, or take it out of the spec.
52
52
 
53
53
  ```bash
54
- dispatch request-approval --issue <root issue> --summary '<what the human is approving> Reviews: <gap result>, <claim result>.'
54
+ dispatch request-approval --issue <root issue> --summary '<what the human is approving> Reviews: <gap result>, <claim result>; <what they do not show>.'
55
55
  ```
56
56
 
57
57
  `--summary` says in one to three sentences what the human is approving and nothing else (no
58
- commentary and no open question), then one sentence with both reviews' results, for example
59
- `Reviews: no open gap, 14 of 14 claims verified.` The primary document is the default; the
58
+ commentary and no open question), then one sentence with both reviews' results and what they do
59
+ not show, for example `Reviews: no open gap, 14 of 14 claims verified; neither shows that the
60
+ design works once built.` The primary document is the default; the
60
61
  command prints `Approval requested for spec.md (document id <UUID>) at version <N> (ask <id>)`.
61
62
  5. Register that document version with the daemon:
62
63
 
@@ -82,7 +82,7 @@ missing proof goes back as step 1 says. The Dispatch message (step 7) is for a f
82
82
  Dispatch's message limit, and ends with your attribution footer:
83
83
 
84
84
  ```bash
85
- dispatch message --issue "$LEGION_ISSUE" --body-file - <<'EOF'
85
+ dispatch message --issue '<KEY>' --body-file - <<'EOF'
86
86
  ## Retro Complete
87
87
 
88
88
  **Learnings documented in:** docs/solutions/<path>.md, or none: <why no point qualified>.
@@ -157,13 +157,13 @@ takes. That issue,
157
157
  it](#when-no-controller-takes-it) says:
158
158
 
159
159
  ```bash
160
- dispatch comment --issue <ASK KEY> --body-file - <<'EOF'
160
+ dispatch comment --issue '<ASK KEY>' --body-file - <<'EOF'
161
161
  <the evidence: commands, output with its time, file:line, links>
162
162
  EOF
163
163
  # Keep `File it for Legion` only when your Legion addressing line lists the repository where the
164
164
  # fix belongs. For a clear defect no controller took, replace the `File an issue` option below with
165
165
  # 'Hand it to the owning tree: <the tree, when you know it>', the first option and recommended.
166
- dispatch ask --issue <ASK KEY> --ref 'dispatch://<ASK KEY>/comment/<id>' --question-file - \
166
+ dispatch ask --issue '<ASK KEY>' --ref 'dispatch://<ASK KEY>/comment/<id>' --question-file - \
167
167
  --option 'File an issue: <what it would track, and who would own it>' \
168
168
  --option 'File it for Legion: Legion works it once it is filed' \
169
169
  --option 'Do not file: <what stays as it is>' <<'EOF'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion",
3
- "version": "11.4.0",
3
+ "version": "11.5.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "omp": {