@fdcn/sourcefed 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 (29) hide show
  1. package/README.md +2 -2
  2. package/dist/chunk-UOTCX4ME.js +3963 -0
  3. package/dist/cli.js +474 -361
  4. package/dist/data/core/SKILL.md +10 -0
  5. package/dist/data/core/references/commands.md +1 -0
  6. package/dist.dts/packages/cli/src/commands/daemon.d.ts +1 -0
  7. package/dist.dts/packages/cli/src/commands/mcp.d.ts +1 -0
  8. package/dist.dts/packages/cli/src/commands/monitor/ack.d.ts +2 -0
  9. package/dist.dts/packages/cli/src/commands/monitor/create.d.ts +2 -0
  10. package/dist.dts/packages/cli/src/commands/monitor/events.d.ts +2 -0
  11. package/dist.dts/packages/cli/src/commands/monitor/follow.d.ts +2 -0
  12. package/dist.dts/packages/cli/src/commands/monitor/index.d.ts +10 -0
  13. package/dist.dts/packages/cli/src/commands/monitor/list.d.ts +2 -0
  14. package/dist.dts/packages/cli/src/commands/monitor/logs.d.ts +2 -0
  15. package/dist.dts/packages/cli/src/commands/monitor/remove.d.ts +2 -0
  16. package/dist.dts/packages/cli/src/commands/monitor/sources.d.ts +2 -0
  17. package/dist.dts/packages/cli/src/commands/monitor/start.d.ts +2 -0
  18. package/dist.dts/packages/cli/src/commands/monitor/status.d.ts +2 -0
  19. package/dist.dts/packages/cli/src/commands/monitor/stop.d.ts +2 -0
  20. package/dist.dts/packages/cli/src/commands/monitor.d.ts +1 -0
  21. package/dist.dts/packages/cli/src/commands/setup.d.ts +1 -0
  22. package/dist.dts/packages/cli/src/follow.test.d.ts +1 -0
  23. package/dist.dts/packages/cli/src/utils/daemon.d.ts +2 -0
  24. package/dist.dts/packages/cli/src/utils/flags.d.ts +1 -0
  25. package/dist.dts/packages/cli/src/utils/format.d.ts +8 -0
  26. package/dist.dts/packages/cli/src/utils/net.d.ts +1 -0
  27. package/dist.dts/packages/cli/src/utils/setup.d.ts +2 -0
  28. package/dist.dts/packages/cli/src/utils/webhooks.d.ts +2 -0
  29. package/package.json +1 -1
@@ -63,6 +63,16 @@ adapters (OpenCode, Pi) are all consumers of the daemon.
63
63
  - `sourcefed daemon [--port 18787]` — run the shared daemon (rpc, events, webhooks).
64
64
  - `sourcefed mcp --stdio|--http` — expose the daemon through MCP.
65
65
  - `sourcefed monitor create|list|status|stop` — drive a running daemon from the shell.
66
+ - `sourcefed monitor follow` — tail new events live over SSE (drains queued events first);
67
+ use `sourcefed monitor events` for a one-shot snapshot and `monitor ack` to consume them.
68
+
69
+ Without MCP, read events from the CLI:
70
+
71
+ ```bash
72
+ sourcefed monitor follow & # stream events in the background
73
+ sourcefed monitor events # or take a snapshot of what's queued
74
+ sourcefed monitor ack --event-id $ID # acknowledge what you consumed
75
+ ```
66
76
 
67
77
  When `SOURCEFED_DAEMON_URL` is unset, the OpenCode and Pi adapters spawn one
68
78
  local HTTP daemon automatically (if none is running) and connect to it, so
@@ -13,6 +13,7 @@ sourcefed monitor stop --id ID [--target-kind KIND] [--target-id ID]
13
13
  sourcefed monitor start --id ID [--target-kind KIND] [--target-id ID]
14
14
  sourcefed monitor remove --id ID --yes [--target-kind KIND] [--target-id ID]
15
15
  sourcefed monitor events [--target-kind KIND] [--target-id ID]
16
+ sourcefed monitor follow [--target-kind KIND] [--target-id ID]
16
17
  sourcefed monitor ack --event-id ID[,ID...] [--target-kind KIND] [--target-id ID]
17
18
  sourcefed monitor sources
18
19
  sourcefed skills [list] List bundled skills
@@ -0,0 +1 @@
1
+ export declare function runDaemon(args: string[]): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function runMcp(args: string[]): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { MonitorContext } from "./index.js";
2
+ export declare function ack(context: MonitorContext): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { MonitorContext } from "./index.js";
2
+ export declare function create(context: MonitorContext): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { MonitorContext } from "./index.js";
2
+ export declare function events(context: MonitorContext): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { MonitorContext } from "./index.js";
2
+ export declare function follow(context: MonitorContext): Promise<void>;
@@ -0,0 +1,10 @@
1
+ import type { DaemonClient } from "@fdcn/sourcefed/daemon";
2
+ export declare function runMonitor(argv: string[]): Promise<void>;
3
+ export type MonitorContext = {
4
+ client: DaemonClient;
5
+ target: {
6
+ kind: string;
7
+ id: string;
8
+ };
9
+ args: string[];
10
+ };
@@ -0,0 +1,2 @@
1
+ import type { MonitorContext } from "./index.js";
2
+ export declare function list(context: MonitorContext): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { MonitorContext } from "./index.js";
2
+ export declare function logs(context: MonitorContext): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { MonitorContext } from "./index.js";
2
+ export declare function remove(context: MonitorContext): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { MonitorContext } from "./index.js";
2
+ export declare function sources(context: MonitorContext): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { MonitorContext } from "./index.js";
2
+ export declare function start(context: MonitorContext): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { MonitorContext } from "./index.js";
2
+ export declare function status(context: MonitorContext): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { MonitorContext } from "./index.js";
2
+ export declare function stop(context: MonitorContext): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function runMonitor(argv: string[]): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function runSetup(args: string[]): Promise<void>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { SourcefedDaemon } from "@fdcn/sourcefed/daemon";
2
+ export declare function createDaemon(): SourcefedDaemon;
@@ -0,0 +1 @@
1
+ export declare function flag(args: string[], name: string): string | undefined;
@@ -0,0 +1,8 @@
1
+ import type { LogEntryView, MonitorView } from "@fdcn/sourcefed/daemon";
2
+ export declare function printMonitors(monitors: MonitorView[]): void;
3
+ export declare function printLogs(logs: LogEntryView[]): void;
4
+ export declare function printResult(result: unknown): void;
5
+ export declare function green(text: string): string;
6
+ export declare function red(text: string): string;
7
+ export declare function yellow(text: string): string;
8
+ export declare function dim(text: string): string;
@@ -0,0 +1 @@
1
+ export declare function isLoopback(hostname: string): boolean;
@@ -0,0 +1,2 @@
1
+ export declare function setupSpec(): string;
2
+ export declare function setupHost(name: string, args: string[], spec: string): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { HttpServer, SourcefedDaemon } from "@fdcn/sourcefed/daemon";
2
+ export declare function startWebhookServer(runtime: SourcefedDaemon["runtime"]): Promise<HttpServer | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fdcn/sourcefed",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Live Jira, GitHub, and Slack monitoring for agent hosts: CLI, daemon, MCP server, and host plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",