@mrclrchtr/supi-context 11.3.0 → 12.0.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
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [12.0.0]
4
+
5
+ - Codemode now lists the `context_report` tool under a `context` namespace heading, so scripts can find them with `describeNamespace("context")` or `searchTools(query, { namespace: "context" })`. It is annotated read-only ([#582](https://github.com/mrclrchtr/supi/issues/582)).
6
+
3
7
  ## [11.3.0]
4
8
 
5
9
  - Added package-specific release notes for live context-pressure and token-use reports.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrclrchtr/supi-core",
3
- "version": "11.3.0",
3
+ "version": "12.0.0",
4
4
  "description": "Shared settings, configuration, reporting, and session infrastructure",
5
5
  "license": "MIT",
6
6
  "repository": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrclrchtr/supi-context",
3
- "version": "11.3.0",
3
+ "version": "12.0.0",
4
4
  "description": "Live context pressure and token-use reports",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "README.md"
33
33
  ],
34
34
  "dependencies": {
35
- "@mrclrchtr/supi-core": "11.3.0"
35
+ "@mrclrchtr/supi-core": "12.0.0"
36
36
  },
37
37
  "bundledDependencies": [
38
38
  "@mrclrchtr/supi-core"
@@ -1,4 +1,5 @@
1
1
  import type { BuildSystemPromptOptions, ExtensionAPI } from "@earendil-works/pi-coding-agent";
2
+ import { CONTEXT_TOOL_NAMESPACE } from "../namespace.ts";
2
3
  import { makeContextReportExecute } from "./execute.ts";
3
4
  import { promptSnippet, toolDescription } from "./guidance.ts";
4
5
  import { renderContextToolCall, renderContextToolResult } from "./render.ts";
@@ -11,6 +12,7 @@ export function registerContextReportTool(
11
12
  ): void {
12
13
  pi.registerTool({
13
14
  ...contextReportSpec,
15
+ namespace: CONTEXT_TOOL_NAMESPACE,
14
16
  description: toolDescription,
15
17
  promptSnippet,
16
18
  execute: makeContextReportExecute(pi, getOptions),
@@ -8,6 +8,12 @@ export const CONTEXT_REPORT_TOOL_LABEL = "Context Usage";
8
8
  export const contextReportSpec = {
9
9
  name: CONTEXT_REPORT_TOOL_NAME,
10
10
  label: CONTEXT_REPORT_TOOL_LABEL,
11
+ annotations: {
12
+ readOnlyHint: true,
13
+ destructiveHint: false,
14
+ idempotentHint: true,
15
+ openWorldHint: false,
16
+ },
11
17
  outputSchema: contextReportOutputSchema,
12
18
  parameters: Type.Object({
13
19
  mode: Type.Optional(
@@ -0,0 +1,7 @@
1
+ import type { ToolNamespace } from "@earendil-works/pi-coding-agent";
2
+
3
+ /** Codemode namespace for the context usage tool. */
4
+ export const CONTEXT_TOOL_NAMESPACE: ToolNamespace = {
5
+ name: "context",
6
+ description: "Context-window usage and attribution for the current session.",
7
+ };