mneme-ai 3.134.0 → 3.135.1

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.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * `mneme launch` (v3.135.0) — THE PR ENGINE. Generate a launch kit (Hacker News · X
3
+ * thread · Reddit · changelog) where EVERY claim is VERICERT-screened first — an
4
+ * overclaiming / fabricated / unfalsifiable-superlative line is rejected and never
5
+ * ships. Launch copy that can't lie. With no --claim flags it uses Mneme's own
6
+ * measured claims (dogfood). `--json` for the structured kit.
7
+ */
8
+ import type { Command } from "commander";
9
+ export declare function registerLaunchCommands(program: Command): void;
10
+ //# sourceMappingURL=launch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../../src/commands/launch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAczC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAyB7D"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * `mneme launch` (v3.135.0) — THE PR ENGINE. Generate a launch kit (Hacker News · X
3
+ * thread · Reddit · changelog) where EVERY claim is VERICERT-screened first — an
4
+ * overclaiming / fabricated / unfalsifiable-superlative line is rejected and never
5
+ * ships. Launch copy that can't lie. With no --claim flags it uses Mneme's own
6
+ * measured claims (dogfood). `--json` for the structured kit.
7
+ */
8
+ import { readFileSync } from "node:fs";
9
+ import { prEngine } from "@mneme-ai/core";
10
+ function out(s) { process.stdout.write(s + "\n"); }
11
+ const DEFAULT_CLAIMS = [
12
+ "Deterministic, MIT-licensed, local-first — no LLM in the analysis path.",
13
+ "A poisoned cross-agent context entry is never inherited (measured: 0 leaks).",
14
+ "Every PR gets one grounded comment: a check of the description, context for each changed file (cited), and the author's commit persona.",
15
+ "Paste any public repo for a signed report, the team's commit personas, or why a file is the way it is — no install.",
16
+ "Vendor-neutral via MCP and a CLI; the source never leaves your machine.",
17
+ ];
18
+ export function registerLaunchCommands(program) {
19
+ program
20
+ .command("launch")
21
+ .description("📣 PR ENGINE — generate a launch kit (HN · X · Reddit · changelog) where every claim is VERICERT-screened first; overclaims & unfalsifiable superlatives are rejected and never ship. Launch copy that can't lie. No --claim flags → uses Mneme's own measured claims.")
22
+ .option("--product <name>", "product name", "Mneme")
23
+ .option("--release <v>", "release/version label")
24
+ .option("--url <u>", "try-it URL", "https://xray.mneme-ai.space")
25
+ .option("--install <cmd>", "install command", "npm i -g mneme-ai")
26
+ .option("--claim <text>", "a candidate claim (repeatable)", (v, acc) => { acc.push(v); return acc; }, [])
27
+ .option("--claims-file <path>", "read candidate claims, one per line")
28
+ .option("--json", "JSON output (the full kit)")
29
+ .action((o) => {
30
+ let claims = o.claim && o.claim.length ? o.claim : [];
31
+ if (o.claimsFile) {
32
+ try {
33
+ claims = claims.concat(readFileSync(o.claimsFile, "utf8").split("\n").map((s) => s.trim()).filter(Boolean));
34
+ }
35
+ catch { /* */ }
36
+ }
37
+ if (!claims.length)
38
+ claims = DEFAULT_CLAIMS;
39
+ const kit = prEngine.buildLaunchKit({ product: o.product, version: o.release, url: o.url, install: o.install, claims });
40
+ if (o.json) {
41
+ out(JSON.stringify(kit, null, 2));
42
+ return;
43
+ }
44
+ out(`📣 LAUNCH KIT — ${o.product} (${kit.approved.length} claims approved · ${kit.rejected.length} rejected · ${kit.clean ? "✓ zero-overclaim" : "⚠ overclaim leaked"})`);
45
+ if (kit.rejected.length) {
46
+ out(`\n ✗ rejected (won't ship):`);
47
+ for (const r of kit.rejected)
48
+ out(` [${r.reason}] ${r.claim}`);
49
+ }
50
+ out(`\n━━ Hacker News ━━\n${kit.hn.title}\n\n${kit.hn.body}`);
51
+ out(`\n━━ X / Twitter thread ━━`);
52
+ kit.x.forEach((t, i) => out(`${i + 1}/ ${t}`));
53
+ out(`\n━━ Reddit ━━\n${kit.reddit.title}\n\n${kit.reddit.body}`);
54
+ out(`\n━━ Changelog ━━\n${kit.changelog}`);
55
+ out(`\n 📣 every line above passed VERICERT — defensible, not hype. (Honest: screens known overclaim patterns, doesn't make a claim true.)`);
56
+ });
57
+ }
58
+ //# sourceMappingURL=launch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch.js","sourceRoot":"","sources":["../../src/commands/launch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,SAAS,GAAG,CAAC,CAAS,IAAU,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;AAEjE,MAAM,cAAc,GAAG;IACrB,yEAAyE;IACzE,8EAA8E;IAC9E,yIAAyI;IACzI,qHAAqH;IACrH,yEAAyE;CAC1E,CAAC;AAEF,MAAM,UAAU,sBAAsB,CAAC,OAAgB;IACrD,OAAO;SACJ,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,wQAAwQ,CAAC;SACrR,MAAM,CAAC,kBAAkB,EAAE,cAAc,EAAE,OAAO,CAAC;SACnD,MAAM,CAAC,eAAe,EAAE,uBAAuB,CAAC;SAChD,MAAM,CAAC,WAAW,EAAE,YAAY,EAAE,6BAA6B,CAAC;SAChE,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,CAAC;SACjE,MAAM,CAAC,gBAAgB,EAAE,gCAAgC,EAAE,CAAC,CAAS,EAAE,GAAa,EAAE,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,EAAc,CAAC;SACtI,MAAM,CAAC,sBAAsB,EAAE,qCAAqC,CAAC;SACrE,MAAM,CAAC,QAAQ,EAAE,4BAA4B,CAAC;SAC9C,MAAM,CAAC,CAAC,C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AC,MAAM,EAAE,CAAC;YAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;YAAC,KAAK,MAAM,CAAC,IAAI,GAAG,CAAC,QAAQ;gBAAE,GAAG,CAAC,SAAS,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;QAAC,CAAC;QACrI,GAAG,CAAC,wBAAwB,GAAG,CAAC,EAAE,CAAC,KAAK,OAAO,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;QAC9D,GAAG,CAAC,4BAA4B,CAAC,CAAC;QAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;QAClF,GAAG,CAAC,mBAAmB,GAAG,CAAC,MAAM,CAAC,KAAK,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QACjE,GAAG,CAAC,sBAAsB,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;QAC3C,GAAG,CAAC,wIAAwI,CAAC,CAAC;IAChJ,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA8MA,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAinNvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA+MA,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAknNvD"}
package/dist/index.js CHANGED
@@ -137,6 +137,7 @@ import { registerSeanceCommands } from "./commands/seance.js";
137
137
  import { registerBriefCommands } from "./commands/brief.js";
138
138
  import { registerPrCommentCommands } from "./commands/pr-comment.js";
139
139
  import { registerCtxCommands } from "./commands/ctx.js";
140
+ import { registerLaunchCommands } from "./commands/launch.js";
140
141
  import { registerMoatCommands } from "./commands/moat.js";
141
142
  import { attachRegretOracle } from "./commands/regret.js";
142
143
  import { registerTrustCommands } from "./commands/trust.js";
@@ -4831,6 +4832,7 @@ export async function run(argv) {
4831
4832
  registerBriefCommands(program);
4832
4833
  registerPrCommentCommands(program);
4833
4834
  registerCtxCommands(program);
4835
+ registerLaunchCommands(program);
4834
4836
  registerMoatCommands(program);
4835
4837
  // ─── Trust calibrator (v1.31.0) -- per-subsystem precision/recall/band
4836
4838
  registerTrustCommands(program);