@ic-reactor/cli 0.6.0 → 0.7.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/dist/index.js CHANGED
@@ -252,7 +252,7 @@ Failed: ${pc2.red(errorCount.toString())}`,
252
252
  import pc3 from "picocolors";
253
253
 
254
254
  // package.json
255
- var version = "0.6.0";
255
+ var version = "0.7.0";
256
256
 
257
257
  // src/index.ts
258
258
  var program = new Command();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ic-reactor/cli",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "description": "CLI tool to generate shadcn-style React hooks for ICP canisters",
6
6
  "main": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "@icp-sdk/core": "^5.0.0",
34
34
  "commander": "^14.0.3",
35
35
  "picocolors": "^1.1.1",
36
- "@ic-reactor/codegen": "0.6.0"
36
+ "@ic-reactor/codegen": "0.7.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/node": "^25.2.3",
package/schema.json CHANGED
@@ -18,27 +18,6 @@
18
18
  "description": "Default import path for the client manager (relative from generated files)",
19
19
  "default": "../../clients"
20
20
  },
21
- "reactor": {
22
- "type": "object",
23
- "description": "Control whether generated default hooks use raw Reactor or DisplayReactor",
24
- "properties": {
25
- "defaultMode": {
26
- "type": "string",
27
- "enum": ["raw", "display"],
28
- "description": "Global default reactor mode for generated hooks",
29
- "default": "display"
30
- },
31
- "canisters": {
32
- "type": "object",
33
- "description": "Per-canister reactor mode overrides keyed by canister name",
34
- "additionalProperties": {
35
- "type": "string",
36
- "enum": ["raw", "display"]
37
- }
38
- }
39
- },
40
- "additionalProperties": false
41
- },
42
21
  "canisters": {
43
22
  "type": "object",
44
23
  "description": "Canister configurations",
@@ -61,6 +40,17 @@
61
40
  "type": "string",
62
41
  "description": "Override client manager import path for this canister"
63
42
  },
43
+ "mode": {
44
+ "type": "string",
45
+ "enum": [
46
+ "Reactor",
47
+ "DisplayReactor",
48
+ "CandidReactor",
49
+ "CandidDisplayReactor",
50
+ "MetadataDisplayReactor"
51
+ ],
52
+ "description": "Reactor class used for generated hooks (defaults to DisplayReactor)"
53
+ },
64
54
  "canisterId": {
65
55
  "type": "string",
66
56
  "description": "Optional fixed canister ID"