goateddev

Changelog

Every change of behaviour or format of the centrex package that an agent, a script or a person can notice. The format follows Keep a Changelog; 0.1.0 is the first release.

[Unreleased]

[0.1.0] - 2026-12-04

First release on npm, under the proprietary licence in LICENSE: free to install and use, not to copy, change or redistribute. The package ships its code bundled and minified.

Added: the formats of v1

These are the shapes scripts and agents rely on; a change to any of them is recorded below it.

  • CLI exit codes: 0 success (a job still pending included: read job.status), 1 failure of the action, 2 usage error (unknown command or option, bad flag value, --params or --secrets that is not the expected JSON). Results are JSON on stdout.
  • Errors of exec, plan and apply are printed on stderr as { "error": { "name", "message", ...fields } }; the MCP server returns the same object as the text of a tool error. ApiError carries operationId, status, code, contextId, details, missingPermissions, attempts and retryAfterSeconds when known; StalePlanError carries planId and changedFields; TimeoutError and NetworkError carry a code (timeout, network.error).
  • A job-style read still running at its timeout is a result, not an error: job: { id, state, status: "pending", polls, waitedMs, statusOperation, resultsOperation?, resume: { operationId, options: { jobId } }, note }, with the last status as response. A completed one has job.status: "completed" and its results as response.
  • Responses up to 20 KB of JSON (20,480 bytes; maxInlineBytes) come back inline; larger ones are saved, redacted by secret field name, to <org folder>/responses/<operationId>-<ISO stamp>.json and come back as saved: { file, bytes, summary: { elements, topLevelKeys, first }, note }.
  • allPages collects at most 1,000 elements per call; a listing note says { style, pagesRead, itemsReturned, pageNumber?, pageSize?, pageCount?, total?, morePages, cappedAt?, next?, note }.
  • A plan file, plans/<planId>.json, holds { planId, status, orgId, operationId, verb, path, params, secretFields, permissions, createdAt, expiresAt, appliedAt? } plus what its write shape recorded (kind: update, create, action, delete or stateUnknown, with the state read, the touched fields, the changes or the payload). The plan result shows the same without the secret digests, plus planFile. Plans expire 30 minutes after they are made.
  • The apply log, apply-log.jsonl, is append-only, one JSON object per line: after a write, { timestamp, orgId, planId, operationId, verb, path, params, stateBefore, stateAfter, result | error, confirmed?, warnings? }; after a refusal, { timestamp, orgId, planId, operationId?, verb?, path?, params?, result: "refused", reason, error }. Parameters and states are redacted by secret field name.

Added: flow export and publish

  • execute postFlowsExportJobs exports one flow as YAML. It runs as a read although the catalog classifies the POST as a write: body { flows: [{ flow: { id | name + type, version? }, exportType?: "Yaml" }] }, exactly one flow. The file lands in <org folder>/flows/<name>-<type>-<version>.yaml (new folder, private) and is never overwritten: identical content is left alone, different content gets -2, -3… The result is { operationId, verb, path, response: { file, written, flow: { id, name, type, version }, bytes, sha256 }, notes }.
  • plan postFlowsJobs takes body: { file } (a YAML file inside the org’s folder; createStubs other than false is refused) and returns a plan of a new kind, flowPublish: { flow: { name, type }, target: { action: "update", flowId, publishedVersion } | { action: "create" }, file, frozen: { sha256, bytes }, base: { version, sha256 } | null, diff: { identical, added, removed, lines, truncated } | null, validation: { ran: false, note } | { ran: true, validator, valid, problems }, warnings }. The plan file also keeps frozen.yaml (the file, values under secret field names redacted) and frozen.redactions; secretFields names them flow.L<line>.<key>.
  • apply of a flowPublish plan publishes the frozen copy: registers the job with createStubs: false, uploads the file, polls getFlowsJob. Its result has state: { flow: { id, name, type, publishedVersion } } and response: { jobId, status, messages }. It refuses with a StalePlanError (changedFields: publishedVersion or published flow content) when the live flow changed since the plan. confirmed is true when the flow has a newer published version (a new flow: exists with the planned name and type).
  • New errors: FlowJobFailedError (operationId, jobId, messages) for an export or publish job that ended in Failure, FlowJobError, StorageError (status, code, attempts) and StorageUrlError (code: "storage.url.refused") for the signed URLs. No error, plan, log or result carries a signed URL.
  • The client calls a host other than the login and API hosts in one case only: a signed URL that postFlowsJobs or getFlowsExportJob has just returned, https only, with no token, no redirects, and for the upload only the headers the API returned (Client.storage).
  • describe of postFlowsExportJobs and postFlowsJobs adds a flowFile text saying how each is used.
  • ExecutorOptions.flowValidator is where a validation of a flow file that does not publish it plugs into the plan. None ships yet: every plan says validation.ran: false.

Added: the method of the expert agent

  • describe answers three new ids, method, method:diagnosis and method:testing, with { kind: "method", id, part, bootstrapFormat, ids, text }. They are text shipped in catalog/method/, never appear in search, and an unknown part fails with a MethodError listing the valid ids.
  • method:diagnosis adds suspects: { base, local, localPath, localNote? }: the base list of catalog/method/suspects.md and the lines of <org folder>/suspects.md. It is the one describe that reaches the org (to know which org this is); when it cannot, local is empty, localPath is null and localNote says why.
  • New command centrex bootstrap [--dir <folder>] [--force]: writes .claude/skills/centrex-expert/SKILL.md and prints { path, action, format, previousFormat, message }, where action is created, unchanged, replaced or kept. kept (a different file is there and --force was not given) exits 1 and writes nothing.
  • The MCP server’s instructions end with a pointer to describe the id method before design, build, fix or diagnosis work.
  • catalog build into another --out folder copies method/ next to recipes/.

Added: the bootstrap for Devin

  • centrex bootstrap takes --client <claude|devin> (default claude). --client devin writes the same pointer to .devin/skills/centrex-expert/SKILL.md, for Devin Local and Devin CLI; the command it names to replace itself is centrex bootstrap --client devin --force. Any other value is a usage error (exit 2). The file written for Claude Code is unchanged, and the format number stays 1.
  • The result of centrex bootstrap gains client ("claude" or "devin").
  • The library exports BOOTSTRAP_CLIENTS, BootstrapClient and isBootstrapClient; bootstrapPath, bootstrapText and installBootstrap take the client.
  • The method’s core tells the expert agent to give the human the replace command its bootstrap names when that one carries --client.

Changed: search finds more operations

  • search understands more words: encuesta for survey, llamar for call, and do not call, no llamar and lista de no llamar for dnc. The groups live in catalog/synonyms.json, as before.
  • New hand-maintained data file catalog/search-keywords.json: { "<operationId>": ["extra words", ...] }, indexed with the summary of that operation. postFlowsJobs now answers “publish flow”, “import flow” and “subir flow”; getConversation answers “get conversation participants”. The file is never rewritten by catalog build or catalog update, and is copied into another --out folder; a catalog folder without it works as before.
  • The default limit stays 8 and the engine is unchanged. test/fixtures/search-expectations.json lists queries with the operation each must return in the default results; a test fails when one drops out.

Changed in the review pass

  • The query POST allowlist is reviewed data. catalog/query-post-candidates.json (new) holds the generator’s heuristic output and is regenerated by catalog build and catalog update; catalog/query-posts.json is now hand-edited only, with read, write and readJobs sections, and is the only source of the read classification of POST operations. A build never rewrites it in place, copies it with recipes/ into another --out folder, and reports on stderr (and in review of its JSON result) the candidates not reviewed yet and the entries naming operations that no longer exist. The reviewed job-style reads moved there from src/catalog/readJobs.ts; the library export READ_JOBS is gone.
  • 16 POST operations that run, test, trigger or export something are now write operations and need plan and apply, among them postIntegrationsActionTest, postIntegrationsActionDraftTest, postOutboundContactlistExport, postOutboundDnclistExport, postTelephonySiptracesDownload, postConversationsSummariesPreview, postWorkforcemanagementHistoricaldataValidate and postScriptExport (docs/query-post-review.md lists every decision).
  • A POST or PATCH write is no longer retried after a 502, 503 or 504, since Genesys may have acted on it; it is still retried on a 429. Reads (query POSTs included), PUT and DELETE are retried on 502/503/504 as before.
  • apply claims the plan before anything else: its file moves to plans/applying/ (created exclusively, then the pending file removed), so two applies of the same plan at once write once and the other is refused with an ApplyError (“being applied”). A failed write returns the plan to plans/.
  • Plan files store their parameters with the values under secret field names redacted. The plan result lists those dotted paths in secretFields; apply needs their values again (centrex apply <planId> --secrets <json>, or the new optional secrets argument of the MCP apply tool) and refuses, naming them, when one is missing or unknown.
  • A change to a secret-named field the plan touches is detected at apply: the update plan keeps a SHA-256 digest of its value in the plan file (not in the plan result) and a changed digest makes the plan stale.
  • A PUT plan lists the fields the body leaves out as { field, before, removed: true } changes, since a PUT replaces the whole resource; read-only fields and fields the body definition does not declare are not listed. Those fields join touchedFields, so a change to them makes the plan stale. FieldChange.after is absent on a removed field.
  • CENTREX_LOGIN_BASE_URL and CENTREX_API_BASE_URL are test-only and accepted only when they point at a loopback host (localhost, 127.0.0.1, [::1]); any other value is a ConfigError before any request. ExecutorOptions.baseUrls is unchanged.
  • search and describe (and the MCP server’s tool list) work without any GENESYSCLOUD_* variable. createExecutor no longer throws for missing credentials; the first status, execute, plan or apply raises the ConfigError, before any request.
  • catalog update (and catalog build without --public/--extended) downloads the swaggers from https://api.<GENESYSCLOUD_REGION>/api/v2/docs/swagger[all] when the variable is set, and from api.mypurecloud.com otherwise. BuildOptions.region does the same for the library.
  • execute clamps the interval (start/end, ISO 8601) of the body of an analytics read (postAnalytics* query POSTs and query jobs) to now when it ends in the future, sends the clamped interval, and says so in a new notes array of the result. An interval that starts in the future is an ExecuteError before any call.
  • Every apply appends one record to apply-log.jsonl: a refusal (unknown or other org’s plan, expired, already applied, being applied, stale, resource gone, read-only mode, secrets missing) appends { timestamp, orgId, planId, operationId?, verb?, path?, params?, result: "refused", reason, error } and writes nothing. In read-only mode apply now reads the org (GET /api/v2/organizations/me) to find its log before refusing; it still writes nothing.
  • When the GET that reads the current state answers 403 or 404 at plan time, the plan is made with kind: "stateUnknown", a stateNote saying why and a new stateError: { operationId, status, code }; apply writes without the staleness check. A 404 on the GET of a DELETE stays an error.
  • The flow composite operations read the sub-flows of one depth in parallel, five at a time (the bulk-read pool), instead of one after another; their results keep the call order.
  • The 1,000-element cap of allPages is a ceiling: ExecutorOptions.maxItems sets it (1,000 by default), a per-call maxItems above it is an ExecuteError before any call, and a reading capped at the ceiling tells the agent to narrow the query instead of raising maxItems.
  • The apply result and its log record carry confirmed and, when false, warnings: a DELETE whose re-read still returns the resource, a confirming re-read that failed after a successful write (the result now comes back with state: null instead of an error, and the plan is applied), a created resource with no id to re-read, and a write with no GET.
  • Expired plans are moved from plans/ to plans/expired/ when status, plan or apply finds them, so plans/ holds only plans that can still be applied. Applying one is still refused as expired.
  • A Retry-After header in HTTP-date form is honoured like the delay-seconds form (counted from the client’s clock, the 60-second ceiling included); it used to be ignored in favour of the backoff.
  • PUT and PATCH bodies are validated at plan time like creating POST bodies: types and enums for both, required fields for PUT only; a mismatch is a PlanError naming every field. A top-level field the body definition does not declare is a new warnings entry of the plan (update and create shapes), not an error.
  • Search indexes operation descriptions at a low weight and boosts composite operations and recipes a little (1.15), so search "delete flow" shows safe-delete first and search "delete a queue" lists it.
  • Renamed identifiers that carried the vendor’s name: GenesysError is now ApiError (its JSON name is "ApiError"), GenesysErrorBody is ApiErrorBody, GenesysErrorContext is ApiErrorContext and the swagger type GenesysVisibility is OperationVisibility. The swagger key x-genesys-visibility is unchanged.
  • The 403 message of an operation that declares no permission says “this operation needs no specific permission” (it said “endpoint”).
  • A write finds the GET that reads its state by path template whatever the parameters are named (Catalog.operationAt), and calls it with the write’s path values by position. Six DELETE and PATCH operations on chat messages and participants now plan with their state read instead of unknown.