@fdcn/sourcefed 0.2.8 → 0.3.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 (30) hide show
  1. package/README.md +2 -2
  2. package/dist/{chunk-DK3LZ5RU.js → chunk-QPDTUNFA.js} +45 -19
  3. package/dist/cli.js +72 -38
  4. package/dist/daemon.js +45 -19
  5. package/dist/data/core/SKILL.md +4 -2
  6. package/dist/data/core/references/commands.md +2 -2
  7. package/dist/data/sourcefed/SKILL.md +4 -4
  8. package/dist/mcp.js +2 -2
  9. package/dist/opencode.js +139 -12545
  10. package/dist/pi.js +2 -2
  11. package/dist/tui-compiled.mjs +144 -126
  12. package/dist.dts/adapters/opencode/bridge.d.ts +4 -5
  13. package/dist.dts/adapters/opencode/index.d.ts +4 -3
  14. package/dist.dts/adapters/opencode/tools/monitor_create.d.ts +52 -2
  15. package/dist.dts/adapters/opencode/tools/monitor_list.d.ts +13 -2
  16. package/dist.dts/adapters/opencode/tools/monitor_start.d.ts +19 -2
  17. package/dist.dts/adapters/opencode/tools/monitor_status.d.ts +19 -2
  18. package/dist.dts/adapters/opencode/tools/monitor_stop.d.ts +19 -2
  19. package/dist.dts/adapters/opencode/tui/plugin.d.ts +2 -2
  20. package/dist.dts/adapters/opencode/tui/sidebar.d.ts +8 -3
  21. package/dist.dts/adapters/opencode/tui.d.ts +3 -2
  22. package/dist.dts/index.d.ts +1 -1
  23. package/dist.dts/packages/daemon/src/daemon.d.ts +2 -0
  24. package/dist.dts/packages/sourcefed/src/server.d.ts +2 -6
  25. package/dist.dts/providers/slack/src/monitor.d.ts +1 -1
  26. package/dist.dts/providers/slack/src/poll/utils/parse-slack-read-result.d.ts +1 -1
  27. package/dist.dts/providers/slack/src/poll/utils/slack-api.d.ts +4 -0
  28. package/dist.dts/providers/slack/src/schema.d.ts +1 -1
  29. package/dist.dts/providers/slack/src/types/source-record.d.ts +1 -1
  30. package/package.json +2 -2
@@ -1,7 +1,3 @@
1
- import type { Hooks } from "@opencode-ai/plugin";
2
- import Sourcefed from "../../../adapters/opencode/index.js";
3
- declare const _default: {
4
- id: string;
5
- server: (input: Parameters<typeof Sourcefed>[0]) => Promise<Hooks>;
6
- };
1
+ import { Plugin } from "@opencode/plugin";
2
+ declare const _default: Plugin.Plugin;
7
3
  export default _default;
@@ -8,7 +8,7 @@ export declare class SlackMonitor extends Monitor<SlackSourceRecord> {
8
8
  constructor();
9
9
  readonly key: (source: SlackSourceRecord) => string;
10
10
  readonly icon = "\uDB81\uDCB1";
11
- readonly label: () => string;
11
+ readonly label: (source: SlackSourceRecord) => string;
12
12
  readonly detail: (source: SlackSourceRecord) => string;
13
13
  readonly describe: (source: SlackSourceRecord) => string;
14
14
  build(input: MonitorCreateInput): SourceInput;
@@ -1,5 +1,5 @@
1
1
  import type { SlackCursor, SlackEvent, SlackReadResult } from "../../types";
2
- export declare function parseSlackReadResult(result: SlackReadResult, cursorRaw: unknown): {
2
+ export declare function parseSlackReadResult(result: SlackReadResult, cursorRaw: unknown, location?: "thread" | "DM"): {
3
3
  events: SlackEvent[];
4
4
  cursor: SlackCursor;
5
5
  };
@@ -2,3 +2,7 @@ export declare function fetchSlackThread(channelId: string, threadTs: string): P
2
2
  messages: any[];
3
3
  users: any[];
4
4
  } | undefined>;
5
+ export declare function fetchSlackDm(channelId: string): Promise<{
6
+ messages: any[];
7
+ users: any[];
8
+ } | undefined>;
@@ -2,7 +2,7 @@ import * as v from "valibot";
2
2
  export declare const SlackSourceSchema: v.ObjectSchema<{
3
3
  readonly type: v.LiteralSchema<"slack", undefined>;
4
4
  readonly channelId: v.StringSchema<undefined>;
5
- readonly threadTs: v.StringSchema<undefined>;
5
+ readonly threadTs: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
6
6
  }, undefined>;
7
7
  export declare const SlackCursorSchema: v.ObjectSchema<{
8
8
  readonly primed: v.BooleanSchema<undefined>;
@@ -1,5 +1,5 @@
1
1
  export type SlackSourceRecord = {
2
2
  type: "slack";
3
3
  channelId: string;
4
- threadTs: string;
4
+ threadTs?: string;
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fdcn/sourcefed",
3
- "version": "0.2.8",
3
+ "version": "0.3.0",
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",
@@ -51,7 +51,7 @@
51
51
  "@earendil-works/pi-coding-agent": "0.83.0",
52
52
  "@earendil-works/pi-tui": "0.83.0",
53
53
  "@modelcontextprotocol/server": "2.0.0",
54
- "@opencode-ai/plugin": "1.18.13",
54
+ "@opencode/plugin": "2.0.4",
55
55
  "typebox": "1.3.10"
56
56
  },
57
57
  "engines": {