@moldea.ai/core 5.0.1 → 6.0.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/README.md +11 -4
- package/dist/adapter/index.d.ts +16 -4
- package/dist/adapter/index.d.ts.map +1 -1
- package/dist/adapter-execution/index.d.ts +12 -9
- package/dist/adapter-execution/index.d.ts.map +1 -1
- package/dist/adapter-result-collection/collection.d.ts +13 -0
- package/dist/adapter-result-collection/collection.d.ts.map +1 -0
- package/dist/adapter-result-collection/index.d.ts +3 -0
- package/dist/adapter-result-collection/index.d.ts.map +1 -0
- package/dist/adapter-result-collection/types.d.ts +31 -0
- package/dist/adapter-result-collection/types.d.ts.map +1 -0
- package/dist/adapter.js +3 -2
- package/dist/adapter.js.map +1 -1
- package/dist/analysis-worker.js +190 -0
- package/dist/analysis-worker.js.map +1 -0
- package/dist/chunks/collection-CvbjjLf2.js +73 -0
- package/dist/chunks/collection-CvbjjLf2.js.map +1 -0
- package/dist/chunks/core-DchheNDz.js +5305 -0
- package/dist/chunks/core-DchheNDz.js.map +1 -0
- package/dist/chunks/errors-BQI1DEqf.js +446 -0
- package/dist/chunks/errors-BQI1DEqf.js.map +1 -0
- package/dist/chunks/{exceptions-HS9ofVy2.js → exceptions-lzD3buFw.js} +26 -15
- package/dist/chunks/exceptions-lzD3buFw.js.map +1 -0
- package/dist/chunks/lifecycle-4EkWgEHm.js +67 -0
- package/dist/chunks/lifecycle-4EkWgEHm.js.map +1 -0
- package/dist/chunks/options-CxCT3dZU.js +617 -0
- package/dist/chunks/options-CxCT3dZU.js.map +1 -0
- package/dist/chunks/repository-rpc-BWi6X1la.js +124 -0
- package/dist/chunks/repository-rpc-BWi6X1la.js.map +1 -0
- package/dist/contracts/index.d.ts +28 -18
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/custom-runtime-inspection/index.d.ts +2 -0
- package/dist/custom-runtime-inspection/index.d.ts.map +1 -0
- package/dist/custom-runtime-inspection/inspection.d.ts +11 -0
- package/dist/custom-runtime-inspection/inspection.d.ts.map +1 -0
- package/dist/exceptions/index.d.ts +23 -4
- package/dist/exceptions/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -5775
- package/dist/node/index.d.ts +4 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node-inspection/analysis-worker.d.ts +2 -0
- package/dist/node-inspection/analysis-worker.d.ts.map +1 -0
- package/dist/node-inspection/client.d.ts +32 -0
- package/dist/node-inspection/client.d.ts.map +1 -0
- package/dist/node-inspection/constants.d.ts +21 -0
- package/dist/node-inspection/constants.d.ts.map +1 -0
- package/dist/node-inspection/errors.d.ts +11 -0
- package/dist/node-inspection/errors.d.ts.map +1 -0
- package/dist/node-inspection/lifecycle.d.ts +15 -0
- package/dist/node-inspection/lifecycle.d.ts.map +1 -0
- package/dist/node-inspection/protocol.d.ts +20 -0
- package/dist/node-inspection/protocol.d.ts.map +1 -0
- package/dist/node-inspection/repository-rpc.d.ts +28 -0
- package/dist/node-inspection/repository-rpc.d.ts.map +1 -0
- package/dist/node-inspection/runner.d.ts +2 -0
- package/dist/node-inspection/runner.d.ts.map +1 -0
- package/dist/node-inspection/types.d.ts +99 -0
- package/dist/node-inspection/types.d.ts.map +1 -0
- package/dist/node-runner.js +149 -0
- package/dist/node-runner.js.map +1 -0
- package/dist/node.js +325 -0
- package/dist/node.js.map +1 -0
- package/dist/project-inspection/index.d.ts +22 -1
- package/dist/project-inspection/index.d.ts.map +1 -1
- package/dist/project-validation/index.d.ts +34 -10
- package/dist/project-validation/index.d.ts.map +1 -1
- package/package.json +9 -1
- package/dist/chunks/exceptions-HS9ofVy2.js.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options-CxCT3dZU.js","names":[],"sources":["../../src/constants/index.ts","../../src/immutable/index.ts","../../src/format-validation/index.ts","../../src/diagnostic-utilities/index.ts","../../src/options/index.ts"],"sourcesContent":["import type { ICoreResourceLimits } from '../contracts/index.js';\nimport type { IRepositoryFormatVersion } from '../format/index.js';\n\n// official runtime adapter IDs recognized by this Core release\nexport const RECOGNIZED_RUNTIME_ADAPTER_IDS = Object.freeze([\n 'anthropic',\n 'claude-agent-sdk',\n 'cloudflare-agents',\n 'custom',\n 'eve',\n 'google-genai',\n 'langchain',\n 'langgraph',\n 'openai',\n 'openai-agents-sdk',\n 'vercel-ai-sdk',\n] as const);\n\n// repository-format major versions interpreted by this Core release\nexport const SUPPORTED_REPOSITORY_FORMAT_VERSIONS: readonly IRepositoryFormatVersion[] =\n Object.freeze([1]);\n\n// default safety budgets applied independently to each Core operation\nexport const DEFAULT_CORE_RESOURCE_LIMITS: ICoreResourceLimits = Object.freeze({\n maxDiagnostics: 10_000,\n maxEntries: 100_000,\n maxEvidence: 10_000,\n maxFileBytes: 8_388_608,\n maxManifestBytes: 2_097_152,\n maxRetainedBytes: 536_870_912,\n maxTotalBytesRead: 134_217_728,\n});\n","/**\n * Recursively freezes a Core-owned value without cloning it.\n * @param value The detached acyclic value whose already-frozen objects are deeply frozen.\n * @returns The same value with every mutable reachable object frozen.\n */\nexport const freezeRecursively = <Value>(value: Value): Readonly<Value> => {\n if (typeof value !== 'object' || value === null || Object.isFrozen(value)) {\n return value;\n }\n\n for (const key of Reflect.ownKeys(value)) {\n const child = (value as Readonly<Record<PropertyKey, unknown>>)[key];\n freezeRecursively(child);\n }\n\n return Object.freeze(value);\n};\n\n/**\n * Creates a record that cannot collide with prototype-chain properties.\n * @param entries The own string-keyed entries to assign.\n * @returns A mutable null-prototype record for later normalization and freezing.\n */\nexport const createNullPrototypeRecord = <Value>(\n entries: Iterable<readonly [string, Value]>,\n): Record<string, Value> => {\n const record = Object.create(null) as Record<string, Value>;\n\n for (const [key, value] of entries) {\n record[key] = value;\n }\n\n return record;\n};\n","import { isRepositoryPath, parseRepositoryPath, type IRepositoryPath } from '@moldea.ai/repository';\n\nimport type { IRepositoryReference } from '../format/index.js';\n\nconst STABLE_ID_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/u;\nconst VARIABLE_ID_PATTERN = /^[A-Z][A-Z0-9_]*$/u;\nconst WINDOWS_RESERVED_ID_PATTERN = /^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$/u;\nconst LINE_BREAK_CHARACTERS = ['\\n', '\\r', '\\u0085', '\\u2028', '\\u2029'] as const;\nconst UNSUPPORTED_GLOB_PATTERN = /[!?[\\]{}]/u;\n\nconst hasLineBreak = (value: string): boolean => {\n return LINE_BREAK_CHARACTERS.some((lineBreak) => value.includes(lineBreak));\n};\n\n/** Determines whether a code point belongs to the Repository Format version 1 whitespace set. */\nexport const isRepositoryFormatWhitespace = (codePoint: number): boolean => {\n return (\n (codePoint >= 0x0009 && codePoint <= 0x000d) ||\n codePoint === 0x0020 ||\n codePoint === 0x0085 ||\n codePoint === 0x00a0 ||\n codePoint === 0x1680 ||\n (codePoint >= 0x2000 && codePoint <= 0x200a) ||\n codePoint === 0x2028 ||\n codePoint === 0x2029 ||\n codePoint === 0x202f ||\n codePoint === 0x205f ||\n codePoint === 0x3000\n );\n};\n\n/** Compares strings by exact Unicode code-point order without locale behavior. */\nexport const compareExactStrings = (left: string, right: string): number => {\n const leftScalars = left[Symbol.iterator]();\n const rightScalars = right[Symbol.iterator]();\n\n while (true) {\n const leftScalar = leftScalars.next();\n const rightScalar = rightScalars.next();\n\n if (leftScalar.done === true) {\n return rightScalar.done === true ? 0 : -1;\n }\n\n if (rightScalar.done === true) {\n return 1;\n }\n\n const leftCodePoint = leftScalar.value.codePointAt(0) ?? 0;\n const rightCodePoint = rightScalar.value.codePointAt(0) ?? 0;\n\n if (leftCodePoint !== rightCodePoint) {\n return leftCodePoint < rightCodePoint ? -1 : 1;\n }\n }\n};\n\n/** Counts Unicode scalar values in valid JavaScript text. */\nexport const countUnicodeScalars = (value: string): number => {\n const scalars = value[Symbol.iterator]();\n let count = 0;\n\n while (scalars.next().done !== true) {\n count += 1;\n }\n\n return count;\n};\n\n/** Determines whether a JavaScript string contains only Unicode scalar values. */\nexport const isUnicodeScalarText = (value: string): boolean => {\n for (let index = 0; index < value.length; index += 1) {\n const codeUnit = value.charCodeAt(index);\n\n if (codeUnit >= 0xd800 && codeUnit <= 0xdbff) {\n if (index + 1 >= value.length) {\n return false;\n }\n\n const nextCodeUnit = value.charCodeAt(index + 1);\n\n if (nextCodeUnit < 0xdc00 || nextCodeUnit > 0xdfff) {\n return false;\n }\n\n index += 1;\n continue;\n }\n\n if (codeUnit >= 0xdc00 && codeUnit <= 0xdfff) {\n return false;\n }\n }\n\n return true;\n};\n\n/** Determines whether a value contains at least one non-whitespace scalar. */\nexport const hasNonWhitespace = (value: string): boolean => {\n for (const scalar of value) {\n if (!isRepositoryFormatWhitespace(scalar.codePointAt(0) ?? 0)) {\n return true;\n }\n }\n\n return false;\n};\n\n/** Determines whether a value begins or ends with version 1 whitespace. */\nexport const hasSurroundingWhitespace = (value: string): boolean => {\n const firstCodePoint = value.codePointAt(0);\n const lastCodePoint = value.codePointAt(value.length - 1);\n\n return (\n (firstCodePoint !== undefined && isRepositoryFormatWhitespace(firstCodePoint)) ||\n (lastCodePoint !== undefined && isRepositoryFormatWhitespace(lastCodePoint))\n );\n};\n\n/** Removes only Repository Format version 1 whitespace from both edges. */\nexport const trimRepositoryFormatWhitespace = (value: string): string => {\n let start = 0;\n let end = value.length;\n\n while (start < end) {\n const codePoint = value.codePointAt(start);\n\n if (codePoint === undefined || !isRepositoryFormatWhitespace(codePoint)) {\n break;\n }\n\n start += codePoint > 0xffff ? 2 : 1;\n }\n\n while (end > start) {\n const codePoint = value.codePointAt(end - 1);\n\n if (codePoint === undefined || !isRepositoryFormatWhitespace(codePoint)) {\n break;\n }\n\n end -= 1;\n }\n\n return value.slice(start, end);\n};\n\n/** Determines whether a string is non-empty and contains no line break. */\nexport const isNonEmptySingleLine = (value: string): boolean => {\n return value.length > 0 && !hasLineBreak(value);\n};\n\n/** Determines whether a value satisfies stable moldea ID syntax. */\nexport const isStableId = (value: string): boolean => {\n return value.length <= 64 && STABLE_ID_PATTERN.test(value);\n};\n\n/** Determines whether an otherwise valid stable ID is filesystem-reserved. */\nexport const isReservedId = (value: string): boolean => WINDOWS_RESERVED_ID_PATTERN.test(value);\n\n/** Determines whether a value satisfies runtime-variable ID syntax. */\nexport const isVariableId = (value: string): boolean => {\n return value.length <= 64 && VARIABLE_ID_PATTERN.test(value);\n};\n\n/** Determines whether a parsed capability description satisfies version 1 limits. */\nexport const isCapabilityDescription = (value: string): boolean => {\n const scalarLength = countUnicodeScalars(value);\n\n return (\n scalarLength >= 1 &&\n scalarLength <= 1_000 &&\n !hasSurroundingWhitespace(value) &&\n !hasLineBreak(value) &&\n !value.includes('\\0') &&\n !value.includes('{{') &&\n !value.includes('}}')\n );\n};\n\n/** Parses a non-root repository-format logical path without throwing. */\nexport const parseManifestPath = (value: string): IRepositoryPath | null => {\n return value !== '/' && isRepositoryPath(value) ? parseRepositoryPath(value) : null;\n};\n\n/** Determines whether a path is the canonical manifest path. */\nexport const isCanonicalManifestPath = (path: IRepositoryPath): boolean => {\n return path === '/moldea/moldea.yaml';\n};\n\n/** Extracts the stable millisecond ID from one canonical immediate decision path. */\nexport const parseDecisionIdFromPath = (path: IRepositoryPath): string | null => {\n const match = /^\\/moldea\\/decisions\\/(\\d{13})-([a-z0-9]+(?:-[a-z0-9]+)*)\\.md$/u.exec(path);\n const id = match?.[1];\n const slug = match?.[2];\n\n return id !== undefined && slug !== undefined && isStableId(slug) ? id : null;\n};\n\n/** Determines whether a path is an allowed focused-context relationship key. */\nexport const isContextPath = (path: IRepositoryPath, allowProject: boolean): boolean => {\n if (allowProject && path === '/moldea/project.md') {\n return true;\n }\n\n return path.startsWith('/moldea/context/') && path.endsWith('.md');\n};\n\n/** Determines whether a path has the canonical immediate decision filename shape. */\nexport const isDecisionPath = (path: IRepositoryPath): boolean => {\n return parseDecisionIdFromPath(path) !== null;\n};\n\n/** Determines whether a path is canonical runtime guidance. */\nexport const isRuntimeGuidancePath = (path: IRepositoryPath): boolean => {\n return path.startsWith('/moldea/runtimes/') && path.endsWith('.md');\n};\n\n/** Determines whether a mirror path is outside canonical moldea content. */\nexport const isMirrorPath = (path: IRepositoryPath): boolean => {\n return path !== '/moldea' && !path.startsWith('/moldea/');\n};\n\n/** Determines whether an impact path contains prohibited glob metacharacters. */\nexport const hasUnsupportedGlobMetacharacter = (value: string): boolean => {\n return UNSUPPORTED_GLOB_PATTERN.test(value);\n};\n\n/** Determines whether a string satisfies the version 1 simple-glob grammar. */\nexport const isSimpleGlob = (value: string): boolean => {\n if (hasUnsupportedGlobMetacharacter(value) || value.includes('***')) {\n return false;\n }\n\n const segments = value.slice(1).split('/');\n\n if (segments.some((segment) => segment.includes('**') && segment !== '**')) {\n return false;\n }\n\n return value.includes('*') && isRepositoryPath(value.replaceAll('*', 'x'));\n};\n\n/** Determines whether a repository-reference symbol has the common safe shape. */\nexport const isRepositorySymbol = (value: string): boolean => {\n return isNonEmptySingleLine(value) && !value.includes('\\0');\n};\n\n/** Determines whether a canonical moldea reference incorrectly carries a symbol. */\nexport const isCanonicalMoldeaPath = (path: IRepositoryPath): boolean => {\n return path === '/moldea' || path.startsWith('/moldea/');\n};\n\n/** Sorts repository references by path and then optional symbol. */\nexport const sortRepositoryReferences = (\n references: readonly IRepositoryReference[],\n): IRepositoryReference[] => {\n return [...references].sort((left, right) => {\n return (\n compareExactStrings(left.path, right.path) ||\n compareExactStrings(left.symbol ?? '', right.symbol ?? '')\n );\n });\n};\n","import type { IRepositoryPath } from '@moldea.ai/repository';\n\nimport type { ICoreResourceLimits } from '../contracts/index.js';\nimport type {\n ICoreDiagnostic,\n ICoreDiagnosticCode,\n IDiagnostic,\n IDiagnosticDetails,\n IDiagnosticEntity,\n ISourceRange,\n} from '../diagnostics/index.js';\nimport { CoreOperationException, type ICoreOperation } from '../exceptions/index.js';\nimport { compareExactStrings } from '../format-validation/index.js';\nimport { createNullPrototypeRecord, freezeRecursively } from '../immutable/index.js';\n\nconst CORE_DIAGNOSTIC_MESSAGES: Record<ICoreDiagnosticCode, string> = {\n MOLDEA_AGENT_DESCRIPTION_INVALID: 'The agent description is invalid.',\n MOLDEA_AGENT_DESCRIPTION_MISSING: 'The agent description is missing.',\n MOLDEA_AGENT_DIRECTORY_MISSING: 'The registered agent directory is missing.',\n MOLDEA_AGENT_DIRECTORY_UNREGISTERED: 'The agent directory is not registered.',\n MOLDEA_AGENT_HANDOFF_DESCRIPTION_INVALID: 'The agent handoff description is invalid.',\n MOLDEA_AGENT_IDENTITY_INVALID: 'The agent instruction identity is invalid.',\n MOLDEA_AGENT_INSTRUCTION_EMPTY: 'The agent instruction is empty.',\n MOLDEA_AGENT_INSTRUCTION_MISSING: 'The agent instruction is missing.',\n MOLDEA_CANONICAL_ASSET_SYMLINK: 'The canonical asset is a symlink.',\n MOLDEA_CANONICAL_PATH_UNRECOGNIZED: 'The canonical path is unrecognized.',\n MOLDEA_CAPABILITY_DESCRIPTION_INVALID: 'The capability description is invalid.',\n MOLDEA_CAPABILITY_DESCRIPTION_MISSING: 'The capability description is missing.',\n MOLDEA_CONTEXT_FILE_EMPTY: 'The focused context file is empty.',\n MOLDEA_CONTEXT_PATH_INVALID: 'The context relationship path is invalid.',\n MOLDEA_CONTEXT_RELATIONSHIP_EMPTY: 'The declared relationship has no bindings or impact paths.',\n MOLDEA_DECISION_BODY_EMPTY: 'The decision Markdown body is empty.',\n MOLDEA_DECISION_CREATED_AT_INVALID: 'The decision createdAt value is invalid.',\n MOLDEA_DECISION_FILENAME_INVALID: 'The decision path or filename is invalid.',\n MOLDEA_DECISION_FRONTMATTER_INVALID: 'The decision frontmatter is invalid.',\n MOLDEA_DECISION_FRONTMATTER_MISSING: 'The decision frontmatter or its delimiters are missing.',\n MOLDEA_DECISION_ID_DUPLICATE: 'The decision ID is duplicated.',\n MOLDEA_DECISION_PROPERTY_UNKNOWN: 'The decision frontmatter contains an unknown property.',\n MOLDEA_DECISION_REFERENCE_MISSING: 'The referenced decision does not exist.',\n MOLDEA_DECISION_RELATIONSHIP_INACTIVE: 'The referenced decision is not accepted.',\n MOLDEA_DECISION_SELF_SUPERSESSION: 'The decision supersedes itself.',\n MOLDEA_DECISION_STATUS_INVALID: 'The decision status is invalid.',\n MOLDEA_DECISION_SUPERSEDED_ORPHAN:\n 'The superseded decision has no active supersession relationship.',\n MOLDEA_DECISION_SUPERSESSION_CYCLE: 'The decision supersession graph contains a cycle.',\n MOLDEA_DECISION_SUPERSESSION_STATUS_INVALID:\n 'The decision supersession relationship has inconsistent statuses.',\n MOLDEA_DECISION_TIMESTAMP_MISMATCH:\n 'The decision filename timestamp and createdAt value do not match.',\n MOLDEA_ENTRY_TYPE_INVALID: 'The repository entry type is invalid.',\n MOLDEA_RUNTIME_ADAPTER_FORMAT_UNSUPPORTED:\n 'The configured runtime adapter does not support the repository format version.',\n MOLDEA_RUNTIME_ADAPTER_UNAVAILABLE: 'The declared runtime adapter is unavailable.',\n MOLDEA_RUNTIME_ID_INVALID: 'The runtime adapter ID is invalid.',\n MOLDEA_GLOB_INVALID: 'The impact pattern is invalid.',\n MOLDEA_ID_DUPLICATE: 'An ID is duplicated within its required scope.',\n MOLDEA_ID_INVALID: 'The ID is invalid.',\n MOLDEA_ID_RESERVED: 'The ID uses a reserved filesystem name.',\n MOLDEA_IMPACT_PATH_MISSING: 'The exact impact path does not exist.',\n MOLDEA_IMPACT_PATH_NOT_FILE: 'The exact impact path is not a regular file.',\n MOLDEA_MANIFEST_MISSING: 'The project manifest is missing.',\n MOLDEA_MANIFEST_PATH_INVALID: 'The manifest path is not the canonical manifest path.',\n MOLDEA_MANIFEST_PROPERTY_UNKNOWN: 'The manifest contains an unknown property.',\n MOLDEA_MANIFEST_ROOT_INVALID: 'The manifest root is not a mapping.',\n MOLDEA_MANIFEST_VALUE_INVALID: 'The manifest value is invalid.',\n MOLDEA_MANIFEST_VERSION_INVALID: 'The manifest version is not a valid integer major version.',\n MOLDEA_MANIFEST_VERSION_MISSING: 'The manifest version is missing.',\n MOLDEA_MANIFEST_VERSION_UNSUPPORTED: 'The manifest version is unsupported.',\n MOLDEA_MIRROR_PATH_DUPLICATE: 'The mirror path is assigned more than once.',\n MOLDEA_MIRROR_PATH_INSIDE_MOLDEA: 'The mirror path is inside /moldea.',\n MOLDEA_MIRROR_PATH_INVALID: 'The mirror path is invalid.',\n MOLDEA_MIRROR_MISSING: 'The declared mirror does not exist.',\n MOLDEA_MIRROR_NOT_FILE: 'The declared mirror is not a regular file.',\n MOLDEA_MIRROR_STALE: 'The declared mirror differs from its canonical instruction.',\n MOLDEA_MIRROR_SYMLINK: 'The declared mirror is a symlink.',\n MOLDEA_PATH_DUPLICATE: 'The path is duplicated.',\n MOLDEA_PATH_INVALID: 'The manifest logical path is invalid.',\n MOLDEA_PATTERN_DUPLICATE: 'The impact pattern is duplicated.',\n MOLDEA_PROJECT_FILE_EMPTY: 'The project file is empty.',\n MOLDEA_PROJECT_FILE_MISSING: 'The project file is missing.',\n MOLDEA_REFERENCE_MISSING: 'The referenced repository path does not exist.',\n MOLDEA_REFERENCE_NOT_FILE: 'The referenced repository path is not a regular file.',\n MOLDEA_REFERENCE_SYMLINK: 'The referenced repository path is a symlink.',\n MOLDEA_RUNTIME_GUIDANCE_EMPTY: 'The runtime guidance is empty.',\n MOLDEA_RUNTIME_GUIDANCE_MISSING: 'The referenced runtime guidance does not exist.',\n MOLDEA_SKILL_IMPLEMENTATION_MISSING: 'The registered skill implementation is missing.',\n MOLDEA_SYMBOL_FORBIDDEN: 'A canonical moldea reference must not include a symbol.',\n MOLDEA_SYMBOL_INVALID: 'The repository-reference symbol is invalid.',\n MOLDEA_TEXT_EMPTY: 'The required text document is empty.',\n MOLDEA_TEXT_INVALID_UNICODE:\n 'The text document contains an invalid Unicode scalar representation.',\n MOLDEA_TEXT_INVALID_UTF8: 'The text document is not valid UTF-8.',\n MOLDEA_TEXT_NUL_FORBIDDEN: 'The text document contains a forbidden NUL character.',\n MOLDEA_TOOL_IMPLEMENTATION_MISSING: 'The registered tool implementation is missing.',\n MOLDEA_VARIABLE_ID_INVALID: 'The runtime-variable ID is invalid.',\n MOLDEA_VARIABLE_PLACEHOLDER_MALFORMED:\n 'The agent instruction contains a malformed runtime-variable placeholder.',\n MOLDEA_VARIABLE_PROVIDER_UNDECLARED:\n 'A variable-provider binding exists for an undeclared variable.',\n MOLDEA_VARIABLE_UNDECLARED: 'The agent instruction references an undeclared runtime variable.',\n MOLDEA_VARIABLE_UNUSED: 'The declared runtime variable is unused by the agent instruction.',\n MOLDEA_YAML_DUPLICATE_KEY: 'The YAML document contains a duplicate mapping key.',\n MOLDEA_YAML_FEATURE_UNSUPPORTED: 'The YAML document uses an unsupported feature.',\n MOLDEA_YAML_MALFORMED: 'The YAML document is malformed.',\n MOLDEA_YAML_MULTIPLE_DOCUMENTS: 'The YAML stream contains more than one document.',\n};\n\nconst ENTITY_KEYS = [\n 'agentId',\n 'capabilityKind',\n 'capabilityId',\n 'decisionId',\n 'variableId',\n 'adapterId',\n] as const satisfies readonly (keyof IDiagnosticEntity)[];\n\n// private normalized diagnostic construction contracts\nexport interface ICoreDiagnosticInput {\n readonly code: ICoreDiagnosticCode;\n readonly details?: Readonly<Record<string, string | number | boolean | null>>;\n readonly entity?: IDiagnosticEntity | null;\n readonly path: IRepositoryPath | null;\n readonly pointer?: string | null;\n readonly range?: ISourceRange | null;\n}\n\nexport interface ICoreDiagnosticCollector {\n add(input: ICoreDiagnosticInput): void;\n merge(input: ICoreDiagnosticInput): void;\n finalize(): readonly ICoreDiagnostic[];\n readonly size: number;\n}\n\ninterface ICoreDiagnosticBudget {\n count: number;\n}\n\nconst CORE_DIAGNOSTIC_BUDGET = Symbol('core-diagnostic-budget');\n\ntype ICoreOperationResourceLimits = ICoreResourceLimits & {\n readonly [CORE_DIAGNOSTIC_BUDGET]?: ICoreDiagnosticBudget;\n};\n\n/** Creates a detached limits view with one diagnostic budget for a complete Core operation. */\nexport const createCoreOperationResourceLimits = (\n limits: ICoreResourceLimits,\n): ICoreResourceLimits => {\n const operationLimits = limits as ICoreOperationResourceLimits;\n\n if (operationLimits[CORE_DIAGNOSTIC_BUDGET] !== undefined) {\n return limits;\n }\n\n return Object.freeze({\n ...limits,\n [CORE_DIAGNOSTIC_BUDGET]: { count: 0 },\n });\n};\n\n/** Registers raw diagnostics against the shared operation budget before normalization. */\nexport const registerCoreDiagnosticCandidates = (\n limits: ICoreResourceLimits,\n amount: number,\n operation: ICoreOperation,\n fallbackCount = 0,\n adapterId?: string,\n): number => {\n const budget = (limits as ICoreOperationResourceLimits)[CORE_DIAGNOSTIC_BUDGET];\n const currentCount = budget?.count ?? fallbackCount;\n\n if (amount > limits.maxDiagnostics - currentCount) {\n throw new CoreOperationException({\n ...(adapterId === undefined ? {} : { adapterId }),\n code: 'RESOURCE_LIMIT_EXCEEDED',\n limit: 'maxDiagnostics',\n limitMaximum: limits.maxDiagnostics,\n nextAction: 'reduce-input-or-increase-limit',\n observedUsage: currentCount + amount,\n operation,\n });\n }\n\n if (budget !== undefined) {\n budget.count += amount;\n }\n\n return fallbackCount + amount;\n};\n\nconst compareNullableStrings = (left: string | null, right: string | null): number => {\n if (left === null) {\n return right === null ? 0 : -1;\n }\n\n return right === null ? 1 : compareExactStrings(left, right);\n};\n\n/**\n * Normalizes trusted JSON-scalar diagnostic metadata.\n * @param details The optional detached metadata record.\n * @returns A frozen null-prototype record with canonical key order.\n */\nexport const normalizeDiagnosticDetails = (\n details: Readonly<Record<string, string | number | boolean | null>> | undefined,\n): IDiagnosticDetails => {\n const entries = Object.entries(details ?? {})\n .sort(([left], [right]) => compareExactStrings(left, right))\n .map(\n ([key, value]) =>\n [key, typeof value === 'number' && Object.is(value, -0) ? 0 : value] as const,\n );\n\n return freezeRecursively(createNullPrototypeRecord(entries));\n};\n\n/**\n * Normalizes a trusted diagnostic entity into canonical key order.\n * @param entity The optional diagnostic entity.\n * @returns The frozen normalized entity or `null`.\n */\nexport const normalizeDiagnosticEntity = (\n entity: IDiagnosticEntity | null | undefined,\n): IDiagnosticEntity | null => {\n if (entity === undefined || entity === null) {\n return null;\n }\n\n const entries = ENTITY_KEYS.flatMap((key) => {\n const value = entity[key];\n return value === undefined ? [] : ([[key, value]] as const);\n });\n\n return freezeRecursively(createNullPrototypeRecord(entries) as IDiagnosticEntity);\n};\n\n/** Serializes unordered diagnostic details with explicit exact-code-point key ordering. */\nexport const serializeDiagnosticDetails = (details: IDiagnosticDetails): string => {\n const entries = Object.entries(details).sort(([left], [right]) =>\n compareExactStrings(left, right),\n );\n\n return JSON.stringify(entries);\n};\n\nconst serializeDiagnostic = (diagnostic: IDiagnostic): string => {\n const entity =\n diagnostic.entity === null\n ? null\n : ENTITY_KEYS.map((key) => [key, diagnostic.entity?.[key] ?? null]);\n const range =\n diagnostic.range === null\n ? null\n : [\n diagnostic.range.start.line,\n diagnostic.range.start.column,\n diagnostic.range.start.offset,\n diagnostic.range.end.line,\n diagnostic.range.end.column,\n diagnostic.range.end.offset,\n ];\n\n return JSON.stringify([\n diagnostic.code,\n diagnostic.severity,\n serializeDiagnosticDetails(diagnostic.details),\n entity,\n diagnostic.message,\n diagnostic.path,\n diagnostic.pointer,\n range,\n diagnostic.source,\n ]);\n};\n\nconst compareRanges = (left: ISourceRange | null, right: ISourceRange | null): number => {\n if (left === null) {\n return right === null ? 0 : -1;\n }\n\n if (right === null) {\n return 1;\n }\n\n return (\n left.start.line - right.start.line ||\n left.start.column - right.start.column ||\n left.start.offset - right.start.offset ||\n left.end.line - right.end.line ||\n left.end.column - right.end.column ||\n left.end.offset - right.end.offset\n );\n};\n\nconst readEntityValue = (\n entity: IDiagnosticEntity | null,\n key: keyof IDiagnosticEntity,\n): string => {\n return entity?.[key] ?? '';\n};\n\nconst compareDiagnostics = (left: IDiagnostic, right: IDiagnostic): number => {\n return (\n compareNullableStrings(left.path, right.path) ||\n compareRanges(left.range, right.range) ||\n compareNullableStrings(left.pointer, right.pointer) ||\n compareExactStrings(left.source, right.source) ||\n compareExactStrings(left.code, right.code) ||\n compareExactStrings(left.severity, right.severity) ||\n compareExactStrings(\n readEntityValue(left.entity, 'agentId'),\n readEntityValue(right.entity, 'agentId'),\n ) ||\n compareExactStrings(\n readEntityValue(left.entity, 'capabilityKind'),\n readEntityValue(right.entity, 'capabilityKind'),\n ) ||\n compareExactStrings(\n readEntityValue(left.entity, 'capabilityId'),\n readEntityValue(right.entity, 'capabilityId'),\n ) ||\n compareExactStrings(\n readEntityValue(left.entity, 'decisionId'),\n readEntityValue(right.entity, 'decisionId'),\n ) ||\n compareExactStrings(\n readEntityValue(left.entity, 'variableId'),\n readEntityValue(right.entity, 'variableId'),\n ) ||\n compareExactStrings(\n readEntityValue(left.entity, 'adapterId'),\n readEntityValue(right.entity, 'adapterId'),\n ) ||\n compareExactStrings(\n serializeDiagnosticDetails(left.details),\n serializeDiagnosticDetails(right.details),\n ) ||\n compareExactStrings(left.message, right.message)\n );\n};\n\n/**\n * Creates one normalized, immutable Core diagnostic.\n * @param input The trusted Core-owned diagnostic fields to normalize.\n * @returns A deeply immutable public diagnostic value.\n */\nexport const createCoreDiagnostic = (input: ICoreDiagnosticInput): ICoreDiagnostic => {\n const message = CORE_DIAGNOSTIC_MESSAGES[input.code];\n\n if (message === undefined) {\n throw new TypeError('The requested Core diagnostic is not implemented.');\n }\n\n return freezeRecursively({\n code: input.code,\n details: normalizeDiagnosticDetails(input.details),\n entity: normalizeDiagnosticEntity(input.entity),\n message,\n path: input.path,\n pointer: input.pointer ?? null,\n range: input.range ?? null,\n severity: 'error' as const,\n source: 'core' as const,\n });\n};\n\n/**\n * Deduplicates and sorts already-normalized Core and adapter diagnostics.\n * @param candidates The immutable diagnostics to combine.\n * @returns A frozen deterministic diagnostic collection.\n */\nexport const normalizeDiagnostics = (\n candidates: readonly IDiagnostic[],\n): readonly IDiagnostic[] => {\n const diagnostics = new Map<string, IDiagnostic>();\n\n for (const diagnostic of candidates) {\n const key = serializeDiagnostic(diagnostic);\n\n if (diagnostics.has(key)) {\n continue;\n }\n\n diagnostics.set(key, diagnostic);\n }\n\n return freezeRecursively([...diagnostics.values()].sort(compareDiagnostics));\n};\n\n/** Counts the complete normalized diagnostic result by severity once. */\nexport const countDiagnosticsBySeverity = (\n diagnostics: readonly IDiagnostic[],\n): { readonly errorCount: number; readonly warningCount: number } => {\n let errorCount = 0;\n let warningCount = 0;\n\n for (const diagnostic of diagnostics) {\n if (diagnostic.severity === 'error') {\n errorCount += 1;\n } else {\n warningCount += 1;\n }\n }\n\n return { errorCount, warningCount };\n};\n\n/**\n * Creates a deterministic, deduplicating diagnostic collector for one operation.\n * @param limits The Core resource limits governing diagnostic output.\n * @param operation The operation reported by resource failures.\n * @returns A collector that freezes and sorts its final diagnostic array.\n */\nexport const createCoreDiagnosticCollector = (\n limits: ICoreResourceLimits,\n operation: ICoreOperation,\n): ICoreDiagnosticCollector => {\n const diagnostics = new Map<string, ICoreDiagnostic>();\n let proposalCount = 0;\n let fallbackRawCount = 0;\n\n const retain = (input: ICoreDiagnosticInput): void => {\n const diagnostic = createCoreDiagnostic(input);\n const key = serializeDiagnostic(diagnostic);\n\n proposalCount += 1;\n\n if (!diagnostics.has(key)) {\n diagnostics.set(key, diagnostic);\n }\n };\n\n return {\n add: (input): void => {\n fallbackRawCount = registerCoreDiagnosticCandidates(limits, 1, operation, fallbackRawCount);\n retain(input);\n },\n merge: retain,\n finalize: (): readonly ICoreDiagnostic[] =>\n normalizeDiagnostics([...diagnostics.values()]) as readonly ICoreDiagnostic[],\n get size(): number {\n return proposalCount;\n },\n };\n};\n\n/**\n * Escapes one JSON Pointer reference token.\n * @param value The decoded mapping key or array index token.\n * @returns The RFC 6901 escaped token.\n */\nexport const escapeJsonPointerSegment = (value: string): string => {\n return value.replaceAll('~', '~0').replaceAll('/', '~1');\n};\n","import type {\n IRuntimeAdapter,\n IRuntimeAdapterContext,\n IRuntimeAdapterResult,\n} from '../adapter/index.js';\nimport {\n DEFAULT_CORE_RESOURCE_LIMITS,\n RECOGNIZED_RUNTIME_ADAPTER_IDS,\n SUPPORTED_REPOSITORY_FORMAT_VERSIONS,\n} from '../constants/index.js';\nimport type { ICoreOptions, ICoreResourceLimits } from '../contracts/index.js';\nimport { createCoreOperationResourceLimits } from '../diagnostic-utilities/index.js';\nimport { CoreConfigurationException } from '../exceptions/index.js';\nimport type { IRepositoryFormatVersion } from '../format/index.js';\nimport { freezeRecursively } from '../immutable/index.js';\n\n// detached adapter and complete Core configuration snapshots\nexport interface IRuntimeAdapterSnapshot {\n readonly id: string;\n readonly supportedRepositoryFormatVersions: readonly IRepositoryFormatVersion[];\n readonly inspect: (context: IRuntimeAdapterContext) => Promise<IRuntimeAdapterResult>;\n}\n\nexport interface ICoreOptionsSnapshot {\n readonly adapters: readonly IRuntimeAdapterSnapshot[];\n readonly limits: ICoreResourceLimits;\n}\n\n/** Creates an operation-local options view with one shared raw-diagnostic budget. */\nexport const createCoreOperationOptionsSnapshot = (\n options: ICoreOptionsSnapshot,\n): ICoreOptionsSnapshot => {\n return Object.freeze({\n adapters: options.adapters,\n limits: createCoreOperationResourceLimits(options.limits),\n });\n};\n\nconst RESOURCE_LIMIT_KEYS = [\n 'maxEntries',\n 'maxTotalBytesRead',\n 'maxFileBytes',\n 'maxManifestBytes',\n 'maxRetainedBytes',\n 'maxDiagnostics',\n 'maxEvidence',\n] as const satisfies readonly (keyof ICoreResourceLimits)[];\n\nconst STABLE_ID_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/u;\nconst WINDOWS_RESERVED_ID_PATTERN = /^(?:con|prn|aux|nul|com[1-9]|lpt[1-9])$/u;\n\nconst compareStrings = (left: string, right: string): number => {\n if (left < right) {\n return -1;\n }\n\n if (left > right) {\n return 1;\n }\n\n return 0;\n};\n\nconst invalidAdapter = (adapterId?: string): never => {\n throw new CoreConfigurationException({\n ...(adapterId === undefined ? {} : { adapterId }),\n code: 'INVALID_ADAPTER_DEFINITION',\n operation: 'create-core',\n });\n};\n\nconst isRecord = (value: unknown): value is Readonly<Record<string, unknown>> => {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n};\n\nconst isStableId = (value: string): boolean => {\n return value.length >= 1 && value.length <= 64 && STABLE_ID_PATTERN.test(value);\n};\n\n/**\n * Validates, copies, fills, and freezes all configured resource limits.\n * @param candidate The untrusted optional limit overrides.\n * @returns The complete frozen resource limits.\n * @throws\n * - INVALID_RESOURCE_LIMIT: A Core resource limit is invalid.\n */\nconst normalizeLimits = (candidate: unknown): ICoreResourceLimits => {\n if (candidate === undefined) {\n return DEFAULT_CORE_RESOURCE_LIMITS;\n }\n\n if (!isRecord(candidate)) {\n throw new CoreConfigurationException({\n code: 'INVALID_RESOURCE_LIMIT',\n operation: 'create-core',\n });\n }\n\n const knownKeys = new Set<string>(RESOURCE_LIMIT_KEYS);\n\n if (Object.keys(candidate).some((key) => !knownKeys.has(key))) {\n throw new CoreConfigurationException({\n code: 'INVALID_RESOURCE_LIMIT',\n operation: 'create-core',\n });\n }\n\n const normalized: ICoreResourceLimits = {\n ...DEFAULT_CORE_RESOURCE_LIMITS,\n };\n\n for (const key of RESOURCE_LIMIT_KEYS) {\n const value = candidate[key];\n\n if (value === undefined) {\n continue;\n }\n\n if (!Number.isSafeInteger(value) || (value as number) <= 0) {\n throw new CoreConfigurationException({\n code: 'INVALID_RESOURCE_LIMIT',\n operation: 'create-core',\n });\n }\n\n (normalized as Record<keyof ICoreResourceLimits, number>)[key] = value as number;\n }\n\n return freezeRecursively(normalized);\n};\n\n/**\n * Snapshots one adapter definition without freezing caller-owned state.\n * @param candidate The untrusted adapter definition.\n * @returns A frozen detached adapter snapshot.\n * @throws\n * - RESERVED_ADAPTER_ID: A reserved runtime adapter ID was supplied.\n * - INVALID_ADAPTER_DEFINITION: A runtime adapter definition is invalid.\n */\nconst normalizeAdapter = (candidate: unknown): IRuntimeAdapterSnapshot => {\n if (!isRecord(candidate)) {\n return invalidAdapter();\n }\n\n const id = candidate['id'];\n\n if (typeof id !== 'string' || !isStableId(id) || WINDOWS_RESERVED_ID_PATTERN.test(id)) {\n return invalidAdapter();\n }\n\n if (id === 'custom') {\n throw new CoreConfigurationException({\n adapterId: id,\n code: 'RESERVED_ADAPTER_ID',\n operation: 'create-core',\n });\n }\n\n if (!(RECOGNIZED_RUNTIME_ADAPTER_IDS as readonly string[]).includes(id)) {\n return invalidAdapter(id);\n }\n\n const versions = candidate['supportedRepositoryFormatVersions'];\n const inspect = candidate['inspect'];\n\n if (!Array.isArray(versions) || versions.length === 0 || typeof inspect !== 'function') {\n return invalidAdapter(id);\n }\n\n const supportedVersions = new Set<IRepositoryFormatVersion>();\n\n for (const version of versions as readonly unknown[]) {\n if (\n !SUPPORTED_REPOSITORY_FORMAT_VERSIONS.includes(version as IRepositoryFormatVersion) ||\n supportedVersions.has(version as IRepositoryFormatVersion)\n ) {\n return invalidAdapter(id);\n }\n\n supportedVersions.add(version as IRepositoryFormatVersion);\n }\n\n const inspectReference = inspect as IRuntimeAdapter['inspect'];\n\n return freezeRecursively({\n id,\n inspect: async (context: IRuntimeAdapterContext): Promise<IRuntimeAdapterResult> =>\n inspectReference.call(candidate, context),\n supportedRepositoryFormatVersions: [...supportedVersions].sort((left, right) => left - right),\n });\n};\n\n/**\n * Validates, snapshots, and deterministically sorts the configured adapter registry.\n * @param candidate The untrusted optional adapter definitions.\n * @returns The frozen adapter snapshots in canonical ID order.\n * @throws\n * - DUPLICATE_ADAPTER_ID: A runtime adapter ID is registered more than once.\n * - RESERVED_ADAPTER_ID: A reserved runtime adapter ID was supplied.\n * - INVALID_ADAPTER_DEFINITION: A runtime adapter definition is invalid.\n */\nconst normalizeAdapters = (candidate: unknown): readonly IRuntimeAdapterSnapshot[] => {\n if (candidate === undefined) {\n return Object.freeze([]);\n }\n\n if (!Array.isArray(candidate)) {\n return invalidAdapter();\n }\n\n const adapters = Array.from(candidate as readonly unknown[], (adapter) =>\n normalizeAdapter(adapter),\n );\n const ids = new Set<string>();\n\n for (const adapter of adapters) {\n if (ids.has(adapter.id)) {\n throw new CoreConfigurationException({\n adapterId: adapter.id,\n code: 'DUPLICATE_ADAPTER_ID',\n operation: 'create-core',\n });\n }\n\n ids.add(adapter.id);\n }\n\n return freezeRecursively(adapters.sort((left, right) => compareStrings(left.id, right.id)));\n};\n\n/**\n * Validates and snapshots caller-owned Core construction options.\n * @param options The optional adapters and resource-limit overrides.\n * @returns A deeply frozen, deterministically ordered configuration snapshot.\n * @throws\n * - DUPLICATE_ADAPTER_ID: A runtime adapter ID is registered more than once.\n * - RESERVED_ADAPTER_ID: A reserved runtime adapter ID was supplied.\n * - INVALID_ADAPTER_DEFINITION: A runtime adapter definition is invalid.\n * - INVALID_RESOURCE_LIMIT: A Core resource limit is invalid.\n */\nexport const normalizeCoreOptions = (options: ICoreOptions | undefined): ICoreOptionsSnapshot => {\n if (options !== undefined && !isRecord(options)) {\n return invalidAdapter();\n }\n\n return freezeRecursively({\n adapters: normalizeAdapters(options?.['adapters']),\n limits: normalizeLimits(options?.['limits']),\n });\n};\n"],"mappings":";;;AAIA,IAAa,iCAAiC,OAAO,OAAO;CAC1D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAU;AAGV,IAAa,uCACX,OAAO,OAAO,CAAC,CAAC,CAAC;AAGnB,IAAa,+BAAoD,OAAO,OAAO;CAC7E,gBAAgB;CAChB,YAAY;CACZ,aAAa;CACb,cAAc;CACd,kBAAkB;CAClB,kBAAkB;CAClB,mBAAmB;AACrB,CAAC;;;;;;;;AC1BD,IAAa,qBAA4B,UAAkC;CACzE,IAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,OAAO,SAAS,KAAK,GACtE,OAAO;CAGT,KAAK,MAAM,OAAO,QAAQ,QAAQ,KAAK,GAAG;EACxC,MAAM,QAAS,MAAiD;EAChE,kBAAkB,KAAK;CACzB;CAEA,OAAO,OAAO,OAAO,KAAK;AAC5B;;;;;;AAOA,IAAa,6BACX,YAC0B;CAC1B,MAAM,SAAS,OA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BAAiB,KAAK,WAAW,OAAO;EAC1C,mCAAmC,CAAC,GAAG,iBAAiB,CAAC,CAAC,MAAM,MAAM,UAAU,OAAO,KAAK;CAC9F,CAAC;AACH;;;;;;;;;;AAWA,IAAM,qBAAqB,cAA2D;CACpF,IAAI,cAAc,KAAA,GAChB,OAAO,OAAO,OAAO,CAAC,CAAC;CAGzB,IAAI,CAAC,MAAM,QAAQ,SAAS,GAC1B,OAAO,eAAe;CAGxB,MAAM,WAAW,MAAM,KAAK,YAAkC,YAC5D,iBAAiB,OAAO,CAC1B;CACA,MAAM,sBAAM,IAAI,IAAY;CAE5B,KAAK,MAAM,WAAW,UAAU;EAC9B,IAAI,IAAI,IAAI,QAAQ,EAAE,GACpB,MAAM,IAAI,2BAA2B;GACnC,WAAW,QAAQ;GACnB,MAAM;GACN,WAAW;EACb,CAAC;EAGH,IAAI,IAAI,QAAQ,EAAE;CACpB;CAEA,OAAO,kBAAkB,SAAS,MAAM,MAAM,UAAU,eAAe,KAAK,IAAI,MAAM,EAAE,CAAC,CAAC;AAC5F;;;;;;;;;;;AAYA,IAAa,wBAAwB,YAA4D;CAC/F,IAAI,YAAY,KAAA,KAAa,CAAC,SAAS,OAAO,GAC5C,OAAO,eAAe;CAGxB,OAAO,kBAAkB;EACvB,UAAU,kBAAkB,UAAU,WAAW;EACjD,QAAQ,gBAAgB,UAAU,SAAS;CAC7C,CAAC;AACH"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import "./errors-BQI1DEqf.js";
|
|
2
|
+
import { RepositorySourceException, isRepositoryPath, parseRepositoryPath } from "@moldea.ai/repository";
|
|
3
|
+
import { Buffer } from "node:buffer";
|
|
4
|
+
//#region src/node-inspection/repository-rpc.ts
|
|
5
|
+
var invalidSource = () => {
|
|
6
|
+
throw new RepositorySourceException({
|
|
7
|
+
code: "INVALID_SOURCE_DATA",
|
|
8
|
+
operation: "create-reader",
|
|
9
|
+
path: null,
|
|
10
|
+
retryable: false
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var isRecord = (input) => input !== null && typeof input === "object" && !Array.isArray(input);
|
|
14
|
+
var isInteger = (input) => typeof input === "number" && Number.isSafeInteger(input) && input >= 0;
|
|
15
|
+
var keysMatch = (input, keys) => Object.keys(input).length === keys.length && keys.every((key) => Object.hasOwn(input, key));
|
|
16
|
+
/** Validates the immutable source identity without coercing unknown boundary fields. */
|
|
17
|
+
var parseSnapshot = (input) => {
|
|
18
|
+
if (!isRecord(input) || !keysMatch(input, ["id", "sourceKind"]) || typeof input["id"] !== "string" || input["id"].length === 0 || typeof input["sourceKind"] !== "string" || input["sourceKind"].length === 0) return invalidSource();
|
|
19
|
+
return {
|
|
20
|
+
id: input["id"],
|
|
21
|
+
sourceKind: input["sourceKind"]
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
/** Converts one validated metadata-only repository entry. */
|
|
25
|
+
var parseRpcEntry = (input) => {
|
|
26
|
+
if (input === null) return null;
|
|
27
|
+
if (!isRecord(input) || !keysMatch(input, [
|
|
28
|
+
"path",
|
|
29
|
+
"type",
|
|
30
|
+
"byteLength",
|
|
31
|
+
"contentIdentity"
|
|
32
|
+
]) || !isRepositoryPath(input["path"]) || input["type"] !== "file" && input["type"] !== "directory" && input["type"] !== "symlink" || input["byteLength"] !== null && !isInteger(input["byteLength"]) || input["contentIdentity"] !== null && typeof input["contentIdentity"] !== "string") return invalidSource();
|
|
33
|
+
return {
|
|
34
|
+
path: input["path"],
|
|
35
|
+
type: input["type"],
|
|
36
|
+
byteLength: input["byteLength"],
|
|
37
|
+
contentIdentity: input["contentIdentity"]
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/** Converts a bounded listing page while retaining snapshot and continuation contracts. */
|
|
41
|
+
var parseRpcEntryPage = (input) => {
|
|
42
|
+
if (!isRecord(input) || !keysMatch(input, [
|
|
43
|
+
"entries",
|
|
44
|
+
"isComplete",
|
|
45
|
+
"nextCursor",
|
|
46
|
+
"snapshot"
|
|
47
|
+
]) || !Array.isArray(input["entries"]) || input["entries"].length > 128 || typeof input["isComplete"] !== "boolean" || input["nextCursor"] !== null && typeof input["nextCursor"] !== "string") return invalidSource();
|
|
48
|
+
const entries = [];
|
|
49
|
+
for (const candidate of input["entries"]) {
|
|
50
|
+
const entry = parseRpcEntry(candidate);
|
|
51
|
+
if (entry === null) return invalidSource();
|
|
52
|
+
entries.push(entry);
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
entries,
|
|
56
|
+
isComplete: input["isComplete"],
|
|
57
|
+
nextCursor: input["nextCursor"],
|
|
58
|
+
snapshot: parseSnapshot(input["snapshot"])
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
/** Decodes only an admitted 64 KiB binary page, never a complete repository file. */
|
|
62
|
+
var parseRpcFilePage = (input) => {
|
|
63
|
+
if (!isRecord(input) || !keysMatch(input, [
|
|
64
|
+
"bytes",
|
|
65
|
+
"isComplete",
|
|
66
|
+
"nextOffset",
|
|
67
|
+
"offset",
|
|
68
|
+
"snapshot",
|
|
69
|
+
"totalBytes"
|
|
70
|
+
]) || typeof input["bytes"] !== "string" || input["bytes"].length > Math.ceil(65536 / 3) * 4 || !/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input["bytes"]) || typeof input["isComplete"] !== "boolean" || !isInteger(input["offset"]) || !isInteger(input["totalBytes"]) || input["nextOffset"] !== null && !isInteger(input["nextOffset"])) return invalidSource();
|
|
71
|
+
const bytes = Buffer.from(input["bytes"], "base64");
|
|
72
|
+
if (bytes.byteLength > 65536 || bytes.toString("base64") !== input["bytes"]) return invalidSource();
|
|
73
|
+
return {
|
|
74
|
+
bytes,
|
|
75
|
+
isComplete: input["isComplete"],
|
|
76
|
+
nextOffset: input["nextOffset"],
|
|
77
|
+
offset: input["offset"],
|
|
78
|
+
snapshot: parseSnapshot(input["snapshot"]),
|
|
79
|
+
totalBytes: input["totalBytes"]
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Calls the real reader with inspection cancellation and returns a bounded transport value.
|
|
84
|
+
* Reader failures propagate unchanged to the parent inspection owner.
|
|
85
|
+
* @returns A metadata value or encoded byte page after actual reader settlement.
|
|
86
|
+
* @throws
|
|
87
|
+
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
88
|
+
* - ENTRY_NOT_FOUND: The requested repository entry was not found.
|
|
89
|
+
* - ENTRY_NOT_FILE: The requested repository entry is not a file.
|
|
90
|
+
* - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.
|
|
91
|
+
* - INVALID_PAGE_REQUEST: The repository page request is invalid.
|
|
92
|
+
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
93
|
+
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
94
|
+
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
95
|
+
* - PROVIDER_INCOMPLETE: The repository provider cannot expose a complete result.
|
|
96
|
+
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
97
|
+
* - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
|
|
98
|
+
* - ABORTED: The repository operation was aborted.
|
|
99
|
+
*/
|
|
100
|
+
var executeRepositoryRpc = async (reader, request, signal) => {
|
|
101
|
+
if (request.method === "getEntry") return parseRpcEntry(await reader.getEntry(parseRepositoryPath(request.path), { signal }));
|
|
102
|
+
if (request.method === "listEntriesPage") return parseRpcEntryPage(await reader.listEntriesPage({
|
|
103
|
+
maxEntries: request.maxEntries,
|
|
104
|
+
signal,
|
|
105
|
+
...request.prefix === void 0 ? {} : { prefix: parseRepositoryPath(request.prefix) },
|
|
106
|
+
...request.cursor === void 0 ? {} : { cursor: request.cursor }
|
|
107
|
+
}));
|
|
108
|
+
const page = await reader.readFilePage(parseRepositoryPath(request.path), {
|
|
109
|
+
maxBytes: request.maxBytes,
|
|
110
|
+
offset: request.offset,
|
|
111
|
+
signal
|
|
112
|
+
});
|
|
113
|
+
if (!(page.bytes instanceof Uint8Array) || page.bytes.byteLength > request.maxBytes) return invalidSource();
|
|
114
|
+
const result = {
|
|
115
|
+
...page,
|
|
116
|
+
bytes: Buffer.from(page.bytes.buffer, page.bytes.byteOffset, page.bytes.byteLength).toString("base64")
|
|
117
|
+
};
|
|
118
|
+
parseRpcFilePage(result);
|
|
119
|
+
return result;
|
|
120
|
+
};
|
|
121
|
+
//#endregion
|
|
122
|
+
export { parseRpcFilePage as i, parseRpcEntry as n, parseRpcEntryPage as r, executeRepositoryRpc as t };
|
|
123
|
+
|
|
124
|
+
//# sourceMappingURL=repository-rpc-BWi6X1la.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-rpc-BWi6X1la.js","names":[],"sources":["../../src/node-inspection/repository-rpc.ts"],"sourcesContent":["import { Buffer } from 'node:buffer';\n\nimport {\n isRepositoryPath,\n parseRepositoryPath,\n RepositorySourceException,\n type IRepositoryEntry,\n type IRepositoryEntryPage,\n type IRepositoryFilePage,\n type IRepositoryReader,\n type IRepositorySnapshot,\n} from '@moldea.ai/repository';\n\nimport { NODE_INSPECTION_FILE_PAGE_BYTES } from './constants.js';\nimport type { INodeReaderRequest } from './types.js';\n\nconst invalidSource = (): never => {\n throw new RepositorySourceException({\n code: 'INVALID_SOURCE_DATA',\n operation: 'create-reader',\n path: null,\n retryable: false,\n });\n};\nconst isRecord = (input: unknown): input is Record<string, unknown> =>\n input !== null && typeof input === 'object' && !Array.isArray(input);\nconst isInteger = (input: unknown): input is number =>\n typeof input === 'number' && Number.isSafeInteger(input) && input >= 0;\nconst keysMatch = (input: Record<string, unknown>, keys: string[]): boolean =>\n Object.keys(input).length === keys.length && keys.every((key) => Object.hasOwn(input, key));\n\n/** Validates the immutable source identity without coercing unknown boundary fields. */\nconst parseSnapshot = (input: unknown): IRepositorySnapshot => {\n if (\n !isRecord(input) ||\n !keysMatch(input, ['id', 'sourceKind']) ||\n typeof input['id'] !== 'string' ||\n input['id'].length === 0 ||\n typeof input['sourceKind'] !== 'string' ||\n input['sourceKind'].length === 0\n )\n return invalidSource();\n return { id: input['id'], sourceKind: input['sourceKind'] };\n};\n\n/** Converts one validated metadata-only repository entry. */\nexport const parseRpcEntry = (input: unknown): IRepositoryEntry | null => {\n if (input === null) return null;\n if (\n !isRecord(input) ||\n !keysMatch(input, ['path', 'type', 'byteLength', 'contentIdentity']) ||\n !isRepositoryPath(input['path']) ||\n (input['type'] !== 'file' && input['type'] !== 'directory' && input['type'] !== 'symlink') ||\n (input['byteLength'] !== null && !isInteger(input['byteLength'])) ||\n (input['contentIdentity'] !== null && typeof input['contentIdentity'] !== 'string')\n )\n return invalidSource();\n return {\n path: input['path'],\n type: input['type'],\n byteLength: input['byteLength'],\n contentIdentity: input['contentIdentity'],\n };\n};\n\n/** Converts a bounded listing page while retaining snapshot and continuation contracts. */\nexport const parseRpcEntryPage = (input: unknown): IRepositoryEntryPage => {\n if (\n !isRecord(input) ||\n !keysMatch(input, ['entries', 'isComplete', 'nextCursor', 'snapshot']) ||\n !Array.isArray(input['entries']) ||\n input['entries'].length > 128 ||\n typeof input['isComplete'] !== 'boolean' ||\n (input['nextCursor'] !== null && typeof input['nextCursor'] !== 'string')\n )\n return invalidSource();\n const entries: IRepositoryEntry[] = [];\n for (const candidate of input['entries']) {\n const entry = parseRpcEntry(candidate);\n if (entry === null) return invalidSource();\n entries.push(entry);\n }\n return {\n entries,\n isComplete: input['isComplete'],\n nextCursor: input['nextCursor'],\n snapshot: parseSnapshot(input['snapshot']),\n };\n};\n\n/** Decodes only an admitted 64 KiB binary page, never a complete repository file. */\nexport const parseRpcFilePage = (input: unknown): IRepositoryFilePage => {\n if (\n !isRecord(input) ||\n !keysMatch(input, ['bytes', 'isComplete', 'nextOffset', 'offset', 'snapshot', 'totalBytes']) ||\n typeof input['bytes'] !== 'string' ||\n input['bytes'].length > Math.ceil(NODE_INSPECTION_FILE_PAGE_BYTES / 3) * 4 ||\n !/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input['bytes']) ||\n typeof input['isComplete'] !== 'boolean' ||\n !isInteger(input['offset']) ||\n !isInteger(input['totalBytes']) ||\n (input['nextOffset'] !== null && !isInteger(input['nextOffset']))\n )\n return invalidSource();\n const bytes = Buffer.from(input['bytes'], 'base64');\n if (\n bytes.byteLength > NODE_INSPECTION_FILE_PAGE_BYTES ||\n bytes.toString('base64') !== input['bytes']\n )\n return invalidSource();\n return {\n bytes,\n isComplete: input['isComplete'],\n nextOffset: input['nextOffset'],\n offset: input['offset'],\n snapshot: parseSnapshot(input['snapshot']),\n totalBytes: input['totalBytes'],\n };\n};\n\n/**\n * Calls the real reader with inspection cancellation and returns a bounded transport value.\n * Reader failures propagate unchanged to the parent inspection owner.\n * @returns A metadata value or encoded byte page after actual reader settlement.\n * @throws\n * - INVALID_REPOSITORY_PATH: The repository path is invalid.\n * - ENTRY_NOT_FOUND: The requested repository entry was not found.\n * - ENTRY_NOT_FILE: The requested repository entry is not a file.\n * - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.\n * - INVALID_PAGE_REQUEST: The repository page request is invalid.\n * - ACCESS_DENIED: Access to the repository source was denied.\n * - SOURCE_UNAVAILABLE: The repository source is unavailable.\n * - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.\n * - PROVIDER_INCOMPLETE: The repository provider cannot expose a complete result.\n * - INVALID_SOURCE_DATA: The repository source returned invalid data.\n * - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.\n * - ABORTED: The repository operation was aborted.\n */\nexport const executeRepositoryRpc = async (\n reader: IRepositoryReader,\n request: INodeReaderRequest,\n signal: AbortSignal,\n): Promise<unknown> => {\n if (request.method === 'getEntry')\n return parseRpcEntry(await reader.getEntry(parseRepositoryPath(request.path), { signal }));\n if (request.method === 'listEntriesPage')\n return parseRpcEntryPage(\n await reader.listEntriesPage({\n maxEntries: request.maxEntries,\n signal,\n ...(request.prefix === undefined ? {} : { prefix: parseRepositoryPath(request.prefix) }),\n ...(request.cursor === undefined ? {} : { cursor: request.cursor }),\n }),\n );\n const page = await reader.readFilePage(parseRepositoryPath(request.path), {\n maxBytes: request.maxBytes,\n offset: request.offset,\n signal,\n });\n if (!(page.bytes instanceof Uint8Array) || page.bytes.byteLength > request.maxBytes)\n return invalidSource();\n const result = {\n ...page,\n bytes: Buffer.from(page.bytes.buffer, page.bytes.byteOffset, page.bytes.byteLength).toString(\n 'base64',\n ),\n };\n parseRpcFilePage(result);\n return result;\n};\n"],"mappings":";;;;AAgBA,IAAM,sBAA6B;CACjC,MAAM,IAAI,0BAA0B;EAClC,MAAM;EACN,WAAW;EACX,MAAM;EACN,WAAW;CACb,CAAC;AACH;AACA,IAAM,YAAY,UAChB,UAAU,QAAQ,OAAO,UAAU,YAAY,CAAC,MAAM,QAAQ,KAAK;AACrE,IAAM,aAAa,UACjB,OAAO,UAAU,YAAY,OAAO,cAAc,KAAK,KAAK,SAAS;AACvE,IAAM,aAAa,OAAgC,SACjD,OAAO,KAAK,KAAK,CAAC,CAAC,WAAW,KAAK,UAAU,KAAK,OAAO,QAAQ,OAAO,OAAO,OAAO,GAAG,CAAC;;AAG5F,IAAM,iBAAiB,UAAwC;CAC7D,IACE,CAAC,SAAS,KAAK,KACf,CAAC,UAAU,OAAO,CAAC,MAAM,YAAY,CAAC,KACtC,OAAO,MAAM,UAAU,YACvB,MAAM,KAAK,CAAC,WAAW,KACvB,OAAO,MAAM,kBAAkB,YAC/B,MAAM,aAAa,CAAC,WAAW,GAE/B,OAAO,cAAc;CACvB,OAAO;EAAE,IAAI,MAAM;EAAO,YAAY,MAAM;CAAc;AAC5D;;AAGA,IAAa,iBAAiB,UAA4C;CACxE,IAAI,UAAU,MAAM,OAAO;CAC3B,IACE,CAAC,SAAS,KAAK,KACf,CAAC,UAAU,OAAO;EAAC;EAAQ;EAAQ;EAAc;CAAiB,CAAC,KACnE,CAAC,iBA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AAO,cAAc;CACvB,MAAM,QAAQ,OAAO,KAAK,MAAM,UAAU,QAAQ;CAClD,IACE,MAAM,aAAA,SACN,MAAM,SAAS,QAAQ,MAAM,MAAM,UAEnC,OAAO,cAAc;CACvB,OAAO;EACL;EACA,YAAY,MAAM;EAClB,YAAY,MAAM;EAClB,QAAQ,MAAM;EACd,UAAU,cAAc,MAAM,WAAW;EACzC,YAAY,MAAM;CACpB;AACF;;;;;;;;;;;;;;;;;;;AAoBA,IAAa,uBAAuB,OAClC,QACA,SACA,WACqB;CACrB,IAAI,QAAQ,WAAW,YACrB,OAAO,cAAc,MAAM,OAAO,SAAS,oBAAoB,QAAQ,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC;CAC3F,IAAI,QAAQ,WAAW,mBACrB,OAAO,kBACL,MAAM,OAAO,gBAAgB;EAC3B,YAAY,QAAQ;EACpB;EACA,GAAI,QAAQ,WAAW,KAAA,IAAY,CAAC,IAAI,EAAE,QAAQ,oBAAoB,QAAQ,MAAM,EAAE;EACtF,GAAI,QAAQ,WAAW,KAAA,IAAY,CAAC,IAAI,EAAE,QAAQ,QAAQ,OAAO;CACnE,CAAC,CACH;CACF,MAAM,OAAO,MAAM,OAAO,aAAa,oBAAoB,QAAQ,IAAI,GAAG;EACxE,UAAU,QAAQ;EAClB,QAAQ,QAAQ;EAChB;CACF,CAAC;CACD,IAAI,EAAE,KAAK,iBAAiB,eAAe,KAAK,MAAM,aAAa,QAAQ,UACzE,OAAO,cAAc;CACvB,MAAM,SAAS;EACb,GAAG;EACH,OAAO,OAAO,KAAK,KAAK,MAAM,QAAQ,KAAK,MAAM,YAAY,KAAK,MAAM,UAAU,CAAC,CAAC,SAClF,QACF;CACF;CACA,iBAAiB,MAAM;CACvB,OAAO;AACT"}
|
|
@@ -116,8 +116,10 @@ export interface IProjectValidationSummary {
|
|
|
116
116
|
readonly projectDigest: IContentDigest;
|
|
117
117
|
readonly projectPath: IRepositoryPath;
|
|
118
118
|
}
|
|
119
|
+
export type IRuntimeInspectionStatus = 'complete' | 'incomplete' | 'not-run';
|
|
119
120
|
export interface IProjectValidationResult {
|
|
120
121
|
readonly valid: boolean;
|
|
122
|
+
readonly runtimeInspection: IRuntimeInspectionStatus;
|
|
121
123
|
readonly errorCount: number;
|
|
122
124
|
readonly warningCount: number;
|
|
123
125
|
readonly formatVersion: IRepositoryFormatVersion | null;
|
|
@@ -142,6 +144,7 @@ export interface IProjectInspectionResourceUsage {
|
|
|
142
144
|
}
|
|
143
145
|
export interface IProjectInspection {
|
|
144
146
|
readonly counts: IProjectInspectionCounts;
|
|
147
|
+
readonly runtimeInspection: IRuntimeInspectionStatus;
|
|
145
148
|
readonly formatVersion: IRepositoryFormatVersion | null;
|
|
146
149
|
readonly inspectionDigest: string;
|
|
147
150
|
readonly resourceUsage: IProjectInspectionResourceUsage;
|
|
@@ -159,6 +162,7 @@ export interface IProjectInspection {
|
|
|
159
162
|
}
|
|
160
163
|
export interface IProjectInspectionPageResult {
|
|
161
164
|
readonly counts: IProjectInspectionCounts;
|
|
165
|
+
readonly runtimeInspection: IRuntimeInspectionStatus;
|
|
162
166
|
readonly formatVersion: IRepositoryFormatVersion | null;
|
|
163
167
|
readonly inspectionDigest: string;
|
|
164
168
|
readonly page: IProjectInspectionPage;
|
|
@@ -294,17 +298,20 @@ export interface ICore {
|
|
|
294
298
|
* @returns A promise resolving to an immutable inspection with synchronous page reads.
|
|
295
299
|
* @throws
|
|
296
300
|
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
297
|
-
* - INVALID_REPOSITORY_PATH:
|
|
298
|
-
* - ENTRY_NOT_FOUND:
|
|
299
|
-
* - ENTRY_NOT_FILE:
|
|
300
|
-
* - ENTRY_NOT_DIRECTORY:
|
|
301
|
+
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
302
|
+
* - ENTRY_NOT_FOUND: The requested repository entry was not found.
|
|
303
|
+
* - ENTRY_NOT_FILE: The requested repository entry is not a file.
|
|
304
|
+
* - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.
|
|
301
305
|
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
302
306
|
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
303
|
-
* - SNAPSHOT_CHANGED: The repository snapshot changed during
|
|
304
|
-
* -
|
|
305
|
-
* -
|
|
306
|
-
* -
|
|
307
|
-
* -
|
|
307
|
+
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
308
|
+
* - PROVIDER_INCOMPLETE: The repository provider cannot expose a complete result.
|
|
309
|
+
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
310
|
+
* - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
|
|
311
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
312
|
+
* - ABORTED: The repository operation was aborted.
|
|
313
|
+
* - ABORTED: The Core operation was aborted.
|
|
314
|
+
* - ADAPTER_EXECUTION_FAILED: A runtime adapter failed during inspection.
|
|
308
315
|
*/
|
|
309
316
|
createProjectInspection(input: IProjectInspectionInput): Promise<IProjectInspection>;
|
|
310
317
|
/**
|
|
@@ -331,17 +338,20 @@ export interface ICore {
|
|
|
331
338
|
* @returns A promise resolving to the frozen content-free project validation result.
|
|
332
339
|
* @throws
|
|
333
340
|
* - INVALID_ARGUMENT: The Core operation received an invalid argument.
|
|
334
|
-
* - INVALID_REPOSITORY_PATH:
|
|
335
|
-
* - ENTRY_NOT_FOUND:
|
|
336
|
-
* - ENTRY_NOT_FILE:
|
|
337
|
-
* - ENTRY_NOT_DIRECTORY:
|
|
341
|
+
* - INVALID_REPOSITORY_PATH: The repository path is invalid.
|
|
342
|
+
* - ENTRY_NOT_FOUND: The requested repository entry was not found.
|
|
343
|
+
* - ENTRY_NOT_FILE: The requested repository entry is not a file.
|
|
344
|
+
* - ENTRY_NOT_DIRECTORY: The requested repository entry is not a directory.
|
|
338
345
|
* - ACCESS_DENIED: Access to the repository source was denied.
|
|
339
346
|
* - SOURCE_UNAVAILABLE: The repository source is unavailable.
|
|
340
|
-
* - SNAPSHOT_CHANGED: The repository snapshot changed during
|
|
341
|
-
* -
|
|
342
|
-
* -
|
|
343
|
-
* -
|
|
344
|
-
* -
|
|
347
|
+
* - SNAPSHOT_CHANGED: The repository snapshot changed during the operation.
|
|
348
|
+
* - PROVIDER_INCOMPLETE: The repository provider cannot expose a complete result.
|
|
349
|
+
* - INVALID_SOURCE_DATA: The repository source returned invalid data.
|
|
350
|
+
* - RESOURCE_LIMIT_EXCEEDED: A named repository resource limit was exceeded.
|
|
351
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
352
|
+
* - ABORTED: The repository operation was aborted.
|
|
353
|
+
* - ABORTED: The Core operation was aborted.
|
|
354
|
+
* - ADAPTER_EXECUTION_FAILED: A runtime adapter failed during inspection.
|
|
345
355
|
*/
|
|
346
356
|
validateProject(input: IProjectValidationInput): Promise<IProjectValidationResult>;
|
|
347
357
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,0BAA0B,EAC1B,wBAAwB,EACxB,mCAAmC,EACpC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAG5F,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,C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0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/custom-runtime-inspection/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iCAAiC,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IRuntimeAdapterContext, IRuntimeAdapterResult } from '../adapter/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Reports the declared relationships that Core cannot verify for the reserved custom runtime.
|
|
4
|
+
* @param context The universally validated agent and operation output allowance.
|
|
5
|
+
* @returns A promise resolving to bounded relationship warnings without a registered adapter.
|
|
6
|
+
* @throws
|
|
7
|
+
* - RESOURCE_LIMIT_EXCEEDED: A Core resource limit was exceeded.
|
|
8
|
+
* - ABORTED: The Core operation was aborted.
|
|
9
|
+
*/
|
|
10
|
+
export declare const inspectCustomRuntimeRelationships: (context: IRuntimeAdapterContext) => Promise<IRuntimeAdapterResult>;
|
|
11
|
+
//# sourceMappingURL=inspection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspection.d.ts","sourceRoot":"","sources":["../../src/custom-runtime-inspection/inspection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAKzF;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,GAC5C,SAAS,sBAAsB,KAC9B,OAAO,CAAC,qBAAqB,CAgD/B,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Exception } from 'error-message-utils';
|
|
2
2
|
export type ICoreConfigurationErrorCode = 'DUPLICATE_ADAPTER_ID' | 'RESERVED_ADAPTER_ID' | 'INVALID_ADAPTER_DEFINITION' | 'INVALID_RESOURCE_LIMIT';
|
|
3
|
-
export type ICoreOperationErrorCode = 'INVALID_ARGUMENT' | 'ABORTED' | 'RESOURCE_LIMIT_EXCEEDED' | 'ADAPTER_EXECUTION_FAILED' | 'CONTENT_INVALID';
|
|
4
|
-
|
|
3
|
+
export type ICoreOperationErrorCode = 'INVALID_ARGUMENT' | 'ABORTED' | 'RESOURCE_LIMIT_EXCEEDED' | 'ADAPTER_EXECUTION_FAILED' | 'INSPECTION_BUSY' | 'INSPECTION_TIMEOUT' | 'INSPECTION_PROCESS_FAILED' | 'CONTENT_INVALID';
|
|
4
|
+
declare const CORE_OPERATIONS: readonly ["create-core", "normalize-text", "calculate-content-digest", "parse-manifest", "match-manifest-scope", "parse-decision", "create-project-inspection", "read-canonical-content-page", "validate-project", "validate-adapter"];
|
|
5
|
+
export type ICoreOperation = (typeof CORE_OPERATIONS)[number];
|
|
5
6
|
export interface ICoreConfigurationExceptionOptions {
|
|
6
7
|
readonly code: ICoreConfigurationErrorCode;
|
|
7
8
|
readonly operation: ICoreOperation;
|
|
@@ -14,12 +15,24 @@ interface ICoreOperationExceptionOptionsBase {
|
|
|
14
15
|
readonly agentId?: string;
|
|
15
16
|
readonly cause?: unknown;
|
|
16
17
|
}
|
|
17
|
-
export type ICoreResourceLimitNextAction = 'reduce-input-or-increase-limit';
|
|
18
|
+
export type ICoreResourceLimitNextAction = 'reduce-input-or-increase-limit' | 'review-inspection-capacity';
|
|
18
19
|
export type ICoreOperationExceptionOptions = ICoreOperationExceptionOptionsBase & ({
|
|
19
20
|
readonly code: 'RESOURCE_LIMIT_EXCEEDED';
|
|
20
21
|
readonly limit: string;
|
|
21
22
|
readonly limitMaximum: number;
|
|
22
|
-
readonly nextAction:
|
|
23
|
+
readonly nextAction: 'reduce-input-or-increase-limit';
|
|
24
|
+
readonly observedUsage: number;
|
|
25
|
+
} | {
|
|
26
|
+
readonly code: 'RESOURCE_LIMIT_EXCEEDED';
|
|
27
|
+
readonly limit: 'maxAnalysisHeapBytes';
|
|
28
|
+
readonly limitMaximum: number;
|
|
29
|
+
readonly nextAction: 'review-inspection-capacity';
|
|
30
|
+
readonly observedUsage: null;
|
|
31
|
+
} | {
|
|
32
|
+
readonly code: 'RESOURCE_LIMIT_EXCEEDED';
|
|
33
|
+
readonly limit: 'maxInspectionMessageBytes' | 'maxReaderRequests';
|
|
34
|
+
readonly limitMaximum: number;
|
|
35
|
+
readonly nextAction: null;
|
|
23
36
|
readonly observedUsage: number;
|
|
24
37
|
} | {
|
|
25
38
|
readonly code: Exclude<ICoreOperationErrorCode, 'RESOURCE_LIMIT_EXCEEDED'>;
|
|
@@ -28,6 +41,12 @@ export type ICoreOperationExceptionOptions = ICoreOperationExceptionOptionsBase
|
|
|
28
41
|
readonly nextAction?: never;
|
|
29
42
|
readonly observedUsage?: never;
|
|
30
43
|
});
|
|
44
|
+
/** Checks a transported operation against the authoritative Core operation set. */
|
|
45
|
+
export declare const isCoreOperation: (input: unknown) => input is ICoreOperation;
|
|
46
|
+
/** Checks a transported configuration code against the authoritative message registry. */
|
|
47
|
+
export declare const isCoreConfigurationErrorCode: (input: unknown) => input is ICoreConfigurationErrorCode;
|
|
48
|
+
/** Checks a transported operation code against the authoritative message registry. */
|
|
49
|
+
export declare const isCoreOperationErrorCode: (input: unknown) => input is ICoreOperationErrorCode;
|
|
31
50
|
/** Represents invalid immutable Core configuration. */
|
|
32
51
|
export declare class CoreConfigurationException extends Exception {
|
|
33
52
|
readonly code: ICoreConfigurationErrorCode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGhD,MAAM,MAAM,2BAA2B,GACnC,sBAAsB,GACtB,qBAAqB,GACrB,4BAA4B,GAC5B,wBAAwB,CAAC;AAE7B,MAAM,MAAM,uBAAuB,GAC/B,kBAAkB,GAClB,SAAS,GACT,yBAAyB,GACzB,0BAA0B,GAC1B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exceptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,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/D;AAED,6EAA6E;AAC7E,qBAAa,sBAAuB,SAAQ,SAAS;IACnD,SAAyB,IAAI,EAAE,uBAAuB,CAAC;IAEvD,SAAgB,SAAS,EAAE,cAAc,CAAC;IAE1C,SAAgB,SAAS,EAAE,OAAO,CAAC;IAEnC,SAAgB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC,SAAgB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC,SAAgB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,SAAgB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5C,SAAgB,UAAU,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAEhE,SAAgB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7C,iFAAiF;gBAC9D,OAAO,EAAE,8BAA8B;CAc3D"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { IRuntimeAdapterEvidence, IRuntimeAdapterEvidenceKind } from './adapter/index.js';
|
|
2
2
|
export { DEFAULT_CORE_RESOURCE_LIMITS, SUPPORTED_REPOSITORY_FORMAT_VERSIONS, } from './constants/index.js';
|
|
3
|
-
export type { IContentDigest, IContentDigestResult, ICanonicalContentPageInput, ICanonicalContentPageResult, ICore, ICoreOptions, ICoreResourceLimits, IDecisionParseResult, IManifestParseResult, INormalizedText, IProjectMetadataItem, IProjectMetadataKind, IProjectAgentAssignmentItem, IProjectInspection, IProjectInspectionItem, IProjectInspectionCounts, IProjectInspectionInput, IProjectInspectionPage, IProjectInspectionPageInput, IProjectInspectionPageRecord, IProjectInspectionPageResult, IProjectInspectionResourceUsage, IProjectInspectionView, IProjectSummaryCounts, IProjectValidationInput, IProjectValidationResult, IProjectValidationSummary, ITextDocumentContent, ITextDocumentInput, ITextNormalizationResult, } from './contracts/index.js';
|
|
3
|
+
export type { IContentDigest, IContentDigestResult, ICanonicalContentPageInput, ICanonicalContentPageResult, ICore, ICoreOptions, ICoreResourceLimits, IDecisionParseResult, IManifestParseResult, INormalizedText, IProjectMetadataItem, IProjectMetadataKind, IProjectAgentAssignmentItem, IProjectInspection, IProjectInspectionItem, IProjectInspectionCounts, IProjectInspectionInput, IProjectInspectionPage, IProjectInspectionPageInput, IProjectInspectionPageRecord, IProjectInspectionPageResult, IProjectInspectionResourceUsage, IProjectInspectionView, IProjectSummaryCounts, IProjectValidationInput, IProjectValidationResult, IProjectValidationSummary, IRuntimeInspectionStatus, ITextDocumentContent, ITextDocumentInput, ITextNormalizationResult, } from './contracts/index.js';
|
|
4
4
|
export type { IExactManifestScopeDeclaration, IGlobManifestScopeDeclaration, IManifestScopeCounts, IManifestScopeDeclaration, IManifestScopeInput, IManifestScopeMatch, IManifestScopeOwner, IManifestScopeOwnerKind, IManifestScopeRelationshipField, IManifestScopeResult, } from './scope-matching/index.js';
|
|
5
5
|
export { createCore } from './core/index.js';
|
|
6
6
|
export type { IAdapterDiagnostic, IAdapterErrorDiagnostic, IAdapterWarningDiagnostic, ICoreDiagnostic, ICoreDiagnosticCode, IDiagnostic, IDiagnosticDetails, IDiagnosticEntity, ISourcePosition, ISourceRange, IUnverifiedRelationship, IUnverifiedRelationshipDetails, } from './diagnostics/index.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAG/F,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,GACrC,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,KAAK,EACL,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAC3B,kBAAkB,EAClB,sBA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