@project-ajax/create 0.0.40 → 0.0.42

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/dist/index.js CHANGED
@@ -180,7 +180,7 @@ function createSpinner(options) {
180
180
  },
181
181
  succeed(finalText) {
182
182
  stop();
183
- writeLine(colors.success("\u2713"), finalText ?? text);
183
+ writeLine(colors.success("\u2714"), finalText ?? text);
184
184
  },
185
185
  fail(finalText) {
186
186
  stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@project-ajax/create",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "description": "Initialize a new Notion Workers extensions repo.",
5
5
  "bin": {
6
6
  "create-ajax": "dist/index.js"
@@ -8,7 +8,7 @@ const worker = new Worker();
8
8
  export default worker;
9
9
 
10
10
  worker.tool<
11
- { query?: string | null; limit?: number | null },
11
+ { query: string | null; limit: number | null },
12
12
  { results: string[] }
13
13
  >("myTool", {
14
14
  title: "My Tool",
@@ -19,17 +19,15 @@ worker.tool<
19
19
  type: "object",
20
20
  properties: {
21
21
  query: {
22
- type: "string",
23
- nullable: true,
22
+ anyOf: [{ type: "string" }, { type: "null" }],
24
23
  description: "The search query",
25
24
  },
26
25
  limit: {
27
- type: "number",
28
- nullable: true,
26
+ anyOf: [{ type: "number" }, { type: "null" }],
29
27
  description: "Maximum number of results",
30
28
  },
31
29
  },
32
- required: [],
30
+ required: ["query", "limit"],
33
31
  additionalProperties: false,
34
32
  },
35
33
  // Optional: JSON Schema for the output the tool returns
@@ -11,12 +11,12 @@
11
11
  "npm": ">=10.9.2"
12
12
  },
13
13
  "devDependencies": {
14
+ "@project-ajax/cli": ">=0.0.0",
14
15
  "@types/node": "^22.9.0",
15
16
  "tsx": "^4.20.6",
16
17
  "typescript": "^5.8.0"
17
18
  },
18
19
  "dependencies": {
19
- "@project-ajax/cli": ">=0.0.22-alpha.1",
20
20
  "@project-ajax/sdk": ">=0.0.0"
21
21
  }
22
22
  }