@sjawhar/pi-legion 12.0.0 → 12.1.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.
package/dist/legion.js
CHANGED
|
@@ -5747,7 +5747,7 @@ var dispatchToolSpecs = [
|
|
|
5747
5747
|
{
|
|
5748
5748
|
name: "dispatch_doc_read",
|
|
5749
5749
|
example: { issue: "DSP-1" },
|
|
5750
|
-
description: "Read a live document or a named document version, or the text of an uploaded file at its latest or named version. " + "Do not use it for issue status, asks, or events; " + "use dispatch read instead. Supply ref, issue, or project plus artifact; issue plus an omitted artifact reads the primary document. " + "A live read returns its document token for an optional dispatch doc-edit precondition. With blocks it lists the live document's blocks instead of its markdown, in document order: each block's id, type, token, anchored comments and asks, and opening words, and under a table each row by the index delete_row takes and each cell by its row and the column delete_column takes; block ids, block tokens and those indexes are what dispatch doc-edit takes. " + "A picture (an uploaded PNG, JPEG, GIF or WebP of at most 3,750,000 bytes, 5 MB once base64-encoded) comes back as an image you see, with its name, type, size and version, every time you ask, including one a read already showed this session; " + "any other file that is not UTF-8 text is described, with the route that serves its bytes. " + OWNER_REFERENCE,
|
|
5750
|
+
description: "Read a live document or a named document version, or the text of an uploaded file at its latest or named version. " + "Do not use it for issue status, asks, or events; " + "use dispatch read instead. Supply ref, issue, or project plus artifact; issue plus an omitted artifact reads the primary document. " + "A live read returns its document token for an optional dispatch doc-edit precondition. With blocks it lists the live document's blocks instead of its markdown, in document order: each block's id, type, token, anchored comments and asks, and opening words, and under a table each row by the index delete_row takes and each cell by its row and the column delete_column takes; block ids, block tokens and those indexes are what dispatch doc-edit takes. " + "After the markdown it prints every open thread anchored on the document in full: an open ask with its id and question and each reply's author, time and text, and a comment thread with its root's id, author, quote and text and each reply's author, time and text, in order; a resolved thread, and an ask that is answered or resolved, is not printed. " + "A picture (an uploaded PNG, JPEG, GIF or WebP of at most 3,750,000 bytes, 5 MB once base64-encoded) comes back as an image you see, with its name, type, size and version, every time you ask, including one a read already showed this session; " + "any other file that is not UTF-8 text is described, with the route that serves its bytes. " + OWNER_REFERENCE,
|
|
5751
5751
|
arguments: (z) => ({
|
|
5752
5752
|
issue: z.string().describe(ISSUE_REFERENCE).optional(),
|
|
5753
5753
|
project: z.string().describe("Project key owning the document.").optional(),
|
|
@@ -6486,8 +6486,8 @@ class DispatchClient {
|
|
|
6486
6486
|
async resolveComment(id, actor) {
|
|
6487
6487
|
return this.#json("POST", ["api", "v1", "comments", id, "resolve"], { actor });
|
|
6488
6488
|
}
|
|
6489
|
-
async getComments(issue
|
|
6490
|
-
return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue), "comments"]
|
|
6489
|
+
async getComments(issue) {
|
|
6490
|
+
return this.#json("GET", ["api", "v1", "issues", await this.#resolveIssue(issue), "comments"]);
|
|
6491
6491
|
}
|
|
6492
6492
|
async getIssueReferences(issue) {
|
|
6493
6493
|
return this.#json("GET", [
|
|
@@ -8178,7 +8178,7 @@ async function bootLegionClaim(host) {
|
|
|
8178
8178
|
// package.json
|
|
8179
8179
|
var package_default = {
|
|
8180
8180
|
name: "@sjawhar/pi-legion",
|
|
8181
|
-
version: "12.
|
|
8181
|
+
version: "12.1.0",
|
|
8182
8182
|
license: "Apache-2.0",
|
|
8183
8183
|
type: "module",
|
|
8184
8184
|
omp: {
|
|
@@ -12,7 +12,7 @@ except a clear defect a role reports ([Issues handed to Legion](#issues-handed-t
|
|
|
12
12
|
|
|
13
13
|
## Rules
|
|
14
14
|
|
|
15
|
-
- Handle no wake until the extension's startup
|
|
15
|
+
- Handle no wake until the extension has registered this session with the daemon as the project's controller, at session startup or, in a controller an operator started, from its first command once Oh My Pi has started, because without that registration the daemon does not know you as its controller.
|
|
16
16
|
- Answer a person's direct message first, in the conversation. A plain user turn that is neither the start message nor a task sent with `legion claims deliver` is a person writing from Dispatch's Agents page.
|
|
17
17
|
- A direct Dispatch message that decides scope, priority or an owner is a ruling: after you answer it, run the weekly-plan reconciliation (`skill://legion-controller/references/backlog-stewardship.md`), because the plan must record the rule.
|
|
18
18
|
- Handle one wake per turn, then end the turn. Never poll or wait for an event, because the daemon wakes you again (`tick` at least every `controller_wake_interval_seconds`).
|
|
@@ -83,8 +83,8 @@ environment, then run:
|
|
|
83
83
|
It checks `LEGION_PROJECT` against the daemon, registers the session, claims the Envoy role, and
|
|
84
84
|
moves the daemon's recorded controller session id to this session; the `legion` tool's controller
|
|
85
85
|
operations then work there. Never pass the secret as a command argument or copy it into a
|
|
86
|
-
transcript, because others read transcripts. Do not set `LEGION_CONTROLLER=1
|
|
87
|
-
|
|
86
|
+
transcript, because others read transcripts. Do not set `LEGION_CONTROLLER=1`: that marker makes
|
|
87
|
+
the session the launched controller, which needs a start message. Run `/legion-claim-controller`
|
|
88
88
|
once per session; do not run it again after an Envoy listener restart, because the heartbeat
|
|
89
89
|
re-claims the role.
|
|
90
90
|
|