pi-roundtable-coding 0.45.1 → 0.46.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/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.46.0] - 2026-11-10
6
+
7
+ ### Fixed
8
+
9
+ - `DEFAULT_TOOL_TEXT` is frozen at every depth, so writing into it throws instead of changing the wording of every later `coding()` in the process; a spread of it, as the README shows, still composes.
10
+
11
+ ## [0.45.2] - 2026-11-10
12
+
13
+ - Release in lockstep with pi-roundtable 0.45.2 (chat home: one accent badge for every agent picture, pins drag again); no package-specific behavior changes.
14
+
5
15
  ## [0.45.1] - 2026-11-10
6
16
 
7
17
  - Release in lockstep with pi-roundtable 0.45.1 (chat home: Home leads the list, group figures under the bar); no package-specific behavior changes.
package/README.md CHANGED
@@ -7,7 +7,7 @@ This package is a reference for the plugin guide's [Helpers for a Pi session of
7
7
  ## Requirements
8
8
 
9
9
  - Bun 1.4.4 or newer on a POSIX host (Linux or macOS).
10
- - pi-roundtable `>=0.45.0 <0.46.0` as a peer dependency; this package uses only its public main, kit and testing entries.
10
+ - pi-roundtable `>=0.46.0 <0.47.0` as a peer dependency; this package uses only its public main, kit and testing entries.
11
11
  - Pi `>=1.0.0 <2`, shared with the host's core dependencies.
12
12
  A core-only host still pinned to Pi 0.99.x must update its Pi dependencies before adding coding, so cross-package extension and session types resolve to one Pi version.
13
13
  - Git, plus GitHub CLI (`gh`) for the default clone implementation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-roundtable-coding",
3
- "version": "0.45.1",
3
+ "version": "0.46.0",
4
4
  "description": "Repository shelves and owner-approved Pi coding workers for pi-roundtable",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -38,13 +38,13 @@
38
38
  "typebox": "1.3.37"
39
39
  },
40
40
  "peerDependencies": {
41
- "pi-roundtable": ">=0.45.0 <0.46.0"
41
+ "pi-roundtable": ">=0.46.0 <0.47.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@earendil-works/pi-ai": ">=1.0.0 <2",
45
45
  "@biomejs/biome": "2.5.15",
46
46
  "@types/bun": "1.4.3",
47
- "pi-roundtable": "0.45.1",
47
+ "pi-roundtable": "0.46.0",
48
48
  "typescript": "7.0.2"
49
49
  }
50
50
  }
package/src/tool-text.ts CHANGED
@@ -1,7 +1,25 @@
1
- import type { CodingToolText, RepoToolName } from "./coding-options.ts";
1
+ import type { RepoToolName } from "./coding-options.ts";
2
+
3
+ /** The shipped wording of every repository tool; frozen at every depth. */
4
+ export type RepoToolTexts = Readonly<
5
+ Record<
6
+ RepoToolName,
7
+ Readonly<{
8
+ description: string;
9
+ parameters: Readonly<Record<string, string>>;
10
+ }>
11
+ >
12
+ >;
2
13
 
3
14
  const REPO = "A managed repository, owner/repo.";
4
15
 
16
+ /** Freezes the value and every object inside it. */
17
+ function deepFreeze<T extends object>(value: T): T {
18
+ for (const child of Object.values(value))
19
+ if (child && typeof child === "object") deepFreeze(child);
20
+ return Object.freeze(value);
21
+ }
22
+
5
23
  /**
6
24
  * The wording of each repository tool as the package ships it: the description, and the argument
7
25
  * descriptions by argument name (an argument absent here has none). A host words only what must
@@ -9,9 +27,7 @@ const REPO = "A managed repository, owner/repo.";
9
27
  * `{ repo_task: { description: `${DEFAULT_TOOL_TEXT.repo_task.description} Extra.` } }`, and
10
28
  * compares against this to see what a new package version changed.
11
29
  */
12
- export const DEFAULT_TOOL_TEXT: Readonly<
13
- Record<RepoToolName, Required<CodingToolText>>
14
- > = {
30
+ export const DEFAULT_TOOL_TEXT: RepoToolTexts = deepFreeze({
15
31
  repo_list: {
16
32
  description:
17
33
  "List managed clones, branch, upstream counts, dirty files, last commit, summary, CI hints and linked skills. Fetch first only when requested.",
@@ -51,4 +67,4 @@ export const DEFAULT_TOOL_TEXT: Readonly<
51
67
  reason: "Why, for its report.",
52
68
  },
53
69
  },
54
- };
70
+ });