@clien-ai/mcp 0.8.1 → 0.9.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.
@@ -1 +1 @@
1
- {"version":3,"file":"interview.js","sourceRoot":"","sources":["../../src/tools/interview.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EACL,OAAO,EACP,oBAAoB,GAGrB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAE5E,MAAM,0BAA0B,GAAG,MAAM,CAAA;AAEzC,qFAAqF;AACrF,MAAM,WAAW,GAAG,MAAM,CAAA;AAE1B,6EAA6E;AAC7E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,SAAS,EAAE,YAAY;IACvB,SAAS,EAAE,YAAY;IACvB,WAAW,EAAE,cAAc;CACnB,CAAA;AAEV,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;SAC3D,QAAQ,CACP,kFAAkF;QAChF,uFAAuF;QACvF,sFAAsF;QACtF,kFAAkF;QAClF,4DAA4D,CAC/D;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,2FAA2F;QACzF,2EAA2E,CAC9E;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,IAAI,EAAE;SACN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chema('interviews');
126
126
  export const LIST_COMPETITORS_OUTPUT_SCHEMA = listSchema('competitors');
127
127
  export const LIST_COMMUNITY_SIGNALS_OUTPUT_SCHEMA = listSchema('communitySignals');
128
+ /**
129
+ * `get_market` → `{ market }` (FUL-511).
130
+ *
131
+ * `market` is `required` because the handler always sets the key — that PRESENCE
132
+ * is load-bearing, not bookkeeping: it is what lets a structured consumer tell
133
+ * "this project has no market snapshot" (`market: null`) from "the tool did not
134
+ * answer". The handler throws rather than emit the key on an unreadable body.
135
+ *
136
+ * Its VALUE is unconstrained for the usual reason plus one specific to this tool:
137
+ * `null` is a legitimate, meaningful answer here, so `type: 'object'` would make
138
+ * the honest empty state fail a strict client's validation.
139
+ */
140
+ export const GET_MARKET_OUTPUT_SCHEMA = objectSchema({ market: ANYTHING }, ['market']);
141
+ /**
142
+ * `list_interview_scripts` → `{ interviewScripts, sourceRun }` (FUL-514).
143
+ *
144
+ * `interviewScripts` is `required` because the handler always sets the key — that
145
+ * PRESENCE is load-bearing, not bookkeeping: it is what lets a structured consumer
146
+ * tell "no run has written scripts" (`null`) from "the tool did not answer". The
147
+ * handler throws rather than emit the key on an unreadable body.
148
+ *
149
+ * Its VALUE is unconstrained: `null` is a legitimate answer, so `type: 'array'`
150
+ * would make the honest empty state fail a strict client. `sourceRun` is NOT
151
+ * required — it is `null` on the no-run branch and, being backend-sourced, must not
152
+ * turn version skew into a hard failure.
153
+ */
154
+ export const LIST_INTERVIEW_SCRIPTS_OUTPUT_SCHEMA = objectSchema({ interviewScripts: ANYTHING, sourceRun: ANYTHING }, ['interviewScripts']);
128
155
  /** `list_reports` returns no pagination envelope — the endpoint takes `limit` only. */
129
156
  export const LIST_REPORTS_OUTPUT_SCHEMA = listSchema('jobs', false);
130
157
  //# sourceMappingURL=output-schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"output-schemas.js","sourceRoot":"","sources":["../../src/tools/output-schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;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/C,CAAC,WAAW,CAAC,CACd,CAAA;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAAC,UAAU,CAAC,CAAA;AACjE,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAAC,UAAU,CAAC,CAAA;AACjE,MAAM,CAAC,MAAM,6BAA6B,GAAG,UAAU,CAAC,YAAY,CAAC,CAAA;AACrE,MAAM,CAAC,MAAM,8BAA8B,GAAG,UAAU,CAAC,aAAa,CAAC,CAAA;AACvE,MAAM,CAAC,MAAM,oCAAoC,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAA;AAClF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEtF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,YAAY,CAC9D,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,EACnD,CAAC,kBAAkB,CAAC,CACrB,CAAA;AAED,uFAAuF;AACvF,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA"}
@@ -50,8 +50,11 @@
50
50
  * trajectory — persisted to the structured `personas.seniority` /
51
51
  * `personas.career_path` columns (the demographic shape of the role). Unlike
52
52
  * endowment/scope (folded into `background`), these are NOT echoed in the
53
- * returned persona object — they are a write-only persistence target that
54
- * M5c later reads back to calibrate against aggregate people distributions.
53
+ * returned persona object — this call only writes them, and M5c later reads
54
+ * them back to calibrate against aggregate people distributions. ⚠️ The
55
+ * COLUMNS are not write-only: FUL-488 lets the user overwrite both in the web
56
+ * app, so what this generation wrote is not necessarily what a later
57
+ * `get_persona` reads back (FUL-540).
55
58
  * - `enrich_persona` (FUL-77) — AI-fills the blank (or explicitly refreshed)
56
59
  * scalar fields of an EXISTING persona over `POST /api/personas/ai-enrich`.
57
60
  * Debits one `enrich_persona` credit, refunded if the enrichment fails; a
@@ -80,6 +83,21 @@ const DESCRIPTION_MAX = 5000;
80
83
  const COMPANY_SIZE_MAX = 100;
81
84
  const INDUSTRY_MAX = 100;
82
85
  const LOCATION_MAX = 200;
86
+ /**
87
+ * FUL-545 identity-prior caps. Hand-copied from `PERSONA_PROFILE_FIELD_RULES`
88
+ * (app/lib/personas/persona-profile-fields.ts) — the rules the web profile
89
+ * editor validates against AND the ones the identity-priors route reads, so
90
+ * the two edit paths really do advertise one limit.
91
+ *
92
+ * That sync is ENFORCED, not trusted:
93
+ * `__tests__/integration/mcp/persona-field-cap-coupling.test.ts` pins both
94
+ * numbers and the route's derivation of them. ⚠️ The seven `update_persona`
95
+ * caps above are NOT in that guard and are NOT copies of these rules — they
96
+ * mirror the seven-key zod in app/api/personas/[personaId]/route.ts, which is
97
+ * tighter than the web editor (`COMPANY_SIZE_MAX` 100 vs the rules' 300).
98
+ */
99
+ const SENIORITY_MAX = 300;
100
+ const CAREER_PATH_MAX = 300;
83
101
  /** FUL-233: legacy camelCase spellings `create_persona` still accepts. */
84
102
  export const CREATE_PERSONA_ALIASES = {
85
103
  projectId: 'project_id',
@@ -188,8 +206,10 @@ function requireId(value, canonical, alias) {
188
206
  }
189
207
  /**
190
208
  * Shared non-ok handling: 401 drops the cached session (so the next tool call
191
- * rebuilds from disk) and surfaces a re-auth message; 403 `PERSONA_LOCKED`
192
- * surfaces an upgrade message (a locked persona/project is read-only); 404 means
209
+ * rebuilds from disk) and surfaces a re-auth message; 403 `PERSONA_LOCKED` and
210
+ * `PROJECT_LOCKED` each surface an upgrade message naming the object that is
211
+ * actually locked (the project wording also covers create, where no persona
212
+ * exists to "edit"); 404 means
193
213
  * the caller does not own the target (the default message points at the project;
194
214
  * pass `notFound` for a persona-scoped 404); 400 surfaces the server's
195
215
  * validation detail; everything else surfaces a generic HTTP error.
@@ -212,8 +232,14 @@ async function throwForResponse(response, deps, action, options) {
212
232
  catch {
213
233
  // non-JSON body — fall back to the truncated raw text below.
214
234
  }
215
- if (response.status === 403 && parsed?.code === 'PERSONA_LOCKED') {
216
- throw new PersonaToolError(`Could not ${action} — it is locked due to subscription limits. Upgrade to Pro to edit it.`);
235
+ if (response.status === 403 &&
236
+ (parsed?.code === 'PERSONA_LOCKED' || parsed?.code === 'PROJECT_LOCKED')) {
237
+ // Name the object that is actually locked. PROJECT_LOCKED can reach a
238
+ // CREATE call, where "edit it" describes a persona that was never created
239
+ // and sends the agent looking for a row that does not exist.
240
+ throw new PersonaToolError(parsed.code === 'PROJECT_LOCKED'
241
+ ? `Could not ${action} — the project is locked due to subscription limits and is read-only. Upgrade to Pro to change it.`
242
+ : `Could not ${action} — it is locked due to subscription limits. Upgrade to Pro to edit it.`);
217
243
  }
218
244
  if (response.status === 404) {
219
245
  throw new PersonaToolError(options?.notFound ??
@@ -484,15 +510,17 @@ export async function generatePersona(input, deps) {
484
510
  const insightsNote = ephemeral
485
511
  ? ' Marked ephemeral — excluded from project insights.'
486
512
  : '';
487
- // FUL-96: surface how many real user-voice receipts grounded the persona. An
488
- // empty/absent list means retrieval found nothing (or grounding was disabled) —
489
- // the persona is still valid, just invented-from-brief.
490
- const sources = Array.isArray(persona.sources) ? persona.sources : [];
513
+ // FUL-96/FUL-425: only a successfully returned array can answer grounding.
514
+ // An absent field can be transport skew or a failed/not-loaded read, so it is
515
+ // UNKNOWN rather than an invented count of zero.
516
+ const sources = Array.isArray(persona.sources) ? persona.sources : undefined;
491
517
  const groundingNote = groundInEvidence === false
492
518
  ? ' Grounding was disabled.'
493
- : sources.length > 0
494
- ? ` Grounded in ${sources.length} real source${sources.length === 1 ? '' : 's'} (user voice from forums + Stack Exchange).`
495
- : ' No matching real-world evidence was found, so it was generated from the brief.';
519
+ : sources === undefined
520
+ ? ' Grounding is unknown because the source receipts were not returned.'
521
+ : sources.length > 0
522
+ ? ` Grounded in ${sources.length} real source${sources.length === 1 ? '' : 's'} (user voice from forums + Stack Exchange).`
523
+ : ' No matching real-world evidence was found, so it was generated from the brief.';
496
524
  // FUL-243: render the GENERATED profile, not just a confirmation line. This
497
525
  // tool's whole output is content the caller did not supply — the model wrote
498
526
  // the background, company, industry, size and location — so a one-line receipt
@@ -702,13 +730,17 @@ export async function enrichPersona(input, deps) {
702
730
  // are read-only over the existing bearer endpoints — zero credit cost, zero side
703
731
  // effects — mirroring `list_reports`/`get_report`.
704
732
  //
705
- // NOTE: this is the entity-discovery surface, NOT the grounding surface — with
706
- // one exception. FUL-208: `toPersona` now maps the M5b identity columns, so both
707
- // tools return FLAT `persona.seniority` / `persona.careerPath` strings when the
708
- // run populated them (absent otherwise; read-only — see `update_persona`). Forum
709
- // grounding (`sources[]`) and the report-level `identityProvenance` are still
710
- // `report_data.personas[]` only, read via `get_report` — and the shape differs
711
- // there: the same two leaf names are NESTED under `identityPriors`.
733
+ // NOTE: this is the entity-discovery surface, NOT the grounding surface — and
734
+ // since FUL-540 there is no exception to that. FUL-208: `toPersona` maps the M5b
735
+ // identity columns, so both tools return FLAT `persona.seniority` /
736
+ // `persona.careerPath` strings when the row has them (absent otherwise; written
737
+ // through `update_persona_identity_priors`, not `update_persona`). Those were
738
+ // research-only when FUL-208 shipped; FUL-488 made them web-editable and FUL-545
739
+ // made them agent-writable, and nothing on the entity records which of the three
740
+ // a given value is, so they are profile data here like every other field. Forum grounding (`sources[]`), the report-level `identityProvenance`,
741
+ // and the run's own un-editable copy of the priors are all `report_data.personas[]`
742
+ // only, read via `get_report` — and the shape differs there: the same two leaf
743
+ // names are NESTED under `identityPriors`.
712
744
  const LIST_LIMIT_MAX = 100;
713
745
  const LIST_LIMIT_DEFAULT = 20;
714
746
  export const ListPersonasInputSchema = z.object({
@@ -747,9 +779,14 @@ export const GetPersonaInputSchema = z.object({
747
779
  'the id printed by `create_persona` / `generate_persona`. Rejected with a ' +
748
780
  '404 if you do not own it. ' +
749
781
  'Returns the persona ENTITY (name, role, company, industry, etc.) for ' +
750
- 'discovery/correction, including read-only `seniority` / `careerPath` when ' +
751
- 'the persona has identity grounding. Forum sources and `identityProvenance` ' +
752
- 'live in `report_data`, read them via `get_report`.'),
782
+ 'discovery/correction, including `seniority` / `careerPath` when the persona ' +
783
+ 'has them. Those two are user-editable in the web app and writable through ' +
784
+ '`update_persona_identity_priors`, and this response does NOT record whether a ' +
785
+ 'given value came from a research run, from an agent, or from a person typing ' +
786
+ 'it — so do not read them as ' +
787
+ 'a research signal. The run-written copy, where a run produced one, is at ' +
788
+ '`report_data.personas[].identityPriors`; forum sources and `identityProvenance` ' +
789
+ 'live there too. Read all three via `get_report`.'),
753
790
  });
754
791
  /**
755
792
  * Render a persona's FULL profile into readable text (FUL-243).
@@ -774,11 +811,17 @@ export const GetPersonaInputSchema = z.object({
774
811
  * class this change exists to fix. (FUL-242 removes the field outright.)
775
812
  *
776
813
  * The closing caveat mirrors `list_competitors`: it makes a reader UNDER-trust
777
- * the record. Almost nothing here is evidence — with one exception since FUL-208.
778
- * `seniority` / `careerPath` ARE identity grounding and are rendered above, but
779
- * they are aggregate-calibrated rather than span-receipted, so the caveat names
780
- * them explicitly as un-citable instead of claiming the record carries no
781
- * grounding at all. Everything else still lives on `report_data`.
814
+ * the record. NOTHING here is evidence. FUL-208 carved out one exception —
815
+ * `seniority` / `careerPath` were research output, so the caveat named them as
816
+ * grounding that merely could not be cited. FUL-540 removes that carve-out:
817
+ * FUL-488 made both web-editable, so a rendered value may be a person's typing,
818
+ * and FUL-545 added a third origin by making both writable over this server —
819
+ * the entity carries no marker for any of them (see `interface Persona` for why
820
+ * `authorship` cannot stand in). The caveat now says that outright rather than
821
+ * going silent on it — an agent that is told nothing will fall back on the
822
+ * fields' research-sounding names, which is the same wrong conclusion the old
823
+ * text produced. It points at `report_data.personas[].identityPriors` for the
824
+ * value that IS run-written, as everything else on `report_data` already was.
782
825
  */
783
826
  export function renderPersonaProfile(persona, fallbackId) {
784
827
  // FUL-263: every entity value below now goes through `safeInline`. This renderer
@@ -834,10 +877,24 @@ export function renderPersonaProfile(persona, fallbackId) {
834
877
  // genuinely different answers to "can I edit this?" — and an agent that assumes
835
878
  // editable will meet a 403 from `update_persona`.
836
879
  const provenance = safeInline(persona.source, 60);
880
+ const authorship = persona.authorship === 'manual' ||
881
+ persona.authorship === 'ai_generated' ||
882
+ persona.authorship === 'unknown'
883
+ ? persona.authorship
884
+ : 'unknown';
837
885
  const enhancementStatus = safeInline(persona.enhancementStatus, 60);
838
886
  const validationJobId = safeId(persona.validationJobId);
839
887
  const stateBits = [
840
888
  provenance && `Source: ${provenance}`,
889
+ // Authorship answers a DIFFERENT question from `Source` (which channel the
890
+ // write came from) and from grounding (the real `persona_sources` count).
891
+ // Spell each value out: a bare `unknown` reads as a missing field rather
892
+ // than as the positive statement that authorship was never established.
893
+ authorship === 'manual'
894
+ ? 'Authorship: manual — a person wrote this profile'
895
+ : authorship === 'ai_generated'
896
+ ? 'Authorship: ai_generated — AI-created synthetic persona, not a real person'
897
+ : 'Authorship: unknown — authorship was never established; this is NOT a claim that it is either human-written or AI-generated',
841
898
  enhancementStatus && `Enhancement: ${enhancementStatus}`,
842
899
  persona.isLocked === true
843
900
  ? 'LOCKED — read-only (subscription limit); `update_persona` and `enrich_persona` will be refused'
@@ -849,10 +906,14 @@ export function renderPersonaProfile(persona, fallbackId) {
849
906
  if (stateBits.length > 0)
850
907
  lines.push(stateBits.join(' · '));
851
908
  // FUL-208 identity priors, rendered as their OWN line rather than folded into
852
- // the attributes above. They differ in KIND from `industry`/`location`: those
853
- // are plain profile fields, whereas these are agent-written and calibrated
854
- // against an aggregate people distribution. Mixing them in would flatten that
855
- // distinction exactly where the closing caveat has to speak about it precisely.
909
+ // the attributes above. ⚠️ NOT because they are better-sourced — FUL-540: since
910
+ // FUL-488 a value here may equally be one the user typed, and since FUL-545 one
911
+ // an agent wrote through `update_persona_identity_priors`. This comment used
912
+ // to call them "agent-written", which the closing caveat now contradicts in the
913
+ // same function. They keep their own line because a run-derived one is
914
+ // calibrated against an aggregate people distribution rather than observed, so
915
+ // the caveat has to qualify these two by name; folding them in beside
916
+ // `industry`/`location` would leave it nothing to point at.
856
917
  // Rendered here — not left to `_meta` — because `_meta` is the channel Claude
857
918
  // Code drops, which is the whole reason this renderer exists.
858
919
  const seniority = safeInline(persona.seniority, 80);
@@ -946,11 +1007,17 @@ export function renderPersonaProfile(persona, fallbackId) {
946
1007
  : 'Forum receipts (`sources[]`) and `identityProvenance` are NOT returned by this read — ' +
947
1008
  'their absence here means "not returned", never "this persona is ungrounded". They live ' +
948
1009
  'on `report_data.personas[]`; read them with `get_report`.';
949
- lines.push('\nTRUST: this is the persona ENTITY. Seniority and career path are the ONE piece of ' +
950
- 'grounding it carries, and they are aggregate-calibrated, never span-receipted — there is ' +
951
- 'no source to follow for them, so do not cite them as evidence; `get_report` nests them ' +
952
- `under \`identityPriors\`. ${receiptsClause} Treat every other field above as unverified ` +
953
- 'profile data until checked there; an absent field here means "not returned", not "empty".');
1010
+ lines.push('\nTRUST: this is the persona ENTITY, and no field above is evidence. Seniority and career ' +
1011
+ 'path are NOT an exception: a value there may have come from a research run, from the ' +
1012
+ 'user editing this persona in the web app, or from an agent calling ' +
1013
+ '`update_persona_identity_priors`, and this response does not record which — so ' +
1014
+ 'do not treat them as a research signal or cite them as evidence. Even the run-written ' +
1015
+ 'ones are aggregate-calibrated, never span-receipted, so there is no source to follow for ' +
1016
+ 'them either. To read what a run actually produced, use `get_report`: where a run produced ' +
1017
+ 'any, ' +
1018
+ `\`report_data.personas[].identityPriors\` holds them, written by the run and out of reach of editing. ${receiptsClause} ` +
1019
+ 'Treat every other field above as unverified profile data until checked there; an absent ' +
1020
+ 'field here means "not returned", not "empty".');
954
1021
  return lines.join('\n');
955
1022
  }
956
1023
  export async function listPersonas(input, deps) {
@@ -1061,8 +1128,18 @@ export async function getPersona(input, deps) {
1061
1128
  // Wraps the shipped `PATCH /api/personas/[personaId]` (explicit patch, bearer,
1062
1129
  // FREE/unmetered) — NOT `ai-enrich` (which is AI-filled + debits a credit). This
1063
1130
  // completes the read → correct → interview loop for a web-created persona without
1064
- // leaving for the web UI. Identity priors (seniority/careerPath) are M5c-managed
1065
- // and NOT patchable here.
1131
+ // leaving for the web UI. Identity priors (seniority/careerPath) are not among
1132
+ // this tool's fields: `UpdatePersonaInputSchema` below declares neither, and the
1133
+ // REST patch route it wraps (`app/api/personas/[personaId]/route.ts`) validates
1134
+ // against a seven-key schema with no `.passthrough()`, so a smuggled key is
1135
+ // dropped before it reaches SQL. (FUL-246's `?: never` brand is the APP-side
1136
+ // counterpart, on `DetailedPersonaInput` / `updatePersona` in
1137
+ // `app/lib/types/data-types.ts` and `app/lib/db/supabase-db.ts` — not on
1138
+ // anything in this package.)
1139
+ // ⚠️ All of that is about WHICH TOOL patches them, not about the values:
1140
+ // FUL-488 made both web-editable and FUL-545 gave this server
1141
+ // `update_persona_identity_priors`, so "not patchable here" must never be
1142
+ // relayed to an agent as "immutable" or "research-derived" (FUL-540).
1066
1143
  //
1067
1144
  // The "at least one field required" rule is enforced in the handler (not via a
1068
1145
  // Zod `.refine()`) so the schema stays a plain `ZodObject` — the registry type
@@ -1204,4 +1281,150 @@ export async function updatePersona(input, deps) {
1204
1281
  _meta: { persona, updated: updatedFields },
1205
1282
  };
1206
1283
  }
1284
+ // ---------------------------------------------------------------------------
1285
+ // update_persona_identity_priors (FUL-545) — the edit a human already had
1286
+ // ---------------------------------------------------------------------------
1287
+ //
1288
+ // FUL-488 made `seniority` / `careerPath` editable inline on the web persona
1289
+ // profile. `update_persona` could not write them, so an agent could not make a
1290
+ // change a person sitting in the browser could. This tool closes that.
1291
+ //
1292
+ // A SEPARATE TOOL, NOT TWO MORE KEYS ON `update_persona`. Those columns are
1293
+ // written only by NAMED writers on every path: the REST patch next door
1294
+ // validates against a seven-key schema with no `.passthrough()`, and the app
1295
+ // brands `seniority?: never` / `careerPath?: never` on its general-purpose write
1296
+ // types because `Omit` alone only catches excess properties on object LITERALS —
1297
+ // a widened write type would silently DISCARD these fields rather than refuse
1298
+ // them. Widening either to close this gap would retire the mechanism, so the
1299
+ // sanctioned shape is a narrow named writer, which is what the web path already
1300
+ // uses (`updatePersonaProfileScalars`).
1301
+ //
1302
+ // ⚠️ THIS TOOL IS ITSELF A NEW ORIGIN FOR THESE VALUES, and nothing records it.
1303
+ // Before FUL-545 a populated column was a research run's output or a person's
1304
+ // typing; now it can also be an agent's write, and the row cannot tell the three
1305
+ // apart (see `interface Persona` for why `personas.authorship` cannot stand in).
1306
+ // Every advert around these fields has to state that rather than imply a
1307
+ // provenance the response cannot supply.
1308
+ //
1309
+ // UNGATED, deliberately. `enrich_persona` writes priors only when both columns
1310
+ // are blank, so a weaker background INFERENCE cannot clobber a run-derived
1311
+ // value. A caller naming these fields here is making a deliberate edit, not
1312
+ // colliding — the same distinction the web profile writer records.
1313
+ //
1314
+ // "At least one field required" is enforced in the handler, not via a Zod
1315
+ // `.refine()`, so the schema stays a plain `ZodObject` (the registry type and
1316
+ // `schema-contract.test.ts` both read `.shape`).
1317
+ /**
1318
+ * The two fields this tool writes: snake_case PARAM name → the camelCase field
1319
+ * name the REST body and the persona entity both use.
1320
+ */
1321
+ const IDENTITY_PRIOR_FIELDS = {
1322
+ seniority: 'seniority',
1323
+ career_path: 'careerPath',
1324
+ };
1325
+ /** Param names as the caller supplies them — used in caller-facing messages. */
1326
+ const IDENTITY_PRIOR_PARAMS = Object.keys(IDENTITY_PRIOR_FIELDS);
1327
+ export const UpdatePersonaIdentityPriorsInputSchema = z.object({
1328
+ persona_id: z
1329
+ .string()
1330
+ .uuid()
1331
+ .describe('UUID of the persona whose identity priors to set. Get it from a `list_personas` ' +
1332
+ 'entry, or from the id printed by `create_persona` / `generate_persona`. Rejected ' +
1333
+ 'with a 404 if you do not own it.'),
1334
+ // No `.min(1)`: an empty string CLEARS the column, which is the same edit a
1335
+ // person makes by emptying the field on the web persona profile.
1336
+ seniority: z
1337
+ .string()
1338
+ .max(SENIORITY_MAX, `seniority too long (max ${SENIORITY_MAX} chars)`)
1339
+ .optional()
1340
+ .describe('New seniority RUNG — a level of responsibility ("senior IC", "team lead"), not a ' +
1341
+ 'job title. Pass an empty string to clear it. This field is user-editable in the ' +
1342
+ 'web app as well as writable here, and nothing records which origin a stored value ' +
1343
+ 'has, so writing it does not make it grounding.'),
1344
+ career_path: z
1345
+ .string()
1346
+ .max(CAREER_PATH_MAX, `career_path too long (max ${CAREER_PATH_MAX} chars)`)
1347
+ .optional()
1348
+ .describe('New career path / trajectory, e.g. "support → product ops → PM". Pass an empty ' +
1349
+ 'string to clear it. This field is user-editable in the web app as well as writable ' +
1350
+ 'here, and nothing records which origin a stored value has, so writing it does not ' +
1351
+ 'make it grounding.'),
1352
+ });
1353
+ export async function updatePersonaIdentityPriors(input, deps) {
1354
+ const parsed = UpdatePersonaIdentityPriorsInputSchema.safeParse(input);
1355
+ if (!parsed.success) {
1356
+ throw new PersonaToolError(`Invalid input — ${formatZodError(parsed.error)}`);
1357
+ }
1358
+ const { persona_id: personaId, ...rest } = parsed.data;
1359
+ const body = {};
1360
+ for (const param of IDENTITY_PRIOR_PARAMS) {
1361
+ const value = rest[param];
1362
+ if (value !== undefined)
1363
+ body[IDENTITY_PRIOR_FIELDS[param]] = value;
1364
+ }
1365
+ if (Object.keys(body).length === 0) {
1366
+ throw new PersonaToolError('Invalid input — provide at least one field to set ' +
1367
+ `(one of: ${IDENTITY_PRIOR_PARAMS.join(', ')}).`);
1368
+ }
1369
+ const ctx = makeCtx(deps);
1370
+ let response;
1371
+ try {
1372
+ response = await apiCall(ctx, 'PATCH', `/api/personas/${personaId}/identity-priors`, {
1373
+ body,
1374
+ timeoutMs: PERSONAS_FETCH_TIMEOUT_MS,
1375
+ });
1376
+ }
1377
+ catch (err) {
1378
+ const e = err;
1379
+ if (e.name === 'AbortError' || e.name === 'TimeoutError') {
1380
+ throw new PersonaToolError(`Setting the identity priors timed out after ${PERSONAS_FETCH_TIMEOUT_MS / 1000}s. ` +
1381
+ 'They may or may not have been applied — call get_persona to check before retrying.');
1382
+ }
1383
+ throw err;
1384
+ }
1385
+ if (!response.ok) {
1386
+ await throwForResponse(response, deps, 'update persona identity priors', {
1387
+ notFound: 'Could not set identity priors — persona not found, or you don\'t own it. ' +
1388
+ 'Confirm the persona_id (e.g. from list_personas).',
1389
+ });
1390
+ }
1391
+ const json = (await response.json().catch(() => null));
1392
+ const persona = json?.persona;
1393
+ if (!persona?.id) {
1394
+ throw new PersonaToolError('Identity-prior update returned no persona; the operation may not have succeeded.');
1395
+ }
1396
+ // FUL-263/279: `name` and `id` come from the PATCH response, not the caller,
1397
+ // so both carry the line-forgery surface. `id` degrades to this tool's own
1398
+ // validated-uuid input rather than failing — a retry re-applies the same
1399
+ // patch instead of minting a second row. `setFields` is built from this file's
1400
+ // own constants, so no endpoint text reaches it.
1401
+ const setFields = IDENTITY_PRIOR_PARAMS.filter((param) => rest[param] !== undefined);
1402
+ // Trim before deciding "cleared" — the SERVER trims (`setPersonaIdentityPriorsRecord`
1403
+ // does `.trim() || null`, mirroring the promote RPC's `NULLIF`), so `" "` stores
1404
+ // NULL exactly as `""` does. Testing the raw input instead would report a
1405
+ // whitespace-only patch under "Set ... - seniority" with no `Cleared:` clause:
1406
+ // the tool telling an agent it set a value the row does not have.
1407
+ const cleared = setFields.filter((param) => rest[param]?.trim() === '');
1408
+ const id = safeId(persona.id) ?? personaId;
1409
+ // The confirmation states the ORIGIN of what it just wrote. An agent that
1410
+ // reads these values back later cannot tell an agent write from a research
1411
+ // run's output or a person's typing — the row records no such thing — so the
1412
+ // one moment the distinction is knowable is here, when the write happens.
1413
+ const originNote = 'These two are user-editable in the web app and writable here, and nothing records which ' +
1414
+ 'origin a stored value has — so a later read of them is not a research signal. What a run ' +
1415
+ 'produced stays at `report_data.personas[].identityPriors` (via `get_report`), which this ' +
1416
+ 'write does not touch.';
1417
+ const clearedNote = cleared.length > 0 ? ` Cleared: ${cleared.join(', ')}.` : '';
1418
+ return {
1419
+ content: [
1420
+ {
1421
+ type: 'text',
1422
+ text: `Set identity priors on persona "${safeInline(persona.name, 100) ?? personaId}" ` +
1423
+ `(id: ${id}) — ${setFields.join(', ')}.${clearedNote} ` +
1424
+ `No credit charged (explicit edit). ${originNote}`,
1425
+ },
1426
+ ],
1427
+ _meta: { persona, updated: setFields },
1428
+ };
1429
+ }
1207
1430
  //# sourceMappingURL=personas.js.map