@sjawhar/pi-envoy 10.9.0 → 10.9.2
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/dispatch.js
CHANGED
|
@@ -14770,6 +14770,12 @@ function parseCommand(argv, io) {
|
|
|
14770
14770
|
for (let index = 0;index < rest.length; index++) {
|
|
14771
14771
|
const token = rest[index];
|
|
14772
14772
|
if (!token.startsWith("--")) {
|
|
14773
|
+
if (ISSUE_KEY.test(token) && surface.flags.has("--issue") && !setBy.has("issue")) {
|
|
14774
|
+
const corrected = [command, ...rest.slice(0, index), "--issue", token];
|
|
14775
|
+
corrected.push(...rest.slice(index + 1));
|
|
14776
|
+
problems.push(`unexpected argument ${token}: use --issue <KEY>, as in: dispatch ${corrected.map(quoteWord).join(" ")}`);
|
|
14777
|
+
continue;
|
|
14778
|
+
}
|
|
14773
14779
|
problems.push(`unexpected argument ${quoteWord(token)}: every value follows its flag`);
|
|
14774
14780
|
continue;
|
|
14775
14781
|
}
|
|
@@ -14873,6 +14879,7 @@ function appendedItem(kind, flag, value, number4) {
|
|
|
14873
14879
|
const parsed = number4(flag, value);
|
|
14874
14880
|
return parsed === undefined ? undefined : { value: parsed };
|
|
14875
14881
|
}
|
|
14882
|
+
var ISSUE_KEY = /^[A-Z][A-Z0-9]*-\d+$/;
|
|
14876
14883
|
function quoteWord(value) {
|
|
14877
14884
|
return BARE_WORD.test(value) ? value : `'${value.replaceAll("'", "'\\''")}'`;
|
|
14878
14885
|
}
|
|
@@ -71,7 +71,7 @@ not share this session's vocabulary, and is often on a phone. Write for that per
|
|
|
71
71
|
- Before posting, test it: could the human, reading only this text on their phone, know what they are being
|
|
72
72
|
told or asked? If not, rewrite it. Length is not the problem; density is.
|
|
73
73
|
- When an ask or message communicates a judgment, lead with that judgment in one sentence and put the mechanism underneath it. Do not make the reader ask a second time whether the result is a win. This shapes communication only when a judgment exists; it does not pre-decide an open question or remove its genuine options.
|
|
74
|
-
- When
|
|
74
|
+
- When an ask, comment or message states a root cause or a blocker, include the command, error output or record that shows it, with its time, in that same text. Without it, label the diagnosis a hypothesis; a diagnosis still in progress may say so plainly. This boundary applies to causal claims, not to reporting that an investigation has started.
|
|
75
75
|
|
|
76
76
|
## Writing a spec
|
|
77
77
|
|
|
@@ -157,7 +157,7 @@ Labels are optional: Dispatch trims them, preserves their case, and removes case
|
|
|
157
157
|
the new key; creating an issue does not subscribe you to it (see [Following](#following)). Use `dispatch issue` only to create an issue; never use it to park a question. When you pass a spec,
|
|
158
158
|
follow [Writing a spec](#writing-a-spec).
|
|
159
159
|
|
|
160
|
-
|
|
160
|
+
Work goes in a project that exists: `dispatch projects` lists them, and work that spans projects goes in the one that owns most of it. Create a project only when the human asks for one, with `dispatch project --key <KEY> --name '<name>'`. Projects cannot be renamed or deleted, so a mistyped key stays for good. A key that already exists is refused with `PROJECT_EXISTS`.
|
|
161
161
|
|
|
162
162
|
## Search first
|
|
163
163
|
|
|
@@ -272,7 +272,7 @@ instead of pointing at another message in prose (below), is the asking session's
|
|
|
272
272
|
Open a standalone ask with `dispatch ask` (`dispatch ask --help` lists its flags), one `--option` per choice:
|
|
273
273
|
```bash
|
|
274
274
|
dispatch ask --issue <KEY> --question-file - --option 'Label: what it costs' --option 'Other: what it costs' <<'EOF'
|
|
275
|
-
<the problem, what constrains the answer, and your recommendation with its reason>
|
|
275
|
+
<the problem, what constrains the answer (each answer of his you rely on, linked), and your recommendation with its reason>
|
|
276
276
|
EOF
|
|
277
277
|
```
|
|
278
278
|
It prints the ask's id; you follow the ask you opened (see [Following](#following)).
|