@mccaskie-labs/workbench-config 0.1.3 → 0.1.4

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,11 @@
1
1
  # @mccaskie-labs/workbench-config
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - The `ai` manifest is built (step 4.7): `Ai.countTokens` in its package surface and an `ai.budget` probe.
8
+
3
9
  ## 0.1.3
4
10
 
5
11
  ### Patch Changes
@@ -4,10 +4,10 @@
4
4
  "component": "ai",
5
5
  "title": "Claude through the Gateway",
6
6
  "summary": "Text, structured output and streaming from Claude, metered against the project's budget. Apps never hold an Anthropic key.",
7
- "status": "planned",
7
+ "status": "built",
8
8
  "surfaces": {
9
9
  "gateway": ["POST /anthropic/v1/messages", "POST /anthropic/v1/messages/count_tokens"],
10
- "package": ["createAi", "Ai.text", "Ai.structured", "Ai.stream", "Ai.budget", "createFakeAi"]
10
+ "package": ["createAi", "Ai.text", "Ai.structured", "Ai.stream", "Ai.countTokens", "Ai.budget", "createFakeAi"]
11
11
  },
12
12
  "config": [
13
13
  {
@@ -64,6 +64,7 @@
64
64
  { "id": "ai.structured", "half": "runtime", "expect": "pass", "cost_hint_usd": 0.003 },
65
65
  { "id": "ai.text.truncation-throws", "half": "runtime", "expect": "pass", "cost_hint_usd": 0.001 },
66
66
  { "id": "ai.model-not-allowed", "half": "runtime", "expect": "refused_as_expected", "refusal": "model_not_allowed", "cost_hint_usd": 0 },
67
- { "id": "ai.count-tokens", "half": "runtime", "expect": "pass", "smoke": true, "cost_hint_usd": 0 }
67
+ { "id": "ai.count-tokens", "half": "runtime", "expect": "pass", "smoke": true, "cost_hint_usd": 0 },
68
+ { "id": "ai.budget", "half": "runtime", "expect": "pass", "smoke": true, "cost_hint_usd": 0 }
68
69
  ]
69
70
  }
@@ -1,4 +1,4 @@
1
- export declare const MANIFEST_VERSION: "491c578e91bc";
1
+ export declare const MANIFEST_VERSION: "9005150c45b1";
2
2
  export declare const capabilities: {
3
3
  readonly ai: {
4
4
  readonly $schema: "./schema.json";
@@ -6,10 +6,10 @@ export declare const capabilities: {
6
6
  readonly component: "ai";
7
7
  readonly title: "Claude through the Gateway";
8
8
  readonly summary: "Text, structured output and streaming from Claude, metered against the project's budget. Apps never hold an Anthropic key.";
9
- readonly status: "planned";
9
+ readonly status: "built";
10
10
  readonly surfaces: {
11
11
  readonly gateway: readonly ["POST /anthropic/v1/messages", "POST /anthropic/v1/messages/count_tokens"];
12
- readonly package: readonly ["createAi", "Ai.text", "Ai.structured", "Ai.stream", "Ai.budget", "createFakeAi"];
12
+ readonly package: readonly ["createAi", "Ai.text", "Ai.structured", "Ai.stream", "Ai.countTokens", "Ai.budget", "createFakeAi"];
13
13
  };
14
14
  readonly config: readonly [{
15
15
  readonly name: "WORKBENCH_GATEWAY_KEY";
@@ -129,6 +129,12 @@ export declare const capabilities: {
129
129
  readonly expect: "pass";
130
130
  readonly smoke: true;
131
131
  readonly cost_hint_usd: 0;
132
+ }, {
133
+ readonly id: "ai.budget";
134
+ readonly half: "runtime";
135
+ readonly expect: "pass";
136
+ readonly smoke: true;
137
+ readonly cost_hint_usd: 0;
132
138
  }];
133
139
  };
134
140
  readonly config: {
@@ -1,6 +1,6 @@
1
1
  // Generated by `npm run capabilities:build` from capabilities/*.json. Do not edit.
2
2
  // check:capabilities fails in Checks when this file is stale.
3
- export const MANIFEST_VERSION = "491c578e91bc";
3
+ export const MANIFEST_VERSION = "9005150c45b1";
4
4
  export const capabilities = {
5
5
  "ai": {
6
6
  "$schema": "./schema.json",
@@ -8,7 +8,7 @@ export const capabilities = {
8
8
  "component": "ai",
9
9
  "title": "Claude through the Gateway",
10
10
  "summary": "Text, structured output and streaming from Claude, metered against the project's budget. Apps never hold an Anthropic key.",
11
- "status": "planned",
11
+ "status": "built",
12
12
  "surfaces": {
13
13
  "gateway": [
14
14
  "POST /anthropic/v1/messages",
@@ -19,6 +19,7 @@ export const capabilities = {
19
19
  "Ai.text",
20
20
  "Ai.structured",
21
21
  "Ai.stream",
22
+ "Ai.countTokens",
22
23
  "Ai.budget",
23
24
  "createFakeAi"
24
25
  ]
@@ -183,6 +184,13 @@ export const capabilities = {
183
184
  "expect": "pass",
184
185
  "smoke": true,
185
186
  "cost_hint_usd": 0
187
+ },
188
+ {
189
+ "id": "ai.budget",
190
+ "half": "runtime",
191
+ "expect": "pass",
192
+ "smoke": true,
193
+ "cost_hint_usd": 0
186
194
  }
187
195
  ]
188
196
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mccaskie-labs/workbench-config",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Workbench app configuration: WORKBENCH_ENV, typed variables that fail by name, secrets that are never printed, and the capabilities manifest.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",