@cogit/cli 0.22.0 → 0.23.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.
|
@@ -20171,6 +20171,8 @@ function projectPaths(root) {
|
|
|
20171
20171
|
readState: join3(base, "state", "read.json"),
|
|
20172
20172
|
/** Inbox rows the user dismissed, per session (Story 11.1); also local. */
|
|
20173
20173
|
inboxState: join3(base, "state", "inbox.json"),
|
|
20174
|
+
/** How the user left the map: open sessions and dragged row widths; also local. */
|
|
20175
|
+
mapView: join3(base, "state", "map.json"),
|
|
20174
20176
|
/** What the detached hook children (build, side run) printed; local, capped. */
|
|
20175
20177
|
detachedLog: join3(base, "state", "detached.log"),
|
|
20176
20178
|
locks: join3(base, "locks"),
|
|
@@ -20313,15 +20315,9 @@ function migrateConfig(config2) {
|
|
|
20313
20315
|
|
|
20314
20316
|
// src/schema/project.ts
|
|
20315
20317
|
var PROJECT_SCHEMA = 1;
|
|
20316
|
-
var Epoch = external_exports.object({
|
|
20317
|
-
id: Slug,
|
|
20318
|
-
title: external_exports.string().min(1).max(200),
|
|
20319
|
-
createdAt: IsoDate
|
|
20320
|
-
});
|
|
20321
20318
|
var Project = external_exports.object({
|
|
20322
20319
|
schema: external_exports.literal(PROJECT_SCHEMA),
|
|
20323
|
-
name: external_exports.string().min(1).max(200)
|
|
20324
|
-
epochs: external_exports.array(Epoch).default([])
|
|
20320
|
+
name: external_exports.string().min(1).max(200)
|
|
20325
20321
|
});
|
|
20326
20322
|
|
|
20327
20323
|
// src/schema/session.ts
|
|
@@ -20410,7 +20406,6 @@ var Session = external_exports.object({
|
|
|
20410
20406
|
sessionId: Slug,
|
|
20411
20407
|
agent: external_exports.string().min(1).max(64).default("claude-code"),
|
|
20412
20408
|
title: external_exports.string().max(200).default(""),
|
|
20413
|
-
epoch: Slug.nullable().default(null),
|
|
20414
20409
|
startedAt: IsoDate,
|
|
20415
20410
|
updatedAt: IsoDate,
|
|
20416
20411
|
status: Status.default({ goal: "", done: [], pending: [], next: "" }),
|
|
@@ -20446,7 +20441,6 @@ var SessionInput = external_exports.object({
|
|
|
20446
20441
|
sessionId: Slug,
|
|
20447
20442
|
agent: external_exports.string().min(1).max(64).optional(),
|
|
20448
20443
|
title: external_exports.string().max(200).optional(),
|
|
20449
|
-
epoch: Slug.nullable().optional(),
|
|
20450
20444
|
status: Status.optional(),
|
|
20451
20445
|
leftOff: external_exports.string().max(400).optional(),
|
|
20452
20446
|
nodes: external_exports.array(LineageNodeInput).optional()
|
|
@@ -20589,23 +20583,8 @@ async function update(file2, lockPath, schema, version2, fn, opts, resetUnreadab
|
|
|
20589
20583
|
);
|
|
20590
20584
|
}
|
|
20591
20585
|
var loadProject = (root) => load(projectPaths(root).project, Project, PROJECT_SCHEMA);
|
|
20592
|
-
function stableInline(value) {
|
|
20593
|
-
const entries = Object.entries(value).sort(([a], [b]) => a.localeCompare(b));
|
|
20594
|
-
return `{${entries.map(([key, v]) => `${JSON.stringify(key)}: ${JSON.stringify(v)}`).join(", ")}}`;
|
|
20595
|
-
}
|
|
20596
20586
|
function projectJson(project) {
|
|
20597
|
-
|
|
20598
|
-
' "epochs": [',
|
|
20599
|
-
project.epochs.map((epoch) => ` ${stableInline(epoch)}`).join(",\n"),
|
|
20600
|
-
" ],"
|
|
20601
|
-
].join("\n");
|
|
20602
|
-
return `${[
|
|
20603
|
-
"{",
|
|
20604
|
-
epochs,
|
|
20605
|
-
` "name": ${JSON.stringify(project.name)},`,
|
|
20606
|
-
` "schema": ${project.schema}`,
|
|
20607
|
-
"}"
|
|
20608
|
-
].join("\n")}
|
|
20587
|
+
return `${["{", ` "name": ${JSON.stringify(project.name)},`, ` "schema": ${project.schema}`, "}"].join("\n")}
|
|
20609
20588
|
`;
|
|
20610
20589
|
}
|
|
20611
20590
|
var updateProject = async (root, fn) => {
|