@moldea.ai/adapter-claude-agent-sdk 1.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/LICENSE +21 -0
- package/README.md +90 -0
- package/cover.png +0 -0
- package/dist/adapter/index.d.ts +3 -0
- package/dist/adapter/index.d.ts.map +1 -0
- package/dist/constants/index.d.ts +7 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/contracts/index.d.ts +176 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/diagnostics/index.d.ts +31 -0
- package/dist/diagnostics/index.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2435 -0
- package/dist/inspection/common.d.ts +36 -0
- package/dist/inspection/common.d.ts.map +1 -0
- package/dist/inspection/handoffs.d.ts +7 -0
- package/dist/inspection/handoffs.d.ts.map +1 -0
- package/dist/inspection/index.d.ts +2 -0
- package/dist/inspection/index.d.ts.map +1 -0
- package/dist/inspection/inspection.d.ts +18 -0
- package/dist/inspection/inspection.d.ts.map +1 -0
- package/dist/inspection/package-inspection.d.ts +7 -0
- package/dist/inspection/package-inspection.d.ts.map +1 -0
- package/dist/inspection/relationships.d.ts +7 -0
- package/dist/inspection/relationships.d.ts.map +1 -0
- package/dist/inspection/resolution.d.ts +23 -0
- package/dist/inspection/resolution.d.ts.map +1 -0
- package/dist/inspection/session.d.ts +5 -0
- package/dist/inspection/session.d.ts.map +1 -0
- package/dist/inspection/tools.d.ts +7 -0
- package/dist/inspection/tools.d.ts.map +1 -0
- package/dist/inspection/types.d.ts +16 -0
- package/dist/inspection/types.d.ts.map +1 -0
- package/dist/package-discovery/index.d.ts +27 -0
- package/dist/package-discovery/index.d.ts.map +1 -0
- package/dist/source-analysis/agent-definitions.d.ts +24 -0
- package/dist/source-analysis/agent-definitions.d.ts.map +1 -0
- package/dist/source-analysis/bindings.d.ts +11 -0
- package/dist/source-analysis/bindings.d.ts.map +1 -0
- package/dist/source-analysis/collections.d.ts +28 -0
- package/dist/source-analysis/collections.d.ts.map +1 -0
- package/dist/source-analysis/index.d.ts +14 -0
- package/dist/source-analysis/index.d.ts.map +1 -0
- package/dist/source-analysis/instruction-loaders.d.ts +12 -0
- package/dist/source-analysis/instruction-loaders.d.ts.map +1 -0
- package/dist/source-analysis/mcp-servers.d.ts +16 -0
- package/dist/source-analysis/mcp-servers.d.ts.map +1 -0
- package/dist/source-analysis/mutations.d.ts +15 -0
- package/dist/source-analysis/mutations.d.ts.map +1 -0
- package/dist/source-analysis/query-wrappers.d.ts +19 -0
- package/dist/source-analysis/query-wrappers.d.ts.map +1 -0
- package/dist/source-analysis/sdk-tools.d.ts +9 -0
- package/dist/source-analysis/sdk-tools.d.ts.map +1 -0
- package/dist/source-analysis/source-analysis.d.ts +11 -0
- package/dist/source-analysis/source-analysis.d.ts.map +1 -0
- package/dist/source-analysis/static-strings.d.ts +11 -0
- package/dist/source-analysis/static-strings.d.ts.map +1 -0
- package/dist/source-analysis/tool-availability.d.ts +41 -0
- package/dist/source-analysis/tool-availability.d.ts.map +1 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jesus Graterol
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# `@moldea.ai/adapter-claude-agent-sdk`
|
|
4
|
+
|
|
5
|
+
Deterministic runtime evidence and diagnostics for Claude Agent SDK query and programmatic-subagent integrations declared by `moldea` agents.
|
|
6
|
+
|
|
7
|
+
The package implements the official `claude-agent-sdk` runtime adapter for `@moldea.ai/core`. It statically inspects explicitly bound repository source through Core's source-neutral reader. It never imports or calls the Claude Agent SDK, requires no API key, executes no repository code, and makes no network request.
|
|
8
|
+
|
|
9
|
+
## Supported target
|
|
10
|
+
|
|
11
|
+
Version `1.0.0` experimentally supports:
|
|
12
|
+
|
|
13
|
+
- Repository Format version `1`
|
|
14
|
+
- `@moldea.ai/core ^2.0.0`
|
|
15
|
+
- TypeScript ESM source
|
|
16
|
+
- npm `@anthropic-ai/claude-agent-sdk >=0.3.234 <0.4.0`
|
|
17
|
+
- directly exported functions containing direct `query({ ... })` calls
|
|
18
|
+
- directly exported immutable object-literal programmatic `AgentDefinition` values
|
|
19
|
+
- query `systemPrompt`, `claude_code` preset `append`, and subagent `prompt` instruction loaders
|
|
20
|
+
- query output schemas through `outputFormat: { type: 'json_schema', schema }`
|
|
21
|
+
- custom tools created through positional `tool(...)` calls
|
|
22
|
+
- SDK MCP servers created through `createSdkMcpServer(...)` and mounted through query `mcpServers`
|
|
23
|
+
- query- and subagent-local tool availability using closed `tools` and `disallowedTools` lists
|
|
24
|
+
- active programmatic-subagent registration through an available built-in `Agent` tool
|
|
25
|
+
- exact routing-description comparison through `AgentDefinition.description`
|
|
26
|
+
|
|
27
|
+
Named root-package imports and aliases of `query`, `tool`, and `createSdkMcpServer` are supported. Relative ESM named imports resolve exact paths plus `.js` to `.ts` or `.tsx` and `.mjs` to `.mts` substitutions. Relationship closure is independent: a dynamic relationship does not erase other relationships proved from the same query or definition.
|
|
28
|
+
|
|
29
|
+
The Runtime Compatibility Matrix is authoritative for current target maturity, exact versions, evidence, binding support, patterns, and known limitations.
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import { claudeAgentSdkAdapter } from '@moldea.ai/adapter-claude-agent-sdk';
|
|
35
|
+
import { createCore } from '@moldea.ai/core';
|
|
36
|
+
|
|
37
|
+
const core = createCore({ adapters: [claudeAgentSdkAdapter] });
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The local CLI bundles active official adapters automatically. Applications composing Core directly register the immutable singleton explicitly.
|
|
41
|
+
|
|
42
|
+
## Public exports
|
|
43
|
+
|
|
44
|
+
The package exports only `claudeAgentSdkAdapter`. It has no default export, configuration factory, diagnostic registry, SDK facade, parser export, or mutable runtime state.
|
|
45
|
+
|
|
46
|
+
## Evidence
|
|
47
|
+
|
|
48
|
+
The verified target may emit `runtime-package`, `language`, `runtime-pattern`, `agent-definition`, `instruction-loader`, `schema`, `tool-registration`, and `handoff-registration` evidence. Tool runtime names use `mcp__{server key}__{tool name}` only when the query-level key requires no SDK normalization.
|
|
49
|
+
|
|
50
|
+
Evidence is source-grounded, references existing regular files, and contains no repository contents, instructions, descriptions, credentials, tool arguments, MCP payloads, session data, or provider output.
|
|
51
|
+
|
|
52
|
+
## Diagnostics
|
|
53
|
+
|
|
54
|
+
| Code | Stable message |
|
|
55
|
+
| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
|
|
56
|
+
| `CLAUDE_AGENT_SDK_PACKAGE_MANIFEST_INVALID` | The owning package manifest is invalid for Claude Agent SDK dependency detection. |
|
|
57
|
+
| `CLAUDE_AGENT_SDK_VERSION_UNSUPPORTED` | The observed Claude Agent SDK dependency range is disjoint from the supported range. |
|
|
58
|
+
| `CLAUDE_AGENT_SDK_SOURCE_TEXT_INVALID` | The referenced Claude Agent SDK source file is not valid normalized text. |
|
|
59
|
+
| `CLAUDE_AGENT_SDK_SOURCE_SYNTAX_INVALID` | The referenced Claude Agent SDK source file contains invalid TypeScript syntax. |
|
|
60
|
+
| `CLAUDE_AGENT_SDK_RUNTIME_AGENT_SYMBOL_NOT_FOUND` | The declared runtime-agent symbol was not found. |
|
|
61
|
+
| `CLAUDE_AGENT_SDK_INSTRUCTION_LOADER_SYMBOL_NOT_FOUND` | The declared instruction-loader symbol was not found. |
|
|
62
|
+
| `CLAUDE_AGENT_SDK_AGENT_OUTPUT_SCHEMA_SYMBOL_NOT_FOUND` | The declared agent output-schema symbol was not found. |
|
|
63
|
+
| `CLAUDE_AGENT_SDK_TOOL_IMPLEMENTATION_SYMBOL_NOT_FOUND` | The declared tool-implementation symbol was not found. |
|
|
64
|
+
| `CLAUDE_AGENT_SDK_TOOL_REGISTRATION_SYMBOL_NOT_FOUND` | The declared tool-registration symbol was not found. |
|
|
65
|
+
| `CLAUDE_AGENT_SDK_TOOL_INPUT_SCHEMA_SYMBOL_NOT_FOUND` | The declared tool input-schema symbol was not found. |
|
|
66
|
+
| `CLAUDE_AGENT_SDK_MCP_SERVER_KEY_UNSUPPORTED` | The detected Claude Agent SDK MCP server key cannot establish a canonical runtime-name segment. |
|
|
67
|
+
| `CLAUDE_AGENT_SDK_INSTRUCTION_LOADER_NOT_WIRED` | The declared instruction loader is not wired to the detected Claude Agent SDK agent. |
|
|
68
|
+
| `CLAUDE_AGENT_SDK_AGENT_OUTPUT_SCHEMA_NOT_WIRED` | The declared agent output schema is not wired to the detected Claude Agent SDK query output format. |
|
|
69
|
+
| `CLAUDE_AGENT_SDK_TOOL_IMPLEMENTATION_NOT_WIRED` | The declared tool implementation is not wired to the detected Claude Agent SDK custom tool. |
|
|
70
|
+
| `CLAUDE_AGENT_SDK_TOOL_REGISTRATION_NOT_WIRED` | The declared tool registration is not available to the detected Claude Agent SDK agent. |
|
|
71
|
+
| `CLAUDE_AGENT_SDK_TOOL_NAME_MISMATCH` | The declared tool name does not match the detected Claude Agent SDK MCP tool name. |
|
|
72
|
+
| `CLAUDE_AGENT_SDK_TOOL_INPUT_SCHEMA_NOT_WIRED` | The declared tool input schema is not wired to the detected Claude Agent SDK custom tool. |
|
|
73
|
+
| `CLAUDE_AGENT_SDK_HANDOFF_TARGET_AMBIGUOUS` | The detected Claude Agent SDK subagent target matches more than one registered moldea agent. |
|
|
74
|
+
| `CLAUDE_AGENT_SDK_HANDOFF_ROUTING_DESCRIPTION_MISSING` | The detected Claude Agent SDK subagent registration has no supported routing description. |
|
|
75
|
+
| `CLAUDE_AGENT_SDK_HANDOFF_ROUTING_DESCRIPTION_NOT_WIRED` | The detected Claude Agent SDK subagent routing description does not use the target agent's effective routing description. |
|
|
76
|
+
|
|
77
|
+
Missing local runtime evidence is not a diagnostic. Dynamic or unsupported forms produce partial or no evidence rather than guessed failures.
|
|
78
|
+
|
|
79
|
+
## Development
|
|
80
|
+
|
|
81
|
+
From the monorepo root:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
pnpm --filter @moldea.ai/adapter-claude-agent-sdk test
|
|
85
|
+
pnpm --filter @moldea.ai/adapter-claude-agent-sdk typecheck
|
|
86
|
+
pnpm --filter @moldea.ai/adapter-claude-agent-sdk lint
|
|
87
|
+
pnpm --filter @moldea.ai/adapter-claude-agent-sdk build
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Unit and integration tests are colocated with their implementation modules. Adapter-specific conformance fixtures live under `/fixtures/adapter-claude-agent-sdk`.
|
package/cover.png
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapter/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAS/D,eAAO,MAAM,qBAAqB,EAAE,eAIlC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const CLAUDE_AGENT_SDK_ADAPTER_ID = "claude-agent-sdk";
|
|
2
|
+
export declare const CLAUDE_AGENT_SDK_PACKAGE_NAME = "@anthropic-ai/claude-agent-sdk";
|
|
3
|
+
export declare const CLAUDE_AGENT_SDK_SUPPORTED_RANGE = ">=0.3.234 <0.4.0";
|
|
4
|
+
export declare const CLAUDE_AGENT_SDK_TARGET_ID = "typescript-query-subagents-0-3";
|
|
5
|
+
export declare const CLAUDE_AGENT_SDK_SUPPORTED_REPOSITORY_FORMAT_VERSIONS: readonly 1[];
|
|
6
|
+
export declare const CLAUDE_AGENT_SDK_MCP_SERVER_KEY_PATTERN: RegExp;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B,qBAAqB,CAAC;AAC9D,eAAO,MAAM,6BAA6B,mCAAmC,CAAC;AAC9E,eAAO,MAAM,gCAAgC,qBAAqB,CAAC;AACnE,eAAO,MAAM,0BAA0B,mCAAmC,CAAC;AAC3E,eAAO,MAAM,qDAAqD,cAElB,CAAC;AAGjD,eAAO,MAAM,uCAAuC,QAAqB,CAAC"}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import type ts from 'typescript';
|
|
2
|
+
import type { ISourceRange } from '@moldea.ai/core';
|
|
3
|
+
import type { IAdapterDiagnostic } from '@moldea.ai/core/adapter';
|
|
4
|
+
import type { IRepositoryEntry, IRepositoryPath } from '@moldea.ai/repository';
|
|
5
|
+
export type IClaudeAgentSdkAdapterDiagnosticCode = 'CLAUDE_AGENT_SDK_PACKAGE_MANIFEST_INVALID' | 'CLAUDE_AGENT_SDK_VERSION_UNSUPPORTED' | 'CLAUDE_AGENT_SDK_SOURCE_TEXT_INVALID' | 'CLAUDE_AGENT_SDK_SOURCE_SYNTAX_INVALID' | 'CLAUDE_AGENT_SDK_RUNTIME_AGENT_SYMBOL_NOT_FOUND' | 'CLAUDE_AGENT_SDK_INSTRUCTION_LOADER_SYMBOL_NOT_FOUND' | 'CLAUDE_AGENT_SDK_AGENT_OUTPUT_SCHEMA_SYMBOL_NOT_FOUND' | 'CLAUDE_AGENT_SDK_TOOL_IMPLEMENTATION_SYMBOL_NOT_FOUND' | 'CLAUDE_AGENT_SDK_TOOL_REGISTRATION_SYMBOL_NOT_FOUND' | 'CLAUDE_AGENT_SDK_TOOL_INPUT_SCHEMA_SYMBOL_NOT_FOUND' | 'CLAUDE_AGENT_SDK_MCP_SERVER_KEY_UNSUPPORTED' | 'CLAUDE_AGENT_SDK_INSTRUCTION_LOADER_NOT_WIRED' | 'CLAUDE_AGENT_SDK_AGENT_OUTPUT_SCHEMA_NOT_WIRED' | 'CLAUDE_AGENT_SDK_TOOL_IMPLEMENTATION_NOT_WIRED' | 'CLAUDE_AGENT_SDK_TOOL_REGISTRATION_NOT_WIRED' | 'CLAUDE_AGENT_SDK_TOOL_NAME_MISMATCH' | 'CLAUDE_AGENT_SDK_TOOL_INPUT_SCHEMA_NOT_WIRED' | 'CLAUDE_AGENT_SDK_HANDOFF_TARGET_AMBIGUOUS' | 'CLAUDE_AGENT_SDK_HANDOFF_ROUTING_DESCRIPTION_MISSING' | 'CLAUDE_AGENT_SDK_HANDOFF_ROUTING_DESCRIPTION_NOT_WIRED';
|
|
6
|
+
export type IClaudeAgentSdkPackageCompatibility = 'ambiguous' | 'supported' | 'unsupported';
|
|
7
|
+
export type IClaudeAgentSdkPackageDependencyKind = 'dependencies' | 'optionalDependencies' | 'peerDependencies' | 'devDependencies';
|
|
8
|
+
export interface IClaudeAgentSdkPackageDeclaration {
|
|
9
|
+
readonly declaredRange: string;
|
|
10
|
+
readonly dependencyKind: IClaudeAgentSdkPackageDependencyKind;
|
|
11
|
+
}
|
|
12
|
+
export interface IClaudeAgentSdkPackageObservation {
|
|
13
|
+
readonly compatibility: IClaudeAgentSdkPackageCompatibility;
|
|
14
|
+
readonly declarations: readonly IClaudeAgentSdkPackageDeclaration[];
|
|
15
|
+
readonly path: IRepositoryPath;
|
|
16
|
+
}
|
|
17
|
+
export type IClaudeAgentSdkPackageDiscoveryResult = {
|
|
18
|
+
readonly kind: 'absent';
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: 'invalid';
|
|
21
|
+
readonly path: IRepositoryPath;
|
|
22
|
+
} | {
|
|
23
|
+
readonly kind: 'observed';
|
|
24
|
+
readonly observation: IClaudeAgentSdkPackageObservation;
|
|
25
|
+
};
|
|
26
|
+
export interface IClaudeAgentSdkImports {
|
|
27
|
+
readonly createSdkMcpServerNames: ReadonlySet<string>;
|
|
28
|
+
readonly queryNames: ReadonlySet<string>;
|
|
29
|
+
readonly toolNames: ReadonlySet<string>;
|
|
30
|
+
}
|
|
31
|
+
export type IClaudeAgentSdkModuleExportState = {
|
|
32
|
+
readonly kind: 'absent';
|
|
33
|
+
} | {
|
|
34
|
+
readonly declaration: ts.Node;
|
|
35
|
+
readonly kind: 'present-supported';
|
|
36
|
+
} | {
|
|
37
|
+
readonly declaration: ts.Node;
|
|
38
|
+
readonly kind: 'present-unsupported';
|
|
39
|
+
};
|
|
40
|
+
export type IClaudeAgentSdkTextResult = {
|
|
41
|
+
readonly valid: false;
|
|
42
|
+
} | {
|
|
43
|
+
readonly locator: {
|
|
44
|
+
locateRange(startOffset: number, endOffset: number): ISourceRange;
|
|
45
|
+
};
|
|
46
|
+
readonly valid: true;
|
|
47
|
+
readonly value: string;
|
|
48
|
+
};
|
|
49
|
+
export interface IClaudeAgentSdkSourceAnalysis {
|
|
50
|
+
readonly clientNames: ReadonlySet<string>;
|
|
51
|
+
readonly constructorNames: ReadonlySet<string>;
|
|
52
|
+
readonly exports: ReadonlyMap<string, IClaudeAgentSdkModuleExportState & {
|
|
53
|
+
readonly declaration: ts.Node;
|
|
54
|
+
}>;
|
|
55
|
+
readonly identifierUses: ReadonlyMap<string, readonly ts.Identifier[]>;
|
|
56
|
+
readonly imports: IClaudeAgentSdkImports;
|
|
57
|
+
readonly localBindingNames: ReadonlyMap<ts.Node, ReadonlySet<string>>;
|
|
58
|
+
readonly moduleArrays: ReadonlyMap<string, {
|
|
59
|
+
readonly declaration: ts.VariableDeclaration;
|
|
60
|
+
readonly expression: ts.ArrayLiteralExpression;
|
|
61
|
+
}>;
|
|
62
|
+
readonly moduleConstDeclarations: ReadonlyMap<string, ts.VariableDeclaration>;
|
|
63
|
+
readonly namedImports: ReadonlyMap<string, {
|
|
64
|
+
readonly importedName: string;
|
|
65
|
+
readonly moduleSpecifier: string;
|
|
66
|
+
}>;
|
|
67
|
+
readonly path: IRepositoryPath;
|
|
68
|
+
readonly safeModuleArrayNames: ReadonlySet<string>;
|
|
69
|
+
readonly sourceFile: ts.SourceFile;
|
|
70
|
+
readonly text: IClaudeAgentSdkTextResult & {
|
|
71
|
+
readonly valid: true;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export type IClaudeAgentSdkSourceAnalysisResult = {
|
|
75
|
+
readonly kind: 'invalid-syntax';
|
|
76
|
+
readonly range: ISourceRange | null;
|
|
77
|
+
} | {
|
|
78
|
+
readonly kind: 'invalid-text';
|
|
79
|
+
} | {
|
|
80
|
+
readonly analysis: IClaudeAgentSdkSourceAnalysis;
|
|
81
|
+
readonly kind: 'valid';
|
|
82
|
+
};
|
|
83
|
+
export type IClaudeAgentSdkRelationship = {
|
|
84
|
+
readonly kind: 'absent';
|
|
85
|
+
} | {
|
|
86
|
+
readonly expression: ts.Expression;
|
|
87
|
+
readonly kind: 'present';
|
|
88
|
+
} | {
|
|
89
|
+
readonly kind: 'unresolved';
|
|
90
|
+
};
|
|
91
|
+
export type IClaudeAgentSdkAvailability = 'available' | 'unavailable' | 'unresolved';
|
|
92
|
+
export interface IClaudeAgentSdkQueryContext {
|
|
93
|
+
readonly agents: IClaudeAgentSdkRelationship;
|
|
94
|
+
readonly agentSelection: IClaudeAgentSdkRelationship;
|
|
95
|
+
readonly call: ts.CallExpression;
|
|
96
|
+
readonly disallowedTools: IClaudeAgentSdkRelationship;
|
|
97
|
+
readonly mcpServers: IClaudeAgentSdkRelationship;
|
|
98
|
+
readonly outputFormat: IClaudeAgentSdkRelationship;
|
|
99
|
+
readonly systemPrompt: IClaudeAgentSdkRelationship;
|
|
100
|
+
readonly toolAliases: IClaudeAgentSdkRelationship;
|
|
101
|
+
readonly tools: IClaudeAgentSdkRelationship;
|
|
102
|
+
}
|
|
103
|
+
export interface IClaudeAgentSdkQueryWrapper {
|
|
104
|
+
readonly contexts: readonly IClaudeAgentSdkQueryContext[];
|
|
105
|
+
readonly declaration: ts.Node;
|
|
106
|
+
readonly hasAmbiguousCandidate: boolean;
|
|
107
|
+
}
|
|
108
|
+
export interface IClaudeAgentSdkAgentDefinition {
|
|
109
|
+
readonly config: ts.ObjectLiteralExpression;
|
|
110
|
+
readonly declaration: ts.VariableDeclaration;
|
|
111
|
+
readonly description: IClaudeAgentSdkRelationship;
|
|
112
|
+
readonly disallowedTools: IClaudeAgentSdkRelationship;
|
|
113
|
+
readonly mcpServers: IClaudeAgentSdkRelationship;
|
|
114
|
+
readonly prompt: IClaudeAgentSdkRelationship;
|
|
115
|
+
readonly tools: IClaudeAgentSdkRelationship;
|
|
116
|
+
}
|
|
117
|
+
export type IClaudeAgentSdkAgentDefinitionResult = {
|
|
118
|
+
readonly kind: 'absent';
|
|
119
|
+
} | {
|
|
120
|
+
readonly declaration: ts.Node;
|
|
121
|
+
readonly kind: 'present-unsupported';
|
|
122
|
+
} | {
|
|
123
|
+
readonly definition: IClaudeAgentSdkAgentDefinition;
|
|
124
|
+
readonly kind: 'present-supported';
|
|
125
|
+
};
|
|
126
|
+
export type IClaudeAgentSdkStaticStringResult = {
|
|
127
|
+
readonly expression: ts.Expression;
|
|
128
|
+
readonly kind: 'supported';
|
|
129
|
+
readonly value: string;
|
|
130
|
+
} | {
|
|
131
|
+
readonly kind: 'unsupported';
|
|
132
|
+
};
|
|
133
|
+
export interface IClaudeAgentSdkToolDefinition {
|
|
134
|
+
readonly call: ts.CallExpression;
|
|
135
|
+
readonly declaration: ts.VariableDeclaration;
|
|
136
|
+
readonly implementation: ts.Expression;
|
|
137
|
+
readonly inputSchema: ts.Expression;
|
|
138
|
+
readonly name: ts.Expression;
|
|
139
|
+
}
|
|
140
|
+
export type IClaudeAgentSdkToolDefinitionResult = {
|
|
141
|
+
readonly kind: 'absent';
|
|
142
|
+
} | {
|
|
143
|
+
readonly declaration: ts.Node;
|
|
144
|
+
readonly kind: 'present-unsupported';
|
|
145
|
+
} | {
|
|
146
|
+
readonly kind: 'present-supported';
|
|
147
|
+
readonly tool: IClaudeAgentSdkToolDefinition;
|
|
148
|
+
};
|
|
149
|
+
export interface IClaudeAgentSdkMcpServerDefinition {
|
|
150
|
+
readonly config: ts.ObjectLiteralExpression;
|
|
151
|
+
readonly declaration: ts.VariableDeclaration;
|
|
152
|
+
readonly name: ts.Expression;
|
|
153
|
+
readonly tools: IClaudeAgentSdkRelationship;
|
|
154
|
+
readonly version: IClaudeAgentSdkRelationship;
|
|
155
|
+
}
|
|
156
|
+
export interface IClaudeAgentSdkMapEntry {
|
|
157
|
+
readonly keyExpression: ts.Expression | ts.PropertyName;
|
|
158
|
+
readonly name: string | null;
|
|
159
|
+
readonly value: ts.Expression;
|
|
160
|
+
}
|
|
161
|
+
export interface IClaudeAgentSdkResolvedAgentDefinition {
|
|
162
|
+
readonly analysis: IClaudeAgentSdkSourceAnalysis;
|
|
163
|
+
readonly definition: IClaudeAgentSdkAgentDefinition;
|
|
164
|
+
readonly path: IRepositoryPath;
|
|
165
|
+
readonly symbol: string;
|
|
166
|
+
}
|
|
167
|
+
export interface IClaudeAgentSdkInspectionSession {
|
|
168
|
+
readonly signal?: AbortSignal;
|
|
169
|
+
analyzeSource(path: IRepositoryPath): Promise<IClaudeAgentSdkSourceAnalysisResult>;
|
|
170
|
+
discoverPackage(path: IRepositoryPath): Promise<IClaudeAgentSdkPackageDiscoveryResult>;
|
|
171
|
+
getEntry(path: IRepositoryPath): Promise<IRepositoryEntry | null>;
|
|
172
|
+
}
|
|
173
|
+
export type IClaudeAgentSdkDiagnosticInput = Omit<IAdapterDiagnostic, 'message' | 'source'> & {
|
|
174
|
+
readonly code: IClaudeAgentSdkAdapterDiagnosticCode;
|
|
175
|
+
};
|
|
176
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG/E,MAAM,MAAM,oCAAoC,GAC5C,2CAA2C,GAC3C,sCAAsC,GACtC,sCAAsC,GACtC,wCAAwC,GACxC,iDAAiD,GACjD,sDAAsD,GACtD,uDAAuD,GACvD,uDAAuD,GACvD,qDAAqD,GACrD,qDAAqD,GACrD,6CAA6C,GAC7C,+CAA+C,GAC/C,gDAAgD,GAChD,gDAAgD,GAChD,8CAA8C,GAC9C,qCAAqC,GACrC,8CAA8C,GAC9C,2CAA2C,GAC3C,sDAAsD,GACtD,wDAAwD,CAAC;AAE7D,MAAM,MAAM,mCAAmC,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,CAAC;AAE5F,MAAM,MAAM,oCAAo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Q,CAAC,QAAQ,EAAE,6BAA6B,CAAC;IACjD,QAAQ,CAAC,UAAU,EAAE,8BAA8B,CAAC;IACpD,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAGD,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAC9B,aAAa,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;IACnF,eAAe,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC;IACvF,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CACnE;AAGD,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,GAAG,QAAQ,CAAC,GAAG;IAC5F,QAAQ,CAAC,IAAI,EAAE,oCAAoC,CAAC;CACrD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IAdapterDiagnostic } from '@moldea.ai/core/adapter';
|
|
2
|
+
import type { IClaudeAgentSdkDiagnosticInput } from '../contracts/index.js';
|
|
3
|
+
export declare const CLAUDE_AGENT_SDK_ADAPTER_DIAGNOSTICS: Readonly<{
|
|
4
|
+
readonly CLAUDE_AGENT_SDK_AGENT_OUTPUT_SCHEMA_NOT_WIRED: "The declared agent output schema is not wired to the detected Claude Agent SDK query output format.";
|
|
5
|
+
readonly CLAUDE_AGENT_SDK_AGENT_OUTPUT_SCHEMA_SYMBOL_NOT_FOUND: "The declared agent output-schema symbol was not found.";
|
|
6
|
+
readonly CLAUDE_AGENT_SDK_HANDOFF_ROUTING_DESCRIPTION_MISSING: "The detected Claude Agent SDK subagent registration has no supported routing description.";
|
|
7
|
+
readonly CLAUDE_AGENT_SDK_HANDOFF_ROUTING_DESCRIPTION_NOT_WIRED: "The detected Claude Agent SDK subagent routing description does not use the target agent's effective routing description.";
|
|
8
|
+
readonly CLAUDE_AGENT_SDK_HANDOFF_TARGET_AMBIGUOUS: "The detected Claude Agent SDK subagent target matches more than one registered moldea agent.";
|
|
9
|
+
readonly CLAUDE_AGENT_SDK_INSTRUCTION_LOADER_NOT_WIRED: "The declared instruction loader is not wired to the detected Claude Agent SDK agent.";
|
|
10
|
+
readonly CLAUDE_AGENT_SDK_INSTRUCTION_LOADER_SYMBOL_NOT_FOUND: "The declared instruction-loader symbol was not found.";
|
|
11
|
+
readonly CLAUDE_AGENT_SDK_PACKAGE_MANIFEST_INVALID: "The owning package manifest is invalid for Claude Agent SDK dependency detection.";
|
|
12
|
+
readonly CLAUDE_AGENT_SDK_RUNTIME_AGENT_SYMBOL_NOT_FOUND: "The declared runtime-agent symbol was not found.";
|
|
13
|
+
readonly CLAUDE_AGENT_SDK_SOURCE_SYNTAX_INVALID: "The referenced Claude Agent SDK source file contains invalid TypeScript syntax.";
|
|
14
|
+
readonly CLAUDE_AGENT_SDK_SOURCE_TEXT_INVALID: "The referenced Claude Agent SDK source file is not valid normalized text.";
|
|
15
|
+
readonly CLAUDE_AGENT_SDK_TOOL_IMPLEMENTATION_NOT_WIRED: "The declared tool implementation is not wired to the detected Claude Agent SDK custom tool.";
|
|
16
|
+
readonly CLAUDE_AGENT_SDK_TOOL_IMPLEMENTATION_SYMBOL_NOT_FOUND: "The declared tool-implementation symbol was not found.";
|
|
17
|
+
readonly CLAUDE_AGENT_SDK_TOOL_INPUT_SCHEMA_NOT_WIRED: "The declared tool input schema is not wired to the detected Claude Agent SDK custom tool.";
|
|
18
|
+
readonly CLAUDE_AGENT_SDK_TOOL_INPUT_SCHEMA_SYMBOL_NOT_FOUND: "The declared tool input-schema symbol was not found.";
|
|
19
|
+
readonly CLAUDE_AGENT_SDK_TOOL_NAME_MISMATCH: "The declared tool name does not match the detected Claude Agent SDK MCP tool name.";
|
|
20
|
+
readonly CLAUDE_AGENT_SDK_MCP_SERVER_KEY_UNSUPPORTED: "The detected Claude Agent SDK MCP server key cannot establish a canonical runtime-name segment.";
|
|
21
|
+
readonly CLAUDE_AGENT_SDK_TOOL_REGISTRATION_NOT_WIRED: "The declared tool registration is not available to the detected Claude Agent SDK agent.";
|
|
22
|
+
readonly CLAUDE_AGENT_SDK_TOOL_REGISTRATION_SYMBOL_NOT_FOUND: "The declared tool-registration symbol was not found.";
|
|
23
|
+
readonly CLAUDE_AGENT_SDK_VERSION_UNSUPPORTED: "The observed Claude Agent SDK dependency range is disjoint from the supported range.";
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Creates one frozen, safely namespaced Claude Agent SDK adapter diagnostic.
|
|
27
|
+
* @param input The complete code, location, entity, and safe scalar details.
|
|
28
|
+
* @returns The immutable adapter diagnostic.
|
|
29
|
+
*/
|
|
30
|
+
export declare const createClaudeAgentSdkDiagnostic: (input: IClaudeAgentSdkDiagnosticInput) => IAdapterDiagnostic;
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/diagnostics/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,OAAO,KAAK,EAEV,8BAA8B,EAC/B,MAAM,uBAAuB,CAAC;AAG/B,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;EAyCmC,CAAC;AAErF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,GACzC,OAAO,8BAA8B,KACpC,kBAOC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC"}
|