claude-launchpad 0.11.0 → 0.11.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.
- package/dist/chunk-CSLWJEGD.js +0 -0
- package/dist/{chunk-UCU3PG3D.js → chunk-H7XKXL2O.js} +2 -2
- package/dist/chunk-JTKRLIEV.js +0 -0
- package/dist/chunk-JXFTVFPC.js +0 -0
- package/dist/chunk-LRJW32ZW.js +0 -0
- package/dist/chunk-MQJA7TGY.js +0 -0
- package/dist/chunk-NAW47BYA.js +0 -0
- package/dist/{chunk-J5NT4JGE.js → chunk-QCS4H456.js} +2 -2
- package/dist/chunk-QCS4H456.js.map +1 -0
- package/dist/chunk-RJGXPH7P.js +0 -0
- package/dist/chunk-Z6FBT44W.js +0 -0
- package/dist/cli.js +4 -4
- package/dist/cli.js.map +1 -1
- package/dist/commands/memory/server.js +2 -2
- package/dist/commands/memory/server.js.map +1 -1
- package/dist/context-HB6EK2LE.js +0 -0
- package/dist/extract-SRE5TBS2.js +0 -0
- package/dist/install-PSSMUGLO.js +0 -0
- package/dist/{pull-OGPDUNZ2.js → pull-KZBVGNTJ.js} +3 -3
- package/dist/{push-EXJEKBU4.js → push-QBXZOJXX.js} +3 -3
- package/dist/require-deps-NKRCPVAO.js +0 -0
- package/dist/stats-W3BHM3WF.js +0 -0
- package/dist/tui-ERRK7V4J.js +1008 -0
- package/dist/tui-ERRK7V4J.js.map +1 -0
- package/package.json +20 -23
- package/dist/chunk-J5NT4JGE.js.map +0 -1
- package/dist/tui-R6XSBUKS.js +0 -1101
- package/dist/tui-R6XSBUKS.js.map +0 -1
- /package/dist/{chunk-UCU3PG3D.js.map → chunk-H7XKXL2O.js.map} +0 -0
- /package/dist/{pull-OGPDUNZ2.js.map → pull-KZBVGNTJ.js.map} +0 -0
- /package/dist/{push-EXJEKBU4.js.map → push-QBXZOJXX.js.map} +0 -0
package/dist/chunk-CSLWJEGD.js
CHANGED
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
SyncPayloadSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QCS4H456.js";
|
|
5
5
|
|
|
6
6
|
// src/commands/memory/utils/gist-transport.ts
|
|
7
7
|
import { execSync } from "child_process";
|
|
@@ -216,4 +216,4 @@ export {
|
|
|
216
216
|
parsePayload,
|
|
217
217
|
mergeFromRemote
|
|
218
218
|
};
|
|
219
|
-
//# sourceMappingURL=chunk-
|
|
219
|
+
//# sourceMappingURL=chunk-H7XKXL2O.js.map
|
package/dist/chunk-JTKRLIEV.js
CHANGED
|
File without changes
|
package/dist/chunk-JXFTVFPC.js
CHANGED
|
File without changes
|
package/dist/chunk-LRJW32ZW.js
CHANGED
|
File without changes
|
package/dist/chunk-MQJA7TGY.js
CHANGED
|
File without changes
|
package/dist/chunk-NAW47BYA.js
CHANGED
|
File without changes
|
|
@@ -14,7 +14,7 @@ var RELATION_TYPES = [
|
|
|
14
14
|
];
|
|
15
15
|
var StoreInputSchema = z.object({
|
|
16
16
|
type: z.enum(MEMORY_TYPES),
|
|
17
|
-
content: z.string().min(1).max(
|
|
17
|
+
content: z.string().min(1).max(2e3),
|
|
18
18
|
title: z.string().max(200).optional(),
|
|
19
19
|
tags: z.array(z.string()).max(20).default([]),
|
|
20
20
|
importance: z.number().min(0).max(1).default(0.5),
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
RELATION_TYPES,
|
|
75
75
|
SyncPayloadSchema
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=chunk-
|
|
77
|
+
//# sourceMappingURL=chunk-QCS4H456.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/memory/types.ts"],"sourcesContent":["import { z } from 'zod';\n\n// ── Memory Types ──────────────────────────────────────────────\n\nexport const MEMORY_TYPES = ['working', 'episodic', 'semantic', 'procedural', 'pattern'] as const;\nexport type MemoryType = typeof MEMORY_TYPES[number];\n\nexport const MEMORY_SOURCES = ['manual', 'session_end', 'consolidation', 'hook', 'import'] as const;\nexport type MemorySource = typeof MEMORY_SOURCES[number];\n\nexport const RELATION_TYPES = [\n 'relates_to', 'depends_on', 'contradicts', 'extends', 'implements', 'derived_from',\n] as const;\nexport type RelationType = typeof RELATION_TYPES[number];\n\n// ── Core Entities ─────────────────────────────────────────────\n\nexport interface Memory {\n readonly id: string;\n readonly type: MemoryType;\n readonly title: string | null;\n readonly content: string;\n readonly context: string | null;\n readonly source: MemorySource | null;\n readonly project: string | null;\n readonly tags: readonly string[];\n readonly importance: number;\n readonly createdAt: string;\n readonly updatedAt: string;\n readonly accessCount: number;\n readonly lastAccessed: string | null;\n readonly injectionCount: number;\n}\n\nexport interface Relation {\n readonly sourceId: string;\n readonly targetId: string;\n readonly relationType: RelationType;\n readonly createdAt: string;\n}\n\n// ── Search Types ──────────────────────────────────────────────\n\nexport interface SearchResult {\n readonly memory: Memory;\n readonly score: number;\n readonly explanation: string;\n}\n\nexport interface FtsMatch {\n readonly rowid: number;\n readonly memoryId: string;\n readonly rank: number;\n}\n\nexport interface ScoredCandidate {\n readonly memoryId: string;\n readonly textScore: number;\n readonly importanceScore: number;\n readonly recencyScore: number;\n readonly accessScore: number;\n readonly contextScore: number;\n readonly composite: number;\n}\n\n// ── Decay Parameters ──────────────────────────────────────────\n\nexport interface DecayParams {\n readonly tauByType: Record<MemoryType, number>;\n readonly accessModifiers: readonly { readonly maxCount: number; readonly multiplier: number }[];\n readonly relationModifier: { readonly connectedThreshold: number; readonly connectedMultiplier: number; readonly isolatedMultiplier: number };\n readonly importanceFloor: number;\n readonly pruneThreshold: number;\n readonly pruneMinAgeDays: number;\n}\n\n// ── Input Schemas (for MCP tools) ─────────────────────────────\n\nexport const StoreInputSchema = z.object({\n type: z.enum(MEMORY_TYPES),\n content: z.string().min(1).max(2000),\n title: z.string().max(200).optional(),\n tags: z.array(z.string()).max(20).default([]),\n importance: z.number().min(0).max(1).default(0.5),\n context: z.string().optional(),\n source: z.enum(MEMORY_SOURCES).default('manual'),\n project: z.string().max(200).optional(),\n});\nexport type StoreInput = z.infer<typeof StoreInputSchema>;\n\nexport const SearchInputSchema = z.object({\n query: z.string().min(1).max(500),\n id: z.string().optional(),\n type: z.enum(MEMORY_TYPES).optional(),\n tags: z.array(z.string()).max(10).optional(),\n limit: z.number().int().min(1).max(50).default(10),\n min_importance: z.number().min(0).max(1).default(0),\n project: z.string().max(200).optional(),\n});\nexport type SearchInput = z.infer<typeof SearchInputSchema>;\n\nexport const ForgetInputSchema = z.object({\n id: z.string(),\n hard_delete: z.boolean().default(false),\n});\nexport type ForgetInput = z.infer<typeof ForgetInputSchema>;\n\nexport const RelateInputSchema = z.object({\n source_id: z.string(),\n target_id: z.string(),\n relation_type: z.enum(RELATION_TYPES),\n});\nexport type RelateInput = z.infer<typeof RelateInputSchema>;\n\n// ── Sync Types ───────────────────────────────────────────────\n\nexport interface SyncPayload {\n readonly version: number;\n readonly machine_id: string;\n readonly pushed_at: string;\n readonly memories: readonly SyncMemoryRow[];\n readonly relations: readonly SyncRelationRow[];\n}\n\nexport interface SyncMemoryRow {\n readonly id: string;\n readonly type: MemoryType;\n readonly title: string | null;\n readonly content: string;\n readonly context: string | null;\n readonly source: MemorySource | null;\n readonly project: string | null;\n readonly tags: readonly string[];\n readonly importance: number;\n readonly access_count: number;\n readonly injection_count: number;\n readonly created_at: string;\n readonly updated_at: string;\n readonly last_accessed: string | null;\n}\n\nexport interface SyncRelationRow {\n readonly source_id: string;\n readonly target_id: string;\n readonly relation_type: RelationType;\n readonly created_at: string;\n}\n\nexport const SyncPayloadSchema = z.object({\n version: z.number(),\n machine_id: z.string(),\n pushed_at: z.string(),\n memories: z.array(z.object({\n id: z.string(),\n type: z.enum(MEMORY_TYPES),\n title: z.string().nullable(),\n content: z.string(),\n context: z.string().nullable(),\n source: z.enum(MEMORY_SOURCES).nullable(),\n project: z.string().nullable(),\n tags: z.array(z.string()),\n importance: z.number(),\n access_count: z.number(),\n injection_count: z.number(),\n created_at: z.string(),\n updated_at: z.string(),\n last_accessed: z.string().nullable(),\n })),\n relations: z.array(z.object({\n source_id: z.string(),\n target_id: z.string(),\n relation_type: z.enum(RELATION_TYPES),\n created_at: z.string(),\n })),\n});\n\nexport interface SyncConfig {\n readonly gistId: string;\n}\n\nexport interface MergeResult {\n readonly inserted: number;\n readonly updated: number;\n readonly relationsAdded: number;\n}\n\n// ── Stats ─────────────────────────────────────────────────────\n\nexport interface MemoryStats {\n readonly totalMemories: number;\n readonly byType: Record<MemoryType, number>;\n readonly totalRelations: number;\n readonly dbSizeBytes: number;\n readonly oldestMemory: string | null;\n readonly newestMemory: string | null;\n readonly topInjected: readonly { readonly id: string; readonly title: string | null; readonly injectionCount: number }[];\n}\n"],"mappings":";;;AAAA,SAAS,SAAS;AAIX,IAAM,eAAe,CAAC,WAAW,YAAY,YAAY,cAAc,SAAS;AAGhF,IAAM,iBAAiB,CAAC,UAAU,eAAe,iBAAiB,QAAQ,QAAQ;AAGlF,IAAM,iBAAiB;AAAA,EAC5B;AAAA,EAAc;AAAA,EAAc;AAAA,EAAe;AAAA,EAAW;AAAA,EAAc;AACtE;AAkEO,IAAM,mBAAmB,EAAE,OAAO;AAAA,EACvC,MAAM,EAAE,KAAK,YAAY;AAAA,EACzB,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,GAAI;AAAA,EACnC,OAAO,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,EACpC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,CAAC,CAAC;AAAA,EAC5C,YAAY,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG;AAAA,EAChD,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA,EAC7B,QAAQ,EAAE,KAAK,cAAc,EAAE,QAAQ,QAAQ;AAAA,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AAK,cAAc,EAAE,SAAS;AAAA,IACxC,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA,IAC7B,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AAAA,IACxB,YAAY,EAAE,OAAO;AAAA,IACrB,cAAc,EAAE,OAAO;AAAA,IACvB,iBAAiB,EAAE,OAAO;AAAA,IAC1B,YAAY,EAAE,OAAO;AAAA,IACrB,YAAY,EAAE,OAAO;AAAA,IACrB,eAAe,EAAE,OAAO,EAAE,SAAS;AAAA,EACrC,CAAC,CAAC;AAAA,EACF,WAAW,EAAE,MAAM,EAAE,OAAO;AAAA,IAC1B,WAAW,EAAE,OAAO;AAAA,IACpB,WAAW,EAAE,OAAO;AAAA,IACpB,eAAe,EAAE,KAAK,cAAc;AAAA,IACpC,YAAY,EAAE,OAAO;AAAA,EACvB,CAAC,CAAC;AACJ,CAAC;","names":[]}
|
package/dist/chunk-RJGXPH7P.js
CHANGED
|
File without changes
|
package/dist/chunk-Z6FBT44W.js
CHANGED
|
File without changes
|
package/dist/cli.js
CHANGED
|
@@ -2587,7 +2587,7 @@ function createMemoryCommand() {
|
|
|
2587
2587
|
}
|
|
2588
2588
|
const { requireMemoryDeps } = await import("./require-deps-NKRCPVAO.js");
|
|
2589
2589
|
await requireMemoryDeps();
|
|
2590
|
-
const { startTui } = await import("./tui-
|
|
2590
|
+
const { startTui } = await import("./tui-ERRK7V4J.js");
|
|
2591
2591
|
await startTui();
|
|
2592
2592
|
return;
|
|
2593
2593
|
}
|
|
@@ -2641,13 +2641,13 @@ function createMemoryCommand() {
|
|
|
2641
2641
|
);
|
|
2642
2642
|
memory.addCommand(
|
|
2643
2643
|
new Command4("push").description("Push current project's memories to GitHub Gist").option("--all", "Push all projects").option("-y, --yes", "Skip confirmation prompt").action(async (opts) => {
|
|
2644
|
-
const { runPush } = await import("./push-
|
|
2644
|
+
const { runPush } = await import("./push-QBXZOJXX.js");
|
|
2645
2645
|
await runPush(opts);
|
|
2646
2646
|
})
|
|
2647
2647
|
);
|
|
2648
2648
|
memory.addCommand(
|
|
2649
2649
|
new Command4("pull").description("Pull current project's memories from GitHub Gist").option("--all", "Pull all projects").action(async (opts) => {
|
|
2650
|
-
const { runPull } = await import("./pull-
|
|
2650
|
+
const { runPull } = await import("./pull-KZBVGNTJ.js");
|
|
2651
2651
|
await runPull(opts);
|
|
2652
2652
|
})
|
|
2653
2653
|
);
|
|
@@ -2655,7 +2655,7 @@ function createMemoryCommand() {
|
|
|
2655
2655
|
}
|
|
2656
2656
|
|
|
2657
2657
|
// src/cli.ts
|
|
2658
|
-
var program = new Command5().name("claude-launchpad").description("CLI toolkit that makes Claude Code setups measurably good").version("0.11.
|
|
2658
|
+
var program = new Command5().name("claude-launchpad").description("CLI toolkit that makes Claude Code setups measurably good").version("0.11.1", "-v, --version").action(async () => {
|
|
2659
2659
|
const hasConfig = await fileExists(join11(process.cwd(), "CLAUDE.md")) || await fileExists(join11(process.cwd(), ".claude", "settings.json"));
|
|
2660
2660
|
if (hasConfig) {
|
|
2661
2661
|
await program.commands.find((c) => c.name() === "doctor")?.parseAsync([], { from: "user" });
|