@remnic/core 9.3.647 → 9.3.649
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/access-cli.js +10 -10
- package/dist/access-http.js +10 -10
- package/dist/access-mcp.js +9 -9
- package/dist/access-service.js +8 -8
- package/dist/{chunk-L7W5YW6Y.js → chunk-5ETA6OAS.js} +2 -2
- package/dist/{chunk-DCGT4FPP.js → chunk-76QTEJ2Q.js} +2 -2
- package/dist/{chunk-XUGQQPGO.js → chunk-AGRPGAKR.js} +12 -1
- package/dist/chunk-AGRPGAKR.js.map +1 -0
- package/dist/{chunk-RAELB5NX.js → chunk-CNRZ6WJU.js} +3 -3
- package/dist/{chunk-3MAONBX3.js → chunk-FOVPSMGI.js} +2 -2
- package/dist/{chunk-3D6L7CEP.js → chunk-FQYFMIKG.js} +14 -17
- package/dist/chunk-FQYFMIKG.js.map +1 -0
- package/dist/{chunk-ZPPFKVSD.js → chunk-FUXV6HSO.js} +2 -2
- package/dist/{chunk-MUKXANAM.js → chunk-I4COC5XW.js} +49 -6
- package/dist/{chunk-MUKXANAM.js.map → chunk-I4COC5XW.js.map} +1 -1
- package/dist/{chunk-APWJRJFW.js → chunk-NMIOW7XG.js} +86 -8
- package/dist/chunk-NMIOW7XG.js.map +1 -0
- package/dist/{chunk-FAV25DUZ.js → chunk-QT4THOLT.js} +1 -1
- package/dist/{chunk-FAV25DUZ.js.map → chunk-QT4THOLT.js.map} +1 -1
- package/dist/{chunk-FAYDM5WD.js → chunk-RRRCNIPK.js} +2 -2
- package/dist/{chunk-6BNFVP7Y.js → chunk-RZOBQ23O.js} +2 -2
- package/dist/{chunk-RG3LBSGH.js → chunk-TQUWNX7C.js} +2 -2
- package/dist/{chunk-U55D5UD5.js → chunk-WPCCNSWO.js} +5 -5
- package/dist/{chunk-TA4LQ5SR.js → chunk-XUGVP7ZU.js} +5 -5
- package/dist/{chunk-DC66QVL2.js → chunk-ZT6R3WR3.js} +2 -2
- package/dist/cli.js +15 -15
- package/dist/index.js +16 -16
- package/dist/namespaces/migrate.js +8 -8
- package/dist/namespaces/search.d.ts +1 -0
- package/dist/namespaces/search.js +7 -7
- package/dist/operator-toolkit.js +9 -9
- package/dist/orchestrator.js +9 -9
- package/dist/qmd.d.ts +1 -0
- package/dist/qmd.js +2 -2
- package/dist/resume-bundles.js +2 -2
- package/dist/schemas.d.ts +22 -22
- package/dist/search/factory.js +6 -6
- package/dist/search/index.js +6 -6
- package/dist/search/lancedb-backend.js +2 -2
- package/dist/search/meilisearch-backend.js +2 -2
- package/dist/search/orama-backend.js +2 -2
- package/dist/search/port.d.ts +6 -0
- package/dist/search/port.js +1 -1
- package/dist/transcript.d.ts +18 -1
- package/dist/transcript.js +5 -3
- package/dist/transfer/types.d.ts +12 -12
- package/package.json +1 -1
- package/src/cli.ts +10 -12
- package/src/namespaces/search.test.ts +218 -18
- package/src/namespaces/search.ts +122 -7
- package/src/qmd-client.test.ts +74 -1
- package/src/qmd.ts +52 -6
- package/src/search/port.ts +9 -0
- package/src/transcript-day-range.test.ts +101 -0
- package/src/transcript.ts +26 -0
- package/dist/chunk-3D6L7CEP.js.map +0 -1
- package/dist/chunk-APWJRJFW.js.map +0 -1
- package/dist/chunk-XUGQQPGO.js.map +0 -1
- /package/dist/{chunk-L7W5YW6Y.js.map → chunk-5ETA6OAS.js.map} +0 -0
- /package/dist/{chunk-DCGT4FPP.js.map → chunk-76QTEJ2Q.js.map} +0 -0
- /package/dist/{chunk-RAELB5NX.js.map → chunk-CNRZ6WJU.js.map} +0 -0
- /package/dist/{chunk-3MAONBX3.js.map → chunk-FOVPSMGI.js.map} +0 -0
- /package/dist/{chunk-ZPPFKVSD.js.map → chunk-FUXV6HSO.js.map} +0 -0
- /package/dist/{chunk-FAYDM5WD.js.map → chunk-RRRCNIPK.js.map} +0 -0
- /package/dist/{chunk-6BNFVP7Y.js.map → chunk-RZOBQ23O.js.map} +0 -0
- /package/dist/{chunk-RG3LBSGH.js.map → chunk-TQUWNX7C.js.map} +0 -0
- /package/dist/{chunk-U55D5UD5.js.map → chunk-WPCCNSWO.js.map} +0 -0
- /package/dist/{chunk-TA4LQ5SR.js.map → chunk-XUGVP7ZU.js.map} +0 -0
- /package/dist/{chunk-DC66QVL2.js.map → chunk-ZT6R3WR3.js.map} +0 -0
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-D24OXEPB.js";
|
|
12
12
|
import {
|
|
13
13
|
EngramAccessInputError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5ETA6OAS.js";
|
|
15
15
|
import {
|
|
16
16
|
projectTagProjectId
|
|
17
17
|
} from "./chunk-6GIKAUTN.js";
|
|
@@ -3102,4 +3102,4 @@ ${body}`;
|
|
|
3102
3102
|
export {
|
|
3103
3103
|
EngramMcpServer
|
|
3104
3104
|
};
|
|
3105
|
-
//# sourceMappingURL=chunk-
|
|
3105
|
+
//# sourceMappingURL=chunk-FUXV6HSO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveEnsureCollectionArgs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QT4THOLT.js";
|
|
4
4
|
import {
|
|
5
5
|
launchProcess
|
|
6
6
|
} from "./chunk-O75CRYGF.js";
|
|
@@ -1975,7 +1975,7 @@ var QmdClient = class _QmdClient {
|
|
|
1975
1975
|
log.warn(`QMD embed failed for collection ${name}: ${msg}`);
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
|
-
async
|
|
1978
|
+
async checkCollection(collectionOrExecution, execution) {
|
|
1979
1979
|
const { collection, execution: effectiveExecution } = resolveEnsureCollectionArgs(
|
|
1980
1980
|
collectionOrExecution,
|
|
1981
1981
|
execution
|
|
@@ -1992,16 +1992,59 @@ var QmdClient = class _QmdClient {
|
|
|
1992
1992
|
if (collectionRegex.test(stdout)) {
|
|
1993
1993
|
return "present";
|
|
1994
1994
|
}
|
|
1995
|
+
return "missing";
|
|
1995
1996
|
} catch (err) {
|
|
1996
1997
|
log.debug(
|
|
1997
1998
|
`QMD collection check unavailable for "${targetCollection}" (will not disable features): ${err instanceof Error ? err.message : String(err)}`
|
|
1998
1999
|
);
|
|
1999
2000
|
return "unknown";
|
|
2000
2001
|
}
|
|
2001
|
-
|
|
2002
|
-
|
|
2002
|
+
}
|
|
2003
|
+
async ensureCollection(memoryDir, collectionOrExecution, execution) {
|
|
2004
|
+
const { collection, execution: effectiveExecution } = resolveEnsureCollectionArgs(
|
|
2005
|
+
collectionOrExecution,
|
|
2006
|
+
execution
|
|
2003
2007
|
);
|
|
2004
|
-
|
|
2008
|
+
const targetCollection = collection ?? this.collection;
|
|
2009
|
+
const collectionState = await this.checkCollection(targetCollection, effectiveExecution);
|
|
2010
|
+
if (collectionState !== "missing") return collectionState;
|
|
2011
|
+
try {
|
|
2012
|
+
await this.runQmdCommand(
|
|
2013
|
+
["collection", "add", memoryDir, "--name", targetCollection],
|
|
2014
|
+
QMD_TIMEOUT_MS,
|
|
2015
|
+
effectiveExecution?.signal
|
|
2016
|
+
);
|
|
2017
|
+
log.info(
|
|
2018
|
+
`QMD collection "${targetCollection}" auto-created at ${memoryDir}`
|
|
2019
|
+
);
|
|
2020
|
+
return "present";
|
|
2021
|
+
} catch (err) {
|
|
2022
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
2023
|
+
if (isCallerCancellation(err, effectiveExecution?.signal)) {
|
|
2024
|
+
log.debug(
|
|
2025
|
+
`QMD collection auto-create for "${targetCollection}" was cancelled; keeping collection state unknown`
|
|
2026
|
+
);
|
|
2027
|
+
return "unknown";
|
|
2028
|
+
}
|
|
2029
|
+
const postCreateState = await this.checkCollection(targetCollection, effectiveExecution);
|
|
2030
|
+
if (postCreateState === "present") {
|
|
2031
|
+
log.info(
|
|
2032
|
+
`QMD collection "${targetCollection}" is present after auto-create failure; continuing`
|
|
2033
|
+
);
|
|
2034
|
+
return "present";
|
|
2035
|
+
}
|
|
2036
|
+
if (/\balready exists\b|\bexists already\b/i.test(msg)) {
|
|
2037
|
+
log.info(
|
|
2038
|
+
`QMD collection "${targetCollection}" already exists after concurrent auto-create; continuing`
|
|
2039
|
+
);
|
|
2040
|
+
return "present";
|
|
2041
|
+
}
|
|
2042
|
+
if (postCreateState !== "missing") return postCreateState;
|
|
2043
|
+
log.warn(
|
|
2044
|
+
`QMD collection "${targetCollection}" not found and auto-create failed: ${msg}`
|
|
2045
|
+
);
|
|
2046
|
+
return "missing";
|
|
2047
|
+
}
|
|
2005
2048
|
}
|
|
2006
2049
|
};
|
|
2007
2050
|
function escapeRegExp(value) {
|
|
@@ -2022,4 +2065,4 @@ export {
|
|
|
2022
2065
|
getQmdCommandName,
|
|
2023
2066
|
QmdClient
|
|
2024
2067
|
};
|
|
2025
|
-
//# sourceMappingURL=chunk-
|
|
2068
|
+
//# sourceMappingURL=chunk-I4COC5XW.js.map
|