@mulmoclaude/core 4.0.1 → 4.1.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/assets/helps/collection-skills.md +25 -1
- package/assets/helps/error-recovery.md +63 -0
- package/dist/collection/core/draft.d.ts +9 -1
- package/dist/collection/core/fieldDefaults.d.ts +28 -0
- package/dist/collection/core/schemaZ.d.ts +3 -0
- package/dist/collection/index.cjs +18 -7
- package/dist/collection/index.cjs.map +1 -1
- package/dist/collection/index.d.ts +1 -0
- package/dist/collection/index.js +16 -8
- 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/index.cjs +4 -2
- package/dist/collection/server/index.js +3 -3
- package/dist/collection/server/manageTool.d.ts +29 -0
- package/dist/collection-watchers/index.cjs +3 -3
- package/dist/collection-watchers/index.js +3 -3
- package/dist/{discovery-C_3gXoin.cjs → discovery-B9EESjHP.cjs} +15 -3
- package/dist/{discovery-C_3gXoin.cjs.map → discovery-B9EESjHP.cjs.map} +1 -1
- package/dist/{discovery-CQp0wi-n.js → discovery-D88x2DmW.js} +15 -3
- package/dist/{discovery-CQp0wi-n.js.map → discovery-D88x2DmW.js.map} +1 -1
- 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 +3 -3
- package/dist/google/index.js.map +1 -1
- package/dist/{promptSafety-CSdyp7RF.js → promptSafety-CJ-sC1pX.js} +43 -2
- package/dist/promptSafety-CJ-sC1pX.js.map +1 -0
- package/dist/{promptSafety-CWqYq-NS.cjs → promptSafety-CuczAN9d.cjs} +60 -1
- package/dist/promptSafety-CuczAN9d.cjs.map +1 -0
- package/dist/{server-BIewQYpC.js → server-L12n8We3.js} +221 -14
- package/dist/{server-BIewQYpC.js.map → server-L12n8We3.js.map} +1 -1
- package/dist/{server-CF_tGCGP.cjs → server-meS6kjBN.cjs} +231 -12
- package/dist/{server-CF_tGCGP.cjs.map → server-meS6kjBN.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/promptSafety-CSdyp7RF.js.map +0 -1
- package/dist/promptSafety-CWqYq-NS.cjs.map +0 -1
|
@@ -2403,11 +2403,23 @@ var MoneyFieldZ = z.object({
|
|
|
2403
2403
|
...currencyKeys
|
|
2404
2404
|
}).refine(hasCurrencySource, currencyMessage);
|
|
2405
2405
|
/** A closed set of allowed string values. The form renders a `<select>`
|
|
2406
|
-
* populated from `values`; storage is a plain string.
|
|
2406
|
+
* populated from `values`; storage is a plain string.
|
|
2407
|
+
*
|
|
2408
|
+
* `default` pre-fills a NEW record — the Add form starts on it, and a
|
|
2409
|
+
* `putItems` row in `create` mode that omits the field gets it. Never applied
|
|
2410
|
+
* on `merge` / `upsert`: those edit a record that already answered this.
|
|
2411
|
+
*
|
|
2412
|
+
* Membership in `values` is NOT checked here on purpose. This schema is what
|
|
2413
|
+
* discovery parses on every load, and a rejection there drops the whole
|
|
2414
|
+
* collection out of the index (`discovery.ts`) — too steep a price for a
|
|
2415
|
+
* cosmetic key, and the key was silently ignored before #2839, so a stale one
|
|
2416
|
+
* may already sit in someone's file. `putSchema` refuses a non-member instead,
|
|
2417
|
+
* where the author is present to read the reason. */
|
|
2407
2418
|
var EnumFieldZ = z.object({
|
|
2408
2419
|
type: z.literal("enum"),
|
|
2409
2420
|
...fieldBase,
|
|
2410
|
-
values: z.array(z.string().trim().min(1)).min(1)
|
|
2421
|
+
values: z.array(z.string().trim().min(1)).min(1),
|
|
2422
|
+
default: z.string().trim().min(1).optional()
|
|
2411
2423
|
});
|
|
2412
2424
|
var subFieldBase = {
|
|
2413
2425
|
label: z.string().min(1),
|
|
@@ -3303,4 +3315,4 @@ function toDetail(collection) {
|
|
|
3303
3315
|
//#endregion
|
|
3304
3316
|
export { collectionsRegistriesConfigPath as $, readItem as A, SCHEMA_FILE as B, CollectionQueryZ as C, generateItemId as D, deleteItem as E, loadAppManifest as F, safeRecordId as G, itemFilePath as H, parseAppManifest as I, isBackendUnavailable as J, safeSlugName as K, sharedItemsPath as L, writeItem as M, APP_MANIFEST_FILE as N, isRegularFile as O, appManifestReason as P, collectionChangePayload as Q, pageFromFullRead as R, compileJsonlQuery as S, MAX_QUERY_ROWS as T, resolveDataDir as U, isContainedInRoot as V, resolveTemplatePath as W, archiveDir as X, COLLECTION_ROOT_REQUIRED as Y, collectionChangeKey as Z, dedupeByRecordId as _, createHostSlot as _t, toDetail as a, localCollectionKey as at, queryCsv as b, resolveMutateSet as c, projectSkillsDir as ct, storeFor as d, setFirestoreAccessor as dt, configureCollectionHost as et, checkpointSqliteDatabase as f, setSharedCollectionsSupport as ft, decodeCsvRecordId as g, createForwardingLogger as gt, csvRowToItem as h, stagingSkillDir as ht, resolvePrimaryField as i, isPresetSlug as it, resolveCreateItemId as j, listItems as k, collectionWritable as l, publishCollectionChange as lt, cacheDir as m, skillsStagingDir as mt, discoverCollections as n, getWorkspaceRoot as nt, toSummary as o, log as ot, MAX_CSV_ROWS as p, sharedCollectionChangePayload as pt, BackendUnavailableError as q, loadCollection as r, hostSupportsSharedCollections as rt, CollectionSchemaZ as s, peekWorkspaceRoot as st, acceptParsedSchema as t, firestoreHandle as tt, readOnlyRefusal as u, setCollectionChangePublisher as ut, encodeCsvRecordId as v, DEFAULT_QUERY_ROWS as w, compileCsvQuery as x, normalizeCsvValue as y, projectItemFields as z };
|
|
3305
3317
|
|
|
3306
|
-
//# sourceMappingURL=discovery-
|
|
3318
|
+
//# sourceMappingURL=discovery-D88x2DmW.js.map
|