@sjawhar/pi-legion 10.17.1 → 10.18.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
@@ -14754,11 +14754,11 @@ var dispatchToolSpecs = [
14754
14754
  {
14755
14755
  name: "dispatch_read",
14756
14756
  example: { issue: "DSP-1" },
14757
- description: "Read an issue or project-document summary, targeted ask, or targeted comment reply chain, or the conversation " + "a message belongs to. Do not use it for document contents; use dispatch doc-read instead. Supply ref, issue, " + "or project plus artifact; or message alone, which reads a human's direct message to this session and every " + "reply to it (they belong to no issue). " + "An anchored comment or ask also says where its quote sits, as `Position:`: the block's path from the top, " + "and in a table the row (0 is the header), the cells before the anchored one, and the column's header; " + "`Position: unavailable (<code>)` when Dispatch could not read the document: `DOC_SERVICE_UNAVAILABLE` " + "(try again shortly), `DOC_SCHEMA` (the document needs repair), `DOCUMENT_UNLOADABLE` (the document " + "needs a rebuild) or `INTERNAL`. " + "An issue read carries a `Progress:` line, `tasks 3/7, children 2/5`: its spec's task-list items " + "(`- [ ]` / `- [x]`, nested lists included) and its direct children, each done of total and each only " + "when it has any (`Progress: none` otherwise). " + "Every read ends with `Referenced by:` (what cites or hangs off this node, each with its dispatch:// address, " + "an excerpt, and when) and `Links:` (what it cites), so tracing provenance is one call. " + "The pictures the shown messages, asks and comments embed come back as images you see, newest first, at most 8 " + "and 10 MiB of them per read, each a PNG, JPEG, GIF or WebP of at most 3,750,000 bytes (5 MB of base64); a `Pictures:` section names each " + "one shown, in order, and the rest by reference, for dispatch doc-read. A picture this session was already shown is named, not sent again " + "(every request carries the session's history, and the provider refuses one over 32 MB); dispatch doc-read shows it again. " + OWNER_REFERENCE,
14757
+ description: "Read an issue or document summary, targeted ask, or targeted comment reply chain, or the conversation " + "a message belongs to. Do not use it for document contents; use dispatch doc-read instead. Supply ref, issue, " + "issue plus artifact (one of its documents), or project plus artifact; or message alone, which reads a human's direct message to this session and every " + "reply to it (they belong to no issue). A document summary names its issue, reference, versions and approval. " + "An anchored comment or ask also says where its quote sits, as `Position:`: the block's path from the top, " + "and in a table the row (0 is the header), the cells before the anchored one, and the column's header; " + "`Position: unavailable (<code>)` when Dispatch could not read the document: `DOC_SERVICE_UNAVAILABLE` " + "(try again shortly), `DOC_SCHEMA` (the document needs repair), `DOCUMENT_UNLOADABLE` (the document " + "needs a rebuild) or `INTERNAL`. " + "An issue read carries a `Progress:` line, `tasks 3/7, children 2/5`: its spec's task-list items " + "(`- [ ]` / `- [x]`, nested lists included) and its direct children, each done of total and each only " + "when it has any (`Progress: none` otherwise). " + "Every read ends with `Referenced by:` (what cites or hangs off this node, each with its dispatch:// address, " + "an excerpt, and when) and `Links:` (what it cites), so tracing provenance is one call. " + "The pictures the shown messages, asks and comments embed come back as images you see, newest first, at most 8 " + "and 10 MiB of them per read, each a PNG, JPEG, GIF or WebP of at most 3,750,000 bytes (5 MB of base64); a `Pictures:` section names each " + "one shown, in order, and the rest by reference, for dispatch doc-read. A picture this session was already shown is named, not sent again " + "(every request carries the session's history, and the provider refuses one over 32 MB); dispatch doc-read shows it again. " + OWNER_REFERENCE,
14758
14758
  arguments: (z2) => ({
14759
14759
  issue: z2.string().describe(ISSUE_REFERENCE).optional(),
14760
14760
  project: z2.string().describe("Project key owning the document.").optional(),
14761
- artifact: z2.string().describe("Project document artifact id, slug, or filename.").optional(),
14761
+ artifact: z2.string().describe("Document artifact id, slug, or filename: one of the issue's, or a project document.").optional(),
14762
14762
  ref: z2.string().describe("Optional dispatch:// issue or document reference.").optional(),
14763
14763
  message: z2.string().describe("A message id (uuid): reads the conversation it belongs to, the root message and every " + "reply. Name nothing else with it.").optional()
14764
14764
  }),
@@ -15803,6 +15803,10 @@ var legionCapabilityState = exports_external.strictObject({
15803
15803
  configLine: nonEmptyString.optional(),
15804
15804
  source: exports_external.enum(["configuration", "boot"]).optional()
15805
15805
  });
15806
+ var legionSettings = exports_external.looseObject({
15807
+ max_fix_attempts: exports_external.number().int().positive(),
15808
+ worker_boot_timeout_seconds: exports_external.number().int().positive()
15809
+ });
15806
15810
  var legionCacheView = exports_external.strictObject({
15807
15811
  repo: nonEmptyString,
15808
15812
  sandbox: nonEmptyString,
@@ -15836,7 +15840,8 @@ var LegionStateResponse = exports_external.strictObject({
15836
15840
  controllerLocator: legionControllerLocator.optional(),
15837
15841
  agentSecretsLogin: legionAgentSecretsLoginView.optional(),
15838
15842
  capabilities: exports_external.array(legionCapabilityState),
15839
- repositories: legionRepositories
15843
+ repositories: legionRepositories,
15844
+ settings: legionSettings
15840
15845
  });
15841
15846
  var LegionRegisterResponse = exports_external.strictObject({
15842
15847
  claimToken: nonEmptyString,
@@ -16913,7 +16918,7 @@ async function bootLegionClaim(host2) {
16913
16918
  // package.json
16914
16919
  var package_default = {
16915
16920
  name: "@sjawhar/pi-legion",
16916
- version: "10.17.1",
16921
+ version: "10.18.1",
16917
16922
  license: "Apache-2.0",
16918
16923
  type: "module",
16919
16924
  omp: {
@@ -16925,7 +16930,7 @@ var package_default = {
16925
16930
  ]
16926
16931
  },
16927
16932
  legion: {
16928
- daemonApiVersion: 34
16933
+ daemonApiVersion: 35
16929
16934
  },
16930
16935
  repository: {
16931
16936
  type: "git",
@@ -24,12 +24,13 @@ the owner a command names (`-R owner/repo`, `repos/owner/repo` in `gh api`, a Gi
24
24
  the first owner's (`GH_CONFIG_DIR`) otherwise, so name the repository. Against a daemon with no
25
25
  GitHub App, `legion controller start` says so when it starts (`[legion] the daemon has no GitHub
26
26
  App to act as; the controller's gh acts as nobody`), and `gh` acts as nobody. The controller reads
27
- Dispatch and the daemon's state, and applies its controller
28
- capability, through the `legion` tool alone: `op: "read_state"` returns the daemon's whole state
29
- (`issues.<KEY>.phase`, `issues.<KEY>.holdReason`, `issues.<KEY>.architect`, `admission.cap`,
30
- `admission.active`, `admission.waiting`, `capabilities[]`, `daemon.project`), and `op: "set_status"`
31
- with `issue` and `status` (`todo`, `backlog` or `icebox`) moves an issue. It runs no `legion` from
32
- bash. Any pull-request comment or review the controller posts ends with
27
+ Dispatch and the daemon's state, and applies its controller capability, through the `legion` tool
28
+ alone: `op: "read_state"` returns the daemon's whole state (`issues.<KEY>.phase`,
29
+ `issues.<KEY>.holdReason`, `issues.<KEY>.architect`, `admission.cap`, `admission.active`,
30
+ `admission.waiting`, `capabilities[]`, `daemon.project`, and `settings`, how the daemon is tuned:
31
+ its resolved `legion.yaml`, `max_fix_attempts` and the rest, with no credential in it, LEGION-791),
32
+ and `op: "set_status"` with `issue` and `status` (`todo`, `backlog` or `icebox`) moves an issue. It
33
+ runs no `legion` from bash. Any pull-request comment or review the controller posts ends with
33
34
  `<!-- legion: {"session":"<session-id>","phase":"controller"} -->`, the footer every Legion role
34
35
  appends: the daemon reads the session to tell a controller's review from the reviewer's verdict. A
35
36
  review the controller submits without that footer still decides nothing for Legion's own workflow
@@ -495,4 +496,3 @@ controller never opens a gate and there is no operator command for it; a project
495
496
  want the gate at all runs `gates.design: off` in its `legion.yaml`. Otherwise resolve the
496
497
  authoritative owning architect role and route the verified context with `envoy_publish`. Do not
497
498
  route raw event traffic or invent a role token from a partial issue reference.
498
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion",
3
- "version": "10.17.1",
3
+ "version": "10.18.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "omp": {
@@ -12,7 +12,7 @@
12
12
  ]
13
13
  },
14
14
  "legion": {
15
- "daemonApiVersion": 34
15
+ "daemonApiVersion": 35
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",