kubun 0.4.3 → 0.4.4

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/README.md CHANGED
@@ -20,7 +20,7 @@ $ npm install -g kubun
20
20
  $ kubun COMMAND
21
21
  running command...
22
22
  $ kubun (--version)
23
- kubun/0.4.3 darwin-arm64 node-v24.13.0
23
+ kubun/0.4.4 darwin-arm64 node-v24.13.0
24
24
  $ kubun --help [COMMAND]
25
25
  USAGE
26
26
  $ kubun COMMAND
@@ -39,16 +39,6 @@ USAGE
39
39
  * [`kubun mcp`](#kubun-mcp)
40
40
  * [`kubun model cluster`](#kubun-model-cluster)
41
41
  * [`kubun model create NAME SCHEMA`](#kubun-model-create-name-schema)
42
- * [`kubun plugins`](#kubun-plugins)
43
- * [`kubun plugins add PLUGIN`](#kubun-plugins-add-plugin)
44
- * [`kubun plugins:inspect PLUGIN...`](#kubun-pluginsinspect-plugin)
45
- * [`kubun plugins install PLUGIN`](#kubun-plugins-install-plugin)
46
- * [`kubun plugins link PATH`](#kubun-plugins-link-path)
47
- * [`kubun plugins remove [PLUGIN]`](#kubun-plugins-remove-plugin)
48
- * [`kubun plugins reset`](#kubun-plugins-reset)
49
- * [`kubun plugins uninstall [PLUGIN]`](#kubun-plugins-uninstall-plugin)
50
- * [`kubun plugins unlink [PLUGIN]`](#kubun-plugins-unlink-plugin)
51
- * [`kubun plugins update`](#kubun-plugins-update)
52
42
  * [`kubun serve`](#kubun-serve)
53
43
 
54
44
  ## `kubun account generate`
@@ -173,7 +163,7 @@ DESCRIPTION
173
163
  Display help for kubun.
174
164
  ```
175
165
 
176
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.36/src/commands/help.ts)_
166
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.37/src/commands/help.ts)_
177
167
 
178
168
  ## `kubun mcp`
179
169
 
@@ -231,296 +221,6 @@ DESCRIPTION
231
221
  Create a document model
232
222
  ```
233
223
 
234
- ## `kubun plugins`
235
-
236
- List installed plugins.
237
-
238
- ```
239
- USAGE
240
- $ kubun plugins [--json] [--core]
241
-
242
- FLAGS
243
- --core Show core plugins.
244
-
245
- GLOBAL FLAGS
246
- --json Format output as json.
247
-
248
- DESCRIPTION
249
- List installed plugins.
250
-
251
- EXAMPLES
252
- $ kubun plugins
253
- ```
254
-
255
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/index.ts)_
256
-
257
- ## `kubun plugins add PLUGIN`
258
-
259
- Installs a plugin into kubun.
260
-
261
- ```
262
- USAGE
263
- $ kubun plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]
264
-
265
- ARGUMENTS
266
- PLUGIN... Plugin to install.
267
-
268
- FLAGS
269
- -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
270
- -h, --help Show CLI help.
271
- -s, --silent Silences npm output.
272
- -v, --verbose Show verbose npm output.
273
-
274
- GLOBAL FLAGS
275
- --json Format output as json.
276
-
277
- DESCRIPTION
278
- Installs a plugin into kubun.
279
-
280
- Uses npm to install plugins.
281
-
282
- Installation of a user-installed plugin will override a core plugin.
283
-
284
- Use the KUBUN_NPM_LOG_LEVEL environment variable to set the npm loglevel.
285
- Use the KUBUN_NPM_REGISTRY environment variable to set the npm registry.
286
-
287
- ALIASES
288
- $ kubun plugins add
289
-
290
- EXAMPLES
291
- Install a plugin from npm registry.
292
-
293
- $ kubun plugins add myplugin
294
-
295
- Install a plugin from a github url.
296
-
297
- $ kubun plugins add https://github.com/someuser/someplugin
298
-
299
- Install a plugin from a github slug.
300
-
301
- $ kubun plugins add someuser/someplugin
302
- ```
303
-
304
- ## `kubun plugins:inspect PLUGIN...`
305
-
306
- Displays installation properties of a plugin.
307
-
308
- ```
309
- USAGE
310
- $ kubun plugins inspect PLUGIN...
311
-
312
- ARGUMENTS
313
- PLUGIN... [default: .] Plugin to inspect.
314
-
315
- FLAGS
316
- -h, --help Show CLI help.
317
- -v, --verbose
318
-
319
- GLOBAL FLAGS
320
- --json Format output as json.
321
-
322
- DESCRIPTION
323
- Displays installation properties of a plugin.
324
-
325
- EXAMPLES
326
- $ kubun plugins inspect myplugin
327
- ```
328
-
329
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/inspect.ts)_
330
-
331
- ## `kubun plugins install PLUGIN`
332
-
333
- Installs a plugin into kubun.
334
-
335
- ```
336
- USAGE
337
- $ kubun plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]
338
-
339
- ARGUMENTS
340
- PLUGIN... Plugin to install.
341
-
342
- FLAGS
343
- -f, --force Force npm to fetch remote resources even if a local copy exists on disk.
344
- -h, --help Show CLI help.
345
- -s, --silent Silences npm output.
346
- -v, --verbose Show verbose npm output.
347
-
348
- GLOBAL FLAGS
349
- --json Format output as json.
350
-
351
- DESCRIPTION
352
- Installs a plugin into kubun.
353
-
354
- Uses npm to install plugins.
355
-
356
- Installation of a user-installed plugin will override a core plugin.
357
-
358
- Use the KUBUN_NPM_LOG_LEVEL environment variable to set the npm loglevel.
359
- Use the KUBUN_NPM_REGISTRY environment variable to set the npm registry.
360
-
361
- ALIASES
362
- $ kubun plugins add
363
-
364
- EXAMPLES
365
- Install a plugin from npm registry.
366
-
367
- $ kubun plugins install myplugin
368
-
369
- Install a plugin from a github url.
370
-
371
- $ kubun plugins install https://github.com/someuser/someplugin
372
-
373
- Install a plugin from a github slug.
374
-
375
- $ kubun plugins install someuser/someplugin
376
- ```
377
-
378
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/install.ts)_
379
-
380
- ## `kubun plugins link PATH`
381
-
382
- Links a plugin into the CLI for development.
383
-
384
- ```
385
- USAGE
386
- $ kubun plugins link PATH [-h] [--install] [-v]
387
-
388
- ARGUMENTS
389
- PATH [default: .] path to plugin
390
-
391
- FLAGS
392
- -h, --help Show CLI help.
393
- -v, --verbose
394
- --[no-]install Install dependencies after linking the plugin.
395
-
396
- DESCRIPTION
397
- Links a plugin into the CLI for development.
398
-
399
- Installation of a linked plugin will override a user-installed or core plugin.
400
-
401
- e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
402
- command will override the user-installed or core plugin implementation. This is useful for development work.
403
-
404
-
405
- EXAMPLES
406
- $ kubun plugins link myplugin
407
- ```
408
-
409
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/link.ts)_
410
-
411
- ## `kubun plugins remove [PLUGIN]`
412
-
413
- Removes a plugin from the CLI.
414
-
415
- ```
416
- USAGE
417
- $ kubun plugins remove [PLUGIN...] [-h] [-v]
418
-
419
- ARGUMENTS
420
- [PLUGIN...] plugin to uninstall
421
-
422
- FLAGS
423
- -h, --help Show CLI help.
424
- -v, --verbose
425
-
426
- DESCRIPTION
427
- Removes a plugin from the CLI.
428
-
429
- ALIASES
430
- $ kubun plugins unlink
431
- $ kubun plugins remove
432
-
433
- EXAMPLES
434
- $ kubun plugins remove myplugin
435
- ```
436
-
437
- ## `kubun plugins reset`
438
-
439
- Remove all user-installed and linked plugins.
440
-
441
- ```
442
- USAGE
443
- $ kubun plugins reset [--hard] [--reinstall]
444
-
445
- FLAGS
446
- --hard Delete node_modules and package manager related files in addition to uninstalling plugins.
447
- --reinstall Reinstall all plugins after uninstalling.
448
- ```
449
-
450
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/reset.ts)_
451
-
452
- ## `kubun plugins uninstall [PLUGIN]`
453
-
454
- Removes a plugin from the CLI.
455
-
456
- ```
457
- USAGE
458
- $ kubun plugins uninstall [PLUGIN...] [-h] [-v]
459
-
460
- ARGUMENTS
461
- [PLUGIN...] plugin to uninstall
462
-
463
- FLAGS
464
- -h, --help Show CLI help.
465
- -v, --verbose
466
-
467
- DESCRIPTION
468
- Removes a plugin from the CLI.
469
-
470
- ALIASES
471
- $ kubun plugins unlink
472
- $ kubun plugins remove
473
-
474
- EXAMPLES
475
- $ kubun plugins uninstall myplugin
476
- ```
477
-
478
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/uninstall.ts)_
479
-
480
- ## `kubun plugins unlink [PLUGIN]`
481
-
482
- Removes a plugin from the CLI.
483
-
484
- ```
485
- USAGE
486
- $ kubun plugins unlink [PLUGIN...] [-h] [-v]
487
-
488
- ARGUMENTS
489
- [PLUGIN...] plugin to uninstall
490
-
491
- FLAGS
492
- -h, --help Show CLI help.
493
- -v, --verbose
494
-
495
- DESCRIPTION
496
- Removes a plugin from the CLI.
497
-
498
- ALIASES
499
- $ kubun plugins unlink
500
- $ kubun plugins remove
501
-
502
- EXAMPLES
503
- $ kubun plugins unlink myplugin
504
- ```
505
-
506
- ## `kubun plugins update`
507
-
508
- Update installed plugins.
509
-
510
- ```
511
- USAGE
512
- $ kubun plugins update [-h] [-v]
513
-
514
- FLAGS
515
- -h, --help Show CLI help.
516
- -v, --verbose
517
-
518
- DESCRIPTION
519
- Update installed plugins.
520
- ```
521
-
522
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/update.ts)_
523
-
524
224
  ## `kubun serve`
525
225
 
526
226
  Start a local Kubun server
@@ -22,8 +22,8 @@ export default class CreateGraphQLSchema extends Command {
22
22
  const spinner = ora('Loading clusters...').start();
23
23
  const { flags } = await this.parse(CreateGraphQLSchema);
24
24
  const clusters = await Promise.all(flags.cluster.map((path) => readJSON(path)));
25
- const model = await GraphModel.fromClusters({ clusters });
26
- const schema = printSchema(createSchema(model.record));
25
+ const model = GraphModel.fromClusters({ clusters });
26
+ const schema = printSchema(createSchema(model.toJSON()));
27
27
  if (flags.output == null) {
28
28
  spinner.succeed('GraphQL schema generated');
29
29
  this.log(schema);
@@ -513,5 +513,5 @@
513
513
  ]
514
514
  }
515
515
  },
516
- "version": "0.4.3"
516
+ "version": "0.4.4"
517
517
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kubun",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "license": "see LICENSE.md",
5
5
  "description": "Kubun CLI",
6
6
  "keywords": [],
@@ -23,15 +23,9 @@
23
23
  "dirname": "kubun",
24
24
  "commands": "./dist/commands",
25
25
  "plugins": [
26
- "@oclif/plugin-help",
27
- "@oclif/plugin-plugins"
26
+ "@oclif/plugin-help"
28
27
  ],
29
- "topicSeparator": " ",
30
- "topics": {
31
- "hello": {
32
- "description": "Say hello to the world and others"
33
- }
34
- }
28
+ "topicSeparator": " "
35
29
  },
36
30
  "dependencies": {
37
31
  "@enkaku/async": "^0.12.2",
@@ -40,28 +34,28 @@
40
34
  "@enkaku/server": "^0.12.3",
41
35
  "@enkaku/token": "0.12.3",
42
36
  "@hono/node-server": "^1.19.9",
43
- "@logtape/logtape": "^2.0.0",
37
+ "@logtape/logtape": "^2.0.1",
44
38
  "@mokei/context-server": "^0.5.0",
45
39
  "@oclif/core": "^4.8.0",
46
- "@oclif/plugin-help": "^6.2.36",
47
- "@oclif/plugin-plugins": "^5.4.54",
40
+ "@oclif/plugin-help": "^6.2.37",
41
+ "@oclif/plugin-plugins": "^5.4.55",
48
42
  "get-port": "^7.1.0",
49
43
  "graphql": "^16.12.0",
50
- "ora": "^9.0.0",
51
- "@kubun/client": "^0.4.0",
52
- "@kubun/http-client": "^0.4.0",
44
+ "ora": "^9.1.0",
53
45
  "@kubun/db": "^0.4.0",
54
- "@kubun/graphql": "^0.4.4",
46
+ "@kubun/client": "^0.4.1",
47
+ "@kubun/db-sqlite": "^0.4.0",
55
48
  "@kubun/db-postgres": "^0.4.0",
56
49
  "@kubun/logger": "^0.4.0",
57
- "@kubun/db-sqlite": "^0.4.0",
58
- "@kubun/mcp": "^0.4.1",
59
- "@kubun/protocol": "^0.4.0",
60
- "@kubun/server": "^0.4.2"
50
+ "@kubun/mcp": "^0.4.2",
51
+ "@kubun/http-client": "^0.4.1",
52
+ "@kubun/server": "^0.4.3",
53
+ "@kubun/protocol": "^0.4.1",
54
+ "@kubun/graphql": "^0.4.5"
61
55
  },
62
56
  "devDependencies": {
63
- "@oclif/test": "^4.1.15",
64
- "oclif": "^4.22.67",
57
+ "@oclif/test": "^4.1.16",
58
+ "oclif": "^4.22.68",
65
59
  "shx": "^0.4.0",
66
60
  "ts-node": "^10",
67
61
  "typescript": "^5.9.3"