@withpica/mcp-server 2.9.0 → 2.10.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/config.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  export interface ServerConfig {
2
- picaApiKey: string | null;
3
- picaApiUrl: string;
4
- serverName: string;
5
- version: string;
6
- debug: boolean;
7
- lobbyMode: boolean;
8
- credentialsPath: string;
9
- discoveryMode: boolean;
2
+ picaApiKey: string | null;
3
+ picaApiUrl: string;
4
+ serverName: string;
5
+ version: string;
6
+ debug: boolean;
7
+ lobbyMode: boolean;
8
+ credentialsPath: string;
9
+ discoveryMode: boolean;
10
10
  }
11
11
  export declare function loadConfig(): ServerConfig;
12
12
  export declare function validateConfig(config: ServerConfig): void;
13
- //# sourceMappingURL=config.d.ts.map
13
+ //# sourceMappingURL=config.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  export {};
3
- //# sourceMappingURL=index.d.ts.map
3
+ //# sourceMappingURL=index.d.ts.map
@@ -3,76 +3,76 @@
3
3
  * Manages pre-configured prompts for common workflows
4
4
  */
5
5
  export interface PromptDefinition {
6
- name: string;
7
- description: string;
8
- arguments?: Array<{
9
6
  name: string;
10
7
  description: string;
11
- required?: boolean;
12
- }>;
8
+ arguments?: Array<{
9
+ name: string;
10
+ description: string;
11
+ required?: boolean;
12
+ }>;
13
13
  }
14
14
  export interface PromptMessage {
15
- role: "user" | "assistant";
16
- content: {
17
- type: string;
18
- text: string;
19
- };
15
+ role: "user" | "assistant";
16
+ content: {
17
+ type: string;
18
+ text: string;
19
+ };
20
20
  }
21
21
  export interface PromptResult {
22
- messages: PromptMessage[];
22
+ messages: PromptMessage[];
23
23
  }
24
24
  export declare class PromptRegistry {
25
- /**
26
- * List all available prompts
27
- */
28
- listPrompts(): PromptDefinition[];
29
- /**
30
- * Get a prompt by name
31
- */
32
- getPrompt(name: string, args?: Record<string, any>): Promise<any>;
33
- /**
34
- * Analyze catalog prompt
35
- */
36
- private getAnalyzeCatalogPrompt;
37
- /**
38
- * Find duplicates prompt
39
- */
40
- private getFindDuplicatesPrompt;
41
- /**
42
- * Enrich metadata prompt
43
- */
44
- private getEnrichMetadataPrompt;
45
- /**
46
- * Verify works prompt
47
- */
48
- private getVerifyWorksPrompt;
49
- /**
50
- * Assess catalog health prompt
51
- */
52
- private getAssessCatalogHealthPrompt;
53
- /**
54
- * Audit credits prompt
55
- */
56
- private getAuditCreditsPrompt;
57
- /**
58
- * New catalog setup prompt — first-time onboarding
59
- */
60
- private getNewCatalogSetupPrompt;
61
- /**
62
- * Close the loop — check a specific work's gaps and offer to fix each one
63
- */
64
- private getCloseTheLoopPrompt;
65
- /**
66
- * Register my works — check registration status and prepare for PRO submission
67
- */
68
- private getRegisterMyWorksPrompt;
69
- /**
70
- * Workspace autopilot — assess state and route to the right workflow
71
- */
72
- private getWorkspaceAutopilotPrompt;
73
- /**
74
- * Prepare for sync — get catalog sync-ready
75
- */
76
- private getPrepareForSyncPrompt;
25
+ /**
26
+ * List all available prompts
27
+ */
28
+ listPrompts(): PromptDefinition[];
29
+ /**
30
+ * Get a prompt by name
31
+ */
32
+ getPrompt(name: string, args?: Record<string, any>): Promise<any>;
33
+ /**
34
+ * Analyze catalog prompt
35
+ */
36
+ private getAnalyzeCatalogPrompt;
37
+ /**
38
+ * Find duplicates prompt
39
+ */
40
+ private getFindDuplicatesPrompt;
41
+ /**
42
+ * Enrich metadata prompt
43
+ */
44
+ private getEnrichMetadataPrompt;
45
+ /**
46
+ * Verify works prompt
47
+ */
48
+ private getVerifyWorksPrompt;
49
+ /**
50
+ * Assess catalog health prompt
51
+ */
52
+ private getAssessCatalogHealthPrompt;
53
+ /**
54
+ * Audit credits prompt
55
+ */
56
+ private getAuditCreditsPrompt;
57
+ /**
58
+ * New catalog setup prompt — first-time onboarding
59
+ */
60
+ private getNewCatalogSetupPrompt;
61
+ /**
62
+ * Close the loop — check a specific work's gaps and offer to fix each one
63
+ */
64
+ private getCloseTheLoopPrompt;
65
+ /**
66
+ * Register my works — check registration status and prepare for PRO submission
67
+ */
68
+ private getRegisterMyWorksPrompt;
69
+ /**
70
+ * Workspace autopilot — assess state and route to the right workflow
71
+ */
72
+ private getWorkspaceAutopilotPrompt;
73
+ /**
74
+ * Prepare for sync — get catalog sync-ready
75
+ */
76
+ private getPrepareForSyncPrompt;
77
77
  }
78
- //# sourceMappingURL=index.d.ts.map
78
+ //# sourceMappingURL=index.d.ts.map
@@ -5,62 +5,62 @@
5
5
  import { PicaClient } from "@withpica/mcp-sdk";
6
6
  import { ServerConfig } from "../config.js";
7
7
  export interface ResourceDefinition {
8
- uri: string;
9
- name: string;
10
- description: string;
11
- mimeType: string;
12
- }
13
- export interface ResourceContent {
14
- contents: Array<{
15
8
  uri: string;
9
+ name: string;
10
+ description: string;
16
11
  mimeType: string;
17
- text: string;
18
- }>;
12
+ }
13
+ export interface ResourceContent {
14
+ contents: Array<{
15
+ uri: string;
16
+ mimeType: string;
17
+ text: string;
18
+ }>;
19
19
  }
20
20
  export type ResourceResult = any;
21
21
  export declare class ResourceRegistry {
22
- private pica;
23
- private config?;
24
- constructor(pica: PicaClient | null, config?: ServerConfig);
25
- /**
26
- * List all available resources
27
- */
28
- listResources(): ResourceDefinition[];
29
- /**
30
- * Read a resource by URI
31
- */
32
- readResource(uri: string): Promise<any>;
33
- /**
34
- * Get OpenAPI specification resource
35
- */
36
- private getOpenAPISpec;
37
- /**
38
- * Get works list resource
39
- */
40
- private getWorksList;
41
- /**
42
- * Get people list resource
43
- */
44
- private getPeopleList;
45
- /**
46
- * Get recordings list resource
47
- */
48
- private getRecordingsList;
49
- /**
50
- * Get catalog statistics resource
51
- */
52
- private getCatalogStats;
53
- /**
54
- * Get catalog health (PICA Score) resource
55
- */
56
- private getCatalogHealth;
57
- /**
58
- * Get workspace context resource — aggregated orientation for agents
59
- */
60
- private getWorkspaceContext;
61
- /**
62
- * Get recent events resource — webhook deliveries
63
- */
64
- private getRecentEvents;
22
+ private pica;
23
+ private config?;
24
+ constructor(pica: PicaClient | null, config?: ServerConfig);
25
+ /**
26
+ * List all available resources
27
+ */
28
+ listResources(): ResourceDefinition[];
29
+ /**
30
+ * Read a resource by URI
31
+ */
32
+ readResource(uri: string): Promise<any>;
33
+ /**
34
+ * Get OpenAPI specification resource
35
+ */
36
+ private getOpenAPISpec;
37
+ /**
38
+ * Get works list resource
39
+ */
40
+ private getWorksList;
41
+ /**
42
+ * Get people list resource
43
+ */
44
+ private getPeopleList;
45
+ /**
46
+ * Get recordings list resource
47
+ */
48
+ private getRecordingsList;
49
+ /**
50
+ * Get catalog statistics resource
51
+ */
52
+ private getCatalogStats;
53
+ /**
54
+ * Get catalog health (PICA Score) resource
55
+ */
56
+ private getCatalogHealth;
57
+ /**
58
+ * Get workspace context resource — aggregated orientation for agents
59
+ */
60
+ private getWorkspaceContext;
61
+ /**
62
+ * Get recent events resource — webhook deliveries
63
+ */
64
+ private getRecentEvents;
65
65
  }
66
- //# sourceMappingURL=index.d.ts.map
66
+ //# sourceMappingURL=index.d.ts.map
package/dist/server.d.ts CHANGED
@@ -1,52 +1,52 @@
1
1
  import { ServerConfig } from "./config.js";
2
2
  export declare class PicaMcpServer {
3
- private server;
4
- private pica;
5
- private toolRegistry;
6
- private resourceRegistry;
7
- private promptRegistry;
8
- private config;
9
- private httpServer?;
10
- constructor(config: ServerConfig);
11
- /**
12
- * Reinitialize server with new credentials (called after successful auth)
13
- */
14
- reinitialize(apiKey: string): void;
15
- /**
16
- * Reset the server back to lobby mode (called after sign_out).
17
- * Mirrors reinitialize() but in reverse: clears the PicaClient,
18
- * sets lobbyMode=true, and rebuilds the tool/resource registries so
19
- * the next tools/list call returns only [pica_sign_in, pica_sign_out].
20
- *
21
- * Without this the server would keep advertising the full authenticated
22
- * tool surface after sign_out until the process is restarted, which
23
- * lies about what's actually available — every privileged tool call
24
- * would still fail at the API layer (no PicaClient), but the surface
25
- * itself shouldn't pretend the catalog is reachable.
26
- */
27
- signOut(): void;
28
- /**
29
- * Set up MCP protocol handlers on the main server instance (for stdio)
30
- */
31
- private setupHandlers;
32
- /**
33
- * Start the MCP server.
34
- *
35
- * Transport is selected by environment:
36
- * - MCP_TRANSPORT=http → HTTP server on MCP_PORT (default 3100)
37
- * - Otherwise → stdio (default, for Claude Code / Cursor / VS Code)
38
- */
39
- start(): Promise<void>;
40
- private startStdio;
41
- private startHttp;
42
- /**
43
- * Register protocol handlers on a server instance.
44
- * Used by both the main server (stdio) and per-request servers (HTTP).
45
- */
46
- private registerHandlers;
47
- /**
48
- * Stop the MCP server
49
- */
50
- stop(): Promise<void>;
3
+ private server;
4
+ private pica;
5
+ private toolRegistry;
6
+ private resourceRegistry;
7
+ private promptRegistry;
8
+ private config;
9
+ private httpServer?;
10
+ constructor(config: ServerConfig);
11
+ /**
12
+ * Reinitialize server with new credentials (called after successful auth)
13
+ */
14
+ reinitialize(apiKey: string): void;
15
+ /**
16
+ * Reset the server back to lobby mode (called after sign_out).
17
+ * Mirrors reinitialize() but in reverse: clears the PicaClient,
18
+ * sets lobbyMode=true, and rebuilds the tool/resource registries so
19
+ * the next tools/list call returns only [pica_sign_in, pica_sign_out].
20
+ *
21
+ * Without this the server would keep advertising the full authenticated
22
+ * tool surface after sign_out until the process is restarted, which
23
+ * lies about what's actually available — every privileged tool call
24
+ * would still fail at the API layer (no PicaClient), but the surface
25
+ * itself shouldn't pretend the catalog is reachable.
26
+ */
27
+ signOut(): void;
28
+ /**
29
+ * Set up MCP protocol handlers on the main server instance (for stdio)
30
+ */
31
+ private setupHandlers;
32
+ /**
33
+ * Start the MCP server.
34
+ *
35
+ * Transport is selected by environment:
36
+ * - MCP_TRANSPORT=http → HTTP server on MCP_PORT (default 3100)
37
+ * - Otherwise → stdio (default, for Claude Code / Cursor / VS Code)
38
+ */
39
+ start(): Promise<void>;
40
+ private startStdio;
41
+ private startHttp;
42
+ /**
43
+ * Register protocol handlers on a server instance.
44
+ * Used by both the main server (stdio) and per-request servers (HTTP).
45
+ */
46
+ private registerHandlers;
47
+ /**
48
+ * Stop the MCP server
49
+ */
50
+ stop(): Promise<void>;
51
51
  }
52
- //# sourceMappingURL=server.d.ts.map
52
+ //# sourceMappingURL=server.d.ts.map
@@ -19,5 +19,8 @@ export declare class EnrichmentTools {
19
19
  private runWorkCascade;
20
20
  private runPersonCascade;
21
21
  private cascadeHealth;
22
+ private listEnrichmentProposals;
23
+ private applyEnrichmentProposal;
24
+ private rejectEnrichmentProposal;
22
25
  }
23
26
  //# sourceMappingURL=enrichment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enrichment.d.ts","sourceRoot":"","sources":["../../src/tools/enrichment.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAc,MAAM,YAAY,CAAC;AAKtE,qBAAa,eAAe;IAC1B,OAAO,CAAC,IAAI,CAAa;gBAEb,IAAI,EAAE,UAAU;IAI5B,QAAQ,IAAI,KAAK,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;YAiN3D,oBAAoB;YAOpB,aAAa;YAKb,qBAAqB;YASrB,iBAAiB;YAOjB,iBAAiB;YAuBjB,iBAAiB;YAOjB,cAAc;YAQd,gBAAgB;YAUhB,aAAa;CAI5B"}
1
+ {"version":3,"file":"enrichment.d.ts","sourceRoot":"","sources":["../../src/tools/enrichment.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAc,MAAM,YAAY,CAAC;AAKtE,qBAAa,eAAe;IAC1B,OAAO,CAAC,IAAI,CAAa;gBAEb,IAAI,EAAE,UAAU;IAI5B,QAAQ,IAAI,KAAK,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;YA8U3D,oBAAoB;YAOpB,aAAa;YAKb,qBAAqB;YASrB,iBAAiB;YAOjB,iBAAiB;YAuBjB,iBAAiB;YAOjB,cAAc;YAQd,gBAAgB;YAUhB,aAAa;YASb,uBAAuB;YAcvB,uBAAuB;YAiBvB,wBAAwB;CAYvC"}
@@ -141,7 +141,7 @@ export class EnrichmentTools {
141
141
  name: "pica_run_person_cascade",
142
142
  description: "Re-evaluate a person against every ADR-164 cascade rule. Fires ipi_to_mlc_works (pulls MLC writer/publisher splits), " +
143
143
  "mbid/isni→wikidata crosswalks, wikidata_to_awards, wikidata_to_biography, and the Google contact suggestion. " +
144
- "Idempotent. Fire-and-forget. → then: pica_people_inspect",
144
+ "Idempotent. Fire-and-forget. → then: pica_people_inspect (see what the cascade wrote)",
145
145
  inputSchema: {
146
146
  type: "object",
147
147
  properties: {
@@ -160,7 +160,7 @@ export class EnrichmentTools {
160
160
  name: "pica_cascade_health",
161
161
  description: "Snapshot of the in-process enrichment cascade counters (ADR-164 Decision 5). " +
162
162
  "Returns per-rule failure counts bucketed by reason (empty_result, timeout, auth_error, rate_limit, schema_error, unknown) " +
163
- "plus outcome totals (wrote / no_match / already_enriched / error). " +
163
+ "plus outcome totals (wrote / no_match / already_enriched / error / proposed / suppressed). " +
164
164
  "Process-global and not persistent across serverless cold starts — treat as a spot-check, not a historical ledger. " +
165
165
  "Use when cascade enrichment looks unhealthy or after shipping new rules.",
166
166
  inputSchema: {
@@ -170,6 +170,113 @@ export class EnrichmentTools {
170
170
  },
171
171
  executor: this.cascadeHealth.bind(this),
172
172
  },
173
+ // ============================================================
174
+ // ADR-163: Tier B enrichment proposal review tools
175
+ // ============================================================
176
+ {
177
+ definition: {
178
+ name: "pica_enrichment_proposals_list",
179
+ description: "List pending enrichment proposals awaiting review (ADR-163 Tier B). " +
180
+ "These are matches from fuzzy-match cascade rules (MLC writer splits, " +
181
+ "Spotify artist+title, YouTube recording classification) that the cascade " +
182
+ "holds for human review instead of writing through automatically. " +
183
+ "Only pending proposals are returned — applied, rejected, and expired " +
184
+ "rows are invisible. Default order: newest first, limit 20 (max 100). " +
185
+ "→ then: pica_enrichment_proposal_apply (accept a proposal), " +
186
+ "pica_enrichment_proposal_reject (dismiss a proposal)",
187
+ inputSchema: {
188
+ type: "object",
189
+ properties: {
190
+ entity_type: {
191
+ type: "string",
192
+ enum: ["work", "person", "recording"],
193
+ description: "Filter to proposals anchored on a specific entity type",
194
+ },
195
+ entity_id: {
196
+ type: "string",
197
+ description: "Filter to proposals anchored on a specific entity (pairs with entity_type)",
198
+ },
199
+ rule_id: {
200
+ type: "string",
201
+ description: "Filter by cascade rule id (e.g. 'ipi_to_mlc_works', 'artist_title_to_spotify', 'artist_title_to_youtube')",
202
+ },
203
+ source: {
204
+ type: "string",
205
+ description: "Filter by source ('mlc', 'spotify', 'youtube', 'wikidata', etc.)",
206
+ },
207
+ limit: {
208
+ type: "integer",
209
+ description: "Max results, 1..100 (default 20)",
210
+ },
211
+ offset: {
212
+ type: "integer",
213
+ description: "Pagination offset (default 0)",
214
+ },
215
+ },
216
+ },
217
+ },
218
+ executor: this.listEnrichmentProposals.bind(this),
219
+ },
220
+ {
221
+ definition: {
222
+ name: "pica_enrichment_proposal_apply",
223
+ description: "Apply a pending enrichment proposal (ADR-163 Tier B). " +
224
+ "For update proposals (e.g. MLC writer splits on a work), drift " +
225
+ "detection runs first: if the entity has changed since the proposal " +
226
+ "was created, the response is { status: 'drift_detected', conflicts } " +
227
+ "and nothing is written. On drift, show the conflicts to the user " +
228
+ "before retrying with force=true. For create proposals (e.g. creating " +
229
+ "a YouTube recording on a work), a uniqueness check runs instead and " +
230
+ "cannot be forced. → then: pica_works_inspect or pica_recordings_inspect " +
231
+ "(see the resolved entity)",
232
+ inputSchema: {
233
+ type: "object",
234
+ properties: {
235
+ proposal_id: {
236
+ type: "string",
237
+ description: "The proposal id to apply",
238
+ },
239
+ force: {
240
+ type: "boolean",
241
+ description: "Bypass drift detection (update proposals only). Only set after the user has reviewed the conflicts from a prior drift_detected response.",
242
+ },
243
+ resolution_note: {
244
+ type: "string",
245
+ description: "Optional note recorded on the resolved row (free-form text)",
246
+ },
247
+ },
248
+ required: ["proposal_id"],
249
+ },
250
+ },
251
+ executor: withBillingGate(this.pica, "Enrichment proposal apply", this.applyEnrichmentProposal.bind(this)),
252
+ },
253
+ {
254
+ definition: {
255
+ name: "pica_enrichment_proposal_reject",
256
+ description: "Reject a pending enrichment proposal (ADR-163 Tier B). " +
257
+ "Content-hash suppression permanently blocks re-proposal of the " +
258
+ "same exact content — the cascade will only re-propose if the " +
259
+ "source data genuinely changes (different MLC record, different " +
260
+ "Spotify match). No cooldown, no timer. Use when the proposal is " +
261
+ "wrong (homonym collision, stale source data, etc.) and you want " +
262
+ "the cascade to stop suggesting it.",
263
+ inputSchema: {
264
+ type: "object",
265
+ properties: {
266
+ proposal_id: {
267
+ type: "string",
268
+ description: "The proposal id to reject",
269
+ },
270
+ resolution_note: {
271
+ type: "string",
272
+ description: "Optional reason recorded on the rejected row (e.g. 'wrong writer — homonym')",
273
+ },
274
+ },
275
+ required: ["proposal_id"],
276
+ },
277
+ },
278
+ executor: withBillingGate(this.pica, "Enrichment proposal reject", this.rejectEnrichmentProposal.bind(this)),
279
+ },
173
280
  ];
174
281
  }
175
282
  async enrichmentCandidates(_args) {
@@ -216,5 +323,34 @@ export class EnrichmentTools {
216
323
  const result = await this.pica.enrichment.getCascadeHealth();
217
324
  return formatAsText(result);
218
325
  }
326
+ // ============================================================
327
+ // ADR-163 Tier B proposal executors
328
+ // ============================================================
329
+ async listEnrichmentProposals(args) {
330
+ const result = await this.pica.enrichment.listEnrichmentProposals({
331
+ entity_type: args.entity_type,
332
+ entity_id: args.entity_id,
333
+ rule_id: args.rule_id,
334
+ source: args.source,
335
+ limit: args.limit,
336
+ offset: args.offset,
337
+ });
338
+ return formatAsText(result);
339
+ }
340
+ async applyEnrichmentProposal(args) {
341
+ const proposalId = args.proposal_id;
342
+ const result = await this.pica.enrichment.applyEnrichmentProposal(proposalId, {
343
+ force: args.force === true,
344
+ resolution_note: args.resolution_note,
345
+ });
346
+ return formatSuccess(`Enrichment proposal ${proposalId} — apply result`, result);
347
+ }
348
+ async rejectEnrichmentProposal(args) {
349
+ const proposalId = args.proposal_id;
350
+ const result = await this.pica.enrichment.rejectEnrichmentProposal(proposalId, {
351
+ resolution_note: args.resolution_note,
352
+ });
353
+ return formatSuccess(`Enrichment proposal ${proposalId} rejected`, result);
354
+ }
219
355
  }
220
356
  //# sourceMappingURL=enrichment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enrichment.js","sourceRoot":"","sources":["../../src/tools/enrichment.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAQ7D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,OAAO,eAAe;IAClB,IAAI,CAAa;IAEzB,YAAY,IAAgB;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,QAAQ;QACN,OAAO;YACL;gBACE,UAAU,EAAE;oBACV,IAAI,EAAE,4BAA4B;oBAClC,WAAW,EACT,uGAAuG;wBACvG,gGAAgG;oBAClG,WAAW,EAAE;wBACX,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE,EAAE;qBACf;iBACF;gBACD,QAAQ,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC;aAC/C;YACD;gBACE,UAAU,EAAE;oBACV,IAAI,EAAE,sBAAsB;oBAC5B,WAAW,EACT,kHAAkH;wBAClH,iGAAiG;oBACnG,WAAW,EAAE;wBACX,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,OAAO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MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC,CAAC;QACH,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IAEO,KAAK,CAAC,uBAAuB,CACnC,IAAyB;QAEzB,MAAM,UAAU,GAAG,IAAI,CAAC,WAAqB,CAAC;QAC9C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAC/D,UAAU,EACV;YACE,KAAK,EAAE,IAAI,CAAC,KAAK,KAAK,IAAI;YAC1B,eAAe,EAAE,IAAI,CAAC,eAAe;SACtC,CACF,CAAC;QACF,OAAO,aAAa,CAClB,uBAAuB,UAAU,iBAAiB,EAClD,MAAM,CACP,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,wBAAwB,CACpC,IAAyB;QAEzB,MAAM,UAAU,GAAG,IAAI,CAAC,WAAqB,CAAC;QAC9C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAChE,UAAU,EACV;YACE,eAAe,EAAE,IAAI,CAAC,eAAe;SACtC,CACF,CAAC;QACF,OAAO,aAAa,CAAC,uBAAuB,UAAU,WAAW,EAAE,MAAM,CAAC,CAAC;IAC7E,CAAC;CACF"}
@@ -26,5 +26,6 @@ export declare class ImportTools {
26
26
  private getImportTemplate;
27
27
  private importFromSpotify;
28
28
  private importStreamingLink;
29
+ private importYouTubeLink;
29
30
  }
30
31
  //# sourceMappingURL=import.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../src/tools/import.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAc,MAAM,YAAY,CAAC;AAiBtE,qBAAa,WAAW;IACtB,OAAO,CAAC,IAAI,CAAa;gBAEb,IAAI,EAAE,UAAU;IAI5B,QAAQ,IAAI,KAAK,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;YAsP3D,aAAa;YAuBb,cAAc;YAgCd,aAAa;YAkCb,eAAe;YAUf,iBAAiB;YAUjB,iBAAiB;YAgDjB,mBAAmB;CA+HlC"}
1
+ {"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../src/tools/import.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAc,MAAM,YAAY,CAAC;AAiBtE,qBAAa,WAAW;IACtB,OAAO,CAAC,IAAI,CAAa;gBAEb,IAAI,EAAE,UAAU;IAI5B,QAAQ,IAAI,KAAK,CAAC;QAAE,UAAU,EAAE,cAAc,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,CAAC;YAyT3D,aAAa;YAuBb,cAAc;YAgCd,aAAa;YAkCb,eAAe;YAUf,iBAAiB;YAUjB,iBAAiB;YAgDjB,mBAAmB;YAgInB,iBAAiB;CAuGhC"}