kubun 0.9.0 → 0.11.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.
Files changed (47) hide show
  1. package/README.md +22 -234
  2. package/bin/dev.js +12 -4
  3. package/bin/run.js +11 -2
  4. package/lib/account.d.ts +2 -0
  5. package/lib/account.js +5 -0
  6. package/lib/client.d.ts +2 -0
  7. package/{dist → lib}/client.js +4 -1
  8. package/lib/commands/account.d.ts +2 -0
  9. package/lib/commands/account.js +24 -0
  10. package/lib/commands/graph.d.ts +2 -0
  11. package/lib/commands/graph.js +74 -0
  12. package/lib/commands/graphql.d.ts +2 -0
  13. package/lib/commands/graphql.js +33 -0
  14. package/lib/commands/mcp.d.ts +2 -0
  15. package/lib/commands/mcp.js +21 -0
  16. package/lib/commands/model.d.ts +2 -0
  17. package/lib/commands/model.js +69 -0
  18. package/lib/commands/serve.d.ts +2 -0
  19. package/lib/commands/serve.js +116 -0
  20. package/lib/fs.d.ts +4 -0
  21. package/{dist → lib}/fs.js +6 -2
  22. package/lib/identity.d.ts +19 -0
  23. package/lib/identity.js +31 -0
  24. package/lib/index.d.ts +3 -0
  25. package/lib/index.js +19 -0
  26. package/lib/options.d.ts +19 -0
  27. package/lib/options.js +47 -0
  28. package/lib/program.d.ts +2 -0
  29. package/lib/program.js +28 -0
  30. package/lib/ui.d.ts +5 -0
  31. package/lib/ui.js +23 -0
  32. package/package.json +36 -45
  33. package/bin/dev.cmd +0 -3
  34. package/bin/run.cmd +0 -3
  35. package/dist/account.js +0 -5
  36. package/dist/commands/account/generate.js +0 -10
  37. package/dist/commands/account/id.js +0 -18
  38. package/dist/commands/graph/deploy.js +0 -32
  39. package/dist/commands/graph/mutate.js +0 -32
  40. package/dist/commands/graph/query.js +0 -32
  41. package/dist/commands/graphql/schema.js +0 -41
  42. package/dist/commands/mcp.js +0 -33
  43. package/dist/commands/model/cluster.js +0 -35
  44. package/dist/commands/model/create.js +0 -69
  45. package/dist/commands/serve.js +0 -126
  46. package/dist/index.js +0 -1
  47. package/oclif.manifest.json +0 -533
@@ -1,533 +0,0 @@
1
- {
2
- "commands": {
3
- "mcp": {
4
- "aliases": [],
5
- "args": {},
6
- "description": "Start an MCP server for Kubun",
7
- "flags": {
8
- "connect": {
9
- "char": "c",
10
- "description": "URL of an existing Kubun HTTP server to connect to",
11
- "exclusive": [
12
- "db"
13
- ],
14
- "name": "connect",
15
- "hasDynamicHelp": false,
16
- "multiple": false,
17
- "type": "option"
18
- },
19
- "db": {
20
- "char": "d",
21
- "description": "SQLite database path or PostgreSQL URL",
22
- "exclusive": [
23
- "connect"
24
- ],
25
- "name": "db",
26
- "hasDynamicHelp": false,
27
- "multiple": false,
28
- "type": "option"
29
- },
30
- "privateKey": {
31
- "char": "k",
32
- "description": "base64-encoded private key",
33
- "env": "KUBUN_PRIVATE_KEY",
34
- "name": "privateKey",
35
- "hasDynamicHelp": false,
36
- "multiple": false,
37
- "type": "option"
38
- }
39
- },
40
- "hasDynamicHelp": false,
41
- "hiddenAliases": [],
42
- "id": "mcp",
43
- "pluginAlias": "kubun",
44
- "pluginName": "kubun",
45
- "pluginType": "core",
46
- "strict": true,
47
- "enableJsonFlag": false,
48
- "isESM": true,
49
- "relativePath": [
50
- "dist",
51
- "commands",
52
- "mcp.js"
53
- ]
54
- },
55
- "serve": {
56
- "aliases": [],
57
- "args": {},
58
- "description": "Start a local Kubun server",
59
- "flags": {
60
- "allowedOrigin": {
61
- "char": "a",
62
- "description": "allowed HTTP origin",
63
- "env": "KUBUN_ALLOWED_ORIGIN",
64
- "name": "allowedOrigin",
65
- "default": "*",
66
- "hasDynamicHelp": false,
67
- "multiple": false,
68
- "type": "option"
69
- },
70
- "autoAcceptPeers": {
71
- "dependsOn": [
72
- "p2p"
73
- ],
74
- "description": "comma-separated DIDs to auto-accept for peer join flows",
75
- "name": "autoAcceptPeers",
76
- "hasDynamicHelp": false,
77
- "multiple": false,
78
- "type": "option"
79
- },
80
- "db": {
81
- "description": "path to the local SQLite database",
82
- "name": "db",
83
- "hasDynamicHelp": false,
84
- "multiple": false,
85
- "type": "option"
86
- },
87
- "id": {
88
- "description": "server ID",
89
- "name": "id",
90
- "hasDynamicHelp": false,
91
- "multiple": false,
92
- "type": "option"
93
- },
94
- "logLevel": {
95
- "char": "l",
96
- "description": "log level",
97
- "name": "logLevel",
98
- "default": "warning",
99
- "hasDynamicHelp": false,
100
- "multiple": false,
101
- "options": [
102
- "trace",
103
- "debug",
104
- "info",
105
- "warning",
106
- "error",
107
- "fatal"
108
- ],
109
- "type": "option"
110
- },
111
- "p2p": {
112
- "description": "enable P2P mode with sync and graph protocols over HTTP",
113
- "name": "p2p",
114
- "allowNo": false,
115
- "type": "boolean"
116
- },
117
- "port": {
118
- "char": "p",
119
- "description": "port to listen on",
120
- "name": "port",
121
- "hasDynamicHelp": false,
122
- "multiple": false,
123
- "type": "option"
124
- },
125
- "privateKey": {
126
- "char": "k",
127
- "description": "base64-encoded private key",
128
- "env": "KUBUN_PRIVATE_KEY",
129
- "exclusive": [
130
- "id"
131
- ],
132
- "name": "privateKey",
133
- "hasDynamicHelp": false,
134
- "multiple": false,
135
- "type": "option"
136
- }
137
- },
138
- "hasDynamicHelp": false,
139
- "hiddenAliases": [],
140
- "id": "serve",
141
- "pluginAlias": "kubun",
142
- "pluginName": "kubun",
143
- "pluginType": "core",
144
- "strict": true,
145
- "enableJsonFlag": false,
146
- "isESM": true,
147
- "relativePath": [
148
- "dist",
149
- "commands",
150
- "serve.js"
151
- ]
152
- },
153
- "account:generate": {
154
- "aliases": [],
155
- "args": {},
156
- "description": "Generate a random private key to use as account signer",
157
- "flags": {},
158
- "hasDynamicHelp": false,
159
- "hiddenAliases": [],
160
- "id": "account:generate",
161
- "pluginAlias": "kubun",
162
- "pluginName": "kubun",
163
- "pluginType": "core",
164
- "strict": true,
165
- "enableJsonFlag": false,
166
- "isESM": true,
167
- "relativePath": [
168
- "dist",
169
- "commands",
170
- "account",
171
- "generate.js"
172
- ]
173
- },
174
- "account:id": {
175
- "aliases": [],
176
- "args": {},
177
- "description": "Display the DID of an account given its private key",
178
- "flags": {
179
- "privateKey": {
180
- "char": "k",
181
- "description": "base64-encoded private key",
182
- "env": "KUBUN_PRIVATE_KEY",
183
- "name": "privateKey",
184
- "required": true,
185
- "hasDynamicHelp": false,
186
- "multiple": false,
187
- "type": "option"
188
- }
189
- },
190
- "hasDynamicHelp": false,
191
- "hiddenAliases": [],
192
- "id": "account:id",
193
- "pluginAlias": "kubun",
194
- "pluginName": "kubun",
195
- "pluginType": "core",
196
- "strict": true,
197
- "enableJsonFlag": false,
198
- "isESM": true,
199
- "relativePath": [
200
- "dist",
201
- "commands",
202
- "account",
203
- "id.js"
204
- ]
205
- },
206
- "graph:deploy": {
207
- "aliases": [],
208
- "args": {},
209
- "description": "Deploy a documents model graph",
210
- "flags": {
211
- "cluster": {
212
- "char": "c",
213
- "description": "path of the JSON file of the cluster",
214
- "name": "cluster",
215
- "required": true,
216
- "hasDynamicHelp": false,
217
- "multiple": true,
218
- "type": "option"
219
- },
220
- "id": {
221
- "description": "graph ID",
222
- "name": "id",
223
- "hasDynamicHelp": false,
224
- "multiple": false,
225
- "type": "option"
226
- },
227
- "name": {
228
- "char": "n",
229
- "description": "graph name",
230
- "name": "name",
231
- "hasDynamicHelp": false,
232
- "multiple": false,
233
- "type": "option"
234
- },
235
- "privateKey": {
236
- "char": "k",
237
- "description": "base64-encoded private key",
238
- "env": "KUBUN_PRIVATE_KEY",
239
- "name": "privateKey",
240
- "required": true,
241
- "hasDynamicHelp": false,
242
- "multiple": false,
243
- "type": "option"
244
- },
245
- "url": {
246
- "description": "Kubun server URL",
247
- "name": "url",
248
- "hasDynamicHelp": false,
249
- "multiple": false,
250
- "type": "option"
251
- }
252
- },
253
- "hasDynamicHelp": false,
254
- "hiddenAliases": [],
255
- "id": "graph:deploy",
256
- "pluginAlias": "kubun",
257
- "pluginName": "kubun",
258
- "pluginType": "core",
259
- "strict": true,
260
- "enableJsonFlag": false,
261
- "isESM": true,
262
- "relativePath": [
263
- "dist",
264
- "commands",
265
- "graph",
266
- "deploy.js"
267
- ]
268
- },
269
- "graph:mutate": {
270
- "aliases": [],
271
- "args": {
272
- "id": {
273
- "description": "graph ID",
274
- "name": "id",
275
- "required": true
276
- },
277
- "text": {
278
- "description": "mutation text",
279
- "name": "text",
280
- "required": true
281
- }
282
- },
283
- "description": "Execute a GraphQL mutation on a graph",
284
- "flags": {
285
- "privateKey": {
286
- "char": "k",
287
- "description": "base64-encoded private key",
288
- "env": "KUBUN_PRIVATE_KEY",
289
- "name": "privateKey",
290
- "required": true,
291
- "hasDynamicHelp": false,
292
- "multiple": false,
293
- "type": "option"
294
- },
295
- "url": {
296
- "description": "Kubun server URL",
297
- "name": "url",
298
- "hasDynamicHelp": false,
299
- "multiple": false,
300
- "type": "option"
301
- },
302
- "variables": {
303
- "description": "query variables as JSON string",
304
- "name": "variables",
305
- "hasDynamicHelp": false,
306
- "multiple": false,
307
- "type": "option"
308
- }
309
- },
310
- "hasDynamicHelp": false,
311
- "hiddenAliases": [],
312
- "id": "graph:mutate",
313
- "pluginAlias": "kubun",
314
- "pluginName": "kubun",
315
- "pluginType": "core",
316
- "strict": true,
317
- "enableJsonFlag": false,
318
- "isESM": true,
319
- "relativePath": [
320
- "dist",
321
- "commands",
322
- "graph",
323
- "mutate.js"
324
- ]
325
- },
326
- "graph:query": {
327
- "aliases": [],
328
- "args": {
329
- "id": {
330
- "description": "graph ID",
331
- "name": "id",
332
- "required": true
333
- },
334
- "text": {
335
- "description": "query text",
336
- "name": "text",
337
- "required": true
338
- }
339
- },
340
- "description": "Execute a GraphQL query on a graph",
341
- "flags": {
342
- "privateKey": {
343
- "char": "k",
344
- "description": "base64-encoded private key",
345
- "env": "KUBUN_PRIVATE_KEY",
346
- "name": "privateKey",
347
- "required": true,
348
- "hasDynamicHelp": false,
349
- "multiple": false,
350
- "type": "option"
351
- },
352
- "url": {
353
- "description": "Kubun server URL",
354
- "name": "url",
355
- "hasDynamicHelp": false,
356
- "multiple": false,
357
- "type": "option"
358
- },
359
- "variables": {
360
- "description": "query variables as JSON string",
361
- "name": "variables",
362
- "hasDynamicHelp": false,
363
- "multiple": false,
364
- "type": "option"
365
- }
366
- },
367
- "hasDynamicHelp": false,
368
- "hiddenAliases": [],
369
- "id": "graph:query",
370
- "pluginAlias": "kubun",
371
- "pluginName": "kubun",
372
- "pluginType": "core",
373
- "strict": true,
374
- "enableJsonFlag": false,
375
- "isESM": true,
376
- "relativePath": [
377
- "dist",
378
- "commands",
379
- "graph",
380
- "query.js"
381
- ]
382
- },
383
- "graphql:schema": {
384
- "aliases": [],
385
- "args": {},
386
- "description": "Create a GraphQL schema from clusters of document models",
387
- "flags": {
388
- "cluster": {
389
- "char": "c",
390
- "description": "path of the JSON file of the cluster",
391
- "name": "cluster",
392
- "required": true,
393
- "hasDynamicHelp": false,
394
- "multiple": true,
395
- "type": "option"
396
- },
397
- "output": {
398
- "char": "o",
399
- "description": "output file for the GraphQL schema",
400
- "name": "output",
401
- "hasDynamicHelp": false,
402
- "multiple": false,
403
- "type": "option"
404
- }
405
- },
406
- "hasDynamicHelp": false,
407
- "hiddenAliases": [],
408
- "id": "graphql:schema",
409
- "pluginAlias": "kubun",
410
- "pluginName": "kubun",
411
- "pluginType": "core",
412
- "strict": true,
413
- "enableJsonFlag": false,
414
- "isESM": true,
415
- "relativePath": [
416
- "dist",
417
- "commands",
418
- "graphql",
419
- "schema.js"
420
- ]
421
- },
422
- "model:cluster": {
423
- "aliases": [],
424
- "args": {},
425
- "description": "Create a documents cluster model",
426
- "flags": {
427
- "model": {
428
- "char": "m",
429
- "description": "document model as JSON string",
430
- "name": "model",
431
- "required": true,
432
- "hasDynamicHelp": false,
433
- "multiple": true,
434
- "type": "option"
435
- },
436
- "output": {
437
- "char": "o",
438
- "description": "output file for the cluster",
439
- "name": "output",
440
- "hasDynamicHelp": false,
441
- "multiple": false,
442
- "type": "option"
443
- }
444
- },
445
- "hasDynamicHelp": false,
446
- "hiddenAliases": [],
447
- "id": "model:cluster",
448
- "pluginAlias": "kubun",
449
- "pluginName": "kubun",
450
- "pluginType": "core",
451
- "strict": true,
452
- "enableJsonFlag": false,
453
- "isESM": true,
454
- "relativePath": [
455
- "dist",
456
- "commands",
457
- "model",
458
- "cluster.js"
459
- ]
460
- },
461
- "model:create": {
462
- "aliases": [],
463
- "args": {
464
- "name": {
465
- "description": "document model name",
466
- "name": "name",
467
- "required": true
468
- },
469
- "schema": {
470
- "description": "document schema as JSON string",
471
- "name": "schema",
472
- "required": true
473
- }
474
- },
475
- "description": "Create a document model",
476
- "flags": {
477
- "behavior": {
478
- "char": "b",
479
- "description": "behavior of the document",
480
- "name": "behavior",
481
- "default": "default",
482
- "hasDynamicHelp": false,
483
- "multiple": false,
484
- "options": [
485
- "default",
486
- "interface",
487
- "unique"
488
- ],
489
- "type": "option"
490
- },
491
- "cluster": {
492
- "char": "c",
493
- "description": "create a cluster model instead of a document model",
494
- "name": "cluster",
495
- "allowNo": false,
496
- "type": "boolean"
497
- },
498
- "output": {
499
- "char": "o",
500
- "description": "output file",
501
- "name": "output",
502
- "hasDynamicHelp": false,
503
- "multiple": false,
504
- "type": "option"
505
- },
506
- "uniqueField": {
507
- "char": "u",
508
- "description": "unique field of the document when behavior is set to \"unique\"",
509
- "name": "uniqueField",
510
- "hasDynamicHelp": false,
511
- "multiple": true,
512
- "type": "option"
513
- }
514
- },
515
- "hasDynamicHelp": false,
516
- "hiddenAliases": [],
517
- "id": "model:create",
518
- "pluginAlias": "kubun",
519
- "pluginName": "kubun",
520
- "pluginType": "core",
521
- "strict": true,
522
- "enableJsonFlag": false,
523
- "isESM": true,
524
- "relativePath": [
525
- "dist",
526
- "commands",
527
- "model",
528
- "create.js"
529
- ]
530
- }
531
- },
532
- "version": "0.9.0"
533
- }