@pinet/slack-bridge 0.1.0 → 0.2.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.
- package/README.md +86 -34
- package/dist/broker/adapters/slack.d.ts +19 -1
- package/dist/broker/adapters/slack.js +111 -22
- package/dist/broker/client.d.ts +2 -1
- package/dist/broker/client.js +1 -0
- package/dist/broker/socket-server.js +18 -0
- package/dist/deploy-manifest.d.ts +5 -0
- package/dist/deploy-manifest.js +30 -1
- package/dist/follower-runtime.js +5 -1
- package/dist/helpers.d.ts +14 -0
- package/dist/helpers.js +45 -21
- package/dist/index.js +60 -0
- package/dist/pinet-commands.d.ts +6 -1
- package/dist/pinet-commands.js +166 -1
- package/dist/pinet-mesh-ops.d.ts +11 -0
- package/dist/pinet-mesh-ops.js +17 -0
- package/dist/pinet-tools.d.ts +47 -0
- package/dist/pinet-tools.js +496 -36
- package/dist/prompts/broker/tmux.md +2 -2
- package/dist/reaction-triggers.d.ts +1 -0
- package/dist/reaction-triggers.js +26 -15
- package/dist/runtime-agent-context.js +19 -0
- package/dist/runtime-mode.js +7 -1
- package/dist/single-player-runtime.js +22 -26
- package/dist/slack-access.d.ts +11 -0
- package/dist/slack-access.js +30 -0
- package/dist/slack-agents-command.d.ts +19 -0
- package/dist/slack-agents-command.js +90 -0
- package/dist/slack-export.d.ts +1 -1
- package/dist/slack-export.js +6 -4
- package/dist/slack-file-access.d.ts +34 -0
- package/dist/slack-file-access.js +209 -0
- package/dist/slack-message-context.d.ts +0 -1
- package/dist/slack-message-context.js +1 -6
- package/dist/slack-pinet-runtime-adapter.d.ts +4 -2
- package/dist/slack-pinet-runtime-adapter.js +12 -0
- package/dist/slack-tools.d.ts +6 -0
- package/dist/slack-tools.js +290 -36
- package/dist/slack-upload.d.ts +13 -1
- package/dist/slack-upload.js +29 -2
- package/dist/stale-slack-messages.d.ts +12 -0
- package/dist/stale-slack-messages.js +29 -0
- package/dist/subtree-broker-runtime.d.ts +109 -0
- package/dist/subtree-broker-runtime.js +558 -0
- package/manifest.yaml +9 -0
- package/package.json +16 -9
- package/skills/slack-bridge/SKILL.md +60 -1
package/dist/pinet-tools.d.ts
CHANGED
|
@@ -15,6 +15,34 @@ export interface PinetToolsAgentRecord {
|
|
|
15
15
|
resumableUntil?: string | null;
|
|
16
16
|
outboundCount?: number;
|
|
17
17
|
pendingInboxCount?: number;
|
|
18
|
+
parentAgentId?: string | null;
|
|
19
|
+
rootAgentId?: string | null;
|
|
20
|
+
treeDepth?: number;
|
|
21
|
+
supervisionState?: string;
|
|
22
|
+
subtreeRole?: string | null;
|
|
23
|
+
laneId?: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface PinetSubtreeSpawnInput {
|
|
26
|
+
task: string;
|
|
27
|
+
repo: string;
|
|
28
|
+
role?: string;
|
|
29
|
+
laneId?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface PinetSubtreeSpawnResult {
|
|
32
|
+
status: "started";
|
|
33
|
+
launchId: string;
|
|
34
|
+
sessionName: string;
|
|
35
|
+
repoPath: string;
|
|
36
|
+
role: string;
|
|
37
|
+
laneId: string | null;
|
|
38
|
+
agentId: string;
|
|
39
|
+
agentName: string;
|
|
40
|
+
messageId: number;
|
|
41
|
+
threadId: string;
|
|
42
|
+
monitorCommand: string;
|
|
43
|
+
socketPath: string;
|
|
44
|
+
dbPath: string;
|
|
45
|
+
childLaunchEnv: Record<string, string>;
|
|
18
46
|
}
|
|
19
47
|
export interface RegisterPinetToolsDeps {
|
|
20
48
|
pinetEnabled: () => boolean;
|
|
@@ -48,6 +76,9 @@ export interface RegisterPinetToolsDeps {
|
|
|
48
76
|
readPinetInbox: (options: PinetReadOptions) => Promise<PinetReadResult>;
|
|
49
77
|
listBrokerAgents: () => PinetToolsAgentRecord[];
|
|
50
78
|
listFollowerAgents: (includeGhosts: boolean) => Promise<PinetToolsAgentRecord[]>;
|
|
79
|
+
listSubtreeAgents?: (includeGhosts: boolean) => PinetToolsAgentRecord[] | null;
|
|
80
|
+
getSubtreeSelfAgentId?: () => string | null;
|
|
81
|
+
spawnSubtreeWorker?: (input: PinetSubtreeSpawnInput) => Promise<PinetSubtreeSpawnResult>;
|
|
51
82
|
listPinetLanes: (options: PinetLaneListOptions) => Promise<PinetLaneInfo[]>;
|
|
52
83
|
upsertPinetLane: (input: PinetLaneUpsertInput) => Promise<PinetLaneInfo>;
|
|
53
84
|
setPinetLaneParticipant: (input: PinetLaneParticipantUpsertInput) => Promise<PinetLaneParticipantInfo>;
|
|
@@ -64,4 +95,20 @@ export interface RegisterPinetToolsDeps {
|
|
|
64
95
|
}) => RalphSnoozeStatus;
|
|
65
96
|
clearRalphSnooze?: () => RalphSnoozeStatus;
|
|
66
97
|
}
|
|
98
|
+
type PinetDispatcherStatus = "succeeded" | "failed";
|
|
99
|
+
interface PinetRenderContentBlock {
|
|
100
|
+
type: string;
|
|
101
|
+
text?: string;
|
|
102
|
+
}
|
|
103
|
+
interface PinetRenderResultInput {
|
|
104
|
+
content?: PinetRenderContentBlock[];
|
|
105
|
+
details?: unknown;
|
|
106
|
+
expandedText?: string;
|
|
107
|
+
displayText?: string;
|
|
108
|
+
}
|
|
109
|
+
export declare function formatPinetDispatcherResultForDisplay(result: PinetRenderResultInput, expanded: boolean): {
|
|
110
|
+
status: PinetDispatcherStatus | "unknown";
|
|
111
|
+
text: string;
|
|
112
|
+
};
|
|
67
113
|
export declare function registerPinetTools(pi: ExtensionAPI, deps: RegisterPinetToolsDeps): void;
|
|
114
|
+
export {};
|