Skip to content

Commit ade1b68

Browse files
authored
fix(schema): Update to schema v0.10.7 (#58)
Addresses some type changes + titles
1 parent 7048a66 commit ade1b68

7 files changed

Lines changed: 475 additions & 272 deletions

File tree

package-lock.json

Lines changed: 203 additions & 198 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@
4747
"zod": "^3.25.0 || ^4.0.0"
4848
},
4949
"devDependencies": {
50-
"@hey-api/openapi-ts": "^0.90.3",
51-
"@types/node": "^25.0.7",
52-
"@typescript-eslint/eslint-plugin": "^8.53.0",
53-
"@typescript-eslint/parser": "^8.53.0",
50+
"@hey-api/openapi-ts": "^0.90.8",
51+
"@types/node": "^25.0.10",
52+
"@typescript-eslint/eslint-plugin": "^8.53.1",
53+
"@typescript-eslint/parser": "^8.53.1",
5454
"concurrently": "^9.2.1",
5555
"eslint": "^9.39.2",
5656
"eslint-config-prettier": "^10.1.8",
5757
"http-server": "^14.1.1",
58-
"prettier": "^3.7.4",
58+
"prettier": "^3.8.1",
5959
"tsx": "^4.21.0",
6060
"typedoc": "^0.28.16",
6161
"typedoc-github-theme": "^0.3.1",

release-please-config.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"packages": {
55
".": {
66
"changelog-path": "CHANGELOG.md",
7-
"release-type": "node"
7+
"release-type": "node",
8+
"bump-minor-pre-major": true,
9+
"bump-patch-for-minor-pre-major": true
810
}
911
},
1012
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"

schema/schema.json

Lines changed: 248 additions & 62 deletions
Large diffs are not rendered by default.

scripts/generate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as fs from "fs/promises";
55
import { dirname } from "path";
66
import * as prettier from "prettier";
77

8-
const CURRENT_SCHEMA_RELEASE = "v0.10.6";
8+
const CURRENT_SCHEMA_RELEASE = "v0.10.7";
99

1010
await main();
1111

@@ -33,7 +33,7 @@ async function main() {
3333
},
3434
output: {
3535
path: "./src/schema",
36-
format: "prettier",
36+
postProcess: ["prettier"],
3737
},
3838
plugins: ["@hey-api/transformers", "@hey-api/typescript", "zod"],
3939
});

src/schema/types.gen.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ export type AvailableCommand = {
224224
};
225225

226226
/**
227+
* unstructured
228+
*
227229
* All text that was typed after the command name is provided as input.
228230
*/
229231
export type AvailableCommandInput = UnstructuredCommandInput;
@@ -2090,15 +2092,18 @@ export type SessionConfigOption = SessionConfigSelect & {
20902092
* This is intended to help Clients distinguish broadly common selectors (e.g. model selector vs
20912093
* session mode selector vs thought/reasoning level) for UX purposes (keyboard shortcuts, icons,
20922094
* placement). It MUST NOT be required for correctness. Clients MUST handle missing or unknown
2093-
* categories gracefully (treat as `Other`).
2095+
* categories gracefully.
2096+
*
2097+
* Category names beginning with `_` are free for custom use, like other ACP extension methods.
2098+
* Category names that do not begin with `_` are reserved for the ACP spec.
20942099
*
20952100
* @experimental
20962101
*/
20972102
export type SessionConfigOptionCategory =
20982103
| "mode"
20992104
| "model"
21002105
| "thought_level"
2101-
| "other";
2106+
| string;
21022107

21032108
/**
21042109
* **UNSTABLE**

src/schema/zod.gen.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,15 +616,18 @@ export const zSessionConfigId = z.string();
616616
* This is intended to help Clients distinguish broadly common selectors (e.g. model selector vs
617617
* session mode selector vs thought/reasoning level) for UX purposes (keyboard shortcuts, icons,
618618
* placement). It MUST NOT be required for correctness. Clients MUST handle missing or unknown
619-
* categories gracefully (treat as `Other`).
619+
* categories gracefully.
620+
*
621+
* Category names beginning with `_` are free for custom use, like other ACP extension methods.
622+
* Category names that do not begin with `_` are reserved for the ACP spec.
620623
*
621624
* @experimental
622625
*/
623626
export const zSessionConfigOptionCategory = z.union([
624627
z.literal("mode"),
625628
z.literal("model"),
626629
z.literal("thought_level"),
627-
z.literal("other"),
630+
z.string(),
628631
]);
629632

630633
/**
@@ -1583,6 +1586,8 @@ export const zUnstructuredCommandInput = z.object({
15831586
});
15841587

15851588
/**
1589+
* unstructured
1590+
*
15861591
* All text that was typed after the command name is provided as input.
15871592
*/
15881593
export const zAvailableCommandInput = zUnstructuredCommandInput;

0 commit comments

Comments
 (0)