jfl 0.2.2 → 0.2.3

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 (70) hide show
  1. package/clawdbot-plugin/clawdbot.plugin.json +12 -1
  2. package/clawdbot-plugin/index.js +5 -5
  3. package/clawdbot-plugin/index.ts +5 -5
  4. package/dist/commands/context-hub.d.ts +4 -0
  5. package/dist/commands/context-hub.d.ts.map +1 -1
  6. package/dist/commands/context-hub.js +570 -81
  7. package/dist/commands/context-hub.js.map +1 -1
  8. package/dist/commands/init.d.ts.map +1 -1
  9. package/dist/commands/init.js +42 -11
  10. package/dist/commands/init.js.map +1 -1
  11. package/dist/commands/peter.d.ts +15 -0
  12. package/dist/commands/peter.d.ts.map +1 -0
  13. package/dist/commands/peter.js +198 -0
  14. package/dist/commands/peter.js.map +1 -0
  15. package/dist/commands/ralph.d.ts +3 -1
  16. package/dist/commands/ralph.d.ts.map +1 -1
  17. package/dist/commands/ralph.js +40 -5
  18. package/dist/commands/ralph.js.map +1 -1
  19. package/dist/commands/session.d.ts +2 -1
  20. package/dist/commands/session.d.ts.map +1 -1
  21. package/dist/commands/session.js +496 -49
  22. package/dist/commands/session.js.map +1 -1
  23. package/dist/commands/update.d.ts.map +1 -1
  24. package/dist/commands/update.js +25 -6
  25. package/dist/commands/update.js.map +1 -1
  26. package/dist/dashboard/components.d.ts +7 -0
  27. package/dist/dashboard/components.d.ts.map +1 -0
  28. package/dist/dashboard/components.js +163 -0
  29. package/dist/dashboard/components.js.map +1 -0
  30. package/dist/dashboard/index.d.ts +12 -0
  31. package/dist/dashboard/index.d.ts.map +1 -0
  32. package/dist/dashboard/index.js +132 -0
  33. package/dist/dashboard/index.js.map +1 -0
  34. package/dist/dashboard/pages.d.ts +7 -0
  35. package/dist/dashboard/pages.d.ts.map +1 -0
  36. package/dist/dashboard/pages.js +742 -0
  37. package/dist/dashboard/pages.js.map +1 -0
  38. package/dist/dashboard/styles.d.ts +7 -0
  39. package/dist/dashboard/styles.d.ts.map +1 -0
  40. package/dist/dashboard/styles.js +497 -0
  41. package/dist/dashboard/styles.js.map +1 -0
  42. package/dist/index.js +30 -3
  43. package/dist/index.js.map +1 -1
  44. package/dist/lib/map-event-bus.d.ts +48 -0
  45. package/dist/lib/map-event-bus.d.ts.map +1 -0
  46. package/dist/lib/map-event-bus.js +326 -0
  47. package/dist/lib/map-event-bus.js.map +1 -0
  48. package/dist/lib/peter-parker-bridge.d.ts +33 -0
  49. package/dist/lib/peter-parker-bridge.d.ts.map +1 -0
  50. package/dist/lib/peter-parker-bridge.js +116 -0
  51. package/dist/lib/peter-parker-bridge.js.map +1 -0
  52. package/dist/lib/peter-parker-config.d.ts +13 -0
  53. package/dist/lib/peter-parker-config.d.ts.map +1 -0
  54. package/dist/lib/peter-parker-config.js +86 -0
  55. package/dist/lib/peter-parker-config.js.map +1 -0
  56. package/dist/lib/service-utils.d.ts.map +1 -1
  57. package/dist/lib/service-utils.js +33 -17
  58. package/dist/lib/service-utils.js.map +1 -1
  59. package/dist/mcp/context-hub-mcp.js +122 -22
  60. package/dist/mcp/context-hub-mcp.js.map +1 -1
  61. package/dist/types/map.d.ts +33 -0
  62. package/dist/types/map.d.ts.map +1 -0
  63. package/dist/types/map.js +39 -0
  64. package/dist/types/map.js.map +1 -0
  65. package/dist/ui/event-dashboard.d.ts +12 -0
  66. package/dist/ui/event-dashboard.d.ts.map +1 -0
  67. package/dist/ui/event-dashboard.js +342 -0
  68. package/dist/ui/event-dashboard.js.map +1 -0
  69. package/package.json +1 -1
  70. package/scripts/test-map-eventbus.sh +357 -0
@@ -1,9 +1,20 @@
1
1
  {
2
2
  "id": "jfl",
3
+ "uiHints": {
4
+ "workspace": {
5
+ "label": "GTM Workspace",
6
+ "placeholder": "Auto-detected from .jfl/config.json",
7
+ "help": "Path to GTM workspace. Leave empty to auto-detect."
8
+ }
9
+ },
3
10
  "configSchema": {
4
11
  "type": "object",
5
12
  "additionalProperties": false,
6
- "properties": {},
13
+ "properties": {
14
+ "workspace": {
15
+ "type": "string"
16
+ }
17
+ },
7
18
  "required": []
8
19
  }
9
20
  }
@@ -260,7 +260,7 @@ const jflPlugin = {
260
260
  `- Auto-commit work`,
261
261
  ``,
262
262
  `Commands:`,
263
- `/ctx <query> — Search project context`,
263
+ `/context <query> — Search project context`,
264
264
  `/journal <type> <title> | <summary> — Log work`,
265
265
  `/hud — Dashboard`,
266
266
  `/jfl — This status`,
@@ -418,7 +418,7 @@ const jflPlugin = {
418
418
  `- Work auto-committed`,
419
419
  ``,
420
420
  `Commands:`,
421
- `/ctx <query> — Search`,
421
+ `/context <query> — Search`,
422
422
  `/journal <type> <title> | <summary> — Log`,
423
423
  `/hud — Dashboard`,
424
424
  ].join("\n"),
@@ -467,7 +467,7 @@ const jflPlugin = {
467
467
  },
468
468
  });
469
469
  api.registerCommand({
470
- name: "ctx",
470
+ name: "context",
471
471
  description: "Search project context",
472
472
  acceptsArgs: true,
473
473
  handler: async (ctx) => {
@@ -483,7 +483,7 @@ const jflPlugin = {
483
483
  }
484
484
  const q = ctx.args?.trim();
485
485
  if (!q)
486
- return { text: "Usage: /ctx <query>" };
486
+ return { text: "Usage: /context <query>" };
487
487
  if (hub) {
488
488
  const results = await hub.search(q, 5);
489
489
  if (results.length > 0) {
@@ -542,7 +542,7 @@ const jflPlugin = {
542
542
  `Context Hub: ${hubUp ? "running" : "offline"}`,
543
543
  `Workspace: ${gtmPath}`,
544
544
  ``,
545
- `/ctx <query> — Search`,
545
+ `/context <query> — Search`,
546
546
  `/journal <type> <title> | <summary> — Log`,
547
547
  ].join("\n"),
548
548
  };
@@ -272,7 +272,7 @@ const jflPlugin = {
272
272
  `- Auto-commit work`,
273
273
  ``,
274
274
  `Commands:`,
275
- `/ctx <query> — Search project context`,
275
+ `/context <query> — Search project context`,
276
276
  `/journal <type> <title> | <summary> — Log work`,
277
277
  `/hud — Dashboard`,
278
278
  `/jfl — This status`,
@@ -439,7 +439,7 @@ const jflPlugin = {
439
439
  `- Work auto-committed`,
440
440
  ``,
441
441
  `Commands:`,
442
- `/ctx <query> — Search`,
442
+ `/context <query> — Search`,
443
443
  `/journal <type> <title> | <summary> — Log`,
444
444
  `/hud — Dashboard`,
445
445
  ].join("\n"),
@@ -493,7 +493,7 @@ const jflPlugin = {
493
493
  });
494
494
 
495
495
  api.registerCommand({
496
- name: "ctx",
496
+ name: "context",
497
497
  description: "Search project context",
498
498
  acceptsArgs: true,
499
499
  handler: async (ctx: { args?: string }) => {
@@ -508,7 +508,7 @@ const jflPlugin = {
508
508
  }
509
509
 
510
510
  const q = ctx.args?.trim();
511
- if (!q) return { text: "Usage: /ctx <query>" };
511
+ if (!q) return { text: "Usage: /context <query>" };
512
512
 
513
513
  if (hub) {
514
514
  const results = await hub.search(q, 5);
@@ -568,7 +568,7 @@ const jflPlugin = {
568
568
  `Context Hub: ${hubUp ? "running" : "offline"}`,
569
569
  `Workspace: ${gtmPath}`,
570
570
  ``,
571
- `/ctx <query> — Search`,
571
+ `/context <query> — Search`,
572
572
  `/journal <type> <title> | <summary> — Log`,
573
573
  ].join("\n"),
574
574
  };
@@ -10,8 +10,12 @@ export declare function isRunning(projectRoot: string): {
10
10
  running: boolean;
11
11
  pid?: number;
12
12
  };
13
+ export declare function ensureDaemonInstalled(opts?: {
14
+ quiet?: boolean;
15
+ }): Promise<boolean>;
13
16
  export declare function contextHubCommand(action?: string, options?: {
14
17
  port?: number;
15
18
  global?: boolean;
19
+ quiet?: boolean;
16
20
  }): Promise<void>;
17
21
  //# sourceMappingURL=context-hub.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-hub.d.ts","sourceRoot":"","sources":["../../src/commands/context-hub.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgvBH,wBAAgB,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAiBjF;AAqHD,wBAAsB,iBAAiB,CACrC,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,iBAyTlD"}
1
+ {"version":3,"file":"context-hub.d.ts","sourceRoot":"","sources":["../../src/commands/context-hub.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAy7BH,wBAAgB,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAiBjF;AA2ND,wBAAsB,qBAAqB,CAAC,IAAI,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAiHxF;AAMD,wBAAsB,iBAAiB,CACrC,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,iBAicnE"}