cortad 0.1.13 → 0.1.14

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.
Files changed (2) hide show
  1. package/local.mjs +3 -0
  2. package/package.json +1 -1
package/local.mjs CHANGED
@@ -760,6 +760,8 @@ for (let i = files.length - 1; i >= 0; i -= 1) if (carriesKey(files[i])) kept.un
760
760
  // --explain: what this would send and start, from this folder, and nothing else. No network, no
761
761
  // app started, nothing written. For the person (or the agent) who reads before running.
762
762
  if (explain) {
763
+ const going = new Set([...files, ...kept]);
764
+ const left = listed ? [...listed].filter((f) => !going.has(f) && !ENV_FILE.test(basename(f))).sort() : [];
763
765
  const bytes = files.reduce((n, f) => { try { return n + statSync(join(root, f)).size; } catch { return n; } }, 0);
764
766
  const plan = startPlan({ root, typed: flag("--start"), onPath });
765
767
  const rel = (f) => relative(root, f) || ".";
@@ -769,6 +771,7 @@ if (explain) {
769
771
  `talks to ${origin.origin}, localhost (your app's port only), and your own model providers, to ask each which models your key can use`,
770
772
  `would send ${files.length} source files, ${Math.round(bytes / 1024)} KB, once${listed ? " (what git would commit)" : ""}`,
771
773
  ...(kept.length ? [`kept here ${kept.length} file${kept.length === 1 ? " that holds" : "s that hold"} keys: ${kept.slice(0, 6).join(", ")}${kept.length > 6 ? ", ..." : ""}`] : []),
774
+ ...(left.length ? [`also not sent ${left.length} tracked data, media or lock file${left.length === 1 ? "" : "s"}: ${left.slice(0, 6).join(", ")}${left.length > 6 ? ", ..." : ""}`] : []),
772
775
  `not sent anything git ignores, env files (${envFiles.length} here: ${envFiles.slice(0, 6).map(rel).join(", ") || "none"}), key files, data files, node_modules, .git`,
773
776
  `env files values read here only: to hide them in replies, to sign in a test account, and to ask your providers what your keys reach. Variable names and whether a switch is on or off go up; no value does`,
774
777
  `would start ${flag("--port") ? `nothing: uses your app on port ${flag("--port")}` : plan?.cmd ? `${plan.cmd} (in ${rel(plan.cwd)})` : plan?.noServer ? "nothing: this repository has no server to run" : "asks you how your app starts"}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortad",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Connects the AI app on your machine to Cortad for test conversations. No dependencies.",
5
5
  "bin": {
6
6
  "cortad": "local.mjs"