@withpica/mcp-server 2.98.0 → 2.100.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 +254 -0
- package/README.md +8 -8
- 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/prompts/creator-question-atlas.d.ts.map +1 -1
- package/dist/prompts/creator-question-atlas.js +25 -2
- package/dist/prompts/creator-question-atlas.js.map +1 -1
- package/dist/prompts/index.js +2 -2
- package/dist/resources/agent-guide.d.ts.map +1 -1
- package/dist/resources/agent-guide.js +38 -7
- package/dist/resources/agent-guide.js.map +1 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +0 -3
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/required-schemas.generated.d.ts +17 -11
- package/dist/resources/required-schemas.generated.d.ts.map +1 -1
- package/dist/resources/required-schemas.generated.js +30 -15
- 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 +15 -11
- 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 -2
- package/dist/server-instructions.js.map +1 -1
- package/dist/skills/skills.generated.js +8 -8
- package/dist/skills/skills.generated.js.map +1 -1
- package/dist/tools/api-error-body.d.ts +16 -4
- package/dist/tools/api-error-body.d.ts.map +1 -1
- package/dist/tools/api-error-body.js +40 -1
- package/dist/tools/api-error-body.js.map +1 -1
- package/dist/tools/approvals.d.ts.map +1 -1
- package/dist/tools/approvals.js +12 -1
- package/dist/tools/approvals.js.map +1 -1
- package/dist/tools/assets.d.ts.map +1 -1
- package/dist/tools/assets.js +15 -3
- package/dist/tools/assets.js.map +1 -1
- package/dist/tools/collaborators.d.ts.map +1 -1
- package/dist/tools/collaborators.js +27 -3
- package/dist/tools/collaborators.js.map +1 -1
- package/dist/tools/credits.d.ts +4 -1
- package/dist/tools/credits.d.ts.map +1 -1
- package/dist/tools/credits.js +204 -137
- package/dist/tools/credits.js.map +1 -1
- package/dist/tools/deprecations.d.ts +65 -7
- package/dist/tools/deprecations.d.ts.map +1 -1
- package/dist/tools/deprecations.js +96 -96
- package/dist/tools/deprecations.js.map +1 -1
- package/dist/tools/discovery.d.ts +28 -2
- package/dist/tools/discovery.d.ts.map +1 -1
- package/dist/tools/discovery.js +74 -29
- package/dist/tools/discovery.js.map +1 -1
- package/dist/tools/documents.d.ts +2 -2
- package/dist/tools/documents.d.ts.map +1 -1
- package/dist/tools/documents.js +8 -92
- package/dist/tools/documents.js.map +1 -1
- package/dist/tools/duplicates.d.ts +15 -0
- package/dist/tools/duplicates.d.ts.map +1 -1
- package/dist/tools/duplicates.js +285 -1
- package/dist/tools/duplicates.js.map +1 -1
- package/dist/tools/import-documents.d.ts +1 -0
- package/dist/tools/import-documents.d.ts.map +1 -1
- package/dist/tools/import-documents.js +67 -0
- package/dist/tools/import-documents.js.map +1 -1
- package/dist/tools/import.d.ts.map +1 -1
- package/dist/tools/import.js +14 -0
- package/dist/tools/import.js.map +1 -1
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +38 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/integrity.d.ts.map +1 -1
- package/dist/tools/integrity.js +65 -8
- package/dist/tools/integrity.js.map +1 -1
- package/dist/tools/memory.d.ts.map +1 -1
- package/dist/tools/memory.js +24 -6
- package/dist/tools/memory.js.map +1 -1
- package/dist/tools/metadata.d.ts.map +1 -1
- package/dist/tools/metadata.js +83 -121
- package/dist/tools/metadata.js.map +1 -1
- package/dist/tools/notes.d.ts +3 -4
- package/dist/tools/notes.d.ts.map +1 -1
- package/dist/tools/notes.js +3 -39
- package/dist/tools/notes.js.map +1 -1
- package/dist/tools/people.d.ts +54 -22
- package/dist/tools/people.d.ts.map +1 -1
- package/dist/tools/people.js +236 -27
- package/dist/tools/people.js.map +1 -1
- package/dist/tools/profile-claims.d.ts +31 -0
- package/dist/tools/profile-claims.d.ts.map +1 -0
- package/dist/tools/profile-claims.js +188 -0
- package/dist/tools/profile-claims.js.map +1 -0
- package/dist/tools/projects.d.ts +3 -4
- package/dist/tools/projects.d.ts.map +1 -1
- package/dist/tools/projects.js +3 -27
- package/dist/tools/projects.js.map +1 -1
- package/dist/tools/public-filter.d.ts.map +1 -1
- package/dist/tools/public-filter.js +4 -7
- package/dist/tools/public-filter.js.map +1 -1
- package/dist/tools/recovery-hints.d.ts.map +1 -1
- package/dist/tools/recovery-hints.js +164 -30
- package/dist/tools/recovery-hints.js.map +1 -1
- package/dist/tools/releases.d.ts +2 -4
- package/dist/tools/releases.d.ts.map +1 -1
- package/dist/tools/releases.js +6 -210
- package/dist/tools/releases.js.map +1 -1
- package/dist/tools/rights.d.ts +9 -0
- package/dist/tools/rights.d.ts.map +1 -1
- package/dist/tools/rights.js +199 -3
- package/dist/tools/rights.js.map +1 -1
- package/dist/tools/royalties.d.ts +5 -5
- package/dist/tools/royalties.d.ts.map +1 -1
- package/dist/tools/royalties.js +2 -53
- package/dist/tools/royalties.js.map +1 -1
- package/dist/tools/shows.d.ts.map +1 -1
- package/dist/tools/shows.js +25 -2
- package/dist/tools/shows.js.map +1 -1
- package/dist/tools/split-sheets.d.ts +8 -0
- package/dist/tools/split-sheets.d.ts.map +1 -1
- package/dist/tools/split-sheets.js +178 -1
- package/dist/tools/split-sheets.js.map +1 -1
- package/dist/tools/statements.js +1 -1
- package/dist/tools/statements.js.map +1 -1
- package/dist/tools/version-guard.d.ts +16 -4
- package/dist/tools/version-guard.d.ts.map +1 -1
- package/dist/tools/version-guard.js +22 -8
- package/dist/tools/version-guard.js.map +1 -1
- package/dist/tools/works.d.ts.map +1 -1
- package/dist/tools/works.js +24 -11
- package/dist/tools/works.js.map +1 -1
- package/package.json +2 -2
- package/server.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"required-schemas.generated.js","sourceRoot":"","sources":["../../src/resources/required-schemas.generated.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,EAAE;AACF,kEAAkE;AAClE,uEAAuE;AACvE,uFAAuF;AACvF,oDAAoD;AAEpD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,oBAAoB,EAAE;QACpB,UAAU,EAAE,oBAAoB;QAChC,SAAS,EAAE,oGAAoG;QAC/G,cAAc,EAAE,wBAAwB;QACxC,kBAAkB,EAAE;YAClB,OAAO;YACP,gBAAgB;YAChB,kBAAkB;SACnB;QACD,qBAAqB,EAAE;YACrB,IAAI;YACJ,kBAAkB;YAClB,aAAa;YACb,OAAO;YACP,MAAM;YACN,oBAAoB;YACpB,QAAQ;YACR,cAAc;YACd,YAAY;YACZ,UAAU;YACV,YAAY;YACZ,cAAc;YACd,kBAAkB;YAClB,qBAAqB;YACrB,oBAAoB;YACpB,gBAAgB;YAChB,kBAAkB;YAClB,eAAe;YACf,iBAAiB;YACjB,iBAAiB;YACjB,gCAAgC;YAChC,sBAAsB;SACvB;QACD,OAAO,EAAE;YACP,gBAAgB,EAAE;gBAChB,YAAY;gBACZ,iBAAiB;gBACjB,eAAe;gBACf,cAAc;gBACd,eAAe;gBACf,kBAAkB;gBAClB,OAAO;gBACP,YAAY;gBACZ,kBAAkB;gBAClB,QAAQ;gBACR,gBAAgB;gBAChB,aAAa;aACd;YACD,kBAAkB,EAAE;gBAClB,QAAQ;gBACR,YAAY;gBACZ,OAAO;gBACP,eAAe;gBACf,OAAO;gBACP,oBAAoB;gBACpB,WAAW;aACZ;YACD,QAAQ,EAAE;gBACR,QAAQ;gBACR,WAAW;gBACX,WAAW;gBACX,OAAO;gBACP,SAAS;gBACT,gBAAgB;gBAChB,kBAAkB;gBAClB,mBAAmB;gBACnB,YAAY;gBACZ,SAAS;aACV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AAG;SACxB;KACF;CACO,CAAC"}
|
|
1
|
+
{"version":3,"file":"required-schemas.generated.js","sourceRoot":"","sources":["../../src/resources/required-schemas.generated.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,EAAE;AACF,kEAAkE;AAClE,uEAAuE;AACvE,uFAAuF;AACvF,oDAAoD;AAEpD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,oBAAoB,EAAE;QACpB,UAAU,EAAE,oBAAoB;QAChC,SAAS,EAAE,oGAAoG;QAC/G,cAAc,EAAE,wBAAwB;QACxC,kBAAkB,EAAE;YAClB,OAAO;YACP,gBAAgB;YAChB,kBAAkB;SACnB;QACD,qBAAqB,EAAE;YACrB,IAAI;YACJ,kBAAkB;YAClB,aAAa;YACb,OAAO;YACP,MAAM;YACN,oBAAoB;YACpB,QAAQ;YACR,cAAc;YACd,YAAY;YACZ,UAAU;YACV,YAAY;YACZ,cAAc;YACd,kBAAkB;YAClB,qBAAqB;YACrB,oBAAoB;YACpB,gBAAgB;YAChB,kBAAkB;YAClB,eAAe;YACf,iBAAiB;YACjB,iBAAiB;YACjB,gCAAgC;YAChC,sBAAsB;SACvB;QACD,OAAO,EAAE;YACP,gBAAgB,EAAE;gBAChB,YAAY;gBACZ,iBAAiB;gBACjB,eAAe;gBACf,cAAc;gBACd,eAAe;gBACf,kBAAkB;gBAClB,OAAO;gBACP,YAAY;gBACZ,kBAAkB;gBAClB,QAAQ;gBACR,gBAAgB;gBAChB,aAAa;aACd;YACD,kBAAkB,EAAE;gBAClB,QAAQ;gBACR,YAAY;gBACZ,OAAO;gBACP,eAAe;gBACf,OAAO;gBACP,oBAAoB;gBACpB,WAAW;aACZ;YACD,QAAQ,EAAE;gBACR,QAAQ;gBACR,WAAW;gBACX,WAAW;gBACX,OAAO;gBACP,SAAS;gBACT,gBAAgB;gBAChB,kBAAkB;gBAClB,mBAAmB;gBACnB,YAAY;gBACZ,SAAS;aACV;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE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M,EAAE,qSAAqS;gBAC7S,UAAU,EAAE;oBACV,UAAU;oBACV,MAAM;iBACP;aACF;SACF;QACD,SAAS,EAAE;YACT,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EAAE,MAAM;YACnB,MAAM,EAAE,iBAAiB;YACzB,kBAAkB,EAAE,GAAG;SACxB;KACF;CACO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"required-schemas.source.d.ts","sourceRoot":"","sources":["../../src/resources/required-schemas.source.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IAC1D,eAAe,EAAE,uBAAuB,EAAE,CAAC;IAC3C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"required-schemas.source.d.ts","sourceRoot":"","sources":["../../src/resources/required-schemas.source.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IAC1D,eAAe,EAAE,uBAAuB,EAAE,CAAC;IAC3C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAkoBxE,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAEjC,KAAK,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -15,9 +15,9 @@ export const REQUIRED_SCHEMAS_SOURCE = {
|
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
tool: "pica_credit_update",
|
|
18
|
-
when: "After credits exist — edit ONE credit in place (a writer's share, a role, the displayed name, notes, an instrument) without re-sending the set. Find the credit_id with pica_credits_list. The credit keeps its id
|
|
18
|
+
when: "After credits exist — edit ONE credit in place (a writer's share, a role, the displayed name, notes, an instrument, or who it is for via person_id) without re-sending the set. Find the credit_id with pica_credits_list. The credit keeps its id; its attestation state is kept unless person_id changes who it is for, which sends a confirmed, disputed or declined credit back to pending.",
|
|
19
19
|
required: ["work_id", "credit_id"],
|
|
20
|
-
constraint: "At least one of share_pct, credit_type, credited_name, notes, instrument. share_pct is 0-100, or null to record the share as UNKNOWN (never 0). Writer-split closure is NOT enforced on a single edit — re-split one writer at a time.",
|
|
20
|
+
constraint: "At least one of share_pct, credit_type, credited_name, notes, instrument, person_id. share_pct is 0-100, or null to record the share as UNKNOWN (never 0). Writer-split closure is NOT enforced on a single edit — re-split one writer at a time. person_id must be a person in this organisation, not deleted, and not already holding this role on the song or recording (CREDIT_PERSON_CONFLICT); linking a name-only credit to a differently named person needs confirm_name_mismatch: true.",
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
tool: "pica_works_update",
|
|
@@ -81,20 +81,14 @@ export const REQUIRED_SCHEMAS_SOURCE = {
|
|
|
81
81
|
},
|
|
82
82
|
"work-credits-required": {
|
|
83
83
|
workflow: "work-credits-required",
|
|
84
|
-
summary: "Required fields per credit row when attaching writer/composer/publisher credits to a work. The tool exposes `role` (composition roles route to `work_collaborators`, master roles to `recording_credits`, keyed by grain) and `splits` (mapped to `split_percentage`). Splits must sum to 100. Valid role values are enumerated on the `role` field of `pica_credits_update
|
|
84
|
+
summary: "Required fields per credit row when attaching writer/composer/publisher credits to a work. The tool exposes `role` (composition roles route to `work_collaborators`, master roles to `recording_credits`, keyed by grain) and `splits` (mapped to `split_percentage`). Splits must sum to 100. Valid role values are enumerated on the `role` field of `pica_credits_update`. Attestation is not a field you send: every credit starts as pending and only the credited person confirms it (pica_credits_send_for_attestation).",
|
|
85
85
|
primary_tool: "pica_credits_update",
|
|
86
|
-
enum_tables: [
|
|
87
|
-
{
|
|
88
|
-
table: "work_collaborators",
|
|
89
|
-
columns: ["attestation_status"],
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
86
|
companion_calls: [
|
|
93
87
|
{
|
|
94
88
|
tool: "pica_credit_update",
|
|
95
|
-
when: "After credits exist — edit ONE credit in place (a writer's share, a role, the displayed name, notes, an instrument) without re-sending the set. Find the credit_id with pica_credits_list. The credit keeps its id
|
|
89
|
+
when: "After credits exist — edit ONE credit in place (a writer's share, a role, the displayed name, notes, an instrument, or who it is for via person_id) without re-sending the set. Find the credit_id with pica_credits_list. The credit keeps its id; its attestation state is kept unless person_id changes who it is for, which sends a confirmed, disputed or declined credit back to pending.",
|
|
96
90
|
required: ["work_id", "credit_id"],
|
|
97
|
-
constraint: "At least one of share_pct, credit_type, credited_name, notes, instrument. share_pct is 0-100, or null to record the share as UNKNOWN (never 0). Writer-split closure is NOT enforced on a single edit — re-split one writer at a time.",
|
|
91
|
+
constraint: "At least one of share_pct, credit_type, credited_name, notes, instrument, person_id. share_pct is 0-100, or null to record the share as UNKNOWN (never 0). Writer-split closure is NOT enforced on a single edit — re-split one writer at a time. person_id must be a person in this organisation, not deleted, and not already holding this role on the song or recording (CREDIT_PERSON_CONFLICT); linking a name-only credit to a differently named person needs confirm_name_mismatch: true.",
|
|
98
92
|
},
|
|
99
93
|
{
|
|
100
94
|
tool: "pica_credits_send_for_attestation",
|
|
@@ -472,6 +466,16 @@ export const REQUIRED_SCHEMAS_SOURCE = {
|
|
|
472
466
|
when: "List all splits on a recording — verify totals and per-row verification state.",
|
|
473
467
|
required: ["recording_id"],
|
|
474
468
|
},
|
|
469
|
+
{
|
|
470
|
+
tool: "pica_recording_splits_update",
|
|
471
|
+
when: "A recorded share is wrong — relink a holder-less ('unknown') row to a person, or change its percentage, role, split_type, territory or dates. The 100% total is checked after the change with this row's old value left out. Changing who/how much/dates clears the holder's confirmation (verification_cleared).",
|
|
472
|
+
required: ["recording_id", "split_id"],
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
tool: "pica_recording_splits_end",
|
|
476
|
+
when: "A share should stop counting toward the total — sets end_date (default today) and keeps the row as history. Use instead of deleting.",
|
|
477
|
+
required: ["recording_id", "split_id"],
|
|
478
|
+
},
|
|
475
479
|
],
|
|
476
480
|
example: {
|
|
477
481
|
recording_id: "<uuid>",
|
|
@@ -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,EAA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GAAG;iBAC/B;aACF;YACD,OAAO,EAAE;gBACP;oBACE,GAAG,EAAE,oDAAoD;oBACzD,IAAI,EAAE,eAAe;oBACrB,cAAc,EAAE,CAAC,YAAY,EAAE,gBAAgB,EAAE,WAAW,CAAC;iBAC9D;aACF;SACF;KACF;CACF,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,EA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EAAE,gCAAgC;YAClD,eAAe,EAAE,SAAS;YAC1B,KAAK,EAAE,iBAAiB;YACxB,kBAAkB,EAAE,sBAAsB;YAC1C,MAAM,EAAE,UAAU;YAClB,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,KAAK;YACnB,cAAc,EAAE,YAAY;YAC5B,YAAY,EAAE,YAAY;YAC1B,SAAS,EAAE,CAAC,IAAI,CAAC;YACjB,cAAc,EAAE,CAAC,YAAY,EAAE,QAAQ,CAAC;YACxC,qBAAqB,EAAE,wBAAwB;YAC/C,QAAQ,EAAE;gBACR;oBACE,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,kBAAkB;oBACxB,KAAK,EAAE,uBAAuB;oBAC9B,OAAO,EAAE,iBAAiB;iBAC3B;aACF;YACD,UAAU,EAAE;gBACV;oBACE,YAAY,EAAE,sCAAsC;oBACpD,IAAI,EAAE,aAAa;oBACnB,UAAU,EAAE,KAAK;oBACjB,yBAAyB,EAAE,GAAG;iBAC/B;aACF;YACD,OAAO,EAAE;gBACP;oBACE,GAAG,EAAE,oDAAoD;oBACzD,IAAI,EAAE,eAAe;oBACrB,cAAc,EAAE,CAAC,YAAY,EAAE,gBAAgB,EAAE,WAAW,CAAC;iBAC9D;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,IAAI,CAClD,uBAAuB,CACuB,CAAC"}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* Block playbook: "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.
|
|
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.";
|
|
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.
|
|
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.";
|
|
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,oyGA+B8H,CAAC;AAE/J,mHAAmH;AACnH;;;;;;;;GAQG;AACH,eAAO,MAAM,mCAAmC,OAAO,CAAC;AAExD,eAAO,MAAM,iCAAiC,oyGAAsB,CAAC;AAErE;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,IAAI,MAAM,CAErD;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mCAAmC,iwBAM2M,CAAC"}
|
|
@@ -32,7 +32,7 @@ Start here:
|
|
|
32
32
|
- pica_works_query / pica_people_query — browse the catalog
|
|
33
33
|
- pica_subscription_status — "what's my plan / am I paying?"; pica_billing_pay — a pay link for residency or a tab. On a connector call them through pica_execute {tool: "<name>", args: {...}}
|
|
34
34
|
|
|
35
|
-
The catalog is ALWAYS accessible via the tools above — zero setup, no integration required.
|
|
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
37
|
Spotify/YouTube URLs: call pica_import_streaming_link (Spotify/Deezer) or pica_import_youtube_link directly.
|
|
38
38
|
|
|
@@ -51,7 +51,7 @@ Most query tools accept "limit"; defaults vary — read the tool's schema. IDs a
|
|
|
51
51
|
|
|
52
52
|
Skills: 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 — not at handshake.
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
Provenance: when a fact comes from a source, cite it via pica_enrichment_propose sources[].url. Citations persist verbatim and propagate to applied entities.`;
|
|
55
55
|
/** Alias for the authenticated default — names the variant explicitly when paired with the unauthenticated one. */
|
|
56
56
|
/**
|
|
57
57
|
* How many leading characters of SERVER_INSTRUCTIONS a client was observed to
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8JA+B2H,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"}
|
|
@@ -16,18 +16,18 @@ export const SKILLS = {
|
|
|
16
16
|
audience: "manager / label / artist",
|
|
17
17
|
tools_required: ["pica_dashboard_briefing", "pica_works_inspect", "pica_works_query", "pica_catalog_stats", "pica_find_duplicates"],
|
|
18
18
|
output: "Plain-language health summary (suitable for a non-technical stakeholder) + top 3 highest-impact improvements with specific steps + post-fix score estimate + any urgent issues.",
|
|
19
|
-
body: "# catalog-audit\n\nAudit a music catalog for completeness, quality, and registration readiness. Use this when a user asks \"how's my catalog doing,\" \"what needs fixing,\" or wants a health check before a release / sync push / sale.\n\n## Step 1 — Orient\n\nCall `pica_dashboard_briefing` first. The briefing returns a single compressed snapshot of catalog state (counts, recent activity, upcoming deadlines, top priorities). This is the cheapest first call and sets the routing decision for everything that follows.\n\n## Step 2 — Pull the PICA Score\n\nCall `pica_works_inspect` with `sections: [\"score\"]` on a representative work, or read the `catalog://health` resource. The score is a 0-100 composite across four pillars (income, ownership, asset, verification). The pillar with the lowest score is the audit's primary subject.\n\nDo NOT speculate about how the score is calculated beyond what the tool returns. Treat it as a black box that reports a number and pillar breakdown.\n\n## Step 3 — Sample for quality\n\nCall `pica_works_query` with `health_filter: \"low_completeness\"` and pull up to 20 works. For a sample of those, call `pica_works_inspect` with `sections: [\"completeness\"]` to see per-work gaps.\n\nCommon patterns to look for (publishing side — writer credits on works):\n- Works with no credits at all\n- Works where writer splits don't total 100%\n- Works with no recordings\n- Recordings with no ISRC\n- People credited on works but missing IPI or ISNI\n\n**Recording-side / master-ownership health** (artist / producer / label splits) is a separate domain handled per-recording by `set-recording-splits` — not surfaced by the score pillars at present. If the user mentions producer points, label splits, or master royalties, flag that this audit doesn't cover them and point to `set-recording-splits` per-recording.\n\n## Step 4 — Duplicate sweep\n\nCall `pica_find_duplicates`. A clean catalog has zero or near-zero duplicate signals. High duplicate counts indicate an import that needs reconciliation before further work.\n\n## Step 5 — Report\n\nProduce three things, in this order:\n\n1. **One-paragraph plain-language summary.** Suitable for a non-technical stakeholder. Lead with \"your catalog has X works and is healthy / has gaps / needs attention\" — not raw numbers.\n2. **Top 3 improvements, prioritised by effort vs impact.** Each with the specific tool call that would address it (e.g. \"add IPI numbers to 12 writers — call `pica_people_query` filtered by `has_ipi: false`, then `pica_people_update` for each\").\n3. **Score forecast.** \"After those fixes, the score would likely rise from X to Y.\"\n\nIf urgent issues exist (e.g. missing ownership data on a work with active royalties,
|
|
19
|
+
body: "# catalog-audit\n\nAudit a music catalog for completeness, quality, and registration readiness. Use this when a user asks \"how's my catalog doing,\" \"what needs fixing,\" or wants a health check before a release / sync push / sale.\n\n## Step 1 — Orient\n\nCall `pica_dashboard_briefing` first. The briefing returns a single compressed snapshot of catalog state (counts, recent activity, upcoming deadlines, top priorities). This is the cheapest first call and sets the routing decision for everything that follows.\n\n## Step 2 — Pull the PICA Score\n\nCall `pica_works_inspect` with `sections: [\"score\"]` on a representative work, or read the `catalog://health` resource. The score is a 0-100 composite across four pillars (income, ownership, asset, verification). The pillar with the lowest score is the audit's primary subject.\n\nDo NOT speculate about how the score is calculated beyond what the tool returns. Treat it as a black box that reports a number and pillar breakdown.\n\n## Step 3 — Sample for quality\n\nCall `pica_works_query` with `health_filter: \"low_completeness\"` and pull up to 20 works. For a sample of those, call `pica_works_inspect` with `sections: [\"completeness\"]` to see per-work gaps.\n\nCommon patterns to look for (publishing side — writer credits on works):\n- Works with no credits at all\n- Works where writer splits don't total 100%\n- Works with no recordings\n- Recordings with no ISRC\n- People credited on works but missing IPI or ISNI\n\n**Recording-side / master-ownership health** (artist / producer / label splits) is a separate domain handled per-recording by `set-recording-splits` — not surfaced by the score pillars at present. If the user mentions producer points, label splits, or master royalties, flag that this audit doesn't cover them and point to `set-recording-splits` per-recording.\n\n## Step 4 — Duplicate sweep\n\nCall `pica_find_duplicates`. A clean catalog has zero or near-zero duplicate signals. High duplicate counts indicate an import that needs reconciliation before further work.\n\n## Step 5 — Report\n\nProduce three things, in this order:\n\n1. **One-paragraph plain-language summary.** Suitable for a non-technical stakeholder. Lead with \"your catalog has X works and is healthy / has gaps / needs attention\" — not raw numbers.\n2. **Top 3 improvements, prioritised by effort vs impact.** Each with the specific tool call that would address it (e.g. \"add IPI numbers to 12 writers — call `pica_people_query` filtered by `has_ipi: false`, then `pica_people_update` for each\").\n3. **Score forecast.** \"After those fixes, the score would likely rise from X to Y.\"\n\nIf urgent issues exist (e.g. missing ownership data on a work with active royalties, works being licensed whose ownership splits no holder has confirmed) flag them at the top.\n\n## What not to do\n\n- Don't run all sub-workflows at once. The audit is read-only — improvements are a separate user decision.\n- Don't recommend `pica_works_delete` or any destructive operation. The audit's job is to describe, not to mutate.\n- Don't quote raw `pica_works_query` results back at the user verbatim. Summarise.\n\n## Follow-on skills\n\nAfter the audit, the natural next skills are:\n- `catalog-modelling` if the audit surfaces duplicate-title works or blank-ISWC variants that should be recordings under one work\n- `register-my-works` if registration coverage is low\n- `prepare-for-sync` if sync-readiness is the user's goal\n- `close-the-loop` (prompt) if the user wants to fix specific works one at a time\n",
|
|
20
20
|
},
|
|
21
21
|
"catalog-modelling": {
|
|
22
22
|
name: "catalog-modelling",
|
|
23
23
|
description: "The data model for a music catalog — how to decide whether something is a work, a recording, or a release, and how to model song variants (instrumental, acoustic, live, remix) correctly. Front-load this before creating or restructuring catalog entities.",
|
|
24
|
-
triggers: ["how should I model this", "is this a work or a recording", "instrumental version", "acoustic version", "should this be a separate work", "restructure my catalog", "consolidate works"],
|
|
24
|
+
triggers: ["how should I model this", "is this a work or a recording", "instrumental version", "acoustic version", "should this be a separate work", "is this remix a new song", "modified version", "restructure my catalog", "consolidate works"],
|
|
25
25
|
audience: "manager / label / artist",
|
|
26
|
-
tools_required: ["pica_works_create", "pica_recordings_create", "pica_recordings_update", "pica_works_delete", "pica_catalog_health"],
|
|
26
|
+
tools_required: ["pica_works_create", "pica_works_update", "pica_recordings_create", "pica_recordings_update", "pica_works_delete", "pica_catalog_health", "pica_find_duplicates"],
|
|
27
27
|
output: "A modelling decision (work vs recording vs release) with the exact tool calls to create or restructure the entities, and — when consolidating — a safe repoint-then-relink-then-delete plan that never orphans a release track.",
|
|
28
|
-
definition_of_done: "Each composition is ONE work with ONE ISWC; every variant is a recording under that work with the correct version_type;
|
|
29
|
-
when_not_to_use: "When the thing genuinely IS a separate composition — a remix
|
|
30
|
-
body: "# catalog-modelling\n\nUse this before creating or restructuring catalog entities. It answers the\nquestion agents get wrong most often: \"this instrumental / acoustic / live /\nremix version — is it a new work, a recording, or a release?\" Getting it wrong\nsplinters one song into many half-blank works and breaks every downstream\nreport. Getting it right is mechanical once you know the three grains.\n\n## The three grains\n\nPICA separates a song into three distinct entities, each with its own identity\neach answering a different question:\n\n- **work** = the composition, the song as written. carries the **ISWC** (`works.iswc`)\n and the composition credits. one work has many recordings.\n- **recording** = a specific master / sound recording of that work. carries the\n **ISRC** (`recordings.isrc`), the audio, and a `version_type`. it points at its\n work via `recordings.work_id`. a recording has no ISWC of its own — its\n composition identity is the work it hangs off. one recording appears on many\n releases.\n- **release** = a commercial product (single, album, compilation) that bundles\n recordings via `release_tracks`. carries the **UPC** and catalog number.\n\nThe rule the whole model rests on: **a fact lives on exactly one entity, at the\nright grain.** ISWC is a composition fact (work). ISRC is a master fact\n(recording). UPC is a product fact (release). Never put a master or release fact\non a work.\n\n## The decision rule\n\nWhen something new shows up that looks like `<existing work> - <variant>`\n(e.g. \"confetti heart - instrumental\", \"midnight - acoustic\", \"the song - live\nat koko\"):\n\n> it is a **recording under that existing work**, created or repointed with the\n> right `version_type` — **UNLESS** it is a remix or a flip with new authorship,\n> in which case it is a **separate work**.\n\nSo:\n\n- **same composition, different rendering** (instrumental, acoustic, live_performance, demo,\n edit, backing_track, edit, alternate) → one more **recording** under\n the existing work. set `work_id` to the existing work and `version_type` to the\n variant. do NOT mint a second work.\n- **new composition built on the old one** (a remix, a flip, a sample-based\n derivative, a re-write) → a **separate work** with its **own ISWC**, created via\n `pica_works_create`. it is its own composition because someone added new\n authorship.\n\n### the version_type values\n\n`version_type` is the canonical way to label a variant recording. the live\n`recordings_version_type_check` constraint (and `VALID_VERSION_TYPES` in\n`lib/services/recordings.ts`) accepts exactly these thirteen values:\n\n`demo`, `master`, `alternate_master`, `music_video`, `lyric_video`,\n`live_performance`, `acoustic`, `remix`, `cover`, `alternate`, `instrumental`,\n`backing_track`, `edit`.\n\na fresh master defaults to `master`. pick the most precise value — prefer\n`instrumental` / `backing_track` / `edit` over the lossy `alternate` catch-all.\nnote `remix` and `cover` exist as recording version_types too, but a remix that\nadds new authorship is better modelled as a separate work (see below); the\n`remix` recording value is for the case where you are cataloguing the remix as a\nmaster without a distinct composition entry.\n\n## how a remix / derivative links to its parent\n\nBe honest about what the agent-facing tools can do here. PICA's internal schema\ndoes have a `work_versions` table that records parent→child derivative\nrelationships (`parent_work_id` → `child_work_id`, with a `version_type` that\nincludes `remix`, `cover`, `sample`), managed by\n`lib/services/work-versions.ts`. **But there is no MCP tool today that writes a\n`work_versions` link, and the `works` table itself has no parent/derivative FK\ncolumn.** So through the MCP surface:\n\n> a remix or derivative is a **separate work with its own ISWC**, created via\n> `pica_works_create`. there is no MCP step to formally link it back to the\n> original — do not invent one. model it as its own composition and move on.\n\nDo not tell the user you have \"linked the remix to the original\" — you cannot,\nvia these tools. Create the separate work; that is the correct and complete\naction.\n\n## composition splits vs master splits\n\nWhen you model a variant, the splits follow the grain (per\n`.claude/rules/business-logic.md`, Credit & Split Tables):\n\n- **composition splits / writer credits** live on the **work**, in\n `work_collaborators` (writer, composer, lyricist, arranger, publisher, with\n `split_percentage`). every recording under that work inherits the same\n composition — you do not re-enter writer splits per variant.\n- **master ownership splits** live on the **recording**, in `recording_splits`\n (`split_type`: master, mechanical, performance, sync); master attribution\n (producer, performer, etc.) lives in `recording_credits`. these are\n per-recording — an instrumental master can have different master ownership\n from the vocal master.\n\nSo an acoustic recording added under an existing work inherits that work's\nwriter splits automatically and only needs its own master splits if the\nownership differs.\n\n## worked example — confetti heart\n\nTake a song \"confetti heart\" with an instrumental, an acoustic, and a remix.\n\n- **confetti heart** → ONE **work** with its ISWC. its writer splits live here in\n `work_collaborators`.\n- **confetti heart (the released master)** → a **recording** under that work,\n `version_type: master`, with its ISRC.\n- **confetti heart (instrumental)** → another **recording** under the SAME work,\n `version_type: instrumental`. same ISWC (inherited via the work), its own ISRC.\n do not create a second \"confetti heart instrumental\" work.\n- **confetti heart (acoustic)** → another **recording** under the same work,\n `version_type: acoustic`.\n- **confetti heart (PRY remix)** → a **separate work** with its **own ISWC**\n (PRY added new authorship). created via `pica_works_create`. it then gets its\n own recording with `version_type: master` (or `remix`) and its own ISRC. no MCP\n link back to the original — it stands as its own composition.\n\nThe wrong model — four separate works all titled some variant of \"confetti\nheart\", three of them with blank ISWCs — is exactly what\n`pica_catalog_health` flags as duplicate works sharing a title stem.\n\n## safe consolidation procedure\n\nWhen a catalog already has the wrong shape — e.g. \"confetti heart\",\n\"confetti heart instrumental\", \"confetti heart acoustic\" as three separate works,\ntwo with blank ISWCs — consolidate them under the one real work. Do it in this\norder, and not any other, because deleting a work too early orphans or destroys\nthe release tracks that reference it.\n\n1. **Pick the canonical work** — the one with the real ISWC. this is the keeper.\n2. **Repoint each variant's recording onto the keeper.** for every recording\n hanging off a duplicate work, call `pica_recordings_update` with\n `work_id: <keeper work id>` and the correct `version_type` (e.g.\n `instrumental`, `acoustic`). the recording now belongs to the canonical work\n and keeps its ISRC and master splits.\n3. **Relink any affected release tracks to the keeper.** a `release_tracks` row\n references **both** `work_id` and `recording_id` (the table has\n `CHECK (recording_id IS NOT NULL OR work_id IS NOT NULL)`). any track that\n still points at a soon-to-be-deleted work via `work_id` must be repointed to\n the keeper work first.\n4. **Only now delete the now-empty duplicate work** with `pica_works_delete`.\n\n**Why relink the release tracks before the delete, not after.** Per the deletion\ncontract (`.claude/rules/business-logic.md`), deleting a work auto-detaches its\n`release_tracks` membership by nulling `release_tracks.work_id`. for a track that\nalso carries a recording, nulling the work id is harmless — it keeps its\nrecording. but a **work-only** track (no recording) cannot have its `work_id`\nnulled without violating the CHECK, so the deletion policy **deletes that whole\ntrack** instead (its `deleteWhenOrphanColumns` is `[\"recording_id\"]`). that would\nsilently drop the track from its release. and if the duplicate work still has\nrecordings attached, the delete **archives** the work rather than removing it —\nso you must repoint the recordings (step 2) to actually empty it. relinking the\ntracks first means every track keeps a valid work reference and the final delete\nis a clean no-dependents removal.\n\n## what not to do\n\n- don't mint a new work for an instrumental, acoustic, live_performance, demo, edit, or\n backing_track version. that is a recording under the existing work.\n- don't put an ISWC on a recording or a UPC on a work. facts live at their grain.\n- don't claim you \"linked\" a remix to its original — there is no MCP tool for\n that link. create the separate work and say so plainly.\n- don't delete a duplicate work before repointing its recordings and relinking\n its release tracks. order matters; a premature delete orphans or destroys\n tracks.\n- don't re-enter writer splits per variant. composition splits live once, on the\n work; recordings inherit the composition.\n\n## follow-on skills\n\n- `set-recording-splits` — once variants are correctly modelled as recordings,\n set the per-recording master ownership.\n- `catalog-audit` — to sweep the whole catalog for remaining duplicate-title\n works and blank ISWCs.\n- `register-my-works` — registered works pair with cleanly-modelled recordings.\n",
|
|
28
|
+
definition_of_done: "Each composition is ONE work with ONE ISWC; every variant — including a remix with no new writers — is a recording under that work with the correct version_type; a remix that added writers is its own work linked to the original with original_work_id; no blank-ISWC duplicate works sharing a title stem; release tracks resolve to the right work and recording.",
|
|
29
|
+
when_not_to_use: "When the thing genuinely IS a separate composition — a remix that added writers (a modified version, which you link rather than fold), or a distinct song that merely shares a title stem.",
|
|
30
|
+
body: "# catalog-modelling\n\nUse this before creating or restructuring catalog entities. It answers the\nquestion agents get wrong most often: \"this instrumental / acoustic / live /\nremix version — is it a new work, a recording, or a release?\" Getting it wrong\nsplinters one song into many half-blank works and breaks every downstream\nreport. Getting it right is mechanical once you know the three grains.\n\n## The three grains\n\nPICA separates a song into three distinct entities, each with its own identity\neach answering a different question:\n\n- **work** = the composition, the song as written. carries the **ISWC** (`works.iswc`)\n and the composition credits. one work has many recordings.\n- **recording** = a specific master / sound recording of that work. carries the\n **ISRC** (`recordings.isrc`), the audio, and a `version_type`. it points at its\n work via `recordings.work_id`. a recording has no ISWC of its own — its\n composition identity is the work it hangs off. one recording appears on many\n releases.\n- **release** = a commercial product (single, album, compilation) that bundles\n recordings via `release_tracks`. carries the **UPC** and catalog number.\n\nThe rule the whole model rests on: **a fact lives on exactly one entity, at the\nright grain.** ISWC is a composition fact (work). ISRC is a master fact\n(recording). UPC is a product fact (release). Never put a master or release fact\non a work.\n\n## The decision rule\n\nWhen something new shows up that looks like `<existing work> - <variant>`\n(e.g. \"confetti heart - instrumental\", \"midnight - acoustic\", \"the song - live\nat koko\"):\n\n> it is a **recording under that existing work**, created or repointed with the\n> right `version_type` — **UNLESS** someone added new writing to it, in which\n> case it is a **modified version**: its own work, linked to the original.\n\nSo:\n\n- **same composition, different rendering** (instrumental, acoustic, live_performance, demo,\n edit, backing_track, alternate) → one more **recording** under\n the existing work. set `work_id` to the existing work and `version_type` to the\n variant. do NOT mint a second work.\n- **a remix (or rmx, flip, bootleg, VIP) with no new writers** → also a\n **recording** under the existing work: its own ISRC, the same work, the same\n ISWC, the same writers. `version_type: remix`. the remixer is credited on the\n **recording** (`recording_credits` role `Remixer`), **not** as a writer.\n- **a remix that added writers** (new lyrics, a new melody, a new section) →\n a **modified version** (CWR calls it `MOD`): a separate work with its own\n ISWC and its own writer shares, **linked to the original** with\n `pica_works_update {id, original_work_id: <original work id>}` (or\n `original_work_id` on `pica_works_create`).\n\n**The deciding signal is the writers.** Compare the remix's writers to the\noriginal's: the same people, fewer of them, or none recorded → a recording.\nAnyone the original does not have → a modified version. If you do not know\nwhether writers were added, ask the user — do not guess, and do not assume a\nremix is a new song.\n\n### the version_type values\n\n`version_type` is the canonical way to label a variant recording. the live\n`recordings_version_type_check` constraint (and `VALID_VERSION_TYPES` in\n`lib/services/recordings.ts`) accepts exactly these thirteen values:\n\n`demo`, `master`, `alternate_master`, `music_video`, `lyric_video`,\n`live_performance`, `acoustic`, `remix`, `cover`, `alternate`, `instrumental`,\n`backing_track`, `edit`.\n\na fresh master defaults to `master`. pick the most precise value — prefer\n`instrumental` / `backing_track` / `edit` over the lossy `alternate` catch-all.\n`remix` is the value for a remix recording under the original work (the normal\ncase, above).\n\n## how a modified version links to its original\n\n`works.original_work_id` records it: set it on the modified version to the id\nof the work it modifies, with `pica_works_update` (or on `pica_works_create`).\nIt must name a work in the same catalogue, and a work cannot be a modified\nversion of itself. `null` clears it. The original's page then lists its\nmodified versions, and the modified version says which song it came from.\n\nLinking changes nothing else: both works keep their own writers, shares and\nISWC. It is only for a remix that **added writers** — a remix with the same\nwriters is not linked, it is a recording under the original.\n\n`pica_find_duplicates` (works) pairs each remix-titled work with its original\nand says which case it is: `match_kind: \"remix_recording\"` (move its\nrecordings under the original) or `\"remix_modified_version\"` (link it). Its\n`remix` block names the recordings, any added writers, and a remixer name read\nfrom the title — a name to check against the catalogue, never a person to\ncreate. Never answer a remix pair with `pica_merge_duplicates`: a merge would\nfold the remix's writers into the original's shares.\n\n## composition splits vs master splits\n\nWhen you model a variant, the splits follow the grain (per\n`.claude/rules/business-logic.md`, Credit & Split Tables):\n\n- **composition splits / writer credits** live on the **work**, in\n `work_collaborators` (writer, composer, lyricist, arranger, publisher, with\n `split_percentage`). every recording under that work inherits the same\n composition — you do not re-enter writer splits per variant.\n- **master ownership splits** live on the **recording**, in `recording_splits`\n (`split_type`: master, mechanical, performance, sync); master attribution\n (producer, performer, etc.) lives in `recording_credits`. these are\n per-recording — an instrumental master can have different master ownership\n from the vocal master.\n\nSo an acoustic recording added under an existing work inherits that work's\nwriter splits automatically and only needs its own master splits if the\nownership differs.\n\n## worked example — confetti heart\n\nTake a song \"confetti heart\" with an instrumental, an acoustic, and a remix.\n\n- **confetti heart** → ONE **work** with its ISWC. its writer splits live here in\n `work_collaborators`.\n- **confetti heart (the released master)** → a **recording** under that work,\n `version_type: master`, with its ISRC.\n- **confetti heart (instrumental)** → another **recording** under the SAME work,\n `version_type: instrumental`. same ISWC (inherited via the work), its own ISRC.\n do not create a second \"confetti heart instrumental\" work.\n- **confetti heart (acoustic)** → another **recording** under the same work,\n `version_type: acoustic`.\n- **confetti heart (Féz remix)** with the same writers → another **recording**\n under the SAME work, `version_type: remix`, its own ISRC, with Féz credited on\n the recording as `Remixer`. no second work.\n- **confetti heart (Féz remix)** where Féz wrote a new verse → a **modified\n version**: its own work with its own ISWC and writer shares (the original\n writers plus Féz), linked with `original_work_id` to confetti heart.\n\nThe wrong model — four separate works all titled some variant of \"confetti\nheart\", three of them with blank ISWCs — is exactly what\n`pica_catalog_health` flags as duplicate works sharing a title stem.\n\n## safe consolidation procedure\n\nWhen a catalog already has the wrong shape — e.g. \"confetti heart\",\n\"confetti heart instrumental\", \"confetti heart acoustic\" as three separate works,\ntwo with blank ISWCs — consolidate them under the one real work. Do it in this\norder, and not any other, because deleting a work too early orphans or destroys\nthe release tracks that reference it.\n\n1. **Pick the canonical work** — the one with the real ISWC. this is the keeper.\n2. **Repoint each variant's recording onto the keeper.** for every recording\n hanging off a duplicate work, call `pica_recordings_update` with\n `work_id: <keeper work id>` and the correct `version_type` (e.g.\n `instrumental`, `acoustic`). the recording now belongs to the canonical work\n and keeps its ISRC and master splits.\n3. **Relink any affected release tracks to the keeper.** a `release_tracks` row\n references **both** `work_id` and `recording_id` (the table has\n `CHECK (recording_id IS NOT NULL OR work_id IS NOT NULL)`). any track that\n still points at a soon-to-be-deleted work via `work_id` must be repointed to\n the keeper work first.\n4. **Only now delete the now-empty duplicate work** with `pica_works_delete`.\n\n**Why relink the release tracks before the delete, not after.** Per the deletion\ncontract (`.claude/rules/business-logic.md`), deleting a work auto-detaches its\n`release_tracks` membership by nulling `release_tracks.work_id`. for a track that\nalso carries a recording, nulling the work id is harmless — it keeps its\nrecording. but a **work-only** track (no recording) cannot have its `work_id`\nnulled without violating the CHECK, so the deletion policy **deletes that whole\ntrack** instead (its `deleteWhenOrphanColumns` is `[\"recording_id\"]`). that would\nsilently drop the track from its release. and if the duplicate work still has\nrecordings attached, the delete **archives** the work rather than removing it —\nso you must repoint the recordings (step 2) to actually empty it. relinking the\ntracks first means every track keeps a valid work reference and the final delete\nis a clean no-dependents removal.\n\n## what not to do\n\n- don't mint a new work for an instrumental, acoustic, live_performance, demo, edit, or\n backing_track version. that is a recording under the existing work.\n- don't put an ISWC on a recording or a UPC on a work. facts live at their grain.\n- don't mint a new work for a remix unless it added writers. a remix with the\n same writers is a recording under the original, with the remixer credited on\n the recording — never as a writer.\n- don't merge a remix work into its original with `pica_merge_duplicates` —\n move its recordings (`pica_recordings_update`) or, if it added writers, link\n it (`original_work_id`).\n- don't delete a duplicate work before repointing its recordings and relinking\n its release tracks. order matters; a premature delete orphans or destroys\n tracks.\n- don't re-enter writer splits per variant. composition splits live once, on the\n work; recordings inherit the composition.\n\n## follow-on skills\n\n- `set-recording-splits` — once variants are correctly modelled as recordings,\n set the per-recording master ownership.\n- `catalog-audit` — to sweep the whole catalog for remaining duplicate-title\n works and blank ISWCs.\n- `register-my-works` — registered works pair with cleanly-modelled recordings.\n",
|
|
31
31
|
},
|
|
32
32
|
"clean-up-artists": {
|
|
33
33
|
name: "clean-up-artists",
|
|
@@ -100,7 +100,7 @@ export const SKILLS = {
|
|
|
100
100
|
audience: "artist / session musician / MD / engineer / tour crew",
|
|
101
101
|
tools_required: ["pica_log_show", "pica_shows_query", "pica_setlist_match", "pica_people_query", "pica_collaborators_invite"],
|
|
102
102
|
output: "A show (or tour credit) with its setlist matched to works where they exist, plus optional contributors awaiting attestation.",
|
|
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## 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-
|
|
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
105
|
"prepare-for-sync": {
|
|
106
106
|
name: "prepare-for-sync",
|
|
@@ -138,7 +138,7 @@ export const SKILLS = {
|
|
|
138
138
|
audience: "producer / artist / label / manager",
|
|
139
139
|
tools_required: ["pica_recording_splits_list", "pica_recording_splits_create", "pica_recording_splits_verify", "pica_recordings_query", "pica_people_query", "pica_collaborators_invite", "pica_split_sheet_generate", "pica_split_sheet_send"],
|
|
140
140
|
output: "Confirmed + verified recording_splits rows totalling 100%, with the option to generate and send a split sheet PDF for signatures.",
|
|
141
|
-
body: "# set-recording-splits\n\nHelp the user set master ownership splits on a recording. These are master-side royalty shares — distinct from publishing splits, which are credits on a work. Splits flow into payments, so the skill prioritises accuracy over speed: propose → dry-run → confirm → commit → verify.\n\n## Pre-flight\n\nRead `pica://schemas/recording-splits-required` before any write. The canonical shape is `recording_id`, `person_id`, `percentage`, `split_type`, `role`. **Active shares for one `split_type` + territory may not pass 100%, and a person holds at most one share there** — the database refuses anything else (`RECORDING_SPLIT_TOTAL_EXCEEDED` / `RECORDING_SPLIT_EXISTS`).\n\n## Step 1 — Pick the recording\n\nIf the user names a recording or gives an ID, use it. Otherwise, call `pica_recordings_query` and let the user pick from recent recordings.\n\n## Step 2 — Show current state\n\nCall `pica_recording_splits_list` for the recording. Three states:\n\n- **Empty** — no splits set yet. Proceed to step 3.\n- **Partial** — some splits exist but don't total 100%. Ask the user whether they want to add the missing shares.\n- **Complete** — splits total 100%. Ask whether the user wants to verify (mark agreed-upon) what's there.\n\n`pica_recording_splits_create` only adds. It
|
|
141
|
+
body: "# set-recording-splits\n\nHelp the user set master ownership splits on a recording. These are master-side royalty shares — distinct from publishing splits, which are credits on a work. Splits flow into payments, so the skill prioritises accuracy over speed: propose → dry-run → confirm → commit → verify.\n\n## Pre-flight\n\nRead `pica://schemas/recording-splits-required` before any write. The canonical shape is `recording_id`, `person_id`, `percentage`, `split_type`, `role`. **Active shares for one `split_type` + territory may not pass 100%, and a person holds at most one share there** — the database refuses anything else (`RECORDING_SPLIT_TOTAL_EXCEEDED` / `RECORDING_SPLIT_EXISTS`).\n\n## Step 1 — Pick the recording\n\nIf the user names a recording or gives an ID, use it. Otherwise, call `pica_recordings_query` and let the user pick from recent recordings.\n\n## Step 2 — Show current state\n\nCall `pica_recording_splits_list` for the recording. Three states:\n\n- **Empty** — no splits set yet. Proceed to step 3.\n- **Partial** — some splits exist but don't total 100%. Ask the user whether they want to add the missing shares.\n- **Complete** — splits total 100%. Ask whether the user wants to verify (mark agreed-upon) what's there.\n\n`pica_recording_splits_create` only adds. It refuses a second share for the same person with `RECORDING_SPLIT_EXISTS`, and a share that would take the active total past 100% with `RECORDING_SPLIT_TOTAL_EXCEEDED`. When a recorded share is wrong — a holder-less \"unknown\" row, the wrong percentage or role — fix that row instead of adding around it: `pica_recording_splits_update` (recording_id + split_id + what changes; `person_id` relinks an unknown holder) or, if it should stop counting, `pica_recording_splits_end` (keeps the row as history). Confirm the change with the user first, as in step 5. If the result says `verification_cleared: true`, tell the user the holder's confirmation was cleared and they need to confirm again.\n\nAlways summarise the current state plainly: \"right now this recording has [N] splits totalling [X]%, with [A] holding [P]%...\"\n\n## Step 3 — Capture proposed splits\n\nFor each split row, capture:\n\n- **Who owns this share?** — `person_id` from `pica_people_query`. If the person isn't on PICA yet, offer `pica_collaborators_invite` to bring them in before writing the split.\n- **What percentage?** — together with the shares already recorded, at most 100% for that `split_type` + territory.\n- **What kind?** — `split_type` is one of `master`, `mechanical`, `performance`, `sync` (master ownership is `master`); `role` is one of `owner`, `performer`, `producer`, `engineer`, `mixer`, `masterer`, `label`, `other`.\n\nSum the percentages out loud as you go. If they're not totalling 100% when the user finishes describing them, stop and ask them to adjust before proceeding.\n\n## Step 4 — Dry-run preview\n\nCall `pica_recording_splits_create` with `dry_run: true` for each proposed row. It writes nothing and returns the row that would land, the shares already recorded (`existing_shares`, `active_total`) and `likely_refusal`. Surface that to the user.\n\n- **If `likely_refusal` is set, stop** and tell the user what it says — the write would be refused.\n- **If `existing_shares_checked` is false**, the preview could not read the recorded shares and predicts nothing — say so; do not present it as a clean preview.\n- Each dry run checks one row against what is already recorded, not against the other rows you are proposing — sum the proposed rows yourself. **If they would pass 100% with what is recorded, stop.** Do not proceed to commit.\n\n## Step 5 — Explicit confirmation\n\nSay something like:\n\n> \"I'm about to set [N] splits on this recording totalling 100%:\n> - [A] — [P]% ([type])\n> - [B] — [Q]% ([type])\n> Reply 'yes' to commit, or tell me what to change.\"\n\nWait for the user's explicit \"yes\" (or equivalent). Don't write on ambiguous signals.\n\n## Step 6 — Commit\n\nFor each split, call `pica_recording_splits_create` (this time without `dry_run`). Report each row back as it lands. If any write fails, stop the loop — don't partially commit.\n\n## Step 7 — Verify\n\nVerification marks a split as agreed-upon — a separate state from \"exists in the database.\" It records WHICH PERSON agreed, so it is the split holder's own act: `pica_recording_splits_verify` refuses an agent (`VERIFICATION_REQUIRES_HUMAN_SESSION`) and you cannot do it for them. Tell each holder where to do it: signed in, \"confirm my share\" under ownership splits on the recording's page, `/inspect/recordings/<recording_id>#ownership-splits`. If a holder is someone other than the user, `pica_notify_person` with the `recording_id` sends them a link to that page.\n\n## Step 8 — Offer next moves\n\n- \"Want me to generate a split sheet PDF for signatures?\" → `pica_split_sheet_generate`\n- \"Want me to send the split sheet to the parties?\" → `pica_split_sheet_send`\n- \"Want me to set splits on another recording?\"\n\n## What not to do\n\n- Don't write splits without an explicit \"yes\" from the user\n- Don't proceed if the totals don't equal 100% — re-prompt instead\n- Don't skip telling holders how to verify, and don't retry `pica_recording_splits_verify` after it refuses. Verification is a deliberate moment for the holder, not for you.\n- Don't speculate about typical splits by genre or scene — if the user doesn't know what % someone deserves, that's a business conversation outside this skill\n- Don't conflate with writer splits — those are credits on a work, set via `pica_credits_update`. Different table, different semantics.\n\n## Follow-on skills\n\n- `close-the-loop` — recording splits are usually one gap among several on a work; close-the-loop fits the others\n- `register-my-works` — registered works pair with recordings that have clear ownership chains\n- `audit-credits` — splits health-check across the whole catalog\n",
|
|
142
142
|
},
|
|
143
143
|
"set-up-workspace": {
|
|
144
144
|
name: "set-up-workspace",
|
|
@@ -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,EAAC,wBAAwB,EAAC,gBAAgB,EAAC,mBAAmB,EAAC,mBAAmB,CAAC;QAChH,QAAQ,EAAE,0BAA0B;QACpC,cAAc,EAAE,CAAC,yBAAyB,EAAC,oBAAoB,EAAC,kBAAkB,EAAC,oBAAoB,EAAC,sBAAsB,CAAC;QAC/H,MAAM,EAAE,iLAAiL;QACzL,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"skills.generated.js","sourceRoot":"","s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,6PAA6P;QAC1Q,QAAQ,EAAE,CAAC,qBAAqB,EAAC,wBAAwB,EAAC,yBAAyB,EAAC,2CAA2C,EAAC,oBAAoB,EAAC,wBAAwB,EAAC,mBAAmB,CAAC;QAClM,QAAQ,EAAE,mEAAmE;QAC7E,cAAc,EAAE,CAAC,2BAA2B,EAAC,mBAAmB,EAAC,kCAAkC,EAAC,yBAAyB,EAAC,2BAA2B,EAAC,qBAAqB,EAAC,8BAA8B,EAAC,0BAA0B,EAAC,6BAA6B,CAAC;QACxQ,MAAM,EAAE,yQAAyQ;QACjR,IAAI,EAAE,4qPAA4qP;KACnrP;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,kBAAkB,EAAC,wBAAwB,EAAC,mBAAmB,EAAC,sBAAsB,EAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* `extractApiErrorBody` (:1639), and inline `replace`/`match` in
|
|
9
9
|
* `duplicates.ts` and `integrity.ts`. Each still misses the `API 404 not
|
|
10
10
|
* found:` prefix and the nested body shape described below. Migrating them is
|
|
11
|
-
* outstanding;
|
|
11
|
+
* outstanding; `credits.ts` and `import.ts` read this one.
|
|
12
12
|
*
|
|
13
13
|
* The SDK's `ApiError` does not carry a structured body — it concatenates the
|
|
14
14
|
* response text onto the message. Those extractors disagreed on both halves of
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
* the third; that is the shape the recording-credit 404 arrives in.
|
|
21
21
|
* - **The body.** Routes emit BOTH a flat shape
|
|
22
22
|
* (`{success, error: "…", code: "VALIDATION_ERROR", details: […]}`) and a
|
|
23
|
-
* nested one (`{success, error: {code, message, details}}`)
|
|
23
|
+
* nested one (`{success, error: {code, message, details}}`), and typed
|
|
24
|
+
* errors (`typedErrorResponse`, lib/api/typed-error-response.ts, used by
|
|
25
|
+
* both `handleRouteError` and `withDualAuth`) add a third
|
|
26
|
+
* (`{error: "CODE", message}`, no `code` key). A parser that
|
|
24
27
|
* reads `parsed.code` sees `undefined` for every nested body, which is
|
|
25
28
|
* what pushed callers back onto regexing the English prose — and prose is
|
|
26
29
|
* ambiguous between siblings ("recording not found" vs "person not
|
|
@@ -33,12 +36,21 @@
|
|
|
33
36
|
export interface ApiErrorBody {
|
|
34
37
|
/** HTTP status, when the message prefix carried one. */
|
|
35
38
|
status?: number;
|
|
36
|
-
/** The route's machine code, from
|
|
39
|
+
/** The route's machine code, from any of the three body shapes. */
|
|
37
40
|
code?: string;
|
|
38
|
-
/** The route's human message, from
|
|
41
|
+
/** The route's human message, from any of the three body shapes. */
|
|
39
42
|
message?: string;
|
|
40
43
|
/** Whatever the route put in `details` — shape varies by route. */
|
|
41
44
|
details?: unknown;
|
|
45
|
+
/**
|
|
46
|
+
* Top-level keys the route set BESIDE the error — `remedy` / `reason`
|
|
47
|
+
* (withDualAuth's INSUFFICIENT_SCOPE), `person_ids`
|
|
48
|
+
* (PERSON_ORG_MISMATCH), `next_tool` / `recording_count`
|
|
49
|
+
* (RECORDING_TARGET_REQUIRED). Everything except `success`, `error`,
|
|
50
|
+
* `code`, `message` and `details`; absent when there are none. Present
|
|
51
|
+
* only when the body parsed whole — a salvaged code carries no siblings.
|
|
52
|
+
*/
|
|
53
|
+
extra?: Record<string, unknown>;
|
|
42
54
|
}
|
|
43
55
|
/**
|
|
44
56
|
* Recover `{status, code, message, details}` from an SDK error (or a raw
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-error-body.d.ts","sourceRoot":"","sources":["../../src/tools/api-error-body.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"api-error-body.d.ts","sourceRoot":"","sources":["../../src/tools/api-error-body.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAqCD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,YAAY,CAkG5D"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
// Copyright (c) 2025-2026 Withpica Ltd. All rights reserved.
|
|
2
|
+
const NON_EXTRA_KEYS = new Set([
|
|
3
|
+
"success",
|
|
4
|
+
"error",
|
|
5
|
+
"code",
|
|
6
|
+
"message",
|
|
7
|
+
"details",
|
|
8
|
+
]);
|
|
9
|
+
function siblingFields(body) {
|
|
10
|
+
const extra = {};
|
|
11
|
+
for (const [key, value] of Object.entries(body)) {
|
|
12
|
+
if (!NON_EXTRA_KEYS.has(key))
|
|
13
|
+
extra[key] = value;
|
|
14
|
+
}
|
|
15
|
+
return Object.keys(extra).length > 0 ? { extra } : {};
|
|
16
|
+
}
|
|
2
17
|
/** Prefixes the SDK uses before the response body. Each captures the status. */
|
|
3
18
|
const PREFIXES = [
|
|
4
19
|
/^API request failed:\s*(\d{3})\s*/i,
|
|
@@ -56,7 +71,9 @@ export function parseApiErrorBody(err) {
|
|
|
56
71
|
// to its generic branch, reverting the fix this module exists for. The
|
|
57
72
|
// code is the one field worth recovering from a mangled body, and it is
|
|
58
73
|
// always well-formed even when the object is not.
|
|
59
|
-
|
|
74
|
+
// A typed-error body carries its code as `"error"` rather than `"code"`.
|
|
75
|
+
const salvaged = jsonText.match(/"code"\s*:\s*"([A-Z][A-Z0-9_]*)"/) ??
|
|
76
|
+
jsonText.match(/"error"\s*:\s*"([A-Z][A-Z0-9_]*)"/);
|
|
60
77
|
return {
|
|
61
78
|
...(status !== undefined ? { status } : {}),
|
|
62
79
|
...(salvaged ? { code: salvaged[1] } : {}),
|
|
@@ -75,6 +92,27 @@ export function parseApiErrorBody(err) {
|
|
|
75
92
|
? { message: asString(nested.message) }
|
|
76
93
|
: {}),
|
|
77
94
|
...(nested.details !== undefined ? { details: nested.details } : {}),
|
|
95
|
+
...siblingFields(body),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
// Typed-error shape: `typedErrorResponse` (lib/api/typed-error-response.ts,
|
|
99
|
+
// called by both `handleRouteError` and `withDualAuth`) answers every
|
|
100
|
+
// MCPRecoverableError as `{error: <CODE>, message: <prose>}` — the
|
|
101
|
+
// code IS `error` and there is no `code` key. Read by the flat branch below,
|
|
102
|
+
// the code came back as the message and `code` as undefined, so no caller
|
|
103
|
+
// could branch on it.
|
|
104
|
+
const flatError = asString(body.error);
|
|
105
|
+
const flatMessage = asString(body.message);
|
|
106
|
+
if (body.code === undefined &&
|
|
107
|
+
flatError !== undefined &&
|
|
108
|
+
/^[A-Z][A-Z0-9_]*$/.test(flatError) &&
|
|
109
|
+
flatMessage !== undefined) {
|
|
110
|
+
return {
|
|
111
|
+
...(status !== undefined ? { status } : {}),
|
|
112
|
+
code: flatError,
|
|
113
|
+
message: flatMessage,
|
|
114
|
+
...(body.details !== undefined ? { details: body.details } : {}),
|
|
115
|
+
...siblingFields(body),
|
|
78
116
|
};
|
|
79
117
|
}
|
|
80
118
|
// Flat shape: `code` sits beside a string `error`.
|
|
@@ -83,6 +121,7 @@ export function parseApiErrorBody(err) {
|
|
|
83
121
|
...(asString(body.code) ? { code: asString(body.code) } : {}),
|
|
84
122
|
...(asString(body.error) ? { message: asString(body.error) } : {}),
|
|
85
123
|
...(body.details !== undefined ? { details: body.details } : {}),
|
|
124
|
+
...siblingFields(body),
|
|
86
125
|
};
|
|
87
126
|
}
|
|
88
127
|
//# sourceMappingURL=api-error-body.js.map
|