@mulmoclaude/core 0.27.0 → 0.28.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.
- package/assets/helps/wiki.md +47 -2
- package/dist/collection/index.cjs +4 -4
- package/dist/collection/index.cjs.map +1 -1
- package/dist/collection/index.js +4 -4
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/registry/server/index.cjs +2 -2
- package/dist/collection/registry/server/index.js +2 -2
- package/dist/collection/server/csvStore.d.ts +0 -5
- package/dist/collection/server/index.cjs +2 -2
- package/dist/collection/server/index.js +2 -2
- package/dist/collection-watchers/index.cjs +3 -3
- package/dist/collection-watchers/index.js +3 -3
- package/dist/{discovery-BxbJy2VN.cjs → discovery-BKovdRpZ.cjs} +19 -7
- package/dist/discovery-BKovdRpZ.cjs.map +1 -0
- package/dist/{discovery-B9Vfojyy.js → discovery-BVdCgBFN.js} +20 -8
- package/dist/discovery-BVdCgBFN.js.map +1 -0
- package/dist/feeds/server/index.cjs +2 -2
- package/dist/feeds/server/index.js +2 -2
- package/dist/google/index.cjs +1 -1
- package/dist/google/index.js +1 -1
- package/dist/{promptSafety-0ZKHX-6J.cjs → promptSafety-BFt2g_wn.cjs} +2 -2
- package/dist/promptSafety-BFt2g_wn.cjs.map +1 -0
- package/dist/{promptSafety-RE1SPxBN.js → promptSafety-cZIeiZtB.js} +3 -3
- package/dist/promptSafety-cZIeiZtB.js.map +1 -0
- package/dist/{server-sGNe-msA.js → server-B8mvfZSF.js} +23 -11
- package/dist/server-B8mvfZSF.js.map +1 -0
- package/dist/{server-DOGKfUuD.cjs → server-rRQkNBvO.cjs} +22 -10
- package/dist/server-rRQkNBvO.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/discovery-B9Vfojyy.js.map +0 -1
- package/dist/discovery-BxbJy2VN.cjs.map +0 -1
- package/dist/promptSafety-0ZKHX-6J.cjs.map +0 -1
- package/dist/promptSafety-RE1SPxBN.js.map +0 -1
- package/dist/server-DOGKfUuD.cjs.map +0 -1
- package/dist/server-sGNe-msA.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_ids = require("../../ids-DWmHjm17.cjs");
|
|
3
|
-
const require_discovery = require("../../discovery-
|
|
3
|
+
const require_discovery = require("../../discovery-BKovdRpZ.cjs");
|
|
4
4
|
const require_templatePath = require("../../templatePath-27vUZowm.cjs");
|
|
5
|
-
const require_server = require("../../server-
|
|
5
|
+
const require_server = require("../../server-rRQkNBvO.cjs");
|
|
6
6
|
exports.COMPUTED_TYPES = require_ids.COMPUTED_TYPES;
|
|
7
7
|
exports.CollectionQueryZ = require_discovery.CollectionQueryZ;
|
|
8
8
|
exports.CollectionSchemaZ = require_discovery.CollectionSchemaZ;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as COMPUTED_TYPES } from "../../ids-D1M1T6KJ.js";
|
|
2
|
-
import { A as generateItemId, C as compileJsonlQuery, D as buildActionSeedPrompt, E as MAX_QUERY_ROWS, F as readCustomViewI18n, G as resolveDataDir, H as isContainedInRoot, I as readItem, J as safeSlugName, K as resolveTemplatePath, L as readSkillTemplate, M as listItems, N as promptPathsFor, O as buildCollectionActionSeedPrompt, P as readCustomViewHtml, Q as getWorkspaceRoot, R as resolveCreateItemId, S as compileCsvQuery, T as DEFAULT_QUERY_ROWS, U as isContainedInWorkspace, V as SCHEMA_FILE, W as itemFilePath, Z as configureCollectionHost, _ as decodeCsvRecordId, a as toSummary, b as normalizeCsvValue, c as collectionWritable, et as log, f as pageFromFullRead, g as csvRowToItem, i as toDetail, j as isRegularFile, k as deleteItem, l as readOnlyRefusal, m as MAX_CSV_ROWS, n as discoverCollections, nt as setCollectionChangePublisher, o as CollectionSchemaZ, p as projectItemFields, q as safeRecordId, r as loadCollection, t as acceptParsedSchema, tt as publishCollectionChange, u as storeFor, v as dedupeByRecordId, w as CollectionQueryZ, y as encodeCsvRecordId, z as writeItem } from "../../discovery-
|
|
2
|
+
import { A as generateItemId, C as compileJsonlQuery, D as buildActionSeedPrompt, E as MAX_QUERY_ROWS, F as readCustomViewI18n, G as resolveDataDir, H as isContainedInRoot, I as readItem, J as safeSlugName, K as resolveTemplatePath, L as readSkillTemplate, M as listItems, N as promptPathsFor, O as buildCollectionActionSeedPrompt, P as readCustomViewHtml, Q as getWorkspaceRoot, R as resolveCreateItemId, S as compileCsvQuery, T as DEFAULT_QUERY_ROWS, U as isContainedInWorkspace, V as SCHEMA_FILE, W as itemFilePath, Z as configureCollectionHost, _ as decodeCsvRecordId, a as toSummary, b as normalizeCsvValue, c as collectionWritable, et as log, f as pageFromFullRead, g as csvRowToItem, i as toDetail, j as isRegularFile, k as deleteItem, l as readOnlyRefusal, m as MAX_CSV_ROWS, n as discoverCollections, nt as setCollectionChangePublisher, o as CollectionSchemaZ, p as projectItemFields, q as safeRecordId, r as loadCollection, t as acceptParsedSchema, tt as publishCollectionChange, u as storeFor, v as dedupeByRecordId, w as CollectionQueryZ, y as encodeCsvRecordId, z as writeItem } from "../../discovery-BVdCgBFN.js";
|
|
3
3
|
import { i as isSafeTemplatePath, n as isSafeCustomViewI18nPath, r as isSafeCustomViewPath, t as isSafeActionTemplatePath } from "../../templatePath-k_WNbL_Q.js";
|
|
4
|
-
import { C as validateRecordObject, D as enrichItems, E as runCollectionQuery, O as runQueryOverRows, S as validateCollectionRecords, T as recordFieldProblem, _ as computeCollectionIcon, a as deleteCollection, b as applyMutateAction, c as computeSuccessor, d as isTriggerDue, f as maybeSpawnSuccessor, h as successorId, i as deleteCustomView, l as daysInMonth, m as resolveEvery, n as MAX_UNSELECTIVE_ITEMS, o as deleteCollectionRefusalMessage, p as parseCivil, r as makeManageCollectionTool, s as advanceTriggerDate, t as MAX_SCHEMA_ISSUES, u as formatCivil, v as buildWorkspaceOntology, w as compileRecordZ, x as firstMutateParamProblem, y as schemaRelations } from "../../server-
|
|
4
|
+
import { C as validateRecordObject, D as enrichItems, E as runCollectionQuery, O as runQueryOverRows, S as validateCollectionRecords, T as recordFieldProblem, _ as computeCollectionIcon, a as deleteCollection, b as applyMutateAction, c as computeSuccessor, d as isTriggerDue, f as maybeSpawnSuccessor, h as successorId, i as deleteCustomView, l as daysInMonth, m as resolveEvery, n as MAX_UNSELECTIVE_ITEMS, o as deleteCollectionRefusalMessage, p as parseCivil, r as makeManageCollectionTool, s as advanceTriggerDate, t as MAX_SCHEMA_ISSUES, u as formatCivil, v as buildWorkspaceOntology, w as compileRecordZ, x as firstMutateParamProblem, y as schemaRelations } from "../../server-B8mvfZSF.js";
|
|
5
5
|
export { COMPUTED_TYPES, CollectionQueryZ, CollectionSchemaZ, DEFAULT_QUERY_ROWS, MAX_CSV_ROWS, MAX_QUERY_ROWS, MAX_SCHEMA_ISSUES, MAX_UNSELECTIVE_ITEMS, SCHEMA_FILE, acceptParsedSchema, advanceTriggerDate, applyMutateAction, buildActionSeedPrompt, buildCollectionActionSeedPrompt, buildWorkspaceOntology, collectionWritable, compileCsvQuery, compileJsonlQuery, compileRecordZ, computeCollectionIcon, computeSuccessor, configureCollectionHost, csvRowToItem, daysInMonth, decodeCsvRecordId, dedupeByRecordId, deleteCollection, deleteCollectionRefusalMessage, deleteCustomView, deleteItem, discoverCollections, encodeCsvRecordId, enrichItems, firstMutateParamProblem, formatCivil, generateItemId, getWorkspaceRoot, isContainedInRoot, isContainedInWorkspace, isRegularFile, isSafeActionTemplatePath, isSafeCustomViewI18nPath, isSafeCustomViewPath, isSafeTemplatePath, isTriggerDue, itemFilePath, listItems, loadCollection, log, makeManageCollectionTool, maybeSpawnSuccessor, normalizeCsvValue, pageFromFullRead, parseCivil, projectItemFields, promptPathsFor, publishCollectionChange, readCustomViewHtml, readCustomViewI18n, readItem, readOnlyRefusal, readSkillTemplate, recordFieldProblem, resolveCreateItemId, resolveDataDir, resolveEvery, resolveTemplatePath, runCollectionQuery, runQueryOverRows, safeRecordId, safeSlugName, schemaRelations, setCollectionChangePublisher, storeFor, successorId, toDetail, toSummary, validateCollectionRecords, validateRecordObject, writeItem };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("../rolldown-runtime-D6vf50IK.cjs");
|
|
3
3
|
const require_ids = require("../ids-DWmHjm17.cjs");
|
|
4
|
-
const require_promptSafety = require("../promptSafety-
|
|
4
|
+
const require_promptSafety = require("../promptSafety-BFt2g_wn.cjs");
|
|
5
5
|
require("../collection/index.cjs");
|
|
6
|
-
const require_discovery = require("../discovery-
|
|
7
|
-
const require_server = require("../server-
|
|
6
|
+
const require_discovery = require("../discovery-BKovdRpZ.cjs");
|
|
7
|
+
const require_server = require("../server-rRQkNBvO.cjs");
|
|
8
8
|
const require_notifier = require("../notifier-bS8IEeLA.cjs");
|
|
9
9
|
let node_path = require("node:path");
|
|
10
10
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { p as fieldText } from "../ids-D1M1T6KJ.js";
|
|
2
|
-
import { S as itemIsDone, j as whenMatches } from "../promptSafety-
|
|
2
|
+
import { S as itemIsDone, j as whenMatches } from "../promptSafety-cZIeiZtB.js";
|
|
3
3
|
import "../collection/index.js";
|
|
4
|
-
import { W as itemFilePath, n as discoverCollections, r as loadCollection, tt as publishCollectionChange, u as storeFor } from "../discovery-
|
|
5
|
-
import { d as isTriggerDue, f as maybeSpawnSuccessor } from "../server-
|
|
4
|
+
import { W as itemFilePath, n as discoverCollections, r as loadCollection, tt as publishCollectionChange, u as storeFor } from "../discovery-BVdCgBFN.js";
|
|
5
|
+
import { d as isTriggerDue, f as maybeSpawnSuccessor } from "../server-B8mvfZSF.js";
|
|
6
6
|
import { d as publish, m as updateForPlugin, n as clear, s as listAll } from "../notifier-ChpY0XrY.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import { watch } from "node:fs";
|
|
@@ -861,13 +861,23 @@ function decodeCsvRecordId(itemId) {
|
|
|
861
861
|
* (date-only when the clock is exactly UTC midnight, matching the `date`
|
|
862
862
|
* field contract), exotic DuckDB values → their string form. Pure +
|
|
863
863
|
* exported for unit tests. */
|
|
864
|
+
/** `JSON.stringify` restricted to what a CSV cell can survive. Returns the
|
|
865
|
+
* serialised value, or `String(value)` when serialisation is impossible —
|
|
866
|
+
* losing the content of one cell is bad, failing the entire query is worse. */
|
|
867
|
+
function safeJsonCell(value) {
|
|
868
|
+
try {
|
|
869
|
+
return JSON.stringify(value, (_key, entry) => typeof entry === "bigint" ? entry.toString() : entry) ?? String(value);
|
|
870
|
+
} catch {
|
|
871
|
+
return String(value);
|
|
872
|
+
}
|
|
873
|
+
}
|
|
864
874
|
function normalizeCsvValue(value) {
|
|
865
875
|
if (typeof value === "bigint") return value <= BigInt(Number.MAX_SAFE_INTEGER) && value >= BigInt(-Number.MAX_SAFE_INTEGER) ? Number(value) : value.toString();
|
|
866
876
|
if (value instanceof Date) {
|
|
867
877
|
const iso = value.toISOString();
|
|
868
878
|
return iso.endsWith("T00:00:00.000Z") ? iso.slice(0, 10) : iso;
|
|
869
879
|
}
|
|
870
|
-
if (value !== null && typeof value === "object") return
|
|
880
|
+
if (value !== null && typeof value === "object") return safeJsonCell(value);
|
|
871
881
|
return value;
|
|
872
882
|
}
|
|
873
883
|
/** One raw DuckDB row → a CollectionItem, or null when the key cell is
|
|
@@ -878,10 +888,11 @@ function normalizeCsvValue(value) {
|
|
|
878
888
|
function csvRowToItem(row, primaryKey) {
|
|
879
889
|
const normalized = Object.fromEntries(Object.entries(row).map(([key, value]) => [key, normalizeCsvValue(value)]));
|
|
880
890
|
const rawKey = normalized[primaryKey];
|
|
881
|
-
|
|
891
|
+
const keyText = require_ids.fieldTextOrNull(rawKey);
|
|
892
|
+
if (keyText === null || keyText === "") return null;
|
|
882
893
|
return {
|
|
883
894
|
...normalized,
|
|
884
|
-
[primaryKey]: encodeCsvRecordId(
|
|
895
|
+
[primaryKey]: encodeCsvRecordId(keyText)
|
|
885
896
|
};
|
|
886
897
|
}
|
|
887
898
|
/** Dedupe by record id, LAST row wins (matches `csvRead`'s last-match
|
|
@@ -1398,8 +1409,8 @@ function sqliteStoreFor(collection, opts) {
|
|
|
1398
1409
|
* is filesystem-dependent; paging needs determinism. */
|
|
1399
1410
|
function sortByRecordId(items, primaryKey) {
|
|
1400
1411
|
return [...items].sort((left, right) => {
|
|
1401
|
-
const leftId =
|
|
1402
|
-
const rightId =
|
|
1412
|
+
const leftId = require_ids.fieldText(left[primaryKey]);
|
|
1413
|
+
const rightId = require_ids.fieldText(right[primaryKey]);
|
|
1403
1414
|
if (leftId < rightId) return -1;
|
|
1404
1415
|
return leftId > rightId ? 1 : 0;
|
|
1405
1416
|
});
|
|
@@ -2034,7 +2045,8 @@ function fieldDrivenFromFieldCarried(schema) {
|
|
|
2034
2045
|
if (set && Object.prototype.hasOwnProperty.call(set, driven.fromField)) {
|
|
2035
2046
|
const raw = set[driven.fromField];
|
|
2036
2047
|
if (raw === void 0 || raw === null || raw === "") return false;
|
|
2037
|
-
|
|
2048
|
+
const key = require_ids.fieldTextOrNull(raw);
|
|
2049
|
+
return key !== null && Object.prototype.hasOwnProperty.call(driven.map, key);
|
|
2038
2050
|
}
|
|
2039
2051
|
return (carry ?? []).includes(driven.fromField);
|
|
2040
2052
|
}
|
|
@@ -2852,4 +2864,4 @@ Object.defineProperty(exports, "writeItem", {
|
|
|
2852
2864
|
}
|
|
2853
2865
|
});
|
|
2854
2866
|
|
|
2855
|
-
//# sourceMappingURL=discovery-
|
|
2867
|
+
//# sourceMappingURL=discovery-BKovdRpZ.cjs.map
|