@rness/cli 0.22.0 → 0.22.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/README.md CHANGED
@@ -848,6 +848,16 @@ per repository, the files to commit there.
848
848
  Exit codes: 0 success, 1 failure, 2 usage — or a refusal without a TTY.
849
849
  `RNESS_DEBUG=1` adds stack traces; `RNESS_NO_DELEGATE=1` skips the delegation.
850
850
 
851
+ ## 0.22.1 — what rness writes carries no em dash
852
+
853
+ - Nothing rness writes carries an em dash (U+2014) any more: the `AGENTS.md`
854
+ block, the title `rness doc new` opens (`# NNNN - Title`), the `rness:adr`,
855
+ `rness:spec` and `rness:plan` skills, the scaffold, the titles of a board's
856
+ issues (`NNNN - Title`, renamed once at the next `rness board push`), and
857
+ the messages of the CLI and of the mod: " - ", a comma or a colon take its
858
+ place. A title written with the old separator still reads. The
859
+ repository's lint refuses a new one in a string of the CLI or the mod.
860
+
851
861
  ## 0.22.0 — `board`, not `pulse`: `rness board push`, `rness note`, `boards` in rness.json
852
862
 
853
863
  - One word for the view, whatever the provider (spec 0033, see "Boards"):
package/dist/bin/rness.js CHANGED
@@ -4,11 +4,11 @@ import {
4
4
  catchUp,
5
5
  findDelegate,
6
6
  run
7
- } from "../chunk-S4NARIQP.js";
7
+ } from "../chunk-SX7D5W43.js";
8
8
  import {
9
9
  VERSION,
10
10
  reportError
11
- } from "../chunk-XCO5ZT2H.js";
11
+ } from "../chunk-OUZQGG6V.js";
12
12
 
13
13
  // src/bin/rness.ts
14
14
  import { pathToFileURL } from "url";
@@ -217,7 +217,9 @@ function documentNumber(rel) {
217
217
  }
218
218
  function documentTitle(heading, number) {
219
219
  if (number === null) return heading;
220
- const rest = new RegExp(`^${number}\\s*[\u2014\u2013:-]\\s*(.+)$`).exec(heading)?.[1];
220
+ const rest = new RegExp(`^${number}\\s*[\u2014\u2013:-]\\s*(.+)$`).exec(
221
+ heading
222
+ )?.[1];
221
223
  return rest ?? heading;
222
224
  }
223
225
 
@@ -288,7 +290,7 @@ async function checkContract(rnessDir, override) {
288
290
  for (const key of PLACEMENT_KEYS) {
289
291
  if (Object.hasOwn(item.fields, key)) {
290
292
  problems.push(
291
- `${where}: front matter "${key}" is not supported \u2014 the directory decides the scope; move the file`
293
+ `${where}: front matter "${key}" is not supported: the directory decides the scope; move the file`
292
294
  );
293
295
  }
294
296
  }
@@ -1515,7 +1517,7 @@ function parseRepoSpec(spec, org, host) {
1515
1517
  }
1516
1518
 
1517
1519
  // src/version.ts
1518
- var VERSION = "0.22.0";
1520
+ var VERSION = "0.22.1";
1519
1521
 
1520
1522
  // src/core/pm.ts
1521
1523
  import { execFile as execFile2 } from "child_process";
@@ -3878,7 +3880,7 @@ function desiredOf(board, collections, org, fronts = /* @__PURE__ */ new Map(),
3878
3880
  }
3879
3881
  return {
3880
3882
  path: row.path,
3881
- title: `${row.id} \u2014 ${row.title}`,
3883
+ title: `${row.id} - ${row.title}`,
3882
3884
  body: headerOf(row.path, org),
3883
3885
  status: status2,
3884
3886
  statusField: c.field,
@@ -4297,7 +4299,7 @@ var GitHubBoards = class {
4297
4299
  if (there.layout !== LAYOUTS[view.layout] || view.layout === "board" && there.columnField !== view.columns) {
4298
4300
  await deleteView(there.id, this.#o);
4299
4301
  added.push(
4300
- `view ${view.name} remade${view.layout === "board" ? ` \u2014 columns ${view.columns}` : ""}`
4302
+ `view ${view.name} remade${view.layout === "board" ? `, columns ${view.columns}` : ""}`
4301
4303
  );
4302
4304
  await create(view);
4303
4305
  gone2(view.name);
@@ -5143,7 +5145,7 @@ var PROVIDERS = {
5143
5145
  gitlab: { name: "gitlab", label: "GitLab", available: false },
5144
5146
  atlassian: {
5145
5147
  name: "atlassian",
5146
- label: "Atlassian \u2014 Bitbucket + Jira",
5148
+ label: "Atlassian (Bitbucket + Jira)",
5147
5149
  available: false
5148
5150
  }
5149
5151
  };
@@ -5364,7 +5366,7 @@ function sessionUi(p) {
5364
5366
  spin.stop(line === null ? label : label_(line));
5365
5367
  return result;
5366
5368
  } catch (e) {
5367
- spin.error(`${label} \u2014 failed`);
5369
+ spin.error(`${label}: failed`);
5368
5370
  throw e;
5369
5371
  }
5370
5372
  }
@@ -6201,7 +6203,7 @@ async function context(opts, wait) {
6201
6203
  };
6202
6204
  }
6203
6205
  var waitSaid = (opts, ui) => rateWait(async (ms) => {
6204
- ui.line("waiting", `${Math.round(ms / 1e3)} s \u2014 GitHub's rate limit`);
6206
+ ui.line("waiting", `${Math.round(ms / 1e3)} s: GitHub's rate limit`);
6205
6207
  await (opts.sleep ?? ((n) => delay3(n)))(ms);
6206
6208
  });
6207
6209
  async function missingAccess(provider) {
@@ -6232,7 +6234,7 @@ async function declarations(c, ui) {
6232
6234
  if (still.length > 0) {
6233
6235
  ui?.line(
6234
6236
  "skipped",
6235
- `${name}: ${still.join(", ")}, which rness.json declares now \u2014 rness sync moves it`
6237
+ `${name}: ${still.join(", ")}, which rness.json declares now: rness sync moves it`
6236
6238
  );
6237
6239
  continue;
6238
6240
  }
@@ -6247,7 +6249,7 @@ async function declarations(c, ui) {
6247
6249
  }
6248
6250
  function noBoard(c) {
6249
6251
  return new Error(
6250
- c.manifest.refused === void 0 ? 'no board declared \u2014 declare one in .rness/rness.json, as "boards": { "pulse": "agent-pulse" }, then rness board push' : `no board rness.json declares is valid: ${c.manifest.refused.map((r) => r.reason).join("; ")}`
6252
+ c.manifest.refused === void 0 ? 'no board declared: declare one in .rness/rness.json, as "boards": { "pulse": "agent-pulse" }, then rness board push' : `no board rness.json declares is valid: ${c.manifest.refused.map((r) => r.reason).join("; ")}`
6251
6253
  );
6252
6254
  }
6253
6255
  async function declaredBoards(c, ui) {
@@ -6495,7 +6497,7 @@ async function syncBoard(c, board, ui, sayLayout, scope) {
6495
6497
  if (!(e instanceof RateLimitError)) throw e;
6496
6498
  const total = changes + writes.length;
6497
6499
  throw new Error(
6498
- `${e.message}: ${total - made} of ${total} changes not made \u2014 the next rness board push makes them`,
6500
+ `${e.message}: ${total - made} of ${total} changes not made: the next rness board push makes them`,
6499
6501
  { cause: e }
6500
6502
  );
6501
6503
  }
@@ -6601,7 +6603,7 @@ async function createBoards(c, boards, opts, terminal, ui, wait) {
6601
6603
  }
6602
6604
  c = { ...c, manifest };
6603
6605
  made.push(b.name);
6604
- ui.line("created", `${title} \u2014 ${board.url}`);
6606
+ ui.line("created", `${title} - ${board.url}`);
6605
6607
  }
6606
6608
  return { c, made, left: [] };
6607
6609
  }
@@ -6636,12 +6638,12 @@ async function boardPushCommand(opts, deps = {}) {
6636
6638
  if (made.length > 0)
6637
6639
  ui.line(
6638
6640
  "declared",
6639
- `${made.join(", ")} in .rness/rness.json \u2014 commit it: git -C .rness commit -am "chore: board ${made.join(", ")}"`
6641
+ `${made.join(", ")} in .rness/rness.json - commit it: git -C .rness commit -am "chore: board ${made.join(", ")}"`
6640
6642
  );
6641
6643
  }
6642
6644
  if (left.length > 0)
6643
6645
  throw new Error(
6644
- `not created: ${left.join(", ")} \u2014 rness board push in a terminal, or with --yes, creates ${left.length === 1 ? "it" : "them"}`
6646
+ `not created: ${left.join(", ")} - rness board push in a terminal, or with --yes, creates ${left.length === 1 ? "it" : "them"}`
6645
6647
  );
6646
6648
  return 0;
6647
6649
  } catch (e) {
@@ -6740,7 +6742,7 @@ async function run(opts, failures) {
6740
6742
  if (event === "session-end") {
6741
6743
  for (const d of acting("journal-summary"))
6742
6744
  try {
6743
- const { postSummary } = await import("./summary-47SFWNSQ.js");
6745
+ const { postSummary } = await import("./summary-5DVUIOJM.js");
6744
6746
  await postSummary({
6745
6747
  c,
6746
6748
  board: d,
@@ -6957,4 +6959,4 @@ export {
6957
6959
  boardRunCommand,
6958
6960
  pulseCreateCommand
6959
6961
  };
6960
- //# sourceMappingURL=chunk-XCO5ZT2H.js.map
6962
+ //# sourceMappingURL=chunk-OUZQGG6V.js.map