@pikku/cli 0.9.13 → 0.9.15

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,17 @@
1
1
  # @pikku/cli
2
2
 
3
+ ## 0.9.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 749d921: chore: intermin combat with new cli changes
8
+
9
+ ## 0.9.14
10
+
11
+ ### Patch Changes
12
+
13
+ - 798d52c: refactor: move all rpc generated info into rpc and removing rpc-internal
14
+
3
15
  ## 0.9.13
4
16
 
5
17
  ### Patch Changes
package/cli.schema.json CHANGED
@@ -39,7 +39,9 @@
39
39
  "type": "string"
40
40
  }
41
41
  },
42
- "required": ["url"],
42
+ "required": [
43
+ "url"
44
+ ],
43
45
  "type": "object"
44
46
  },
45
47
  "info": {
@@ -73,7 +75,9 @@
73
75
  "type": "string"
74
76
  }
75
77
  },
76
- "required": ["name"],
78
+ "required": [
79
+ "name"
80
+ ],
77
81
  "type": "object"
78
82
  },
79
83
  "termsOfService": {
@@ -86,7 +90,11 @@
86
90
  "type": "string"
87
91
  }
88
92
  },
89
- "required": ["title", "version", "description"],
93
+ "required": [
94
+ "title",
95
+ "version",
96
+ "description"
97
+ ],
90
98
  "type": "object"
91
99
  },
92
100
  "security": {
@@ -113,7 +121,9 @@
113
121
  "type": "string"
114
122
  }
115
123
  },
116
- "required": ["url"],
124
+ "required": [
125
+ "url"
126
+ ],
117
127
  "type": "object"
118
128
  },
119
129
  "type": "array"
@@ -129,13 +139,18 @@
129
139
  "type": "string"
130
140
  }
131
141
  },
132
- "required": ["name"],
142
+ "required": [
143
+ "name"
144
+ ],
133
145
  "type": "object"
134
146
  },
135
147
  "type": "array"
136
148
  }
137
149
  },
138
- "required": ["info", "servers"],
150
+ "required": [
151
+ "info",
152
+ "servers"
153
+ ],
139
154
  "type": "object"
140
155
  },
141
156
  "PikkuCLIConfig": {
@@ -169,7 +184,14 @@
169
184
  "type": "string"
170
185
  }
171
186
  },
172
- "required": ["http", "scheduler", "channel", "rpc", "queue", "mcp"],
187
+ "required": [
188
+ "http",
189
+ "scheduler",
190
+ "channel",
191
+ "rpc",
192
+ "queue",
193
+ "mcp"
194
+ ],
173
195
  "type": "object"
174
196
  },
175
197
  "channelsMapDeclarationFile": {
@@ -242,7 +264,10 @@
242
264
  "type": "string"
243
265
  }
244
266
  },
245
- "required": ["outputFile", "additionalInfo"],
267
+ "required": [
268
+ "outputFile",
269
+ "additionalInfo"
270
+ ],
246
271
  "type": "object"
247
272
  },
248
273
  "outDir": {
@@ -354,4 +379,4 @@
354
379
  "type": "object"
355
380
  }
356
381
  }
357
- }
382
+ }
@@ -61,8 +61,7 @@ const _getPikkuCLIConfig = async (configFile = undefined, requiredFields, filter
61
61
  const functionDir = join(result.outDir, 'function');
62
62
  const httpDir = join(result.outDir, 'http');
63
63
  const channelDir = join(result.outDir, 'channel');
64
- const internalRPCDirectory = join(result.outDir, 'rpc-internal');
65
- const externalRPCDirectory = join(result.outDir, 'rpc');
64
+ const rpcDir = join(result.outDir, 'rpc');
66
65
  const schedulerDir = join(result.outDir, 'scheduler');
67
66
  const queueDir = join(result.outDir, 'queue');
68
67
  const mcpDir = join(result.outDir, 'mcp');
@@ -103,16 +102,15 @@ const _getPikkuCLIConfig = async (configFile = undefined, requiredFields, filter
103
102
  if (!result.channelsMapDeclarationFile) {
104
103
  result.channelsMapDeclarationFile = join(channelDir, 'pikku-channels-map.gen.d.ts');
105
104
  }
106
- // Internal
105
+ // RPC (internal and exposed)
107
106
  if (!result.rpcInternalWiringMetaFile) {
108
- result.rpcInternalWiringMetaFile = join(internalRPCDirectory, 'pikku-rpc-wirings-meta.internal.gen.ts');
107
+ result.rpcInternalWiringMetaFile = join(rpcDir, 'pikku-rpc-wirings-meta.internal.gen.ts');
109
108
  }
110
109
  if (!result.rpcInternalMapDeclarationFile) {
111
- result.rpcInternalMapDeclarationFile = join(internalRPCDirectory, 'pikku-rpc-wirings-map.internal.gen.d.ts');
110
+ result.rpcInternalMapDeclarationFile = join(rpcDir, 'pikku-rpc-wirings-map.internal.gen.d.ts');
112
111
  }
113
- // External
114
112
  if (!result.rpcMapDeclarationFile) {
115
- result.rpcMapDeclarationFile = join(externalRPCDirectory, 'pikku-rpc-wirings-map.gen.d.ts');
113
+ result.rpcMapDeclarationFile = join(rpcDir, 'pikku-rpc-wirings-map.gen.d.ts');
116
114
  }
117
115
  // Scheduler
118
116
  if (!result.schedulersWiringFile) {
@@ -155,7 +155,7 @@ type SchedulerWiring = CoreScheduledTask<PikkuFunctionSessionless<void, void>, P
155
155
  * @template In - Input type for the queue job
156
156
  * @template Out - Output type for the queue job
157
157
  */
158
- type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionSessionless<In, Out>>
158
+ type QueueWiring<In, Out> = CoreQueueWorker<any>
159
159
 
160
160
  /**
161
161
  * Type definition for MCP resources that provide data to AI models.
@@ -441,7 +441,7 @@ export { addPermission }
441
441
  export const wireHTTP = <In, Out, Route extends string>(
442
442
  httpWiring: HTTPWiring<In, Out, Route> & AssertHTTPWiringParams<In, Route>
443
443
  ) => {
444
- wireHTTPCore(httpWiring)
444
+ wireHTTPCore(httpWiring as any) // TODO
445
445
  }
446
446
 
447
447
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/cli",
3
- "version": "0.9.13",
3
+ "version": "0.9.15",
4
4
  "author": "yasser.fadl@gmail.com",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -172,8 +172,7 @@ const _getPikkuCLIConfig = async (
172
172
  const functionDir = join(result.outDir, 'function')
173
173
  const httpDir = join(result.outDir, 'http')
174
174
  const channelDir = join(result.outDir, 'channel')
175
- const internalRPCDirectory = join(result.outDir, 'rpc-internal')
176
- const externalRPCDirectory = join(result.outDir, 'rpc')
175
+ const rpcDir = join(result.outDir, 'rpc')
177
176
  const schedulerDir = join(result.outDir, 'scheduler')
178
177
  const queueDir = join(result.outDir, 'queue')
179
178
  const mcpDir = join(result.outDir, 'mcp')
@@ -238,25 +237,24 @@ const _getPikkuCLIConfig = async (
238
237
  )
239
238
  }
240
239
 
241
- // Internal
240
+ // RPC (internal and exposed)
242
241
  if (!result.rpcInternalWiringMetaFile) {
243
242
  result.rpcInternalWiringMetaFile = join(
244
- internalRPCDirectory,
243
+ rpcDir,
245
244
  'pikku-rpc-wirings-meta.internal.gen.ts'
246
245
  )
247
246
  }
248
247
 
249
248
  if (!result.rpcInternalMapDeclarationFile) {
250
249
  result.rpcInternalMapDeclarationFile = join(
251
- internalRPCDirectory,
250
+ rpcDir,
252
251
  'pikku-rpc-wirings-map.internal.gen.d.ts'
253
252
  )
254
253
  }
255
254
 
256
- // External
257
255
  if (!result.rpcMapDeclarationFile) {
258
256
  result.rpcMapDeclarationFile = join(
259
- externalRPCDirectory,
257
+ rpcDir,
260
258
  'pikku-rpc-wirings-map.gen.d.ts'
261
259
  )
262
260
  }
@@ -163,7 +163,7 @@ type SchedulerWiring = CoreScheduledTask<PikkuFunctionSessionless<void, void>, P
163
163
  * @template In - Input type for the queue job
164
164
  * @template Out - Output type for the queue job
165
165
  */
166
- type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionSessionless<In, Out>>
166
+ type QueueWiring<In, Out> = CoreQueueWorker<any>
167
167
 
168
168
  /**
169
169
  * Type definition for MCP resources that provide data to AI models.
@@ -449,7 +449,7 @@ export { addPermission }
449
449
  export const wireHTTP = <In, Out, Route extends string>(
450
450
  httpWiring: HTTPWiring<In, Out, Route> & AssertHTTPWiringParams<In, Route>
451
451
  ) => {
452
- wireHTTPCore(httpWiring)
452
+ wireHTTPCore(httpWiring as any) // TODO
453
453
  }
454
454
 
455
455
  /**