@portel/photon 1.17.6 → 1.19.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/dist/auto-ui/beam/photon-management.d.ts.map +1 -1
- package/dist/auto-ui/beam/photon-management.js +28 -1
- package/dist/auto-ui/beam/photon-management.js.map +1 -1
- package/dist/auto-ui/beam/routes/api-marketplace.d.ts.map +1 -1
- package/dist/auto-ui/beam/routes/api-marketplace.js +10 -5
- package/dist/auto-ui/beam/routes/api-marketplace.js.map +1 -1
- package/dist/auto-ui/beam.d.ts.map +1 -1
- package/dist/auto-ui/beam.js +14 -4
- package/dist/auto-ui/beam.js.map +1 -1
- package/dist/auto-ui/streamable-http-transport.d.ts.map +1 -1
- package/dist/auto-ui/streamable-http-transport.js +259 -88
- package/dist/auto-ui/streamable-http-transport.js.map +1 -1
- package/dist/auto-ui/types.d.ts +2 -0
- package/dist/auto-ui/types.d.ts.map +1 -1
- package/dist/auto-ui/types.js +5 -0
- package/dist/auto-ui/types.js.map +1 -1
- package/dist/beam-form.bundle.js +5 -3
- package/dist/beam-form.bundle.js.map +2 -2
- package/dist/beam.bundle.js +912 -59
- package/dist/beam.bundle.js.map +3 -3
- package/dist/claude-code-plugin.js +1 -1
- package/dist/cli/commands/beam.d.ts.map +1 -1
- package/dist/cli/commands/beam.js +8 -2
- package/dist/cli/commands/beam.js.map +1 -1
- package/dist/cli/commands/changelog.d.ts +9 -0
- package/dist/cli/commands/changelog.d.ts.map +1 -0
- package/dist/cli/commands/changelog.js +133 -0
- package/dist/cli/commands/changelog.js.map +1 -0
- package/dist/cli/commands/maker.d.ts.map +1 -1
- package/dist/cli/commands/maker.js +23 -2
- package/dist/cli/commands/maker.js.map +1 -1
- package/dist/cli/commands/mcp.d.ts.map +1 -1
- package/dist/cli/commands/mcp.js +53 -0
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/package.d.ts.map +1 -1
- package/dist/cli/commands/package.js +18 -2
- package/dist/cli/commands/package.js.map +1 -1
- package/dist/cli/commands/run.d.ts.map +1 -1
- package/dist/cli/commands/run.js +1 -0
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/update.d.ts +3 -2
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli/commands/update.js +50 -43
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +16 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/cli-alias.js +1 -1
- package/dist/cli-alias.js.map +1 -1
- package/dist/context-store.d.ts +23 -33
- package/dist/context-store.d.ts.map +1 -1
- package/dist/context-store.js +147 -97
- package/dist/context-store.js.map +1 -1
- package/dist/context.d.ts +15 -10
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +37 -13
- package/dist/context.js.map +1 -1
- package/dist/daemon/server.js +4 -2
- package/dist/daemon/server.js.map +1 -1
- package/dist/data-migration.d.ts +27 -0
- package/dist/data-migration.d.ts.map +1 -0
- package/dist/data-migration.js +307 -0
- package/dist/data-migration.js.map +1 -0
- package/dist/editor-support/docblock-tag-catalog.d.ts.map +1 -1
- package/dist/editor-support/docblock-tag-catalog.js +6 -0
- package/dist/editor-support/docblock-tag-catalog.js.map +1 -1
- package/dist/loader.d.ts +10 -0
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +106 -20
- package/dist/loader.js.map +1 -1
- package/dist/marketplace-manager.d.ts.map +1 -1
- package/dist/marketplace-manager.js +25 -5
- package/dist/marketplace-manager.js.map +1 -1
- package/dist/photon-cli-runner.d.ts.map +1 -1
- package/dist/photon-cli-runner.js +56 -19
- package/dist/photon-cli-runner.js.map +1 -1
- package/dist/photon-doc-extractor.d.ts +1 -0
- package/dist/photon-doc-extractor.d.ts.map +1 -1
- package/dist/photon-doc-extractor.js +6 -0
- package/dist/photon-doc-extractor.js.map +1 -1
- package/dist/readme-syncer.d.ts.map +1 -1
- package/dist/readme-syncer.js +6 -1
- package/dist/readme-syncer.js.map +1 -1
- package/dist/server.d.ts +40 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +298 -29
- package/dist/server.js.map +1 -1
- package/dist/shared/audit.js +4 -4
- package/dist/shared/audit.js.map +1 -1
- package/dist/tasks/executor.d.ts +47 -0
- package/dist/tasks/executor.d.ts.map +1 -0
- package/dist/tasks/executor.js +180 -0
- package/dist/tasks/executor.js.map +1 -0
- package/dist/tasks/store.d.ts +13 -6
- package/dist/tasks/store.d.ts.map +1 -1
- package/dist/tasks/store.js +56 -11
- package/dist/tasks/store.js.map +1 -1
- package/dist/tasks/types.d.ts +23 -2
- package/dist/tasks/types.d.ts.map +1 -1
- package/dist/tasks/types.js +23 -3
- package/dist/tasks/types.js.map +1 -1
- package/dist/version-notify.d.ts +27 -0
- package/dist/version-notify.d.ts.map +1 -0
- package/dist/version-notify.js +142 -0
- package/dist/version-notify.js.map +1 -0
- package/package.json +5 -4
- package/dist/auto-ui/bridge/openai-shim.d.ts +0 -20
- package/dist/auto-ui/bridge/openai-shim.d.ts.map +0 -1
- package/dist/auto-ui/bridge/openai-shim.js +0 -231
- package/dist/auto-ui/bridge/openai-shim.js.map +0 -1
- package/dist/auto-ui/bridge/photon-app.d.ts +0 -162
- package/dist/auto-ui/bridge/photon-app.d.ts.map +0 -1
- package/dist/auto-ui/bridge/photon-app.js +0 -460
- package/dist/auto-ui/bridge/photon-app.js.map +0 -1
- package/dist/auto-ui/daemon-tools.d.ts +0 -45
- package/dist/auto-ui/daemon-tools.d.ts.map +0 -1
- package/dist/auto-ui/daemon-tools.js +0 -581
- package/dist/auto-ui/daemon-tools.js.map +0 -1
- package/dist/auto-ui/design-system/index.d.ts +0 -21
- package/dist/auto-ui/design-system/index.d.ts.map +0 -1
- package/dist/auto-ui/design-system/index.js +0 -27
- package/dist/auto-ui/design-system/index.js.map +0 -1
- package/dist/auto-ui/design-system/transaction-ui.d.ts +0 -70
- package/dist/auto-ui/design-system/transaction-ui.d.ts.map +0 -1
- package/dist/auto-ui/design-system/transaction-ui.js +0 -982
- package/dist/auto-ui/design-system/transaction-ui.js.map +0 -1
- package/dist/auto-ui/playground-server.d.ts +0 -7
- package/dist/auto-ui/playground-server.d.ts.map +0 -1
- package/dist/auto-ui/playground-server.js +0 -840
- package/dist/auto-ui/playground-server.js.map +0 -1
- package/dist/auto-ui/rendering/components.d.ts +0 -29
- package/dist/auto-ui/rendering/components.d.ts.map +0 -1
- package/dist/auto-ui/rendering/components.js +0 -1341
- package/dist/auto-ui/rendering/components.js.map +0 -1
- package/dist/auto-ui/rendering/field-analyzer.d.ts +0 -104
- package/dist/auto-ui/rendering/field-analyzer.d.ts.map +0 -1
- package/dist/auto-ui/rendering/field-analyzer.js +0 -447
- package/dist/auto-ui/rendering/field-analyzer.js.map +0 -1
- package/dist/auto-ui/rendering/field-renderers.d.ts +0 -64
- package/dist/auto-ui/rendering/field-renderers.d.ts.map +0 -1
- package/dist/auto-ui/rendering/field-renderers.js +0 -317
- package/dist/auto-ui/rendering/field-renderers.js.map +0 -1
- package/dist/auto-ui/rendering/index.d.ts +0 -28
- package/dist/auto-ui/rendering/index.d.ts.map +0 -1
- package/dist/auto-ui/rendering/index.js +0 -60
- package/dist/auto-ui/rendering/index.js.map +0 -1
- package/dist/auto-ui/rendering/layout-selector.d.ts +0 -60
- package/dist/auto-ui/rendering/layout-selector.d.ts.map +0 -1
- package/dist/auto-ui/rendering/layout-selector.js +0 -476
- package/dist/auto-ui/rendering/layout-selector.js.map +0 -1
- package/dist/markdown-utils.d.ts +0 -8
- package/dist/markdown-utils.d.ts.map +0 -1
- package/dist/markdown-utils.js +0 -64
- package/dist/markdown-utils.js.map +0 -1
- package/dist/mcp-client.d.ts +0 -9
- package/dist/mcp-client.d.ts.map +0 -1
- package/dist/mcp-client.js +0 -11
- package/dist/mcp-client.js.map +0 -1
- package/dist/mcp-elicitation.d.ts +0 -32
- package/dist/mcp-elicitation.d.ts.map +0 -1
- package/dist/mcp-elicitation.js +0 -26
- package/dist/mcp-elicitation.js.map +0 -1
- package/dist/photons/builder-compass.photon.d.ts +0 -167
- package/dist/photons/builder-compass.photon.d.ts.map +0 -1
- package/dist/photons/builder-compass.photon.js +0 -816
- package/dist/photons/builder-compass.photon.js.map +0 -1
- package/dist/photons/builder-compass.photon.ts +0 -1129
- package/dist/photons/docs/ui/docs.html +0 -441
- package/dist/photons/docs.photon.d.ts +0 -237
- package/dist/photons/docs.photon.d.ts.map +0 -1
- package/dist/photons/docs.photon.js +0 -483
- package/dist/photons/docs.photon.js.map +0 -1
- package/dist/photons/docs.photon.ts +0 -536
- package/dist/photons/slides.photon.d.ts +0 -212
- package/dist/photons/slides.photon.d.ts.map +0 -1
- package/dist/photons/slides.photon.js +0 -355
- package/dist/photons/slides.photon.js.map +0 -1
- package/dist/photons/slides.photon.ts +0 -370
- package/dist/photons/spreadsheet/ui/spreadsheet.html +0 -779
- package/dist/photons/spreadsheet.photon.d.ts +0 -554
- package/dist/photons/spreadsheet.photon.d.ts.map +0 -1
- package/dist/photons/spreadsheet.photon.js +0 -1050
- package/dist/photons/spreadsheet.photon.js.map +0 -1
- package/dist/photons/spreadsheet.photon.ts +0 -1239
- package/dist/photons/ui/builder-compass.html +0 -1199
- package/dist/photons/ui/builder-compass.photon.html +0 -380
- package/dist/security-scanner.d.ts +0 -52
- package/dist/security-scanner.d.ts.map +0 -1
- package/dist/security-scanner.js +0 -181
- package/dist/security-scanner.js.map +0 -1
- package/dist/shared/performance.d.ts +0 -65
- package/dist/shared/performance.d.ts.map +0 -1
- package/dist/shared/performance.js +0 -136
- package/dist/shared/performance.js.map +0 -1
|
@@ -1,581 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Daemon Tools for MCP
|
|
3
|
-
*
|
|
4
|
-
* Exposes Photon daemon features (pub/sub, locks, scheduled jobs) as MCP tools.
|
|
5
|
-
* Beam acts as a bridge between MCP clients and the daemon IPC protocol.
|
|
6
|
-
*
|
|
7
|
-
* Architecture:
|
|
8
|
-
* MCP Client (Claude) ←→ Beam (MCP Server) ←→ Daemon (IPC)
|
|
9
|
-
*/
|
|
10
|
-
import { subscribeChannel, publishToChannel, acquireLock, releaseLock, listLocks, scheduleJob, unscheduleJob, listJobs, pingDaemon, } from '../daemon/client.js';
|
|
11
|
-
import { createLogger } from '../shared/logger.js';
|
|
12
|
-
const logger = createLogger({ component: 'daemon-tools' });
|
|
13
|
-
// ════════════════════════════════════════════════════════════════════════════════
|
|
14
|
-
// TOOL DEFINITIONS
|
|
15
|
-
// ════════════════════════════════════════════════════════════════════════════════
|
|
16
|
-
export const DAEMON_TOOLS = [
|
|
17
|
-
// Pub/Sub Tools
|
|
18
|
-
{
|
|
19
|
-
name: 'beam/daemon/subscribe',
|
|
20
|
-
description: 'Subscribe to daemon event channels. Receive notifications when messages are published to matching channels.',
|
|
21
|
-
inputSchema: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
properties: {
|
|
24
|
-
photon: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
description: 'Photon name to subscribe to',
|
|
27
|
-
},
|
|
28
|
-
patterns: {
|
|
29
|
-
type: 'array',
|
|
30
|
-
items: { type: 'string' },
|
|
31
|
-
description: 'Channel patterns to subscribe to (e.g., "kanban:*", "jobs:completed")',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
required: ['photon', 'patterns'],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'beam/daemon/unsubscribe',
|
|
39
|
-
description: 'Unsubscribe from daemon event channels.',
|
|
40
|
-
inputSchema: {
|
|
41
|
-
type: 'object',
|
|
42
|
-
properties: {
|
|
43
|
-
photon: {
|
|
44
|
-
type: 'string',
|
|
45
|
-
description: 'Photon name to unsubscribe from',
|
|
46
|
-
},
|
|
47
|
-
patterns: {
|
|
48
|
-
type: 'array',
|
|
49
|
-
items: { type: 'string' },
|
|
50
|
-
description: 'Channel patterns to unsubscribe from',
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
required: ['photon', 'patterns'],
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: 'beam/daemon/publish',
|
|
58
|
-
description: 'Publish a message to a daemon channel. All subscribers will receive the message.',
|
|
59
|
-
inputSchema: {
|
|
60
|
-
type: 'object',
|
|
61
|
-
properties: {
|
|
62
|
-
photon: {
|
|
63
|
-
type: 'string',
|
|
64
|
-
description: 'Photon name',
|
|
65
|
-
},
|
|
66
|
-
channel: {
|
|
67
|
-
type: 'string',
|
|
68
|
-
description: 'Channel name to publish to',
|
|
69
|
-
},
|
|
70
|
-
message: {
|
|
71
|
-
description: 'Message payload (any JSON-serializable value)',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
required: ['photon', 'channel', 'message'],
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
// Lock Tools
|
|
78
|
-
{
|
|
79
|
-
name: 'beam/daemon/lock',
|
|
80
|
-
description: 'Acquire a distributed lock. Returns true if acquired, false if already held by another session.',
|
|
81
|
-
inputSchema: {
|
|
82
|
-
type: 'object',
|
|
83
|
-
properties: {
|
|
84
|
-
photon: {
|
|
85
|
-
type: 'string',
|
|
86
|
-
description: 'Photon name',
|
|
87
|
-
},
|
|
88
|
-
name: {
|
|
89
|
-
type: 'string',
|
|
90
|
-
description: 'Lock name (e.g., "board:write")',
|
|
91
|
-
},
|
|
92
|
-
timeout: {
|
|
93
|
-
type: 'number',
|
|
94
|
-
description: 'Lock timeout in milliseconds (default: 30000)',
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
required: ['photon', 'name'],
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: 'beam/daemon/unlock',
|
|
102
|
-
description: 'Release a distributed lock. Returns true if released, false if not held by this session.',
|
|
103
|
-
inputSchema: {
|
|
104
|
-
type: 'object',
|
|
105
|
-
properties: {
|
|
106
|
-
photon: {
|
|
107
|
-
type: 'string',
|
|
108
|
-
description: 'Photon name',
|
|
109
|
-
},
|
|
110
|
-
name: {
|
|
111
|
-
type: 'string',
|
|
112
|
-
description: 'Lock name to release',
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
required: ['photon', 'name'],
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: 'beam/daemon/locks',
|
|
120
|
-
description: 'List all active locks for a photon.',
|
|
121
|
-
inputSchema: {
|
|
122
|
-
type: 'object',
|
|
123
|
-
properties: {
|
|
124
|
-
photon: {
|
|
125
|
-
type: 'string',
|
|
126
|
-
description: 'Photon name',
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
required: ['photon'],
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
// Scheduled Job Tools
|
|
133
|
-
{
|
|
134
|
-
name: 'beam/daemon/schedule',
|
|
135
|
-
description: 'Schedule a recurring job using cron syntax.',
|
|
136
|
-
inputSchema: {
|
|
137
|
-
type: 'object',
|
|
138
|
-
properties: {
|
|
139
|
-
photon: {
|
|
140
|
-
type: 'string',
|
|
141
|
-
description: 'Photon name',
|
|
142
|
-
},
|
|
143
|
-
jobId: {
|
|
144
|
-
type: 'string',
|
|
145
|
-
description: 'Unique job identifier',
|
|
146
|
-
},
|
|
147
|
-
method: {
|
|
148
|
-
type: 'string',
|
|
149
|
-
description: 'Method name to execute',
|
|
150
|
-
},
|
|
151
|
-
cron: {
|
|
152
|
-
type: 'string',
|
|
153
|
-
description: 'Cron expression (e.g., "0 0 * * *" for daily at midnight)',
|
|
154
|
-
},
|
|
155
|
-
args: {
|
|
156
|
-
type: 'object',
|
|
157
|
-
description: 'Arguments to pass to the method',
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
required: ['photon', 'jobId', 'method', 'cron'],
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
name: 'beam/daemon/unschedule',
|
|
165
|
-
description: 'Remove a scheduled job.',
|
|
166
|
-
inputSchema: {
|
|
167
|
-
type: 'object',
|
|
168
|
-
properties: {
|
|
169
|
-
photon: {
|
|
170
|
-
type: 'string',
|
|
171
|
-
description: 'Photon name',
|
|
172
|
-
},
|
|
173
|
-
jobId: {
|
|
174
|
-
type: 'string',
|
|
175
|
-
description: 'Job ID to remove',
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
required: ['photon', 'jobId'],
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: 'beam/daemon/jobs',
|
|
183
|
-
description: 'List all scheduled jobs for a photon.',
|
|
184
|
-
inputSchema: {
|
|
185
|
-
type: 'object',
|
|
186
|
-
properties: {
|
|
187
|
-
photon: {
|
|
188
|
-
type: 'string',
|
|
189
|
-
description: 'Photon name',
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
required: ['photon'],
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
// Status Tool
|
|
196
|
-
{
|
|
197
|
-
name: 'beam/daemon/status',
|
|
198
|
-
description: 'Check daemon status and get summary of active subscriptions, locks, and jobs.',
|
|
199
|
-
inputSchema: {
|
|
200
|
-
type: 'object',
|
|
201
|
-
properties: {
|
|
202
|
-
photon: {
|
|
203
|
-
type: 'string',
|
|
204
|
-
description: 'Photon name',
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
required: ['photon'],
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
];
|
|
211
|
-
// ════════════════════════════════════════════════════════════════════════════════
|
|
212
|
-
// SUBSCRIPTION MANAGER
|
|
213
|
-
// ════════════════════════════════════════════════════════════════════════════════
|
|
214
|
-
/**
|
|
215
|
-
* Manages subscriptions per MCP session
|
|
216
|
-
* Maps sessionId → photon → subscriptions
|
|
217
|
-
*/
|
|
218
|
-
class SubscriptionManager {
|
|
219
|
-
sessions = new Map();
|
|
220
|
-
workingDir;
|
|
221
|
-
/**
|
|
222
|
-
* Subscribe to channels for a session
|
|
223
|
-
*/
|
|
224
|
-
async subscribe(sessionId, photonName, patterns, onMessage) {
|
|
225
|
-
// Get or create session map
|
|
226
|
-
if (!this.sessions.has(sessionId)) {
|
|
227
|
-
this.sessions.set(sessionId, new Map());
|
|
228
|
-
}
|
|
229
|
-
const sessionPhotons = this.sessions.get(sessionId);
|
|
230
|
-
// Get or create photon subscriptions
|
|
231
|
-
if (!sessionPhotons.has(photonName)) {
|
|
232
|
-
sessionPhotons.set(photonName, { patterns: [], unsubscribeFns: new Map() });
|
|
233
|
-
}
|
|
234
|
-
const subs = sessionPhotons.get(photonName);
|
|
235
|
-
const subscribed = [];
|
|
236
|
-
const errors = [];
|
|
237
|
-
for (const pattern of patterns) {
|
|
238
|
-
// Skip if already subscribed
|
|
239
|
-
if (subs.patterns.includes(pattern)) {
|
|
240
|
-
subscribed.push(pattern);
|
|
241
|
-
continue;
|
|
242
|
-
}
|
|
243
|
-
try {
|
|
244
|
-
const unsubscribe = await subscribeChannel(photonName, pattern, (message) => {
|
|
245
|
-
onMessage(pattern, message);
|
|
246
|
-
}, { workingDir: this.workingDir });
|
|
247
|
-
subs.patterns.push(pattern);
|
|
248
|
-
subs.unsubscribeFns.set(pattern, unsubscribe);
|
|
249
|
-
subscribed.push(pattern);
|
|
250
|
-
logger.debug(`Subscribed to ${photonName}/${pattern} for session ${sessionId}`);
|
|
251
|
-
}
|
|
252
|
-
catch (error) {
|
|
253
|
-
errors.push(`Failed to subscribe to ${pattern}: ${error}`);
|
|
254
|
-
logger.warn(`Subscribe error for ${photonName}/${pattern}`, { error });
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
return { subscribed, errors };
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* Unsubscribe from channels for a session
|
|
261
|
-
*/
|
|
262
|
-
unsubscribe(sessionId, photonName, patterns) {
|
|
263
|
-
const sessionPhotons = this.sessions.get(sessionId);
|
|
264
|
-
if (!sessionPhotons) {
|
|
265
|
-
return { unsubscribed: [], notFound: patterns };
|
|
266
|
-
}
|
|
267
|
-
const subs = sessionPhotons.get(photonName);
|
|
268
|
-
if (!subs) {
|
|
269
|
-
return { unsubscribed: [], notFound: patterns };
|
|
270
|
-
}
|
|
271
|
-
const unsubscribed = [];
|
|
272
|
-
const notFound = [];
|
|
273
|
-
for (const pattern of patterns) {
|
|
274
|
-
const unsubFn = subs.unsubscribeFns.get(pattern);
|
|
275
|
-
if (unsubFn) {
|
|
276
|
-
try {
|
|
277
|
-
unsubFn();
|
|
278
|
-
}
|
|
279
|
-
catch {
|
|
280
|
-
// Ignore unsubscribe errors
|
|
281
|
-
}
|
|
282
|
-
subs.unsubscribeFns.delete(pattern);
|
|
283
|
-
subs.patterns = subs.patterns.filter((p) => p !== pattern);
|
|
284
|
-
unsubscribed.push(pattern);
|
|
285
|
-
logger.debug(`Unsubscribed from ${photonName}/${pattern} for session ${sessionId}`);
|
|
286
|
-
}
|
|
287
|
-
else {
|
|
288
|
-
notFound.push(pattern);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
return { unsubscribed, notFound };
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* Clean up all subscriptions for a session
|
|
295
|
-
*/
|
|
296
|
-
cleanupSession(sessionId) {
|
|
297
|
-
const sessionPhotons = this.sessions.get(sessionId);
|
|
298
|
-
if (!sessionPhotons)
|
|
299
|
-
return;
|
|
300
|
-
for (const [photonName, subs] of sessionPhotons) {
|
|
301
|
-
for (const [pattern, unsubFn] of subs.unsubscribeFns) {
|
|
302
|
-
try {
|
|
303
|
-
unsubFn();
|
|
304
|
-
logger.debug(`Cleaned up subscription ${photonName}/${pattern} for session ${sessionId}`);
|
|
305
|
-
}
|
|
306
|
-
catch {
|
|
307
|
-
// Ignore cleanup errors
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
this.sessions.delete(sessionId);
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Get subscription info for a session
|
|
315
|
-
*/
|
|
316
|
-
getSessionSubscriptions(sessionId) {
|
|
317
|
-
const result = new Map();
|
|
318
|
-
const sessionPhotons = this.sessions.get(sessionId);
|
|
319
|
-
if (!sessionPhotons)
|
|
320
|
-
return result;
|
|
321
|
-
for (const [photonName, subs] of sessionPhotons) {
|
|
322
|
-
result.set(photonName, [...subs.patterns]);
|
|
323
|
-
}
|
|
324
|
-
return result;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
// Global subscription manager
|
|
328
|
-
const subscriptionManager = new SubscriptionManager();
|
|
329
|
-
// ════════════════════════════════════════════════════════════════════════════════
|
|
330
|
-
// TOOL HANDLERS
|
|
331
|
-
// ════════════════════════════════════════════════════════════════════════════════
|
|
332
|
-
/**
|
|
333
|
-
* Handle daemon tool calls
|
|
334
|
-
*/
|
|
335
|
-
export async function handleDaemonTool(toolName, args, sessionId, sendNotification, workingDir) {
|
|
336
|
-
try {
|
|
337
|
-
switch (toolName) {
|
|
338
|
-
// ─────────────────────────────────────────────────────────────────────
|
|
339
|
-
// Pub/Sub
|
|
340
|
-
// ─────────────────────────────────────────────────────────────────────
|
|
341
|
-
case 'beam/daemon/subscribe': {
|
|
342
|
-
const photon = args.photon;
|
|
343
|
-
const patterns = args.patterns;
|
|
344
|
-
const result = await subscriptionManager.subscribe(sessionId, photon, patterns, (channel, message) => {
|
|
345
|
-
// Bridge daemon message to MCP notification
|
|
346
|
-
sendNotification('notifications/daemon/channel', {
|
|
347
|
-
photon,
|
|
348
|
-
channel,
|
|
349
|
-
message,
|
|
350
|
-
timestamp: Date.now(),
|
|
351
|
-
});
|
|
352
|
-
});
|
|
353
|
-
return {
|
|
354
|
-
content: [
|
|
355
|
-
{
|
|
356
|
-
type: 'text',
|
|
357
|
-
text: JSON.stringify({
|
|
358
|
-
success: true,
|
|
359
|
-
subscribed: result.subscribed,
|
|
360
|
-
errors: result.errors.length > 0 ? result.errors : undefined,
|
|
361
|
-
}, null, 2),
|
|
362
|
-
},
|
|
363
|
-
],
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
case 'beam/daemon/unsubscribe': {
|
|
367
|
-
const photon = args.photon;
|
|
368
|
-
const patterns = args.patterns;
|
|
369
|
-
const result = subscriptionManager.unsubscribe(sessionId, photon, patterns);
|
|
370
|
-
return {
|
|
371
|
-
content: [
|
|
372
|
-
{
|
|
373
|
-
type: 'text',
|
|
374
|
-
text: JSON.stringify({
|
|
375
|
-
success: true,
|
|
376
|
-
unsubscribed: result.unsubscribed,
|
|
377
|
-
notFound: result.notFound.length > 0 ? result.notFound : undefined,
|
|
378
|
-
}, null, 2),
|
|
379
|
-
},
|
|
380
|
-
],
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
case 'beam/daemon/publish': {
|
|
384
|
-
const photon = args.photon;
|
|
385
|
-
const channel = args.channel;
|
|
386
|
-
const message = args.message;
|
|
387
|
-
await publishToChannel(photon, channel, message, workingDir);
|
|
388
|
-
return {
|
|
389
|
-
content: [
|
|
390
|
-
{
|
|
391
|
-
type: 'text',
|
|
392
|
-
text: JSON.stringify({
|
|
393
|
-
success: true,
|
|
394
|
-
channel,
|
|
395
|
-
published: true,
|
|
396
|
-
}, null, 2),
|
|
397
|
-
},
|
|
398
|
-
],
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
// ─────────────────────────────────────────────────────────────────────
|
|
402
|
-
// Locks
|
|
403
|
-
// ─────────────────────────────────────────────────────────────────────
|
|
404
|
-
case 'beam/daemon/lock': {
|
|
405
|
-
const photon = args.photon;
|
|
406
|
-
const name = args.name;
|
|
407
|
-
const timeout = args.timeout;
|
|
408
|
-
const acquired = await acquireLock(photon, name, timeout);
|
|
409
|
-
return {
|
|
410
|
-
content: [
|
|
411
|
-
{
|
|
412
|
-
type: 'text',
|
|
413
|
-
text: JSON.stringify({
|
|
414
|
-
success: true,
|
|
415
|
-
lock: name,
|
|
416
|
-
acquired,
|
|
417
|
-
}, null, 2),
|
|
418
|
-
},
|
|
419
|
-
],
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
case 'beam/daemon/unlock': {
|
|
423
|
-
const photon = args.photon;
|
|
424
|
-
const name = args.name;
|
|
425
|
-
const released = await releaseLock(photon, name);
|
|
426
|
-
return {
|
|
427
|
-
content: [
|
|
428
|
-
{
|
|
429
|
-
type: 'text',
|
|
430
|
-
text: JSON.stringify({
|
|
431
|
-
success: true,
|
|
432
|
-
lock: name,
|
|
433
|
-
released,
|
|
434
|
-
}, null, 2),
|
|
435
|
-
},
|
|
436
|
-
],
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
case 'beam/daemon/locks': {
|
|
440
|
-
const photon = args.photon;
|
|
441
|
-
const locks = await listLocks(photon);
|
|
442
|
-
return {
|
|
443
|
-
content: [
|
|
444
|
-
{
|
|
445
|
-
type: 'text',
|
|
446
|
-
text: JSON.stringify({
|
|
447
|
-
success: true,
|
|
448
|
-
locks,
|
|
449
|
-
}, null, 2),
|
|
450
|
-
},
|
|
451
|
-
],
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
// ─────────────────────────────────────────────────────────────────────
|
|
455
|
-
// Scheduled Jobs
|
|
456
|
-
// ─────────────────────────────────────────────────────────────────────
|
|
457
|
-
case 'beam/daemon/schedule': {
|
|
458
|
-
const photon = args.photon;
|
|
459
|
-
const jobId = args.jobId;
|
|
460
|
-
const method = args.method;
|
|
461
|
-
const cron = args.cron;
|
|
462
|
-
const jobArgs = args.args;
|
|
463
|
-
const result = await scheduleJob(photon, jobId, method, cron, jobArgs);
|
|
464
|
-
return {
|
|
465
|
-
content: [
|
|
466
|
-
{
|
|
467
|
-
type: 'text',
|
|
468
|
-
text: JSON.stringify({
|
|
469
|
-
success: true,
|
|
470
|
-
jobId,
|
|
471
|
-
scheduled: result.scheduled,
|
|
472
|
-
nextRun: result.nextRun ? new Date(result.nextRun).toISOString() : undefined,
|
|
473
|
-
}, null, 2),
|
|
474
|
-
},
|
|
475
|
-
],
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
case 'beam/daemon/unschedule': {
|
|
479
|
-
const photon = args.photon;
|
|
480
|
-
const jobId = args.jobId;
|
|
481
|
-
const unscheduled = await unscheduleJob(photon, jobId);
|
|
482
|
-
return {
|
|
483
|
-
content: [
|
|
484
|
-
{
|
|
485
|
-
type: 'text',
|
|
486
|
-
text: JSON.stringify({
|
|
487
|
-
success: true,
|
|
488
|
-
jobId,
|
|
489
|
-
unscheduled,
|
|
490
|
-
}, null, 2),
|
|
491
|
-
},
|
|
492
|
-
],
|
|
493
|
-
};
|
|
494
|
-
}
|
|
495
|
-
case 'beam/daemon/jobs': {
|
|
496
|
-
const photon = args.photon;
|
|
497
|
-
const jobs = await listJobs(photon);
|
|
498
|
-
// Format jobs with human-readable dates
|
|
499
|
-
const formattedJobs = jobs.map((job) => ({
|
|
500
|
-
...job,
|
|
501
|
-
nextRun: job.nextRun ? new Date(job.nextRun).toISOString() : undefined,
|
|
502
|
-
lastRun: job.lastRun ? new Date(job.lastRun).toISOString() : undefined,
|
|
503
|
-
}));
|
|
504
|
-
return {
|
|
505
|
-
content: [
|
|
506
|
-
{
|
|
507
|
-
type: 'text',
|
|
508
|
-
text: JSON.stringify({
|
|
509
|
-
success: true,
|
|
510
|
-
jobs: formattedJobs,
|
|
511
|
-
}, null, 2),
|
|
512
|
-
},
|
|
513
|
-
],
|
|
514
|
-
};
|
|
515
|
-
}
|
|
516
|
-
// ─────────────────────────────────────────────────────────────────────
|
|
517
|
-
// Status
|
|
518
|
-
// ─────────────────────────────────────────────────────────────────────
|
|
519
|
-
case 'beam/daemon/status': {
|
|
520
|
-
const photon = args.photon;
|
|
521
|
-
const [isAlive, locks, jobs] = await Promise.all([
|
|
522
|
-
pingDaemon(photon),
|
|
523
|
-
listLocks(photon).catch(() => []),
|
|
524
|
-
listJobs(photon).catch(() => []),
|
|
525
|
-
]);
|
|
526
|
-
const subscriptions = subscriptionManager.getSessionSubscriptions(sessionId);
|
|
527
|
-
const photonSubs = subscriptions.get(photon) || [];
|
|
528
|
-
return {
|
|
529
|
-
content: [
|
|
530
|
-
{
|
|
531
|
-
type: 'text',
|
|
532
|
-
text: JSON.stringify({
|
|
533
|
-
success: true,
|
|
534
|
-
photon,
|
|
535
|
-
daemon: {
|
|
536
|
-
alive: isAlive,
|
|
537
|
-
},
|
|
538
|
-
subscriptions: photonSubs,
|
|
539
|
-
locks: locks.length,
|
|
540
|
-
jobs: jobs.length,
|
|
541
|
-
}, null, 2),
|
|
542
|
-
},
|
|
543
|
-
],
|
|
544
|
-
};
|
|
545
|
-
}
|
|
546
|
-
default:
|
|
547
|
-
return {
|
|
548
|
-
content: [{ type: 'text', text: `Unknown daemon tool: ${toolName}` }],
|
|
549
|
-
isError: true,
|
|
550
|
-
};
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
catch (error) {
|
|
554
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
555
|
-
logger.error(`Daemon tool error: ${toolName}`, { error: message });
|
|
556
|
-
return {
|
|
557
|
-
content: [{ type: 'text', text: `Daemon error: ${message}` }],
|
|
558
|
-
isError: true,
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* Check if a tool name is a daemon tool
|
|
564
|
-
*/
|
|
565
|
-
export function isDaemonTool(toolName) {
|
|
566
|
-
return toolName.startsWith('beam/daemon/');
|
|
567
|
-
}
|
|
568
|
-
/**
|
|
569
|
-
* Clean up subscriptions when MCP session ends
|
|
570
|
-
*/
|
|
571
|
-
export function cleanupDaemonSession(sessionId) {
|
|
572
|
-
subscriptionManager.cleanupSession(sessionId);
|
|
573
|
-
logger.debug(`Cleaned up daemon session: ${sessionId}`);
|
|
574
|
-
}
|
|
575
|
-
/**
|
|
576
|
-
* Get all daemon tool definitions
|
|
577
|
-
*/
|
|
578
|
-
export function getDaemonTools() {
|
|
579
|
-
return DAEMON_TOOLS;
|
|
580
|
-
}
|
|
581
|
-
//# sourceMappingURL=daemon-tools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"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based on Material Design 3 tokens + Apple HIG visual principles.
|
|
6
|
-
*
|
|
7
|
-
* References:
|
|
8
|
-
* - Material Design 3: https://m3.material.io/foundations/design-tokens
|
|
9
|
-
* - Apple HIG: https://developer.apple.com/design/human-interface-guidelines/layout
|
|
10
|
-
*/
|
|
11
|
-
export * from './tokens.js';
|
|
12
|
-
export * from './transaction-ui.js';
|
|
13
|
-
/**
|
|
14
|
-
* Generate all CSS for the Photon Design System
|
|
15
|
-
*/
|
|
16
|
-
export declare function generateDesignSystemCSS(): string;
|
|
17
|
-
/**
|
|
18
|
-
* Generate all JavaScript for the Photon Design System
|
|
19
|
-
*/
|
|
20
|
-
export declare function generateDesignSystemJS(): string;
|
|
21
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auto-ui/design-system/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AAKpC;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,CAE/C"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Photon Design System
|
|
3
|
-
*
|
|
4
|
-
* A design system for AI+Human transaction workflows.
|
|
5
|
-
* Based on Material Design 3 tokens + Apple HIG visual principles.
|
|
6
|
-
*
|
|
7
|
-
* References:
|
|
8
|
-
* - Material Design 3: https://m3.material.io/foundations/design-tokens
|
|
9
|
-
* - Apple HIG: https://developer.apple.com/design/human-interface-guidelines/layout
|
|
10
|
-
*/
|
|
11
|
-
export * from './tokens.js';
|
|
12
|
-
export * from './transaction-ui.js';
|
|
13
|
-
import { generateTokensCSS } from './tokens.js';
|
|
14
|
-
import { generateTransactionCSS, generateTransactionJS } from './transaction-ui.js';
|
|
15
|
-
/**
|
|
16
|
-
* Generate all CSS for the Photon Design System
|
|
17
|
-
*/
|
|
18
|
-
export function generateDesignSystemCSS() {
|
|
19
|
-
return generateTokensCSS() + '\n' + generateTransactionCSS();
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Generate all JavaScript for the Photon Design System
|
|
23
|
-
*/
|
|
24
|
-
export function generateDesignSystemJS() {
|
|
25
|
-
return generateTransactionJS();
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auto-ui/design-system/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEpF;;GAEG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,iBAAiB,EAAE,GAAG,IAAI,GAAG,sBAAsB,EAAE,CAAC;AAC/D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,qBAAqB,EAAE,CAAC;AACjC,CAAC"}
|