@withpica/mcp-server 2.103.0 → 2.105.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/CHANGELOG.md +91 -0
- package/README.md +9 -5
- package/dist/lib/changelog.generated.d.ts +2 -2
- package/dist/lib/changelog.generated.d.ts.map +1 -1
- package/dist/lib/changelog.generated.js +2 -2
- package/dist/lib/changelog.generated.js.map +1 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +23 -1
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/required-schemas.generated.d.ts +77 -0
- package/dist/resources/required-schemas.generated.d.ts.map +1 -1
- package/dist/resources/required-schemas.generated.js +114 -0
- package/dist/resources/required-schemas.generated.js.map +1 -1
- package/dist/resources/required-schemas.source.d.ts.map +1 -1
- package/dist/resources/required-schemas.source.js +85 -0
- package/dist/resources/required-schemas.source.js.map +1 -1
- package/dist/server-instructions.d.ts +2 -2
- package/dist/server-instructions.d.ts.map +1 -1
- package/dist/server-instructions.js +2 -0
- package/dist/server-instructions.js.map +1 -1
- package/dist/skills/skills.generated.d.ts.map +1 -1
- package/dist/skills/skills.generated.js +25 -3
- package/dist/skills/skills.generated.js.map +1 -1
- package/dist/tools/app-tools.js +1 -1
- package/dist/tools/app-tools.js.map +1 -1
- package/dist/tools/assets.d.ts +1 -0
- package/dist/tools/assets.d.ts.map +1 -1
- package/dist/tools/assets.js +45 -40
- package/dist/tools/assets.js.map +1 -1
- package/dist/tools/audio-files.js +6 -6
- package/dist/tools/audio-files.js.map +1 -1
- package/dist/tools/catalogue-argument.d.ts +76 -0
- package/dist/tools/catalogue-argument.d.ts.map +1 -0
- package/dist/tools/catalogue-argument.js +114 -0
- package/dist/tools/catalogue-argument.js.map +1 -0
- package/dist/tools/custody.d.ts +2 -2
- package/dist/tools/custody.d.ts.map +1 -1
- package/dist/tools/custody.js +22 -20
- package/dist/tools/custody.js.map +1 -1
- package/dist/tools/dashboard.d.ts.map +1 -1
- package/dist/tools/dashboard.js +7 -4
- package/dist/tools/dashboard.js.map +1 -1
- package/dist/tools/discovery.d.ts.map +1 -1
- package/dist/tools/discovery.js +30 -2
- package/dist/tools/discovery.js.map +1 -1
- package/dist/tools/duplicates.d.ts +15 -2
- package/dist/tools/duplicates.d.ts.map +1 -1
- package/dist/tools/duplicates.js +109 -10
- package/dist/tools/duplicates.js.map +1 -1
- package/dist/tools/enrichment.d.ts.map +1 -1
- package/dist/tools/enrichment.js +10 -1
- package/dist/tools/enrichment.js.map +1 -1
- package/dist/tools/explainability.js +1 -1
- package/dist/tools/explainability.js.map +1 -1
- package/dist/tools/exports.d.ts.map +1 -1
- package/dist/tools/exports.js +15 -8
- package/dist/tools/exports.js.map +1 -1
- package/dist/tools/handovers.d.ts +42 -0
- package/dist/tools/handovers.d.ts.map +1 -0
- package/dist/tools/handovers.js +302 -0
- package/dist/tools/handovers.js.map +1 -0
- package/dist/tools/import.d.ts.map +1 -1
- package/dist/tools/import.js +6 -2
- package/dist/tools/import.js.map +1 -1
- package/dist/tools/index.d.ts +18 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +82 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/metadata.d.ts.map +1 -1
- package/dist/tools/metadata.js +87 -1
- package/dist/tools/metadata.js.map +1 -1
- package/dist/tools/notifications.js +3 -3
- package/dist/tools/notifications.js.map +1 -1
- package/dist/tools/recordings.d.ts.map +1 -1
- package/dist/tools/recordings.js +10 -2
- package/dist/tools/recordings.js.map +1 -1
- package/dist/tools/recovery-hints.d.ts.map +1 -1
- package/dist/tools/recovery-hints.js +141 -0
- package/dist/tools/recovery-hints.js.map +1 -1
- package/dist/tools/relationship-change.d.ts +16 -0
- package/dist/tools/relationship-change.d.ts.map +1 -0
- package/dist/tools/relationship-change.js +60 -0
- package/dist/tools/relationship-change.js.map +1 -0
- package/dist/tools/relationship-copy.d.ts +99 -0
- package/dist/tools/relationship-copy.d.ts.map +1 -0
- package/dist/tools/relationship-copy.js +213 -0
- package/dist/tools/relationship-copy.js.map +1 -0
- package/dist/tools/relationship-scope.d.ts +104 -0
- package/dist/tools/relationship-scope.d.ts.map +1 -0
- package/dist/tools/relationship-scope.js +106 -0
- package/dist/tools/relationship-scope.js.map +1 -0
- package/dist/tools/relationships.d.ts +64 -0
- package/dist/tools/relationships.d.ts.map +1 -0
- package/dist/tools/relationships.js +1062 -0
- package/dist/tools/relationships.js.map +1 -0
- package/dist/tools/send.js +1 -1
- package/dist/tools/send.js.map +1 -1
- package/dist/tools/settings.d.ts.map +1 -1
- package/dist/tools/settings.js +4 -1
- package/dist/tools/settings.js.map +1 -1
- package/dist/tools/share-links.js +3 -3
- package/dist/tools/share-links.js.map +1 -1
- package/dist/tools/split-sheets.d.ts.map +1 -1
- package/dist/tools/split-sheets.js +4 -0
- package/dist/tools/split-sheets.js.map +1 -1
- package/dist/tools/works.d.ts +11 -0
- package/dist/tools/works.d.ts.map +1 -1
- package/dist/tools/works.js +63 -3
- package/dist/tools/works.js.map +1 -1
- package/package.json +3 -3
- package/scripts/build-required-schemas.ts +6 -4
- package/server.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"required-schemas.source.js","sourceRoot":"","sources":["../../src/resources/required-schemas.source.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAoD7D,MAAM,CAAC,MAAM,uBAAuB,GAAyC;IAC3E,eAAe,EAAE;QACf,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,4DAA4D;QACrE,YAAY,EAAE,mBAAmB;QACjC,WAAW,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,WAAW,EAAE,aAAa,CAAC,EAAE,CAAC;QACxE,eAAe,EAAE;YACf;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,6EAA6E;gBACnF,QAAQ,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;gBAChC,gBAAgB,EAAE,CAAC,WAAW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,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,IAAI,CAClD,uBAAuB,CACuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"required-schemas.source.js","sourceRoot":"","sources":["../../src/resources/required-schemas.source.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAoD7D,MAAM,CAAC,MAAM,uBAAuB,GAAyC;IAC3E,eAAe,EAAE;QACf,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,4DAA4D;QACrE,YAAY,EAAE,mBAAmB;QACjC,WAAW,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,WAAW,EAAE,aAAa,CAAC,EAAE,CAAC;QACxE,eAAe,EAAE;YACf;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,6EAA6E;gBACnF,QAAQ,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;gBAChC,gBAAgB,EAAE,CAAC,WAAW,EAAE,MAAM,CAAC;gBACvC,UAAU,EACR,+JAA+J;aAClK;YACD;gBACE,IAAI,EAAE,oBAAoB;gBAC1B,IAAI,EAAE,iYAAiY;gBACvY,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;gBAClC,UAAU,EACR,keAAke;aACre;YACD;gBACE,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,mKAAmK;gBACzK,QAAQ,EAAE,CAAC,IAAI,CAAC;aACjB;YACD;gBACE,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,2KAA2K;gBACjL,QAAQ,EAAE,CAAC,IAAI,CAAC;aACjB;YACD;gBACE,IAAI,EAAE,mCAAmC;gBACzC,IAAI,EAAE,qOAAqO;gBAC3O,QAAQ,EAAE,CAAC,SAAS,CAAC;aACtB;YACD;gBACE,IAAI,EAAE,iCAAiC;gBACvC,IAAI,EAAE,qSAAqS;gBAC3S,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;aAC/B;SACF;QACD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document the high level of your server"
|
|
20
20
|
* Lowin: "instructions are context — design them as context"
|
|
21
21
|
*/
|
|
22
|
-
export declare const SERVER_INSTRUCTIONS = "withPICA helps people look after their songs, and everything that comes with them (people, splits, codes, recordings, agreements, files), on their own terms: the user holds the record and decides; PICA remembers and shows what's missing. Asked what PICA is, say that plainly, in their words. Tools are pica_<domain>_<verb>, 300+, from npm as @withpica/mcp-server (not @picahq/mcp, unrelated).\n\nFirst-call identity: If your auth is a Bearer API key (not a cookie session and not a pica_grant_* token), call pica_introduce_self FIRST with agent_name + optional agent_role / on_behalf_of / model_hint. PICA stamps the declaration onto every audit row that follows so the user can later reconstruct what their agent did. Cookie and pica_grant_* callers are exempt \u2014 your identity is already on file. Declaration is valid 24h per credential.\n\nOn the first user message of a session \u2014 unless it names a single concrete action (e.g. \"register work X\") \u2014 call pica_skill_get(\"first-session\") and follow it.\n\nStart here:\n- pica_dashboard_briefing \u2014 daily summary of what needs attention\n- pica_search_all \u2014 find any entity by name, ISWC, ISRC, or IPI\n- pica_works_query / pica_people_query \u2014 browse the catalog\n- pica_subscription_status \u2014 \"what's my plan / am I paying?\"; pica_billing_pay \u2014 a pay link for residency or a tab. On a connector call them through pica_execute {tool: \"<name>\", args: {...}}\n\nThe catalog is ALWAYS accessible via the tools above \u2014 zero setup, no integration required. Call pica_works_query directly for catalog content.\n\nSpotify/YouTube URLs: call pica_import_streaming_link (Spotify/Deezer) or pica_import_youtube_link directly.\n\nAfter 3-5 catalog mutations or major state changes, call pica_dashboard_briefing and surface the delta to the user.\n\nKey patterns:\n- Read tools are safe to call freely (readOnlyHint=true)\n- many _inspect tools take a \"sections\" argument (e.g., pica_works_inspect sections: [\"health\", \"completeness\"]) \u2014 check the tool's schema\n- Write tools confirm what changed \u2014 share https://withpica.com/inspect/<feature>/<id> so the user can review (feature: works, people, recordings, releases, agreements; for audio files link the parent work). Destructive tools (delete/merge) need two-step confirmation with a token\n- Errors include \"suggestion\" and \"next_tool\" for recovery\n- Enrichment: use pica_resolve_work / pica_resolve_person / pica_resolve_recording \u2014 fan out over Spotify, MusicBrainz, MLC, ISNI, Discogs, YouTube\n\nRoyalty/streaming statements (PDF/image/xlsx): use pica_statements_pending \u2192 pica_documents_inspect \u2192 pica_statement_ingest_document (imports after owner approval). CSV statements go through pica_import_analyze / pica_import_execute instead.\n\nMost query tools accept \"limit\"; defaults vary \u2014 read the tool's schema. IDs are UUIDs \u2014 use a _query tool first when unsure.\n\nSkills: pica_skill_list discovers methodologies (catalog-audit, register-my-works, prepare-for-sync). pica_skill_get(name) loads one. Trigger phrases like \"audit my catalog\" map directly. Bodies load lazily \u2014 not at handshake.\n\nProvenance: when a fact comes from a source, cite it via pica_enrichment_propose sources[].url. Citations persist verbatim and propagate to applied entities.";
|
|
22
|
+
export declare const SERVER_INSTRUCTIONS = "withPICA helps people look after their songs, and everything that comes with them (people, splits, codes, recordings, agreements, files), on their own terms: the user holds the record and decides; PICA remembers and shows what's missing. Asked what PICA is, say that plainly, in their words. Tools are pica_<domain>_<verb>, 300+, from npm as @withpica/mcp-server (not @picahq/mcp, unrelated).\n\nFirst-call identity: If your auth is a Bearer API key (not a cookie session and not a pica_grant_* token), call pica_introduce_self FIRST with agent_name + optional agent_role / on_behalf_of / model_hint. PICA stamps the declaration onto every audit row that follows so the user can later reconstruct what their agent did. Cookie and pica_grant_* callers are exempt \u2014 your identity is already on file. Declaration is valid 24h per credential.\n\nOn the first user message of a session \u2014 unless it names a single concrete action (e.g. \"register work X\") \u2014 call pica_skill_get(\"first-session\") and follow it.\n\nStart here:\n- pica_dashboard_briefing \u2014 daily summary of what needs attention\n- pica_search_all \u2014 find any entity by name, ISWC, ISRC, or IPI\n- pica_works_query / pica_people_query \u2014 browse the catalog\n- pica_subscription_status \u2014 \"what's my plan / am I paying?\"; pica_billing_pay \u2014 a pay link for residency or a tab. On a connector call them through pica_execute {tool: \"<name>\", args: {...}}\n\nThe catalog is ALWAYS accessible via the tools above \u2014 zero setup, no integration required. Call pica_works_query directly for catalog content.\n\nClients: an organisation acts for a client catalogue by passing catalogue: <id from pica_portfolio_list>, per call; omit it for its own. Who can see a catalogue: pica_relationships_list.\n\nSpotify/YouTube URLs: call pica_import_streaming_link (Spotify/Deezer) or pica_import_youtube_link directly.\n\nAfter 3-5 catalog mutations or major state changes, call pica_dashboard_briefing and surface the delta to the user.\n\nKey patterns:\n- Read tools are safe to call freely (readOnlyHint=true)\n- many _inspect tools take a \"sections\" argument (e.g., pica_works_inspect sections: [\"health\", \"completeness\"]) \u2014 check the tool's schema\n- Write tools confirm what changed \u2014 share https://withpica.com/inspect/<feature>/<id> so the user can review (feature: works, people, recordings, releases, agreements; for audio files link the parent work). Destructive tools (delete/merge) need two-step confirmation with a token\n- Errors include \"suggestion\" and \"next_tool\" for recovery\n- Enrichment: use pica_resolve_work / pica_resolve_person / pica_resolve_recording \u2014 fan out over Spotify, MusicBrainz, MLC, ISNI, Discogs, YouTube\n\nRoyalty/streaming statements (PDF/image/xlsx): use pica_statements_pending \u2192 pica_documents_inspect \u2192 pica_statement_ingest_document (imports after owner approval). CSV statements go through pica_import_analyze / pica_import_execute instead.\n\nMost query tools accept \"limit\"; defaults vary \u2014 read the tool's schema. IDs are UUIDs \u2014 use a _query tool first when unsure.\n\nSkills: pica_skill_list discovers methodologies (catalog-audit, register-my-works, prepare-for-sync). pica_skill_get(name) loads one. Trigger phrases like \"audit my catalog\" map directly. Bodies load lazily \u2014 not at handshake.\n\nProvenance: when a fact comes from a source, cite it via pica_enrichment_propose sources[].url. Citations persist verbatim and propagate to applied entities.";
|
|
23
23
|
/** Alias for the authenticated default — names the variant explicitly when paired with the unauthenticated one. */
|
|
24
24
|
/**
|
|
25
25
|
* How many leading characters of SERVER_INSTRUCTIONS a client was observed to
|
|
@@ -31,7 +31,7 @@ export declare const SERVER_INSTRUCTIONS = "withPICA helps people look after the
|
|
|
31
31
|
* server-instructions.test.ts pins that it does.
|
|
32
32
|
*/
|
|
33
33
|
export declare const INSTRUCTIONS_OBSERVED_VISIBLE_CHARS = 2000;
|
|
34
|
-
export declare const SERVER_INSTRUCTIONS_AUTHENTICATED = "withPICA helps people look after their songs, and everything that comes with them (people, splits, codes, recordings, agreements, files), on their own terms: the user holds the record and decides; PICA remembers and shows what's missing. Asked what PICA is, say that plainly, in their words. Tools are pica_<domain>_<verb>, 300+, from npm as @withpica/mcp-server (not @picahq/mcp, unrelated).\n\nFirst-call identity: If your auth is a Bearer API key (not a cookie session and not a pica_grant_* token), call pica_introduce_self FIRST with agent_name + optional agent_role / on_behalf_of / model_hint. PICA stamps the declaration onto every audit row that follows so the user can later reconstruct what their agent did. Cookie and pica_grant_* callers are exempt \u2014 your identity is already on file. Declaration is valid 24h per credential.\n\nOn the first user message of a session \u2014 unless it names a single concrete action (e.g. \"register work X\") \u2014 call pica_skill_get(\"first-session\") and follow it.\n\nStart here:\n- pica_dashboard_briefing \u2014 daily summary of what needs attention\n- pica_search_all \u2014 find any entity by name, ISWC, ISRC, or IPI\n- pica_works_query / pica_people_query \u2014 browse the catalog\n- pica_subscription_status \u2014 \"what's my plan / am I paying?\"; pica_billing_pay \u2014 a pay link for residency or a tab. On a connector call them through pica_execute {tool: \"<name>\", args: {...}}\n\nThe catalog is ALWAYS accessible via the tools above \u2014 zero setup, no integration required. Call pica_works_query directly for catalog content.\n\nSpotify/YouTube URLs: call pica_import_streaming_link (Spotify/Deezer) or pica_import_youtube_link directly.\n\nAfter 3-5 catalog mutations or major state changes, call pica_dashboard_briefing and surface the delta to the user.\n\nKey patterns:\n- Read tools are safe to call freely (readOnlyHint=true)\n- many _inspect tools take a \"sections\" argument (e.g., pica_works_inspect sections: [\"health\", \"completeness\"]) \u2014 check the tool's schema\n- Write tools confirm what changed \u2014 share https://withpica.com/inspect/<feature>/<id> so the user can review (feature: works, people, recordings, releases, agreements; for audio files link the parent work). Destructive tools (delete/merge) need two-step confirmation with a token\n- Errors include \"suggestion\" and \"next_tool\" for recovery\n- Enrichment: use pica_resolve_work / pica_resolve_person / pica_resolve_recording \u2014 fan out over Spotify, MusicBrainz, MLC, ISNI, Discogs, YouTube\n\nRoyalty/streaming statements (PDF/image/xlsx): use pica_statements_pending \u2192 pica_documents_inspect \u2192 pica_statement_ingest_document (imports after owner approval). CSV statements go through pica_import_analyze / pica_import_execute instead.\n\nMost query tools accept \"limit\"; defaults vary \u2014 read the tool's schema. IDs are UUIDs \u2014 use a _query tool first when unsure.\n\nSkills: pica_skill_list discovers methodologies (catalog-audit, register-my-works, prepare-for-sync). pica_skill_get(name) loads one. Trigger phrases like \"audit my catalog\" map directly. Bodies load lazily \u2014 not at handshake.\n\nProvenance: when a fact comes from a source, cite it via pica_enrichment_propose sources[].url. Citations persist verbatim and propagate to applied entities.";
|
|
34
|
+
export declare const SERVER_INSTRUCTIONS_AUTHENTICATED = "withPICA helps people look after their songs, and everything that comes with them (people, splits, codes, recordings, agreements, files), on their own terms: the user holds the record and decides; PICA remembers and shows what's missing. Asked what PICA is, say that plainly, in their words. Tools are pica_<domain>_<verb>, 300+, from npm as @withpica/mcp-server (not @picahq/mcp, unrelated).\n\nFirst-call identity: If your auth is a Bearer API key (not a cookie session and not a pica_grant_* token), call pica_introduce_self FIRST with agent_name + optional agent_role / on_behalf_of / model_hint. PICA stamps the declaration onto every audit row that follows so the user can later reconstruct what their agent did. Cookie and pica_grant_* callers are exempt \u2014 your identity is already on file. Declaration is valid 24h per credential.\n\nOn the first user message of a session \u2014 unless it names a single concrete action (e.g. \"register work X\") \u2014 call pica_skill_get(\"first-session\") and follow it.\n\nStart here:\n- pica_dashboard_briefing \u2014 daily summary of what needs attention\n- pica_search_all \u2014 find any entity by name, ISWC, ISRC, or IPI\n- pica_works_query / pica_people_query \u2014 browse the catalog\n- pica_subscription_status \u2014 \"what's my plan / am I paying?\"; pica_billing_pay \u2014 a pay link for residency or a tab. On a connector call them through pica_execute {tool: \"<name>\", args: {...}}\n\nThe catalog is ALWAYS accessible via the tools above \u2014 zero setup, no integration required. Call pica_works_query directly for catalog content.\n\nClients: an organisation acts for a client catalogue by passing catalogue: <id from pica_portfolio_list>, per call; omit it for its own. Who can see a catalogue: pica_relationships_list.\n\nSpotify/YouTube URLs: call pica_import_streaming_link (Spotify/Deezer) or pica_import_youtube_link directly.\n\nAfter 3-5 catalog mutations or major state changes, call pica_dashboard_briefing and surface the delta to the user.\n\nKey patterns:\n- Read tools are safe to call freely (readOnlyHint=true)\n- many _inspect tools take a \"sections\" argument (e.g., pica_works_inspect sections: [\"health\", \"completeness\"]) \u2014 check the tool's schema\n- Write tools confirm what changed \u2014 share https://withpica.com/inspect/<feature>/<id> so the user can review (feature: works, people, recordings, releases, agreements; for audio files link the parent work). Destructive tools (delete/merge) need two-step confirmation with a token\n- Errors include \"suggestion\" and \"next_tool\" for recovery\n- Enrichment: use pica_resolve_work / pica_resolve_person / pica_resolve_recording \u2014 fan out over Spotify, MusicBrainz, MLC, ISNI, Discogs, YouTube\n\nRoyalty/streaming statements (PDF/image/xlsx): use pica_statements_pending \u2192 pica_documents_inspect \u2192 pica_statement_ingest_document (imports after owner approval). CSV statements go through pica_import_analyze / pica_import_execute instead.\n\nMost query tools accept \"limit\"; defaults vary \u2014 read the tool's schema. IDs are UUIDs \u2014 use a _query tool first when unsure.\n\nSkills: pica_skill_list discovers methodologies (catalog-audit, register-my-works, prepare-for-sync). pica_skill_get(name) loads one. Trigger phrases like \"audit my catalog\" map directly. Bodies load lazily \u2014 not at handshake.\n\nProvenance: when a fact comes from a source, cite it via pica_enrichment_propose sources[].url. Citations persist verbatim and propagate to applied entities.";
|
|
35
35
|
/**
|
|
36
36
|
* Returns the authenticated handshake instructions.
|
|
37
37
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-instructions.d.ts","sourceRoot":"","sources":["../src/server-instructions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"server-instructions.d.ts","sourceRoot":"","sources":["../src/server-instructions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,mBAAmB,k+GAiC8H,CAAC;AAE/J,mHAAmH;AACnH;;;;;;;;GAQG;AACH,eAAO,MAAM,mCAAmC,OAAO,CAAC;AAExD,eAAO,MAAM,iCAAiC,k+GAAsB,CAAC;AAErE;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,IAAI,MAAM,CAErD;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mCAAmC,iwBAM2M,CAAC"}
|
|
@@ -34,6 +34,8 @@ Start here:
|
|
|
34
34
|
|
|
35
35
|
The catalog is ALWAYS accessible via the tools above — zero setup, no integration required. Call pica_works_query directly for catalog content.
|
|
36
36
|
|
|
37
|
+
Clients: an organisation acts for a client catalogue by passing catalogue: <id from pica_portfolio_list>, per call; omit it for its own. Who can see a catalogue: pica_relationships_list.
|
|
38
|
+
|
|
37
39
|
Spotify/YouTube URLs: call pica_import_streaming_link (Spotify/Deezer) or pica_import_youtube_link directly.
|
|
38
40
|
|
|
39
41
|
After 3-5 catalog mutations or major state changes, call pica_dashboard_briefing and surface the delta to the user.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-instructions.js","sourceRoot":"","sources":["../src/server-instructions.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG
|
|
1
|
+
{"version":3,"file":"server-instructions.js","sourceRoot":"","sources":["../src/server-instructions.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8JAiC2H,CAAC;AAE/J,mHAAmH;AACnH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,IAAI,CAAC;AAExD,MAAM,CAAC,MAAM,iCAAiC,GAAG,mBAAmB,CAAC;AAErE;;;;;;;;;GASG;AACH,MAAM,UAAU,4BAA4B;IAC1C,OAAO,iCAAiC,CAAC;AAC3C,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG;;;;;;2PAMwM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.generated.d.ts","sourceRoot":"","sources":["../../src/skills/skills.generated.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,MAAM,WAAW,KAAK;IACpB,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oEAAoE;IACpE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"skills.generated.d.ts","sourceRoot":"","sources":["../../src/skills/skills.generated.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,MAAM,WAAW,KAAK;IACpB,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oEAAoE;IACpE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAuLxC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,MAAM,CAAsX,CAAC"}
|
|
@@ -61,9 +61,9 @@ export const SKILLS = {
|
|
|
61
61
|
description: "When the user opens their workspace or asks \"what should I do\" — get them oriented in under a minute. Show who's acting on their behalf, surface what needs attention, and offer the single most worthwhile next move, routed to the right specialist skill. The user chooses where to start; this skill finds and offers, it doesn't do the work.",
|
|
62
62
|
triggers: ["what should I do", "where do I start", "morning", "show me what's pending", "open my workspace", "i just connected", "what's the state of things"],
|
|
63
63
|
audience: "any agent connecting to PICA via MCP, especially on the first message of a session",
|
|
64
|
-
tools_required: ["pica_get_agent_activity", "pica_dashboard_briefing", "pica_dashboard_attention", "pica_skill_list", "pica_report_issue", "pica_memory_list", "pica_memory_save", "pica_import_streaming_link", "pica_import_youtube_link"],
|
|
64
|
+
tools_required: ["pica_get_agent_activity", "pica_dashboard_briefing", "pica_dashboard_attention", "pica_skill_list", "pica_report_issue", "pica_memory_list", "pica_memory_save", "pica_import_streaming_link", "pica_import_youtube_link", "pica_portfolio_briefing", "pica_relationships_list"],
|
|
65
65
|
output: "Open by knowing (or learning, with at most one question) what the user is working toward; one line on who's acting for them; the few things most needing attention from the briefing; then one calibrated offer — the most worthwhile next move for THEIR goal and the specialist skill behind it — leaving the user to choose.",
|
|
66
|
-
body: "# first-session\n\nThe user just arrived — \"morning\", \"what should I do\", \"open my workspace\", or a quiet first message that names no task. They don't yet know what's waiting for them. Get them oriented fast and hand them one clear next move.\n\nThis skill finds what matters and offers it. It does NOT do the work — no auditing credits, registering a work, or preparing for sync here. It surfaces the most worthwhile next move and names the specialist skill behind it; the user decides where to start. This is the map, not the journey.\n\nRun it when the first message is an orientation phrase (\"morning\", \"where do I start\", \"what should I do\", \"open my workspace\") — not when the user names a single concrete action like \"register work X\" or \"log yesterday's session\". A task-specific prompt skips orientation; go straight to the work.\n\nWhere `set-up-workspace` helps a user configure a new account, `first-session` helps them re-enter an existing one and pick up where the catalog needs them.\n\nIf the user asks what PICA is, or what it's for, answer in one or two plain lines before anything else:\n\n> _\"pica helps you look after your songs, and everything that comes with them (who made them, the splits, the codes, the recordings, the agreements, the files), on your own terms. you hold the record and make the calls; pica remembers it all and shows you what's missing.\"_\n\nThen make it concrete with one of THEIR songs by title if they have any. Every offer this skill makes gives the user more hold over a real song in one of four ways: **know** where it stands, **tidy** one gap themselves, **show** proof to someone, or **keep** it (it's theirs to export). Never answer with a feature list or a tool count.\n\nSix quick beats, none of them a wall of text: know why they're here, who's acting for the user, the standing reporting-discipline note, load what needs attention, rank and offer the top move for THEIR goal, and a clean sweep at close-out.\n\n## Phase 0 — Know why they're here\n\nPICA's organizing question is: **who does this org want to be on the other side — what do they value?** That question is your internal lens. Never ask it out loud; people describe problems, not aspirations. You ask concrete things and infer.\n\nFirst, read before asking: call `pica_memory_list` and look for the org-scoped key `org_intent`. Then branch:\n\n- **The goal is on file** → open by continuing it, not re-asking:\n > _\"last time the target was [goal in the user's words] — still the mission, or has it moved?\"_\n- **No goal on file, and the user opened with a concrete ask** (\"import this album\", \"register work X\") → do the ask FIRST. The most valuable thing for the user always comes before any question about them. Infer the goal from what they asked for, and persist it after the work lands (see the persist beat below).\n- **No goal on file, vague opening** (\"morning\", \"what should I do\") → ask exactly ONE question, in PICA voice:\n > _\"what are you working toward with your music right now?\"_\n\n One question, then move — whatever they answer, the briefing load below still runs; their answer just decides what you lead with.\n\n**The persist beat.** Once there's a real signal — from their answer, their ask, or the session's work — save it so the next session (any client, any agent) starts already knowing. Call `pica_memory_save` with:\n\n- `key`: `org_intent`\n- `scope`: `organisation`\n- `type`: `decision`\n- `content`: plain language, three short lines where known — `wants:` (the outcome in the user's words), `context:` (who they are, catalog shape, how they release), `horizon:` (any date or moment they named)\n\nRe-save the same key whenever the goal visibly changes or is achieved — it's one converging record, not a log. Never save a guess you're not confident in: ask, or leave it for next time. And when the goal is achieved, say so plainly and either propose the next feasible milestone or ask what the new target is — then re-save.\n\n## Phase 1 — Who's at the keyboard\n\nBefore any work, make sure the user knows who's acting for them. Read your own auth shape first — `pica_get_agent_activity` is session-auth only and refuses `pica_grant_*` callers with `session_auth_required`, so a delegated agent must never call it:\n\n- **You are a delegated agent** (your own credential is a `pica_grant_*` token): skip `pica_get_agent_activity` entirely — no tool today exposes a grant's own label/scope/last-active back to the grant holder, so don't attempt to fill those in. Say:\n > _\"you're working through a named agent connection here.\"_\n- **Acting directly** (cookie or API key — not a grant token): call `pica_get_agent_activity` once. It surfaces what *other* named agents have done on the user's behalf (not a description of this session) — use it to mention any recent delegated-agent activity if rows come back, otherwise:\n > _\"you're acting as yourself directly. if you'd ever want to hand specific work to a named agent, you can set one up from the web — just say the word.\"_\n\n (agent note: the path is `pica_create_agent_identity`, session-auth only, from the web.)\n- **Through a connector** (OAuth client, identified by `client_name`):\n > _\"you're connected through [client_name].\"_\n\nOne line, warm, no résumé. The point is trust — the user knows whose hands are on the catalog before anything moves.\n\n## Phase 2 — Reporting-discipline opening note\n\nOne standing paragraph, read at the top of every first session:\n\n> Throughout this session, if a tool errors, returns inconsistent data, or you cannot find an affordance you expect — file via `pica_report_issue`. The team treats agent-filed issues as P0 signal and dedupes by signature. Worth filing: tool errors with stable repro, schema gaps (e.g. _\"no first-class studio field on recordings\"_), missing skills, surprising defaults. Include request IDs where available.\n\nThis sets the contract early. The agent doing the work is the user reporting the gap — surface that loop at the start, not at the end.\n\n## Phase 3 — Load what needs attention\n\nTwo reads, in order:\n\n1. `pica_dashboard_briefing` — the headline counts, what's critical, recent activity, the top things needing attention\n2. `pica_dashboard_attention` — the actual rows behind those counts, with entity IDs to drill into\n\nThat's the whole default load. Don't call `pica_count_explain` unless a number looks surprising — it's a drill-down, not a default. If the briefing comes back empty (fresh org, no works or people yet), skip ranking and lead your opening message with the import offer itself: ask for a spotify album or playlist link (or a youtube link) and run `pica_import_streaming_link` / `pica_import_youtube_link` on it directly. Artist links are not supported, so ask for an album or playlist. Load `import-my-catalog` for the mechanics and for csv/statement paths. Getting music in beats configuring settings on an empty catalog.\n\n## Phase 4 — Rank, then offer one move\n\nMatch the live briefing against the routing map and rank by how much the user gets for the effort — usually `count × value`. 1,200 works missing credits outranks 3 pending statements on volume alone; but one large royalty cheque waiting to be reconciled can outrank a long tail of small gaps. Use judgement, and say why in a clause.\n\n**The goal is the tiebreaker and the frame.** When an `org_intent` is on file (Phase 0), rank for THEIR outcome, not the generic severity order — three recordings missing writers outranks everything else when the stated goal is \"get the EP registered and paid\", and the offer says so in their words: _\"you said the target is [goal] — [a] is what's standing between you and it.\"_ A gap unrelated to the goal still gets named, but it doesn't lead.\n\n| What the briefing shows | Specialist skill |\n| ------------------------------------------- | -------------------------- |\n| Works without credits | `audit-credits` |\n| Audio pending analysis | `prepare-for-sync` |\n| Unenriched or unverified writers | `close-the-loop` |\n| Works without registrations | `register-my-works` |\n| Recordings without splits | `set-recording-splits` |\n| Pending PRO statement to reconcile | `reconcile-pro-statement` |\n| Unregistered co-write in a recent source | `register-co-write` |\n| Session to log or pre-stage | `log-a-session` |\n| Sync brief to match | `match-sync-brief` |\n| Unconnected collaborators or stale contacts | _deferred — separate spec_ |\n| AI-disclosure or provenance gaps | _deferred — separate spec_ |\n\nSome of these composition skills (`reconcile-pro-statement`, `register-co-write`, `match-sync-brief`) ship in sequence and may not be live yet — call `pica_skill_list` once after Phase 3 to see which are.\n\nThen surface the top few and offer the lead — one calibrated question, with room for the user's own priority:\n\n> _\"here's what's stacking up: [a] ([n] of them), then [b] and [c]. [a] looks most worth your time — [why in a clause]. want me to start there, or is something else on your mind?\"_\n\nName the skill, make the offer, and stop. Don't start the specialist skill yourself — the user picks the next move.\n\nIf the lead move needs a skill that isn't live yet, surface it anyway with the manual path:\n\n> _\"that one's on its way — for now the manual path is [one-line workflow]. want me to walk you through it, or move to [next priority]?\"_\n\nNever skip a priority silently just because its skill hasn't shipped — naming it shows the user where things are heading.\n\n## Phase 5 — Close-out sweep\n\nWhen the user signals they're done (\"that's it for today\", \"I'm done\", \"good night\"), ask once before wrapping:\n\n> _\"anything today that felt broken or caught you off guard? happy to flag it for the team while it's fresh — or we can leave it.\"_\n\nFile anything they raise via `pica_report_issue` with request IDs and the call shape. This bookends Phase 2: the contract you set at the start becomes one deliberate check at the end.\n\nIf the session's work moved the stated goal materially — a milestone landed, or the goal itself shifted in conversation — close the loop against it: name what moved in the user's words, and re-save `org_intent` (Phase 0's persist beat) so the next session opens from the new state, not the old one.\n\n## Asking the user — the question library\n\nEvery question this skill (or any specialist skill it routes to) puts to the user follows the same grammar. These patterns are the distilled subset of PICA's voice contract; they apply even where a tool output carries no `decision` block.\n\n- **Open over closed.** Decision points open with how/what — _\"what would you like to happen to the older copy?\"_ — never a bare yes/no over something the user can't recognise.\n- **Label a diagnosis before delivering it.** _\"it seems like these two entries are the same song — one came in from Spotify, one from your upload.\"_ The label invites correction; a flat assertion invites defensiveness.\n- **No-oriented safety on destructive moves.** _\"would it be wrong to fold these two copies together? nothing is deleted — the older one's history moves across.\"_ \"No\" must be a safe, complete answer.\n- **Options carry consequences.** Never name a choice without saying what happens: _\"keep both (they'll stay listed separately), or fold them together (one entry, both histories).\"_ At most three options; always name the safe default.\n- **Stakes only on verified facts.** A confirmed problem may state plainly what it costs the user — and cites what was checked and when. An unchecked gap stays curious — _\"we don't know yet whether this one's registered — want us to check?\"_ — never fear. If PICA hasn't verified it, don't claim it.\n- **The user's words, never the system's.** Titles and human facts (\"the one from the march upload\"), never identifiers, table names, or status enums.\n\nWorked examples:\n\n| Moment | Ask it like this |\n| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Two copies of the same song | _\"these two look like the same recording — one from Spotify, one from your upload. would it be wrong to fold them into one? nothing is deleted; the upload's history moves across.\"_ |\n| Unchecked registration gap | _\"we haven't checked whether this song is registered anywhere — want us to look it up with the MLC?\"_ |\n| Confirmed missing registration | _\"this song is earning but its registration is confirmed missing — we checked the MLC on the date shown. registering it is how those royalties get claimed. want to start there?\"_ |\n| Offering the ranked lead (Phase 4) | _\"here's what's stacking up: [a] ([n] of them), then [b] and [c]. [a] looks most worth your time — [why in a clause]. want me to start there, or is something else on your mind?\"_ |\n\n## What not to do\n\n- Don't run the phases as one wall of text — Phase 0 is at most one question, Phase 1 is a line, Phase 3 is two calls, Phase 4 is one offer.\n- Don't ask \"who do you want to be\" or any aspiration-shaped question — that's the internal lens, not a prompt. Ask what they're working toward; infer the rest.\n- Don't gate an import or a concrete request behind the Phase 0 question — value first, understanding alongside.\n- Don't re-ask a goal that's already on file — continue it, and only re-open it when the user signals it changed.\n- Don't start the specialist skill after Phase 4 — name it, offer it, wait.\n- Don't call `pica_count_explain` by default — only when a number looks off.\n- Don't offer a skill that isn't in `pica_skill_list` yet without the manual-path line — silent skips hide where the product is heading.\n- Don't speak in system terms (\"attention queue\", \"issue-class\", \"priority by class\") — say what the user would say (\"the things needing your attention\").\n- Don't ask a bare yes/no over something the user can't recognise — use the question library above.\n\n## Follow-on skills\n\nOrder depends on the top-ranked priority:\n\n- `audit-credits` — when \"works without credits\" tops the list\n- `prepare-for-sync` — when \"audio pending analysis\" tops the list\n- `close-the-loop` — when \"unenriched or unverified writers\" or per-work cleanup tops the list\n- `register-my-works` — when \"works without registrations\" tops the list\n- `set-recording-splits` — when \"recordings without splits\" tops the list\n- `catalog-modelling` — when the briefing shows duplicate-title works or blank-ISWC variants that should be folded into one work\n- `import-my-catalog` — when the briefing is empty (fresh org, no catalog yet): make the paste-a-link import offer in your opening message and use this skill for the mechanics; `set-up-workspace` is settings/identifiers, not import — only route there once music exists or the user asks for setup specifically\n- composition skills (`reconcile-pro-statement`, `register-co-write`, `log-a-session`, `match-sync-brief`) — as they ship; check `pica_skill_list` first\n",
|
|
66
|
+
body: "# first-session\n\nThe user just arrived — \"morning\", \"what should I do\", \"open my workspace\", or a quiet first message that names no task. They don't yet know what's waiting for them. Get them oriented fast and hand them one clear next move.\n\nThis skill finds what matters and offers it. It does NOT do the work — no auditing credits, registering a work, or preparing for sync here. It surfaces the most worthwhile next move and names the specialist skill behind it; the user decides where to start. This is the map, not the journey.\n\nRun it when the first message is an orientation phrase (\"morning\", \"where do I start\", \"what should I do\", \"open my workspace\") — not when the user names a single concrete action like \"register work X\" or \"log yesterday's session\". A task-specific prompt skips orientation; go straight to the work.\n\nWhere `set-up-workspace` helps a user configure a new account, `first-session` helps them re-enter an existing one and pick up where the catalog needs them.\n\nIf the user asks what PICA is, or what it's for, answer in one or two plain lines before anything else:\n\n> _\"pica helps you look after your songs, and everything that comes with them (who made them, the splits, the codes, the recordings, the agreements, the files), on your own terms. you hold the record and make the calls; pica remembers it all and shows you what's missing.\"_\n\nThen make it concrete with one of THEIR songs by title if they have any. Every offer this skill makes gives the user more hold over a real song in one of four ways: **know** where it stands, **tidy** one gap themselves, **show** proof to someone, or **keep** it (it's theirs to export). Never answer with a feature list or a tool count.\n\nSix quick beats, none of them a wall of text: know why they're here, who's acting for the user, the standing reporting-discipline note, load what needs attention, rank and offer the top move for THEIR goal, and a clean sweep at close-out.\n\n## Phase 0 — Know why they're here\n\nPICA's organizing question is: **who does this org want to be on the other side — what do they value?** That question is your internal lens. Never ask it out loud; people describe problems, not aspirations. You ask concrete things and infer.\n\nFirst, read before asking: call `pica_memory_list` and look for the org-scoped key `org_intent`. Then branch:\n\n- **The goal is on file** → open by continuing it, not re-asking:\n > _\"last time the target was [goal in the user's words] — still the mission, or has it moved?\"_\n- **No goal on file, and the user opened with a concrete ask** (\"import this album\", \"register work X\") → do the ask FIRST. The most valuable thing for the user always comes before any question about them. Infer the goal from what they asked for, and persist it after the work lands (see the persist beat below).\n- **No goal on file, vague opening** (\"morning\", \"what should I do\") → ask exactly ONE question, in PICA voice:\n > _\"what are you working toward with your music right now?\"_\n\n One question, then move — whatever they answer, the briefing load below still runs; their answer just decides what you lead with.\n\n**The persist beat.** Once there's a real signal — from their answer, their ask, or the session's work — save it so the next session (any client, any agent) starts already knowing. Call `pica_memory_save` with:\n\n- `key`: `org_intent`\n- `scope`: `organisation`\n- `type`: `decision`\n- `content`: plain language, three short lines where known — `wants:` (the outcome in the user's words), `context:` (who they are, catalog shape, how they release), `horizon:` (any date or moment they named)\n\nRe-save the same key whenever the goal visibly changes or is achieved — it's one converging record, not a log. Never save a guess you're not confident in: ask, or leave it for next time. And when the goal is achieved, say so plainly and either propose the next feasible milestone or ask what the new target is — then re-save.\n\n## Phase 1 — Who's at the keyboard\n\nBefore any work, make sure the user knows who's acting for them. Read your own auth shape first — `pica_get_agent_activity` is session-auth only and refuses `pica_grant_*` callers with `session_auth_required`, so a delegated agent must never call it:\n\n- **You are a delegated agent** (your own credential is a `pica_grant_*` token): skip `pica_get_agent_activity` entirely — no tool today exposes a grant's own label/scope/last-active back to the grant holder, so don't attempt to fill those in. Say:\n > _\"you're working through a named agent connection here.\"_\n- **Acting directly** (cookie or API key — not a grant token): call `pica_get_agent_activity` once. It surfaces what *other* named agents have done on the user's behalf (not a description of this session) — use it to mention any recent delegated-agent activity if rows come back, otherwise:\n > _\"you're acting as yourself directly. if you'd ever want to hand specific work to a named agent, you can set one up from the web — just say the word.\"_\n\n (agent note: the path is `pica_create_agent_identity`, session-auth only, from the web.)\n- **Through a connector** (OAuth client, identified by `client_name`):\n > _\"you're connected through [client_name].\"_\n\nOne line, warm, no résumé. The point is trust — the user knows whose hands are on the catalog before anything moves.\n\n## Phase 2 — Reporting-discipline opening note\n\nOne standing paragraph, read at the top of every first session:\n\n> Throughout this session, if a tool errors, returns inconsistent data, or you cannot find an affordance you expect — file via `pica_report_issue`. The team treats agent-filed issues as P0 signal and dedupes by signature. Worth filing: tool errors with stable repro, schema gaps (e.g. _\"no first-class studio field on recordings\"_), missing skills, surprising defaults. Include request IDs where available.\n\nThis sets the contract early. The agent doing the work is the user reporting the gap — surface that loop at the start, not at the end.\n\n## Phase 3 — Load what needs attention\n\nTwo reads, in order:\n\n1. `pica_dashboard_briefing` — the headline counts, what's critical, recent activity, the top things needing attention\n2. `pica_dashboard_attention` — the actual rows behind those counts, with entity IDs to drill into\n\nThat's the whole default load. Don't call `pica_count_explain` unless a number looks surprising — it's a drill-down, not a default. If the briefing comes back empty (fresh org, no works or people yet), skip ranking and lead your opening message with the import offer itself: ask for a spotify album or playlist link (or a youtube link) and run `pica_import_streaming_link` / `pica_import_youtube_link` on it directly. Artist links are not supported, so ask for an album or playlist. Load `import-my-catalog` for the mechanics and for csv/statement paths. Getting music in beats configuring settings on an empty catalog.\n\n## Phase 4 — Rank, then offer one move\n\nMatch the live briefing against the routing map and rank by how much the user gets for the effort — usually `count × value`. 1,200 works missing credits outranks 3 pending statements on volume alone; but one large royalty cheque waiting to be reconciled can outrank a long tail of small gaps. Use judgement, and say why in a clause.\n\n**The goal is the tiebreaker and the frame.** When an `org_intent` is on file (Phase 0), rank for THEIR outcome, not the generic severity order — three recordings missing writers outranks everything else when the stated goal is \"get the EP registered and paid\", and the offer says so in their words: _\"you said the target is [goal] — [a] is what's standing between you and it.\"_ A gap unrelated to the goal still gets named, but it doesn't lead.\n\n| What the briefing shows | Specialist skill |\n| ------------------------------------------- | -------------------------- |\n| Works without credits | `audit-credits` |\n| Audio pending analysis | `prepare-for-sync` |\n| Unenriched or unverified writers | `close-the-loop` |\n| Works without registrations | `register-my-works` |\n| Recordings without splits | `set-recording-splits` |\n| Pending PRO statement to reconcile | `reconcile-pro-statement` |\n| Unregistered co-write in a recent source | `register-co-write` |\n| Session to log or pre-stage | `log-a-session` |\n| Sync brief to match | `match-sync-brief` |\n| A request to look after the catalogue waits | `who-can-see-my-catalogue` |\n| The organisation looks after client catalogues | `look-after-clients` |\n| Unconnected collaborators or stale contacts | _deferred — separate spec_ |\n| AI-disclosure or provenance gaps | _deferred — separate spec_ |\n\nSome of these composition skills (`reconcile-pro-statement`, `register-co-write`, `match-sync-brief`) ship in sequence and may not be live yet — call `pica_skill_list` once after Phase 3 to see which are.\n\nThe last two rows come from relationships, not the briefing. When the user works for a manager, publisher, label, administrator or sync library — the org's role says so, or they talk about \"my clients\", \"my roster\" or \"my artists\" — call `pica_portfolio_briefing` once: if it lists clients, the top client gap competes in the ranking and `look-after-clients` is the skill. A catalogue's owner with a request waiting (`needs_your_answer` or `waiting_for_you` in `pica_relationships_list`) hears about it before routine gaps: someone is waiting on them.\n\nThen surface the top few and offer the lead — one calibrated question, with room for the user's own priority:\n\n> _\"here's what's stacking up: [a] ([n] of them), then [b] and [c]. [a] looks most worth your time — [why in a clause]. want me to start there, or is something else on your mind?\"_\n\nName the skill, make the offer, and stop. Don't start the specialist skill yourself — the user picks the next move.\n\nIf the lead move needs a skill that isn't live yet, surface it anyway with the manual path:\n\n> _\"that one's on its way — for now the manual path is [one-line workflow]. want me to walk you through it, or move to [next priority]?\"_\n\nNever skip a priority silently just because its skill hasn't shipped — naming it shows the user where things are heading.\n\n## Phase 5 — Close-out sweep\n\nWhen the user signals they're done (\"that's it for today\", \"I'm done\", \"good night\"), ask once before wrapping:\n\n> _\"anything today that felt broken or caught you off guard? happy to flag it for the team while it's fresh — or we can leave it.\"_\n\nFile anything they raise via `pica_report_issue` with request IDs and the call shape. This bookends Phase 2: the contract you set at the start becomes one deliberate check at the end.\n\nIf the session's work moved the stated goal materially — a milestone landed, or the goal itself shifted in conversation — close the loop against it: name what moved in the user's words, and re-save `org_intent` (Phase 0's persist beat) so the next session opens from the new state, not the old one.\n\n## Asking the user — the question library\n\nEvery question this skill (or any specialist skill it routes to) puts to the user follows the same grammar. These patterns are the distilled subset of PICA's voice contract; they apply even where a tool output carries no `decision` block.\n\n- **Open over closed.** Decision points open with how/what — _\"what would you like to happen to the older copy?\"_ — never a bare yes/no over something the user can't recognise.\n- **Label a diagnosis before delivering it.** _\"it seems like these two entries are the same song — one came in from Spotify, one from your upload.\"_ The label invites correction; a flat assertion invites defensiveness.\n- **No-oriented safety on destructive moves.** _\"would it be wrong to fold these two copies together? nothing is deleted — the older one's history moves across.\"_ \"No\" must be a safe, complete answer.\n- **Options carry consequences.** Never name a choice without saying what happens: _\"keep both (they'll stay listed separately), or fold them together (one entry, both histories).\"_ At most three options; always name the safe default.\n- **Stakes only on verified facts.** A confirmed problem may state plainly what it costs the user — and cites what was checked and when. An unchecked gap stays curious — _\"we don't know yet whether this one's registered — want us to check?\"_ — never fear. If PICA hasn't verified it, don't claim it.\n- **The user's words, never the system's.** Titles and human facts (\"the one from the march upload\"), never identifiers, table names, or status enums.\n\nWorked examples:\n\n| Moment | Ask it like this |\n| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Two copies of the same song | _\"these two look like the same recording — one from Spotify, one from your upload. would it be wrong to fold them into one? nothing is deleted; the upload's history moves across.\"_ |\n| Unchecked registration gap | _\"we haven't checked whether this song is registered anywhere — want us to look it up with the MLC?\"_ |\n| Confirmed missing registration | _\"this song is earning but its registration is confirmed missing — we checked the MLC on the date shown. registering it is how those royalties get claimed. want to start there?\"_ |\n| Offering the ranked lead (Phase 4) | _\"here's what's stacking up: [a] ([n] of them), then [b] and [c]. [a] looks most worth your time — [why in a clause]. want me to start there, or is something else on your mind?\"_ |\n\n## What not to do\n\n- Don't run the phases as one wall of text — Phase 0 is at most one question, Phase 1 is a line, Phase 3 is two calls, Phase 4 is one offer.\n- Don't ask \"who do you want to be\" or any aspiration-shaped question — that's the internal lens, not a prompt. Ask what they're working toward; infer the rest.\n- Don't gate an import or a concrete request behind the Phase 0 question — value first, understanding alongside.\n- Don't re-ask a goal that's already on file — continue it, and only re-open it when the user signals it changed.\n- Don't start the specialist skill after Phase 4 — name it, offer it, wait.\n- Don't call `pica_count_explain` by default — only when a number looks off.\n- Don't offer a skill that isn't in `pica_skill_list` yet without the manual-path line — silent skips hide where the product is heading.\n- Don't speak in system terms (\"attention queue\", \"issue-class\", \"priority by class\") — say what the user would say (\"the things needing your attention\").\n- Don't ask a bare yes/no over something the user can't recognise — use the question library above.\n\n## Follow-on skills\n\nOrder depends on the top-ranked priority:\n\n- `audit-credits` — when \"works without credits\" tops the list\n- `prepare-for-sync` — when \"audio pending analysis\" tops the list\n- `close-the-loop` — when \"unenriched or unverified writers\" or per-work cleanup tops the list\n- `register-my-works` — when \"works without registrations\" tops the list\n- `set-recording-splits` — when \"recordings without splits\" tops the list\n- `catalog-modelling` — when the briefing shows duplicate-title works or blank-ISWC variants that should be folded into one work\n- `import-my-catalog` — when the briefing is empty (fresh org, no catalog yet): make the paste-a-link import offer in your opening message and use this skill for the mechanics; `set-up-workspace` is settings/identifiers, not import — only route there once music exists or the user asks for setup specifically\n- composition skills (`reconcile-pro-statement`, `register-co-write`, `log-a-session`, `match-sync-brief`) — as they ship; check `pica_skill_list` first\n",
|
|
67
67
|
},
|
|
68
68
|
"import-my-catalog": {
|
|
69
69
|
name: "import-my-catalog",
|
|
@@ -102,6 +102,17 @@ export const SKILLS = {
|
|
|
102
102
|
output: "A show (or tour credit) with its setlist matched to works where they exist, plus optional contributors awaiting attestation.",
|
|
103
103
|
body: "# log-a-show\n\nHelp the user log a live show. Capture it as a sentence, never as a form.\n\n## Establish one thing first: were they the act?\n\n\"I played the Lexington\" is different from \"I played drums with X at the Albert Hall.\" Set\n`logged_as: \"contributor\"` for the second — it changes everything downstream. A session\nplayer's setlist is describing the gig, not claiming anything, and their own catalogue is not\nexpected to contain those songs. A wrong guess here gets the rest of the conversation wrong, so\nask if it isn't already obvious from how the user described the night.\n\n## Capture it conversationally\n\nGet the shape of the night in a sentence or two — venue, city, date, and what was played. Don't\nwalk the user through a field-by-field form. `pica_log_show` resolves the venue against what\npica already holds: an exact match attaches quietly, anything else comes back as candidates for\nthe user to confirm. A venue is never created without a human confirming it.\n\n## From a document: draft first, one yes\n\nGig details often arrive as something the user was sent rather than something they type: a\nbooking email, a daysheet PDF, a screenshot of a group chat, a calendar invite. Read it yourself\nand pull out what is there: venue, city, date, the billed act, the user's role, and the songs, if\na set is listed. Never fill a field the document does not state. A date, a venue or a song you\nguessed would end up in the user's record as if they had said it.\n\nThen call `pica_log_show` with `dry_run: true`. It saves nothing and returns the draft: whether\nthe venue matched, which songs matched their works, and any show already logged for the same\nnight. Show the user the draft in a line or two, for example: \"Jazz Café, London, Thu 9 Oct,\nplaying keys, 12 songs (9 matched to your works). Log it?\" Call it again without `dry_run` only\nafter they say yes.\n\nIf the draft lists a show already logged for that night, ask whether it is the same show before\nlogging another. That list only covers this user's own catalogue: a bandmate logging the same gig\nin theirs never appears in it.\n\n## Never do these\n\n- **Never prompt for contributors or crew.** Only record them if the user raises them —\n `pica_collaborators_invite` is there for when they do, not a checklist to work through.\n- **Never imply money is owed.** A song the user did not write earns them nothing from a\n performance. Say that plainly if it comes up; do not soften it into a maybe.\n- **Never say pica filed anything with a performing-rights society.** pica produces a record and\n a dossier, nothing more. No society accepts a setlist by API — PRS Setlists, ASCAP OnStage and\n BMI Live are all web forms the user still has to submit themselves.\n- **Never present an unconfirmed match as a fact.** \"I think Wide Open is your work of the same\n name — is that right?\", never \"you played Wide Open.\" `pica_setlist_match` returns a\n confidence, not a certainty, until the user confirms it.\n\n## Tour credits\n\n\"I programmed the tracks for X, who's on tour right now\" has no date and no venue. It still\nneeds **act, year, and role** — without them the credit is unverifiable and attaches to nothing.\nIf pica already holds that tour, the credit resolves against it and can be corroborated. If not,\nit is recorded as the user's own unverified claim, and should be described that way — never as a\nconfirmed credit.\n\nThe credit itself is a person plus a role on that tour, and pica resolves a person only by\n`email` or `person_id` — a name alone would risk creating a second copy of someone who already\nexists. With neither, `pica_log_show` records the tour and says plainly that it did **not**\nrecord the credit. Relay that and ask for an email; do not let the user leave believing a credit\nexists when only a tour does.\n\n## Attestation\n\nIf the user names someone who was there and offers an email, that person can be invited to\nattest via `pica_collaborators_invite`. Ask before inviting — an invitation is a request, not a\nnotification, and a person who says they were not there is recording something meaningful too.\n\n## What not to do\n\n- Don't turn the setlist into an interrogation — capture titles as given and let matching happen\n quietly with `pica_setlist_match` in the background.\n- Don't infer a role or a split from \"we all played on it\" in passing — that is a separate,\n deliberate step with its own confirmation flow.\n- Beyond the same-night check the draft does for you, don't reconcile this show against past\n shows (\"didn't you play this venue in March?\") unless\n the user asks — use `pica_shows_query` only when they want the history, not to second-guess\n what they just told you.\n",
|
|
104
104
|
},
|
|
105
|
+
"look-after-clients": {
|
|
106
|
+
name: "look-after-clients",
|
|
107
|
+
description: "For a manager, publisher, label or administrator looking after other people's catalogues in PICA — see every client at once, find what needs doing first, and fix it inside the client's catalogue within what each client allowed. Changes a client must approve go to them as proposals; nothing is ever done for the wrong client.",
|
|
108
|
+
triggers: ["my clients", "my roster", "what needs doing across my artists", "which clients need attention", "work on a client's catalogue", "fix this for my artist", "ask a client to join"],
|
|
109
|
+
audience: "organisations that look after other people's catalogues (managers, publishers, labels, administrators, sync libraries)",
|
|
110
|
+
tools_required: ["pica_portfolio_list", "pica_portfolio_briefing", "pica_portfolio_invite", "pica_relationships_list", "pica_relationships_answer", "pica_relationships_activity", "pica_relationships_step_down", "pica_works_inspect", "pica_recordings_inspect"],
|
|
111
|
+
output: "The clients that need attention, one thing fixed (or proposed to the client) at a time, each result naming the client it was done for.",
|
|
112
|
+
definition_of_done: "The person has seen what needs doing across their clients, and every change they asked for was made in, or proposed to, the right client's catalogue.",
|
|
113
|
+
when_not_to_use: "The person is asking about their OWN catalogue (who can see it, who looks after it) — use who-can-see-my-catalogue.",
|
|
114
|
+
body: "# look-after-clients\n\nThe person works for an organisation that looks after other people's catalogues. Each client\ngave the organisation a relationship: a type (administrator, representative, viewer, co-owner)\nand a scope (which songs, which side, where, until when, whether it sees money). Everything you\ndo for a client happens inside that relationship, and PICA refuses anything outside it with the\nreason.\n\n## 1. See the clients\n\nCall `pica_portfolio_briefing` (or `pica_portfolio_list` for the plain roster). Follow\n`next_cursor` until it is null: a page can hold fewer rows than asked for and still not be the\nlast, so never say \"that's all\" on a short page.\n\nFor each client, say in one line who they are, what the organisation is to them, and what needs\ndoing. Be exact about what PICA could and couldn't check:\n\n- a section that says **couldn't check** is unknown, never 0 — say \"PICA couldn't check money\n blockers for Alice just now\", not \"no blockers\";\n- **not covered** means that half (songs or recordings) is outside the client's scope;\n- a reason given for something not being in scope (for example, \"the directory isn't part of\n this relationship\") is passed on as it is;\n- **paused by pica** means nothing can be done for that client while paused. Never guess why.\n- a relationship that **ends soon** is worth mentioning, with its date.\n\n## 2. Pick one thing, with the person\n\nRank what the briefing shows by how much it matters to that client (money blocked from being\npaid, usually first; then gaps that stop registration; then enquiries waiting; then deadlines),\noffer the top one or two, and let the person choose. Don't work through every client unasked.\n\n## 3. Act for that client — and only that client\n\nPass the client's catalogue id (`catalogue` from `pica_portfolio_list`) as the `catalogue`\nargument on every catalogue tool you call for them: `pica_works_inspect`, `pica_recordings_inspect`\nand the usual tools to fix what you found. Rules:\n\n- **Name the client before every change**, and again in what you report: \"added the ISRC to\n 'Rain' in Alice's catalogue\". If the person hasn't said which client, ask; never assume the\n last one.\n- **Never carry a client's id over** to a request about another client or about the\n organisation's own catalogue. Leave `catalogue` out to act for the organisation itself.\n- **What a change does depends on the relationship** (`changes` on the portfolio row):\n - `direct`: it applies at once, as it would in the client's own account;\n - `proposal`: it goes to the client to approve, and nothing changes until they do — say \"sent\n to Alice to approve\", never \"done\";\n - `none`: the organisation can look but not change — say so and stop.\n- Splits and who holds a song (custody) always go to the client to approve, whatever the type.\n- If PICA refuses (outside the scope, access ended, paused), pass the reason on and stop. Never\n retry the same thing hoping for a different answer.\n\n## 4. New clients, requests and endings\n\n- To ask someone new to let the organisation look after their catalogue, use\n `pica_portfolio_invite` with their email and the type you're asking for. The client decides\n what it covers when they accept. The answer is the same whether or not they're on PICA, so\n don't read anything into it.\n- Requests and invitations waiting for the organisation's answer are in `pica_relationships_list`\n with side \"organisation\". Read the terms out in full before answering with\n `pica_relationships_answer`; accepting is the person's own decision.\n- What the organisation did for a client is in `pica_relationships_activity` (side\n \"organisation\").\n- **Stepping down** (`pica_relationships_step_down`) ends the organisation's access to that\n client for good. Only when the person clearly asks for it, for that client, after you have\n said what it means.\n",
|
|
115
|
+
},
|
|
105
116
|
"prepare-for-sync": {
|
|
106
117
|
name: "prepare-for-sync",
|
|
107
118
|
description: "Make a catalog sync-ready — ensure audio is uploaded and analysed (BPM, key, energy, mood), genre and lyrics are set, and works are findable by music supervisors searching for tracks.",
|
|
@@ -160,6 +171,17 @@ export const SKILLS = {
|
|
|
160
171
|
when_not_to_use: "The user wants to search the directory for other people's songs (use the directory tools), or to list or hide a song in the directory.",
|
|
161
172
|
body: "# tag-my-songs\n\nYou are helping the owner describe their own songs. PICA does not tag songs itself: you read the\nowner's lyrics and audio facts and SUGGEST; the owner decides. Nothing you propose is public until\nthe owner approves it.\n\n## 1. Find the songs\n\nCall `pica_topics_untagged`. It lists the owner's songs that are listed in the directory and\nhave lyrics, but no approved topic. Say how many there are and offer to go through them a few at a\ntime. Never tag songs the owner did not ask about.\n\n## 2. Read, then suggest\n\nFor each song:\n\n- Read the lyrics with `pica_works_inspect`. Tag what the song is actually ABOUT, not words that\n appear once. A song that says \"love\" in passing but is about leaving home is about home and loss.\n- Choose up to five topics, most central first, ONLY from the fixed list:\n love, heartbreak, longing, desire, friendship, family, home, nostalgia, loss, loneliness, hope,\n faith, worship, gratitude, joy, celebration, freedom, empowerment, resilience, struggle,\n rebellion, identity, ambition, money, peace, nature, night, city, travel, summer.\n If nothing fits, propose none. Never invent a topic.\n- For moods, look at how each recording sounds: tempo, key and mode, energy (from\n `pica_recordings_inspect`). Choose from: aggressive, ambient, calm, contemplative, dark, dramatic,\n dreamy, energetic, epic, ethereal, hopeful, intense, melancholic, nostalgic, passionate, playful,\n romantic, sad, tender, tense, triumphant, uplifting, warm. Mood describes the sound; topics\n describe the words. A sad song can be about hope.\n- Save the suggestion with `pica_topics_propose`. It stays private.\n\n## 3. Ask, then save\n\nShow the owner each song's suggested topics and moods in one short line, with a one-line reason\n(\"about leaving home: the chorus returns to the house on the hill\"). Ask them to approve, change or\ndrop each one. Only then call `pica_topics_review`:\n\n- approve what they agreed (`approve`, or `approve_all` when they say \"all of them\");\n- `reject` what they turned down;\n- `set_themes` when they choose their own topics instead;\n- `approve_all_moods` or `approve_moods_for` for moods they agreed.\n\nNever approve on the owner's behalf, and never treat silence as a yes.\n\n## 4. Their controls\n\n- Topics can be switched off for any song (`themes_enabled: false`): it then shows no topics and\n does not appear in topic searches.\n- Lyrics stay private by default. The owner may choose to show a snippet or the full lyrics in the\n public directory (`lyrics_visibility`). Never suggest changing this unless they ask.\n\n## Say it plainly\n\nTalk about \"topics\" and \"moods\", not \"themes\", \"tags\" or field names. Never quote more than a line\nof the lyrics back to the owner when explaining a suggestion.\n",
|
|
162
173
|
},
|
|
174
|
+
"who-can-see-my-catalogue": {
|
|
175
|
+
name: "who-can-see-my-catalogue",
|
|
176
|
+
description: "For a catalogue's owner — who looks after your catalogue in PICA, what each one can see and do, what they have done, and how to answer a request, change what someone can do, or end it. You decide every step; nothing is shared without you.",
|
|
177
|
+
triggers: ["who can see my catalogue", "who looks after my songs", "what can my manager see", "what has my publisher done", "someone asked to look after my catalogue", "remove my manager's access", "give my manager access"],
|
|
178
|
+
audience: "catalogue owners (artists, songwriters, rights holders)",
|
|
179
|
+
tools_required: ["pica_relationships_list", "pica_relationships_activity", "pica_relationships_answer", "pica_relationships_grant", "pica_relationships_revoke"],
|
|
180
|
+
output: "Every organisation that looks after the catalogue, in plain words — what it may do, what it covers, where it stands — and any step the owner chose, taken on the terms they read.",
|
|
181
|
+
definition_of_done: "The owner knows who can see their catalogue and what each can do, and every request they wanted answered, change they wanted made or access they wanted ended is done or waiting for their approval.",
|
|
182
|
+
when_not_to_use: "The person works for an organisation and asks about the clients it looks after — use look-after-clients.",
|
|
183
|
+
body: "# who-can-see-my-catalogue\n\nThe owner holds the record and decides who else may work on it. Organisations (a manager, a\npublisher, a label) can look after a catalogue only through a relationship the owner accepted,\nand only within it. Your job is to make that visible and to carry out the owner's decisions —\nnever to make them.\n\n## 1. Who, and what each can do\n\nCall `pica_relationships_list` (side \"owner\"). For each relationship, say in plain words:\n\n- **who** and **as what**: \"Rep & Co looks after your catalogue as administrator\";\n- **what that type can do**:\n - administrator: edits and registers your songs and sends exports for you; changes to splits\n or custody come to you to approve;\n - representative: sees and exports what's in scope and suggests changes; every change comes to\n you first;\n - viewer: sees and exports what's in scope, nothing else;\n - co-owner: sees the songs it has a share in;\n- **what it covers**, from `scope_text`: which songs, which side, where, until when, whether it\n sees statements and earnings;\n- **where it stands**, from `status_text`: waiting for your answer, waiting for theirs, active,\n paused by pica (never guess why: \"ask pica if you have questions\"), or ended.\n\nThen say whether anything is waiting for the owner: requests that need their answer, and\ninvitations by email in `waiting_for_you`. If the list says invitations couldn't be checked,\nsay exactly that — it doesn't mean there are none.\n\n## 2. What they have done\n\nWhen the owner asks what an organisation did, call `pica_relationships_activity` (org_id for one\norganisation, relationship_id for one relationship). Read the entries as they are written, newest\nfirst. Ended relationships keep their history.\n\n## 3. Taking a step — the owner's decision, on the terms they read\n\nBefore ANY step, read the owner the exact terms (type, scope, end date, money) and wait for a\nclear yes. Then pass the `version` you read as `expected_version`; if the terms changed in\nbetween, nothing happens and you get the new terms back: read those out and ask again.\n\n- **Answer a request**: `pica_relationships_answer` with action \"accept\" (it can narrow what was\n asked, never widen it), \"decline\" (with a reason, if they want), or \"edit\" to send different\n terms back. To accept an invitation by email, pass its `invite_id` and the organisation it is\n for.\n- **Give someone access**: `pica_relationships_grant` with their email, the type and the scope.\n An administrator sees statements unless the owner says otherwise; say so before sending.\n- **Change what someone can do**: `pica_relationships_answer` with action \"edit\" on the active\n relationship. It applies straight away.\n- **End it**: `pica_relationships_revoke`. It takes effect on their very next request and can't\n be undone; what they did stays in the history.\n\nHow the step happens depends on where you're running:\n\n- through a connected app, the owner is asked to approve it first (by email or in PICA): relay\n the message and check with `pica_approval_status`; nothing happens until they approve;\n- through PICA's own assistant, these steps are done on screen: give the owner the link you get\n back (`screen_url`).\n\nNever take a step the owner didn't ask for, and never present a step as done while it waits for\ntheir approval.\n",
|
|
184
|
+
},
|
|
163
185
|
};
|
|
164
|
-
export const SKILL_NAMES = ["audit-credits", "catalog-audit", "catalog-modelling", "clean-up-artists", "close-the-loop", "enrich-from-peer-mcps", "first-session", "import-my-catalog", "ingest-my-statements", "log-a-session", "log-a-show", "prepare-for-sync", "register-from-your-daw", "register-my-works", "set-recording-splits", "set-up-workspace", "tag-my-songs"];
|
|
186
|
+
export const SKILL_NAMES = ["audit-credits", "catalog-audit", "catalog-modelling", "clean-up-artists", "close-the-loop", "enrich-from-peer-mcps", "first-session", "import-my-catalog", "ingest-my-statements", "log-a-session", "log-a-show", "look-after-clients", "prepare-for-sync", "register-from-your-daw", "register-my-works", "set-recording-splits", "set-up-workspace", "tag-my-songs", "who-can-see-my-catalogue"];
|
|
165
187
|
//# sourceMappingURL=skills.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.generated.js","sourceRoot":"","sources":["../../src/skills/skills.generated.ts"],"names":[],"mappings":"AAAA,6DAA6D;AA+B7D,MAAM,CAAC,MAAM,MAAM,GAA0B;IAC3C,eAAe,EAAE;QACf,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,4WAA4W;QACzX,QAAQ,EAAE,CAAC,kBAAkB,EAAC,iBAAiB,EAAC,kBAAkB,EAAC,uCAAuC,EAAC,qBAAqB,CAAC;QACjI,QAAQ,EAAE,6BAA6B;QACvC,cAAc,EAAE,CAAC,kBAAkB,EAAC,mBAAmB,EAAC,mBAAmB,EAAC,qBAAqB,CAAC;QAClG,MAAM,EAAE,4NAA4N;QACpO,IAAI,EAAE,4iJAA4iJ;KACnjJ;IACD,eAAe,EAAE;QACf,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,sMAAsM;QACnN,QAAQ,EAAE,CAAC,kBAAkB,E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AE,wwFAAwwF;KAC/wF;IACD,0BAA0B,EAAE;QAC1B,IAAI,EAAE,0BAA0B;QAChC,WAAW,EAAE,gPAAgP;QAC7P,QAAQ,EAAE,CAAC,0BAA0B,EAAC,0BAA0B,EAAC,yBAAyB,EAAC,4BAA4B,EAAC,0CAA0C,EAAC,4BAA4B,EAAC,wBAAwB,CAAC;QACzN,QAAQ,EAAE,yDAAyD;QACnE,cAAc,EAAE,CAAC,yBAAyB,EAAC,6BAA6B,EAAC,2BAA2B,EAAC,0BAA0B,EAAC,2BAA2B,CAAC;QAC5J,MAAM,EAAE,mLAAmL;QAC3L,kBAAkB,EAAE,sMAAsM;QAC1N,eAAe,EAAE,0GAA0G;QAC3H,IAAI,EAAE,szGAAszG;KAC7zG;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAA0B,CAAC,eAAe,EAAC,eAAe,EAAC,mBAAmB,EAAC,kBAAkB,EAAC,gBAAgB,EAAC,uBAAuB,EAAC,eAAe,EAAC,mBAAmB,EAAC,sBAAsB,EAAC,eAAe,EAAC,YAAY,EAAC,oBAAoB,EAAC,kBAAkB,EAAC,wBAAwB,EAAC,mBAAmB,EAAC,sBAAsB,EAAC,kBAAkB,EAAC,cAAc,EAAC,0BAA0B,CAAC,CAAC"}
|
package/dist/tools/app-tools.js
CHANGED
|
@@ -54,7 +54,7 @@ export class AppTools {
|
|
|
54
54
|
{
|
|
55
55
|
definition: {
|
|
56
56
|
name: "pica_upload",
|
|
57
|
-
scope: "write:
|
|
57
|
+
scope: "write:files",
|
|
58
58
|
audiences: ["stdio", "http", "public"],
|
|
59
59
|
tier: "write",
|
|
60
60
|
description: "Use when the user asks: 'can I upload audio from here?', 'upload the contract', 'upload some session photos', 'can I send you a song?', 'how do I upload from chat?'. " +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-tools.js","sourceRoot":"","sources":["../../src/tools/app-tools.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D,0GAA0G;A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E,OAAO,EAAE,cAAc,EAAE,YAAY,EAAc,MAAM,YAAY,CAAC;AAatE,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;
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/tools/assets.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAiC,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,YAAY,EAAc,MAAM,YAAY,CAAC;AAatE,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;YAgc3D,UAAU;YAWV,YAAY;YA4GZ,WAAW;YAsCX,WAAW;YAQX,WAAW;YAOX,gBAAgB;YAOhB,UAAU;YAOV,WAAW;YASX,eAAe;YAef,oBAAoB;YAepB,eAAe;YAYf,oBAAoB;CAWnC"}
|
package/dist/tools/assets.js
CHANGED
|
@@ -14,7 +14,7 @@ export class AssetsTools {
|
|
|
14
14
|
{
|
|
15
15
|
definition: {
|
|
16
16
|
name: "pica_physical_assets_query",
|
|
17
|
-
scope: "read:
|
|
17
|
+
scope: "read:catalog",
|
|
18
18
|
audiences: ["stdio", "http", "public"],
|
|
19
19
|
tier: "read",
|
|
20
20
|
description: "Find physical assets — equipment, instruments, studio gear. Filter by category. → then: pica_physical_assets_inspect (details for a specific asset)",
|
|
@@ -42,20 +42,15 @@ export class AssetsTools {
|
|
|
42
42
|
{
|
|
43
43
|
definition: {
|
|
44
44
|
name: "pica_physical_assets_inspect",
|
|
45
|
-
scope: "read:
|
|
45
|
+
scope: "read:catalog",
|
|
46
46
|
audiences: ["stdio", "http", "public"],
|
|
47
47
|
tier: "read",
|
|
48
48
|
description: "Get details for a specific physical asset. Omit sections for basic, " +
|
|
49
49
|
"valuations and links. " +
|
|
50
|
-
"Sections: basic, valuations,
|
|
50
|
+
"Sections: basic, valuations, links (work + recording link rows " +
|
|
51
51
|
"written by pica_physical_assets_link_work / _link_recording with their " +
|
|
52
52
|
"relationship + evidence + confidence fields). " +
|
|
53
|
-
"
|
|
54
|
-
"model, not a recorded valuation: it runs only when listed by name, " +
|
|
55
|
-
"and needs a make or model on the asset. It is a POST to the " +
|
|
56
|
-
"assets area, so a key or grant needs write:catalog (or admin) " +
|
|
57
|
-
"for it; with read access only, `market` comes back as a section " +
|
|
58
|
-
"error and the other sections still answer. " +
|
|
53
|
+
"For an AI-generated market price estimate, use pica_physical_assets_market_check. " +
|
|
59
54
|
"→ then: pica_physical_assets_update (modify), pica_physical_assets_export (for insurance)",
|
|
60
55
|
workflows: "infrastructure",
|
|
61
56
|
vernacular_kind: "specialist",
|
|
@@ -71,9 +66,9 @@ export class AssetsTools {
|
|
|
71
66
|
type: "array",
|
|
72
67
|
items: {
|
|
73
68
|
type: "string",
|
|
74
|
-
enum: ["basic", "valuations", "
|
|
69
|
+
enum: ["basic", "valuations", "links"],
|
|
75
70
|
},
|
|
76
|
-
description: "Which data sections to include. Omit for
|
|
71
|
+
description: "Which data sections to include. Omit for all three.",
|
|
77
72
|
},
|
|
78
73
|
},
|
|
79
74
|
required: ["id"],
|
|
@@ -84,7 +79,7 @@ export class AssetsTools {
|
|
|
84
79
|
{
|
|
85
80
|
definition: {
|
|
86
81
|
name: "pica_physical_assets_create",
|
|
87
|
-
scope: "write:
|
|
82
|
+
scope: "write:catalog",
|
|
88
83
|
audiences: ["stdio", "http", "public"],
|
|
89
84
|
tier: "write",
|
|
90
85
|
description: "Register a new physical asset — instrument, equipment, software, " +
|
|
@@ -109,7 +104,7 @@ export class AssetsTools {
|
|
|
109
104
|
{
|
|
110
105
|
definition: {
|
|
111
106
|
name: "pica_physical_assets_update",
|
|
112
|
-
scope: "write:
|
|
107
|
+
scope: "write:catalog",
|
|
113
108
|
audiences: ["stdio", "http", "public"],
|
|
114
109
|
tier: "write",
|
|
115
110
|
description: "Update a physical asset. All create fields are optional on update; " +
|
|
@@ -133,10 +128,38 @@ export class AssetsTools {
|
|
|
133
128
|
},
|
|
134
129
|
executor: withBillingGate(this.pica, "physical asset update", this.updateAsset.bind(this)),
|
|
135
130
|
},
|
|
131
|
+
{
|
|
132
|
+
definition: {
|
|
133
|
+
name: "pica_physical_assets_market_check",
|
|
134
|
+
// A write (scope sweep W6, 2026-10-13): POST
|
|
135
|
+
// /api/admin/assets/[id]/market-check asks the organisation's own AI
|
|
136
|
+
// provider for a price and records that credential's health, so it
|
|
137
|
+
// spends and changes state. It was a section of
|
|
138
|
+
// pica_physical_assets_inspect, which made a read do both.
|
|
139
|
+
scope: "write:catalog",
|
|
140
|
+
audiences: ["stdio", "http", "public"],
|
|
141
|
+
tier: "write",
|
|
142
|
+
description: "Ask the organisation's AI provider for a market price estimate for a physical asset, from its make and model. " +
|
|
143
|
+
"An estimate, not a recorded valuation, and it uses the organisation's own AI credential, so run it only when the user asks for one. " +
|
|
144
|
+
"Needs a make or model on the asset. " +
|
|
145
|
+
"→ then: pica_physical_assets_update to record a valuation the user accepts.",
|
|
146
|
+
workflows: "infrastructure",
|
|
147
|
+
vernacular_kind: "specialist",
|
|
148
|
+
vernacular_reason: "Specialist context; not yet covered by the Creator Question Atlas — pending telemetry-driven addition per ADR-226 Phase 4 substrate writes.",
|
|
149
|
+
inputSchema: {
|
|
150
|
+
type: "object",
|
|
151
|
+
properties: {
|
|
152
|
+
id: { type: "string", description: "Asset ID" },
|
|
153
|
+
},
|
|
154
|
+
required: ["id"],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
executor: withBillingGate(this.pica, "physical asset market check", this.marketCheckAsset.bind(this)),
|
|
158
|
+
},
|
|
136
159
|
{
|
|
137
160
|
definition: {
|
|
138
161
|
name: "pica_physical_assets_delete",
|
|
139
|
-
scope: "write:
|
|
162
|
+
scope: "write:catalog",
|
|
140
163
|
audiences: ["stdio", "http", "public"],
|
|
141
164
|
tier: "destructive",
|
|
142
165
|
description: "Delete a physical asset by ID. " +
|
|
@@ -194,7 +217,7 @@ export class AssetsTools {
|
|
|
194
217
|
{
|
|
195
218
|
definition: {
|
|
196
219
|
name: "pica_physical_assets_link_work",
|
|
197
|
-
scope: "write:
|
|
220
|
+
scope: "write:catalog",
|
|
198
221
|
audiences: ["stdio", "http", "public"],
|
|
199
222
|
tier: "write",
|
|
200
223
|
description: "Link a physical asset to a work (composition). Works describe process — vocabulary captures how the asset was used in making the composition. " +
|
|
@@ -254,7 +277,7 @@ export class AssetsTools {
|
|
|
254
277
|
{
|
|
255
278
|
definition: {
|
|
256
279
|
name: "pica_physical_assets_link_recording",
|
|
257
|
-
scope: "write:
|
|
280
|
+
scope: "write:catalog",
|
|
258
281
|
audiences: ["stdio", "http", "public"],
|
|
259
282
|
tier: "write",
|
|
260
283
|
description: "Link a physical asset to a recording (captured performance). Recordings describe artefact — vocabulary captures the physical relationship between the object and the captured moment. " +
|
|
@@ -320,7 +343,7 @@ export class AssetsTools {
|
|
|
320
343
|
{
|
|
321
344
|
definition: {
|
|
322
345
|
name: "pica_physical_assets_unlink_work",
|
|
323
|
-
scope: "write:
|
|
346
|
+
scope: "write:catalog",
|
|
324
347
|
audiences: ["stdio", "http", "public"],
|
|
325
348
|
tier: "write",
|
|
326
349
|
description: "Soft-unlink a physical asset from a work. Sets the link's confidence to 'withdrawn' rather than deleting the row, preserving the audit trail of retracted claims (rich provenance includes history, not just current state). " +
|
|
@@ -345,7 +368,7 @@ export class AssetsTools {
|
|
|
345
368
|
{
|
|
346
369
|
definition: {
|
|
347
370
|
name: "pica_physical_assets_unlink_recording",
|
|
348
|
-
scope: "write:
|
|
371
|
+
scope: "write:catalog",
|
|
349
372
|
audiences: ["stdio", "http", "public"],
|
|
350
373
|
tier: "write",
|
|
351
374
|
description: "Soft-unlink a physical asset from a recording. Sets confidence to 'withdrawn'; the row is preserved for the audit trail. " +
|
|
@@ -437,28 +460,6 @@ export class AssetsTools {
|
|
|
437
460
|
}
|
|
438
461
|
})());
|
|
439
462
|
}
|
|
440
|
-
// `market` is not part of "everything". The route behind it
|
|
441
|
-
// (POST /api/admin/assets/[id]/market-check) asks an AI model for a price
|
|
442
|
-
// estimate on every call, so it runs only when the caller names it.
|
|
443
|
-
// Regression: "should not run the market check when sections omitted"
|
|
444
|
-
// in mcp-server/src/__tests__/tools/assets.test.ts.
|
|
445
|
-
if (sections?.includes("market")) {
|
|
446
|
-
promises.push((async () => {
|
|
447
|
-
try {
|
|
448
|
-
results.market = await this.pica.assets.marketCheck(id);
|
|
449
|
-
}
|
|
450
|
-
catch (e) {
|
|
451
|
-
results.market = useStructured
|
|
452
|
-
? null
|
|
453
|
-
: {
|
|
454
|
-
error: e instanceof Error
|
|
455
|
-
? e.message
|
|
456
|
-
: "Failed to fetch market data",
|
|
457
|
-
};
|
|
458
|
-
pushSectionError(errors, TOOL_NAME, "market", e, id);
|
|
459
|
-
}
|
|
460
|
-
})());
|
|
461
|
-
}
|
|
462
463
|
if (allSections || sections?.includes("links")) {
|
|
463
464
|
// ADR-201 Phase 2: surface the junction-table rows that
|
|
464
465
|
// pica_physical_assets_link_work / _link_recording write. The two
|
|
@@ -535,6 +536,10 @@ export class AssetsTools {
|
|
|
535
536
|
await this.pica.assets.delete(args.id);
|
|
536
537
|
return formatSuccess("Asset deleted successfully");
|
|
537
538
|
}
|
|
539
|
+
async marketCheckAsset(args) {
|
|
540
|
+
const result = await this.pica.assets.marketCheck(args.id);
|
|
541
|
+
return formatSuccess("Market estimate", result);
|
|
542
|
+
}
|
|
538
543
|
async assetStats(_args) {
|
|
539
544
|
const stats = await this.pica.assets.stats();
|
|
540
545
|
return formatAsText(stats);
|