@sjawhar/pi-legion-envoy 0.8.3 → 0.8.4

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/envoy.js CHANGED
@@ -30972,6 +30972,7 @@ function renderInbound(raw, sessionID, subject) {
30972
30972
  }
30973
30973
  const payloadSummary = envelope.payload_summary ?? "unknown";
30974
30974
  const message = envelope.payload !== undefined && envelope.payload !== envelope.payload_summary ? parsedPayload : undefined;
30975
+ const summaryIsHead = typeof message === "string" && envelope.payload_summary !== undefined && message.startsWith(envelope.payload_summary.endsWith("\u2026") ? envelope.payload_summary.slice(0, -1) : envelope.payload_summary);
30975
30976
  const body = `${envelope.payload_summary ?? ""}
30976
30977
  ${envelope.payload ?? ""}`;
30977
30978
  let foreignSession;
@@ -30999,7 +31000,7 @@ ${envelope.payload ?? ""}`;
30999
31000
  ...role === undefined ? {} : {
31000
31001
  reply_role: `envoy_publish(topic="notifications.role.${role}", message="...")`
31001
31002
  },
31002
- summary: payloadSummary,
31003
+ ...summaryIsHead ? {} : { summary: payloadSummary },
31003
31004
  ...message === undefined ? {} : { message },
31004
31005
  ...foreignSession === undefined ? {} : {
31005
31006
  note: `body names session ${foreignSession}; the sender is ${envelope.source_session ?? "unknown"}`
@@ -14,6 +14,11 @@ Requires `gh` CLI installed and authenticated:
14
14
  gh auth login
15
15
  ```
16
16
 
17
+ **Inside a Legion worker workspace**, skip `gh auth login`/`gh auth setup-git`: `gh` on `PATH`
18
+ is a shim that execs `legion gh -- <args>` (`packages/pi-envoy/src/legion/gh-shim.ts`), which
19
+ redeems a fresh token from the daemon's grant on every invocation and hands it straight to the
20
+ real `gh` binary — it is already authenticated per call, independent of any local login state.
21
+
17
22
  ## Operations
18
23
 
19
24
  ### Search/List Issues (via project)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion-envoy",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "type": "module",
5
5
  "omp": {
6
6
  "extensions": [