@remnic/core 9.6.23 → 9.6.25
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-admin-ops-surface.js +1 -1
- package/dist/access-boundary.js +1 -1
- package/dist/access-cli.js +4 -4
- package/dist/access-http.js +3 -3
- package/dist/access-identity-continuity-surface.js +1 -1
- package/dist/access-lcm-surface.js +1 -1
- package/dist/access-mcp.js +2 -2
- package/dist/access-observe-write-surface.js +1 -1
- package/dist/access-operations-batch.js +1 -1
- package/dist/access-operations.d.ts +3 -3
- package/dist/access-operations.js +1 -1
- package/dist/access-recall-surface.js +1 -1
- package/dist/access-schema.d.ts +64 -64
- package/dist/access-service.js +1 -1
- package/dist/{chunk-KEY3FEMP.js → chunk-43VNWTBB.js} +3 -3
- package/dist/{chunk-A2OFRQ5B.js → chunk-N6VIXDT7.js} +2 -2
- package/dist/{chunk-ERA5RSMZ.js → chunk-P32IDSHD.js} +1 -1
- package/dist/{chunk-ERA5RSMZ.js.map → chunk-P32IDSHD.js.map} +1 -1
- package/dist/{chunk-D3D677BV.js → chunk-QLYLTKUG.js} +4 -4
- package/dist/{chunk-D3D677BV.js.map → chunk-QLYLTKUG.js.map} +1 -1
- package/dist/cli.js +4 -4
- package/dist/coding/coding-graph-types.d.ts +23 -1
- package/dist/coding/coding-graph-types.js +1 -1
- package/dist/coding/optional-coding-graph.js +1 -1
- package/dist/index.js +4 -4
- package/dist/orchestrator.js +4 -4
- package/dist/schemas.d.ts +74 -74
- package/dist/shared-context/manager.d.ts +8 -8
- package/dist/transfer/types.d.ts +66 -66
- package/package.json +2 -2
- package/src/access-http.test.ts +2 -2
- package/src/access-mcp.test.ts +2 -2
- package/src/access-mcp.ts +3 -3
- package/src/access-service-coding-write.test.ts +18 -18
- package/src/access-service-lcm-forgery.test.ts +5 -5
- package/src/access-service-observe-lcm-parity.test.ts +25 -25
- package/src/access-service-observe-scope.test.ts +16 -16
- package/src/access-service-project-tag.test.ts +2 -2
- package/src/access-service-raw-excerpt-read-gate.test.ts +1 -1
- package/src/coding/coding-graph-types.ts +23 -0
- package/src/coding/coding-namespace.test.ts +3 -3
- package/src/coding/wire-coding-context.test.ts +22 -22
- package/src/issue-1492-coding-mode-consistency.test.ts +2 -2
- /package/dist/{chunk-KEY3FEMP.js.map → chunk-43VNWTBB.js.map} +0 -0
- /package/dist/{chunk-A2OFRQ5B.js.map → chunk-N6VIXDT7.js.map} +0 -0
|
@@ -213,7 +213,7 @@ import {
|
|
|
213
213
|
} from "./chunk-OADWQ5CR.js";
|
|
214
214
|
import {
|
|
215
215
|
EngramAccessHttpServer
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-N6VIXDT7.js";
|
|
217
217
|
import {
|
|
218
218
|
WearablesInputError
|
|
219
219
|
} from "./chunk-V7IZKJI3.js";
|
|
@@ -226,7 +226,7 @@ import {
|
|
|
226
226
|
createProductionChatLlmAdapter,
|
|
227
227
|
loadChatSession,
|
|
228
228
|
sessionBelongsToPrincipal
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-QLYLTKUG.js";
|
|
230
230
|
import {
|
|
231
231
|
EngramAccessService
|
|
232
232
|
} from "./chunk-YDF4HL3W.js";
|
|
@@ -7608,4 +7608,4 @@ export {
|
|
|
7608
7608
|
listMemoryMarkdownFilePaths,
|
|
7609
7609
|
registerCli
|
|
7610
7610
|
};
|
|
7611
|
-
//# sourceMappingURL=chunk-
|
|
7611
|
+
//# sourceMappingURL=chunk-43VNWTBB.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
processChatMessage,
|
|
14
14
|
sessionBelongsToPrincipal,
|
|
15
15
|
subscribeChatTranscript
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QLYLTKUG.js";
|
|
17
17
|
import {
|
|
18
18
|
validateRequest
|
|
19
19
|
} from "./chunk-2MR3MFQB.js";
|
|
@@ -2964,4 +2964,4 @@ function positiveIntQueryParam(value, label) {
|
|
|
2964
2964
|
export {
|
|
2965
2965
|
EngramAccessHttpServer
|
|
2966
2966
|
};
|
|
2967
|
-
//# sourceMappingURL=chunk-
|
|
2967
|
+
//# sourceMappingURL=chunk-N6VIXDT7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/coding/coding-graph-types.ts"],"sourcesContent":["// Engine contract types for the optional @remnic/coding-graph package.\n//\n// These types are owned by @remnic/core so the base install compiles even\n// when @remnic/coding-graph is not present (it is an optional peer dep —\n// installed only on host machines that opt in to codebase-graph features).\n//\n// @remnic/coding-graph imports these types and implements them; it does\n// not redefine them. This breaks the type-source-direction cycle that\n// would otherwise require core to import coding-graph at compile time\n// (core's tsup DTS phase emits declarations against the package's\n// compiled output, which would fail when the optional package is not\n// installed in CI's base install).\n//\n// Dependency direction:\n//\n// @remnic/core ──── owns ───► CodingGraphEngine (this file)\n// ▲\n// │ peer + devDep (workspace)\n// │\n// @remnic/coding-graph (implements against these types)\n//\n// Per #1551 PR1 — these are the full contract surface. PR2 fills the\n// extractors; PR3+ lands the walker, determinism, and grammarDir\n// behaviour behind the same `parseFile()` entry point.\n\n// ---------------------------------------------------------------------------\n// Version constant — surfaced through the engine instance so consumers can\n// advertise what they expect. Bumped in lockstep with the package version\n// during active development.\n// ---------------------------------------------------------------------------\nexport const CODING_GRAPH_ENGINE_VERSION = \"0.1.0-pr1\" as const;\n\n// ---------------------------------------------------------------------------\n// Tier-1 language list — declared here so consumers can drive their own\n// tools against the engine without touching the optional package. Order is\n// stable; per-language configuration is the engine's concern.\n// ---------------------------------------------------------------------------\nexport const TIER_1_LANGUAGES = [\n \"typescript\",\n \"tsx\",\n \"javascript\",\n \"python\",\n \"go\",\n \"rust\",\n \"java\",\n \"c\",\n \"cpp\",\n \"csharp\",\n \"ruby\",\n \"php\",\n \"kotlin\",\n \"swift\",\n \"bash\",\n] as const;\n\nexport type CodingGraphLanguage = (typeof TIER_1_LANGUAGES)[number];\n\n// ---------------------------------------------------------------------------\n// Tagged error code — the load-bearing signal for programmatic detection of\n// placeholder / install / load failure states. New codes must be added here\n// so consumers see them via TypeScript.\n// ---------------------------------------------------------------------------\nexport type CodingGraphErrorCode =\n | \"not_implemented\"\n | \"module_load_failed\";\n\n// ---------------------------------------------------------------------------\n// Engine interface — the contract coding-graph implements against.\n// ---------------------------------------------------------------------------\nexport interface CodingGraphEngine {\n /** Engine version reported at construction time. */\n readonly engineVersion: string;\n /** Tier-1 languages this build supports (PR2 narrows by grammar availability). */\n readonly supportedLanguages: readonly CodingGraphLanguage[];\n /**\n * Parse a single source file and emit its FileIR.\n *\n * PR1 throws `CodingGraphError(\"not_implemented\", …)`. PR2 will return\n * `ParseResult`; failure paths come back as\n * `{ ok: false, code: \"parse_failed\", path, message }` (rule 44) rather\n * than partial / silent IR.\n */\n parseFile(input: ParseFileInput): Promise<ParseResult>;\n /** Engine lifecycle — release any cached parsers/grammars. */\n dispose(): Promise<void>;\n}\n\n// ---------------------------------------------------------------------------\n// Parse input/output\n// ---------------------------------------------------------------------------\nexport interface ParseFileInput {\n /** Repository-relative path (forward slashes; no leading `./`). */\n readonly path: string;\n /** Raw file bytes; hashing happens inside the engine (rule 23). */\n readonly content: Uint8Array;\n /**\n * Optional override. When omitted the engine sniffs the language from\n * `path` extensions against its built-in tier-1 list (PR2).\n */\n readonly language?: CodingGraphLanguage;\n}\n\nexport type ParseResult =\n | { readonly ok: true; readonly ir: FileIR }\n | {\n readonly ok: false;\n readonly code: \"parse_failed\";\n readonly path: string;\n readonly message: string;\n };\n\n// ---------------------------------------------------------------------------\n// FileIR — the seam between the parser (optional package) and the graph\n// store (sibling issue #1552). Field types are the minimal viable set per\n// the issue's design section.\n// ---------------------------------------------------------------------------\nexport interface FileIR {\n readonly path: string;\n readonly language: CodingGraphLanguage;\n /** SHA-256 of the raw bytes; rule 23 — every consumer hashes the same form. */\n readonly contentHash: string;\n readonly symbols: readonly SymbolIR[];\n readonly imports: readonly ImportIR[];\n readonly exports: readonly ExportIR[];\n readonly callSites: readonly CallSiteIR[];\n readonly routes: readonly RouteIR[];\n}\n\nexport interface SymbolIR {\n readonly kind:\n | \"function\"\n | \"class\"\n | \"method\"\n | \"interface\"\n | \"enum\"\n | \"type\"\n | \"module\";\n readonly name: string;\n readonly qualifiedName: string;\n /** Half-open byte span `[startByte, endByte)`. Rule 35. */\n readonly span: { readonly startByte: number; readonly endByte: number };\n readonly parentQualifiedName?: string;\n}\n\nexport interface ImportIR {\n /** Raw module specifier as written in source. */\n readonly module: string;\n readonly importedNames: readonly string[];\n readonly span: { readonly startByte: number; readonly endByte: number };\n}\n\nexport interface ExportIR {\n readonly name: string;\n readonly span: { readonly startByte: number; readonly endByte: number };\n}\n\nexport interface CallSiteIR {\n readonly calleeNameCandidates: readonly string[];\n readonly span: { readonly startByte: number; readonly endByte: number };\n}\n\nexport interface RouteIR {\n /** HTTP verb in upper-case, or framework-native verb (e.g. \"ANY\"). */\n readonly verb: string;\n readonly pathTemplate: string;\n readonly handlerQualifiedName: string;\n readonly span: { readonly startByte: number; readonly endByte: number };\n}\n\n// ---------------------------------------------------------------------------\n// Factory options\n// ---------------------------------------------------------------------------\n/**\n * Reserved for PR2. Declared now so the public surface is stable; the\n * options object is intentionally empty in PR1.\n */\nexport interface CreateCodingGraphEngineOptions {\n /** Reserved for PR2: extra grammar directory supplied by the operator. */\n readonly grammarDir?: never;\n}\n"],"mappings":";AA8BO,IAAM,8BAA8B;AAOpC,IAAM,mBAAmB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/coding/coding-graph-types.ts"],"sourcesContent":["// Engine contract types for the optional @remnic/coding-graph package.\n//\n// These types are owned by @remnic/core so the base install compiles even\n// when @remnic/coding-graph is not present (it is an optional peer dep —\n// installed only on host machines that opt in to codebase-graph features).\n//\n// @remnic/coding-graph imports these types and implements them; it does\n// not redefine them. This breaks the type-source-direction cycle that\n// would otherwise require core to import coding-graph at compile time\n// (core's tsup DTS phase emits declarations against the package's\n// compiled output, which would fail when the optional package is not\n// installed in CI's base install).\n//\n// Dependency direction:\n//\n// @remnic/core ──── owns ───► CodingGraphEngine (this file)\n// ▲\n// │ peer + devDep (workspace)\n// │\n// @remnic/coding-graph (implements against these types)\n//\n// Per #1551 PR1 — these are the full contract surface. PR2 fills the\n// extractors; PR3+ lands the walker, determinism, and grammarDir\n// behaviour behind the same `parseFile()` entry point.\n\n// ---------------------------------------------------------------------------\n// Version constant — surfaced through the engine instance so consumers can\n// advertise what they expect. Bumped in lockstep with the package version\n// during active development.\n// ---------------------------------------------------------------------------\nexport const CODING_GRAPH_ENGINE_VERSION = \"0.1.0-pr1\" as const;\n\n// ---------------------------------------------------------------------------\n// Tier-1 language list — declared here so consumers can drive their own\n// tools against the engine without touching the optional package. Order is\n// stable; per-language configuration is the engine's concern.\n// ---------------------------------------------------------------------------\nexport const TIER_1_LANGUAGES = [\n \"typescript\",\n \"tsx\",\n \"javascript\",\n \"python\",\n \"go\",\n \"rust\",\n \"java\",\n \"c\",\n \"cpp\",\n \"csharp\",\n \"ruby\",\n \"php\",\n \"kotlin\",\n \"swift\",\n \"bash\",\n] as const;\n\nexport type CodingGraphLanguage = (typeof TIER_1_LANGUAGES)[number];\n\n// ---------------------------------------------------------------------------\n// Tagged error code — the load-bearing signal for programmatic detection of\n// placeholder / install / load failure states. New codes must be added here\n// so consumers see them via TypeScript.\n// ---------------------------------------------------------------------------\nexport type CodingGraphErrorCode =\n | \"not_implemented\"\n | \"module_load_failed\";\n\n// ---------------------------------------------------------------------------\n// Engine interface — the contract coding-graph implements against.\n// ---------------------------------------------------------------------------\nexport interface CodingGraphEngine {\n /** Engine version reported at construction time. */\n readonly engineVersion: string;\n /** Tier-1 languages this build supports (PR2 narrows by grammar availability). */\n readonly supportedLanguages: readonly CodingGraphLanguage[];\n /**\n * Parse a single source file and emit its FileIR.\n *\n * PR1 throws `CodingGraphError(\"not_implemented\", …)`. PR2 will return\n * `ParseResult`; failure paths come back as\n * `{ ok: false, code: \"parse_failed\", path, message }` (rule 44) rather\n * than partial / silent IR.\n */\n parseFile(input: ParseFileInput): Promise<ParseResult>;\n /** Engine lifecycle — release any cached parsers/grammars. */\n dispose(): Promise<void>;\n}\n\n// ---------------------------------------------------------------------------\n// Parse input/output\n// ---------------------------------------------------------------------------\nexport interface ParseFileInput {\n /** Repository-relative path (forward slashes; no leading `./`). */\n readonly path: string;\n /** Raw file bytes; hashing happens inside the engine (rule 23). */\n readonly content: Uint8Array;\n /**\n * Optional override. When omitted the engine sniffs the language from\n * `path` extensions against its built-in tier-1 list (PR2).\n */\n readonly language?: CodingGraphLanguage;\n}\n\nexport type ParseResult =\n | { readonly ok: true; readonly ir: FileIR }\n | {\n readonly ok: false;\n readonly code: \"parse_failed\";\n readonly path: string;\n readonly message: string;\n };\n\n// ---------------------------------------------------------------------------\n// FileIR — the seam between the parser (optional package) and the graph\n// store (sibling issue #1552). Field types are the minimal viable set per\n// the issue's design section.\n// ---------------------------------------------------------------------------\nexport interface FileIR {\n readonly path: string;\n readonly language: CodingGraphLanguage;\n /** SHA-256 of the raw bytes; rule 23 — every consumer hashes the same form. */\n readonly contentHash: string;\n readonly symbols: readonly SymbolIR[];\n readonly imports: readonly ImportIR[];\n readonly exports: readonly ExportIR[];\n readonly callSites: readonly CallSiteIR[];\n readonly routes: readonly RouteIR[];\n}\n\nexport interface SymbolIR {\n readonly kind:\n | \"function\"\n | \"class\"\n | \"method\"\n | \"interface\"\n | \"enum\"\n | \"type\"\n | \"module\";\n readonly name: string;\n readonly qualifiedName: string;\n /** Half-open byte span `[startByte, endByte)`. Rule 35. */\n readonly span: { readonly startByte: number; readonly endByte: number };\n readonly parentQualifiedName?: string;\n}\n\nexport interface ImportIR {\n /** Raw module specifier as written in source. */\n readonly module: string;\n /** Exported names as declared by the source module (pre-alias). */\n readonly importedNames: readonly string[];\n /**\n * Alias-aware bindings (issue #1894 review): `local` is the identifier\n * usable at call sites in THIS file; `exported` is the name in the\n * source module. For non-aliased imports the two are equal. Optional so\n * pre-existing IR consumers and JSON fixtures stay valid; when absent,\n * consumers treat every `importedNames` entry as `local === exported`.\n */\n readonly bindings?: readonly ImportBindingIR[];\n readonly span: { readonly startByte: number; readonly endByte: number };\n}\n\nexport interface ImportBindingIR {\n /** Name exported by the source module. */\n readonly exported: string;\n /** Local identifier bound in the importing file. */\n readonly local: string;\n}\n\nexport interface ExportIR {\n readonly name: string;\n readonly span: { readonly startByte: number; readonly endByte: number };\n}\n\nexport interface CallSiteIR {\n readonly calleeNameCandidates: readonly string[];\n /**\n * True when the callee is a member/property access (`obj.save()`,\n * `recv.field()`), issue #1894 review: bare-name heuristics must never\n * bind these — method dispatch is Phase B (LSP) territory. Optional so\n * pre-existing IR stays valid; absent = false.\n */\n readonly memberAccess?: boolean;\n readonly span: { readonly startByte: number; readonly endByte: number };\n}\n\nexport interface RouteIR {\n /** HTTP verb in upper-case, or framework-native verb (e.g. \"ANY\"). */\n readonly verb: string;\n readonly pathTemplate: string;\n readonly handlerQualifiedName: string;\n readonly span: { readonly startByte: number; readonly endByte: number };\n}\n\n// ---------------------------------------------------------------------------\n// Factory options\n// ---------------------------------------------------------------------------\n/**\n * Reserved for PR2. Declared now so the public surface is stable; the\n * options object is intentionally empty in PR1.\n */\nexport interface CreateCodingGraphEngineOptions {\n /** Reserved for PR2: extra grammar directory supplied by the operator. */\n readonly grammarDir?: never;\n}\n"],"mappings":";AA8BO,IAAM,8BAA8B;AAOpC,IAAM,mBAAmB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
|
|
@@ -1425,7 +1425,7 @@ var EngramMcpServer = class {
|
|
|
1425
1425
|
cwd: { type: "string", description: "Working directory for auto git-context resolution." },
|
|
1426
1426
|
projectTag: {
|
|
1427
1427
|
type: "string",
|
|
1428
|
-
description: "Project tag for non-git project scoping (e.g. '
|
|
1428
|
+
description: "Project tag for non-git project scoping (e.g. 'acme-webshop')."
|
|
1429
1429
|
},
|
|
1430
1430
|
asOf: {
|
|
1431
1431
|
type: "string",
|
|
@@ -1490,7 +1490,7 @@ var EngramMcpServer = class {
|
|
|
1490
1490
|
},
|
|
1491
1491
|
projectTag: {
|
|
1492
1492
|
type: "string",
|
|
1493
|
-
description: "Arbitrary project tag for non-git project scoping (e.g. '
|
|
1493
|
+
description: "Arbitrary project tag for non-git project scoping (e.g. 'acme-webshop'). Creates a coding context with projectId 'tag:<projectTag>'. Use instead of codingContext when the session isn't tied to a specific git repo."
|
|
1494
1494
|
}
|
|
1495
1495
|
},
|
|
1496
1496
|
required: ["sessionKey"],
|
|
@@ -2133,7 +2133,7 @@ var EngramMcpServer = class {
|
|
|
2133
2133
|
cwd: { type: "string", description: "Working directory for auto git-context resolution." },
|
|
2134
2134
|
projectTag: {
|
|
2135
2135
|
type: "string",
|
|
2136
|
-
description: "Project tag for non-git project scoping (e.g. '
|
|
2136
|
+
description: "Project tag for non-git project scoping (e.g. 'acme-webshop')."
|
|
2137
2137
|
}
|
|
2138
2138
|
},
|
|
2139
2139
|
required: ["sessionKey", "messages"],
|
|
@@ -3771,4 +3771,4 @@ export {
|
|
|
3771
3771
|
MCP_SUPPORTED_PROTOCOL_VERSIONS,
|
|
3772
3772
|
EngramMcpServer
|
|
3773
3773
|
};
|
|
3774
|
-
//# sourceMappingURL=chunk-
|
|
3774
|
+
//# sourceMappingURL=chunk-QLYLTKUG.js.map
|