@cortad/connector 0.6.0-rc.3 → 0.6.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.
@@ -56,7 +56,7 @@ export function historyQuestion({ spec, sources, stores }) {
56
56
  `Ask the person, with your question tool: "Send our most recent conversations to Cortad, up to 2,500 messages from the last 30 days, so it can show us our users?"`,
57
57
  ...options.map((o, i) => ` ${i + 1}. ${o}`),
58
58
  ...sources.map((s) => `${s.name} is read from this computer at ${s.host} with the keys in your env; the keys go to ${s.name} only.`),
59
- "What is sent goes to cortad.com and is written first to ~/.cortad on this computer, so you can read exactly what was sent.",
59
+ "Before anything is sent, keys, card numbers, emails and phone numbers in the messages are replaced on this computer, and the app's conversation and user ids are hashed. What is sent goes to cortad.com, and a copy of exactly what was sent stays in ~/.cortad on this computer.",
60
60
  "",
61
61
  ...exportContract(spec),
62
62
  ];
@@ -65,7 +65,8 @@ const storeName = (s) => `${s.where ? `the ${s.where} ${s.kind === "postgres" ?
65
65
 
66
66
  export const exportContract = (spec) => [
67
67
  "For our database: write a one-off script in this folder that reads the conversations with this app's own database client, through the connection this project's env on this computer already has. Do not commit it. Open a read-only transaction and look for no other credentials.",
68
- "Read at most the newest 2,500 conversations from the last 30 days: pick their ids first, then their messages. Cortad keeps whole conversations, newest first, up to 2,500 messages. Print one JSON line per conversation:",
68
+ "Read at most the newest 2,500 conversations from the last 30 days: pick their ids first, then their messages. Cortad keeps whole conversations, newest first, up to 2,500 messages. Print first one line naming the database host it read, then one JSON line per conversation:",
69
+ ` {"source": {"kind": "postgres", "host": "<the database host from the connection>"}}`,
69
70
  ` {"id": "<the app's conversation id>", "user": "<the app's user id, if it has one>", "messages": [{"role": "user" or "assistant", "text": "...", "at": "2026-11-08T14:02:11Z"}]}`,
70
71
  `Times need a zone (Z or +03:00) or epoch milliseconds. Tell the person which database host it reads. Pipe it to npx -y ${spec} intelligence history --stdin, then delete the script.`,
71
72
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortad/connector",
3
- "version": "0.6.0-rc.3",
3
+ "version": "0.6.0",
4
4
  "description": "Connects the AI app on your machine to Cortad for test conversations, and gives your coding agent the MCP and skill to run them.",
5
5
  "bin": {
6
6
  "cortad": "local.mjs"