You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,15 @@ Since v2.1.0, we're keeping a changelog of each version's changes in NeuroPilot.
6
6
7
7
Changes between each version before then will not be listed.
8
8
9
+
## 3.0.0
10
+
11
+
### Additions
12
+
13
+
- Internally, NeuroPilot changed to use [Zod](https://zod.dev) for JSON schema generation and validation.
14
+
- This shouldn't mean that schemas are changed (except `rewrite_lines`, which is intentional). If any schemas have been changed as a result of this, it is considered a regression, and [is worth reporting](https://github.com/VSC-NeuroPilot/neuropilot/issues/new).
15
+
- NeuroPilot actually accepts any TypeScript schema library that conforms to the [Standard JSON Schema specification](https://standardschema.dev/json-schema), however this is only relevant for the public API where companion developers can choose between schema libraries listed as compatible in the above list.
16
+
- By default, NeuroPilot will attempt to convert these schemas to the `draft-07` JSON schema version. Failing that, it will try to convert to `draft-2020-12` instead, with a warning logged in console. NeuroPilot does *not* attempt conversion to `openapi-3.0`, as it uses keywords not in the official JSON schema specification.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,12 @@ Please refer to our [contributor docs](https://vsc-neuropilot.github.io/docs/met
5
5
## Contributing
6
6
7
7
If you have an idea or want to contribute a feature, please first [create an issue](https://github.com/VSC-NeuroPilot/neuropilot/issues) or send a message to `@Pasu4` in the project's [post on the Neuro Discord](https://discord.com/channels/574720535888396288/1350968830230396938).
8
-
If you make a pull request that contributes code, please run `npm run lint src` and resolve any errors that did not get auto-fixed, preferrably before each commit.
8
+
If you make a pull request that contributes code, please run `pnpm run lint src` and resolve any errors that did not get auto-fixed, preferrably before each commit.
9
9
10
10
PRs should generally target the `dev` branch (or another feature branch) unless there is a specific reason to do otherwise (if so, please explain it in your PR).
11
11
12
+
New actions should use [Zod](https://zod.dev) for schema generation, instead of plain JSON schema objects.
13
+
12
14
This repository accepts only TypeScript for the main code. Submissions in JavaScript to the core code will require a conversion to TypeScript first.
description: 'Get changelog entries starting from a specified version. If fromVersion is omitted, any new entries after the last read_changelog command are read.',
21
21
category: CATEGORY_MISC,
22
-
schema: {
23
-
type: 'object',
24
-
properties: {
25
-
fromVersion: {type: 'string',description: 'Version (e.g., 2.2.1) to start including entries from, inclusive.'},
26
-
},
27
-
additionalProperties: false,
28
-
},
22
+
schema: z.object({
23
+
fromVersion: z.string().meta({
24
+
description: 'Version (e.g., 2.2.1) to start including entries from, inclusive.',
0 commit comments