@sjawhar/pi-envoy 16.21.1 → 16.23.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/envoy.js CHANGED
@@ -41934,7 +41934,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
41934
41934
 
41935
41935
  // package.json
41936
41936
  var name = "@sjawhar/pi-envoy";
41937
- var version2 = "16.21.1";
41937
+ var version2 = "16.23.0";
41938
41938
  var package_default = {
41939
41939
  name,
41940
41940
  version: version2,
@@ -42755,10 +42755,12 @@ class CardWake {
42755
42755
  if (idle === true)
42756
42756
  this.#runActive = false;
42757
42757
  const startup = this.#startupPhase && idle === true && (context?.mode === "rpc" || this.#startTurnHold() !== undefined);
42758
- const setup = idle === false && !this.#runActive;
42758
+ const handOver = typeof idle !== "boolean" ? "unknown" : startup ? "startup" : idle ? "idle" : this.#runActive ? "run-active" : "prompt-setup";
42759
+ const setup = handOver === "prompt-setup";
42759
42760
  const wake = startup ? "startup" : setup || targetedAside ? undefined : "fold";
42760
42761
  const details = {
42761
42762
  envoyCard: randomUUID2(),
42763
+ handOver,
42762
42764
  ...wake !== undefined && { wake }
42763
42765
  };
42764
42766
  if (startup) {
@@ -48064,18 +48066,17 @@ function envoyExtension(pi) {
48064
48066
  });
48065
48067
  const handCard = (content, deliverAs, identity) => {
48066
48068
  const known = identity === undefined ? {} : replayLedgerIdentity(identity);
48067
- const frame = unwrittenCardKeys(known).length === 0 ? undefined : { ...known };
48068
48069
  if (deliverAs === "inert") {
48069
48070
  pi.sendMessage({
48070
48071
  customType: "envoy-message",
48071
48072
  content,
48072
48073
  display: true,
48073
- ...frame === undefined ? {} : { details: frame }
48074
+ details: { ...known, handOver: "inert" }
48074
48075
  }, { deliverAs: "steer", triggerTurn: false });
48075
48076
  return;
48076
48077
  }
48077
48078
  const { details, ...options } = cardWake.deliveryFor(deliverAs === "aside", activeSessionContext);
48078
- pi.sendMessage({ customType: "envoy-message", content, display: true, details: { ...frame, ...details } }, options);
48079
+ pi.sendMessage({ customType: "envoy-message", content, display: true, details: { ...known, ...details } }, options);
48079
48080
  };
48080
48081
  const hostSettled = () => {
48081
48082
  const hostContext = activeSessionContext;
@@ -33,7 +33,7 @@ report, a disclosure, and a reply to a maintainer who wrote first.
33
33
 
34
34
  Hold an extremely high bar. Optimise every upstream report, patch or public post for a human
35
35
  reader and for being received well, so each one builds the company's reputation rather than a
36
- name for slop.
36
+ reputation for low-quality or careless submissions.
37
37
 
38
38
  ## The four steps
39
39
 
@@ -95,7 +95,9 @@ review batch, never a per-message "can I send this" ask. Write its entry — wha
95
95
  serious; who receives it and what they do; the exact text or patch; its evidence; a non-author
96
96
  reviewer's APPROVE under your stream's reviewer-model rule; what the operator decides; its owner
97
97
  — into the batch, add it under the batch's Waiting list, and tell the batch owner. Your stream's
98
- brief names the batch and its owner.
98
+ brief names the batch and its owner. Where your stream's brief names no batch, ask the operator
99
+ for one, or hold the entry until there is a batch; a missing batch is not a reason to send a
100
+ per-message ask.
99
101
 
100
102
  ## What this skill does not cover
101
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-envoy",
3
- "version": "16.21.1",
3
+ "version": "16.23.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "omp": {