@moldea.ai/adapter-google-genai 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.
Files changed (39) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +62 -0
  3. package/cover.png +0 -0
  4. package/dist/adapter/index.d.ts +3 -0
  5. package/dist/adapter/index.d.ts.map +1 -0
  6. package/dist/constants/index.d.ts +9 -0
  7. package/dist/constants/index.d.ts.map +1 -0
  8. package/dist/contracts/index.d.ts +108 -0
  9. package/dist/contracts/index.d.ts.map +1 -0
  10. package/dist/diagnostics/index.d.ts +25 -0
  11. package/dist/diagnostics/index.d.ts.map +1 -0
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +1922 -0
  15. package/dist/inspection/common.d.ts +34 -0
  16. package/dist/inspection/common.d.ts.map +1 -0
  17. package/dist/inspection/index.d.ts +2 -0
  18. package/dist/inspection/index.d.ts.map +1 -0
  19. package/dist/inspection/inspection.d.ts +18 -0
  20. package/dist/inspection/inspection.d.ts.map +1 -0
  21. package/dist/inspection/package-inspection.d.ts +14 -0
  22. package/dist/inspection/package-inspection.d.ts.map +1 -0
  23. package/dist/inspection/relationships.d.ts +14 -0
  24. package/dist/inspection/relationships.d.ts.map +1 -0
  25. package/dist/inspection/session.d.ts +9 -0
  26. package/dist/inspection/session.d.ts.map +1 -0
  27. package/dist/package-discovery/index.d.ts +27 -0
  28. package/dist/package-discovery/index.d.ts.map +1 -0
  29. package/dist/source-analysis/function-declarations.d.ts +40 -0
  30. package/dist/source-analysis/function-declarations.d.ts.map +1 -0
  31. package/dist/source-analysis/generate-content.d.ts +12 -0
  32. package/dist/source-analysis/generate-content.d.ts.map +1 -0
  33. package/dist/source-analysis/index.d.ts +7 -0
  34. package/dist/source-analysis/index.d.ts.map +1 -0
  35. package/dist/source-analysis/source-analysis.d.ts +25 -0
  36. package/dist/source-analysis/source-analysis.d.ts.map +1 -0
  37. package/dist/source-analysis/tool-collections.d.ts +26 -0
  38. package/dist/source-analysis/tool-collections.d.ts.map +1 -0
  39. package/package.json +60 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 moldea.ai
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,62 @@
1
+ ![moldea Google Gen AI adapter](cover.png)
2
+
3
+ # `@moldea.ai/adapter-google-genai`
4
+
5
+ Deterministic runtime evidence and diagnostics for direct Google Gen AI SDK integrations declared by `moldea` agents.
6
+
7
+ The package implements the official `google-genai` runtime adapter for `@moldea.ai/core`. It statically inspects explicitly bound repository source through Core's source-neutral reader. It never depends on, imports, initializes, or calls the Google Gen AI SDK; requires no API key or Google Cloud credentials; 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 `@google/genai >=2.17.1 <3.0.0`
17
+ - a named runtime value import of `GoogleGenAI` and a module-local `const` client
18
+ - a bound exported runtime-agent function containing direct `client.models.generateContent({ ... })` calls
19
+ - direct instruction-loader wiring through `config.systemInstruction`
20
+ - closed inline or immutable module-local tool, tool-container, function-declaration, and registration values through `config.tools[].functionDeclarations`
21
+ - direct input-schema wiring through `parametersJsonSchema`
22
+ - the SDK declaration's 128-scalar function-name rules and 512-declaration collection limit
23
+
24
+ Module bindings must remain lexically visible at every matched use. Dynamic requests, configuration, collections, computed properties, spreads, aliases, mutation, escapes, callable tools, and MCP conversion helpers remain unresolved rather than producing guessed negative diagnostics.
25
+
26
+ Function declarations require a static `name`, may include a static `description` and supported `parametersJsonSchema`, and tolerate `behavior`, `response`, and `responseJsonSchema` without interpreting them. The alternative `parameters` surface and unknown properties are unsupported. Static inline JSON-schema values may contain recursive strings, no-substitution templates, signed numbers, booleans, `null`, arrays without holes or spreads, and closed objects. The adapter proves binding relationships, not provider validity or business meaning.
27
+
28
+ The Runtime Compatibility Matrix is authoritative for current target maturity, exact versions, evidence, limits, patterns, and known limitations.
29
+
30
+ ## Usage
31
+
32
+ ```typescript
33
+ import { googleGenAiAdapter } from '@moldea.ai/adapter-google-genai';
34
+ import { createCore } from '@moldea.ai/core';
35
+
36
+ const core = createCore({ adapters: [googleGenAiAdapter] });
37
+ ```
38
+
39
+ The local CLI bundles active official adapters automatically. Applications composing Core directly register the immutable singleton explicitly.
40
+
41
+ ## Public exports
42
+
43
+ The package exports only `googleGenAiAdapter`. It has no default export, mutable configuration, factory, parser, diagnostic registry, SDK facade, or cross-inspection state.
44
+
45
+ ## Evidence and diagnostics
46
+
47
+ The verified target may emit `runtime-package`, `language`, `runtime-pattern`, `instruction-loader`, `tool-registration`, and `schema` evidence. Evidence is source-grounded and never contains repository source, instructions, schemas, credentials, client configuration, provider payloads, or model output.
48
+
49
+ See [Evidence and diagnostics](docs/evidence-and-diagnostics.md) for the complete stable catalog and cascade behavior.
50
+
51
+ ## Development
52
+
53
+ From the monorepo root:
54
+
55
+ ```bash
56
+ pnpm --filter @moldea.ai/adapter-google-genai test
57
+ pnpm --filter @moldea.ai/adapter-google-genai typecheck
58
+ pnpm --filter @moldea.ai/adapter-google-genai lint
59
+ pnpm --filter @moldea.ai/adapter-google-genai build
60
+ ```
61
+
62
+ Tests are colocated with their owning modules. Canonical conformance fixtures live under `/fixtures/adapter-google-genai`.
package/cover.png ADDED
Binary file
@@ -0,0 +1,3 @@
1
+ import type { IRuntimeAdapter } from '@moldea.ai/core/adapter';
2
+ export declare const googleGenAiAdapter: IRuntimeAdapter;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,kBAAkB,EAAE,eAI/B,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const GOOGLE_GENAI_ADAPTER_ID = "google-genai";
2
+ export declare const GOOGLE_GENAI_GENERATE_CONTENT_RUNTIME_NAME = "models.generateContent";
3
+ export declare const GOOGLE_GENAI_SDK_PACKAGE_NAME = "@google/genai";
4
+ export declare const GOOGLE_GENAI_SDK_SUPPORTED_RANGE = ">=2.17.1 <3.0.0";
5
+ export declare const GOOGLE_GENAI_SUPPORTED_REPOSITORY_FORMAT_VERSIONS: readonly 1[];
6
+ export declare const GOOGLE_GENAI_FUNCTION_DECLARATION_LIMIT = 512;
7
+ export declare const GOOGLE_GENAI_FUNCTION_NAME_LIMIT = 128;
8
+ export declare const GOOGLE_GENAI_FUNCTION_NAME_PATTERN: RegExp;
9
+ //# 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,uBAAuB,iBAAiB,CAAC;AACtD,eAAO,MAAM,0CAA0C,2BAA2B,CAAC;AACnF,eAAO,MAAM,6BAA6B,kBAAkB,CAAC;AAC7D,eAAO,MAAM,gCAAgC,oBAAoB,CAAC;AAClE,eAAO,MAAM,iDAAiD,cAEd,CAAC;AAGjD,eAAO,MAAM,uCAAuC,MAAM,CAAC;AAC3D,eAAO,MAAM,gCAAgC,MAAM,CAAC;AACpD,eAAO,MAAM,kCAAkC,QAAgC,CAAC"}
@@ -0,0 +1,108 @@
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 IGoogleGenAiAdapterDiagnosticCode = 'GOOGLE_GENAI_PACKAGE_MANIFEST_INVALID' | 'GOOGLE_GENAI_SDK_VERSION_UNSUPPORTED' | 'GOOGLE_GENAI_SOURCE_TEXT_INVALID' | 'GOOGLE_GENAI_SOURCE_SYNTAX_INVALID' | 'GOOGLE_GENAI_RUNTIME_AGENT_SYMBOL_NOT_FOUND' | 'GOOGLE_GENAI_INSTRUCTION_LOADER_SYMBOL_NOT_FOUND' | 'GOOGLE_GENAI_TOOL_REGISTRATION_SYMBOL_NOT_FOUND' | 'GOOGLE_GENAI_TOOL_INPUT_SCHEMA_SYMBOL_NOT_FOUND' | 'GOOGLE_GENAI_INSTRUCTION_LOADER_NOT_WIRED' | 'GOOGLE_GENAI_TOOL_REGISTRATION_NOT_WIRED' | 'GOOGLE_GENAI_TOOL_NAME_MISMATCH' | 'GOOGLE_GENAI_TOOL_NAME_INVALID' | 'GOOGLE_GENAI_TOOL_INPUT_SCHEMA_NOT_WIRED' | 'GOOGLE_GENAI_FUNCTION_DECLARATION_LIMIT_EXCEEDED';
6
+ export interface IGoogleGenAiSourceLocator {
7
+ locateRange(startOffset: number, endOffset: number): ISourceRange;
8
+ }
9
+ export type IGoogleGenAiTextResult = {
10
+ readonly valid: false;
11
+ } | {
12
+ readonly locator: IGoogleGenAiSourceLocator;
13
+ readonly valid: true;
14
+ readonly value: string;
15
+ };
16
+ export type IGoogleGenAiPackageCompatibility = 'ambiguous' | 'supported' | 'unsupported';
17
+ export type IGoogleGenAiPackageDependencyKind = 'dependencies' | 'optionalDependencies' | 'peerDependencies' | 'devDependencies';
18
+ export interface IGoogleGenAiPackageDeclaration {
19
+ readonly declaredRange: string;
20
+ readonly dependencyKind: IGoogleGenAiPackageDependencyKind;
21
+ }
22
+ export interface IGoogleGenAiPackageObservation {
23
+ readonly compatibility: IGoogleGenAiPackageCompatibility;
24
+ readonly declarations: readonly IGoogleGenAiPackageDeclaration[];
25
+ readonly path: IRepositoryPath;
26
+ }
27
+ export type IGoogleGenAiPackageDiscoveryResult = {
28
+ readonly kind: 'absent';
29
+ } | {
30
+ readonly kind: 'invalid';
31
+ readonly path: IRepositoryPath;
32
+ } | {
33
+ readonly kind: 'observed';
34
+ readonly observation: IGoogleGenAiPackageObservation;
35
+ };
36
+ export interface IGoogleGenAiNamedImport {
37
+ readonly importedName: string;
38
+ readonly moduleSpecifier: string;
39
+ }
40
+ export type IGoogleGenAiExportState = {
41
+ readonly kind: 'absent';
42
+ } | {
43
+ readonly declaration: ts.Node;
44
+ readonly kind: 'present-supported';
45
+ } | {
46
+ readonly declaration: ts.Node;
47
+ readonly kind: 'present-unsupported';
48
+ };
49
+ export interface IGoogleGenAiModuleArray {
50
+ readonly declaration: ts.VariableDeclaration;
51
+ readonly expression: ts.ArrayLiteralExpression;
52
+ }
53
+ export interface IGoogleGenAiSourceAnalysis {
54
+ readonly clientNames: ReadonlySet<string>;
55
+ readonly constructorNames: ReadonlySet<string>;
56
+ readonly exports: ReadonlyMap<string, IGoogleGenAiExportState & {
57
+ readonly declaration: ts.Node;
58
+ }>;
59
+ readonly googleGenAiConstructorNames: ReadonlySet<string>;
60
+ readonly identifierUses: ReadonlyMap<string, readonly ts.Identifier[]>;
61
+ readonly localBindingNames: ReadonlyMap<ts.Node, ReadonlySet<string>>;
62
+ readonly moduleArrays: ReadonlyMap<string, IGoogleGenAiModuleArray>;
63
+ readonly moduleConstDeclarations: ReadonlyMap<string, ts.VariableDeclaration>;
64
+ readonly namedImports: ReadonlyMap<string, IGoogleGenAiNamedImport>;
65
+ readonly path: IRepositoryPath;
66
+ readonly safeModuleArrayNames: ReadonlySet<string>;
67
+ readonly sourceFile: ts.SourceFile;
68
+ readonly text: IGoogleGenAiTextResult & {
69
+ readonly valid: true;
70
+ };
71
+ }
72
+ export type IGoogleGenAiSourceAnalysisResult = {
73
+ readonly kind: 'invalid-syntax';
74
+ readonly range: ISourceRange | null;
75
+ } | {
76
+ readonly kind: 'invalid-text';
77
+ } | {
78
+ readonly analysis: IGoogleGenAiSourceAnalysis;
79
+ readonly kind: 'valid';
80
+ };
81
+ export type IGoogleGenAiRequestRelationship = {
82
+ readonly kind: 'absent';
83
+ } | {
84
+ readonly expression: ts.Expression;
85
+ readonly kind: 'present';
86
+ } | {
87
+ readonly kind: 'unresolved';
88
+ };
89
+ export interface IGoogleGenAiGenerateContentRequest {
90
+ readonly config: IGoogleGenAiRequestRelationship;
91
+ readonly object: ts.ObjectLiteralExpression;
92
+ readonly systemInstruction: IGoogleGenAiRequestRelationship;
93
+ readonly tools: IGoogleGenAiRequestRelationship;
94
+ }
95
+ export interface IGoogleGenAiGenerateContentAnalysis {
96
+ readonly hasAmbiguousCandidate: boolean;
97
+ readonly requests: readonly IGoogleGenAiGenerateContentRequest[];
98
+ }
99
+ export interface IGoogleGenAiInspectionSession {
100
+ readonly signal?: AbortSignal;
101
+ analyzeSource(path: IRepositoryPath): Promise<IGoogleGenAiSourceAnalysisResult>;
102
+ discoverPackage(path: IRepositoryPath): Promise<IGoogleGenAiPackageDiscoveryResult>;
103
+ getEntry(path: IRepositoryPath): Promise<IRepositoryEntry | null>;
104
+ }
105
+ export type IGoogleGenAiDiagnosticInput = Omit<IAdapterDiagnostic, 'message' | 'source'> & {
106
+ readonly code: IGoogleGenAiAdapterDiagnosticCode;
107
+ };
108
+ //# 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,iCAAiC,GACzC,uCAAuC,GACvC,sCAAsC,GACtC,kCAAkC,GAClC,oCAAoC,GACpC,6CAA6C,GAC7C,kDAAkD,GAClD,iDAAiD,GACjD,iDAAiD,GACjD,2CAA2C,GAC3C,0CAA0C,GAC1C,iCAAiC,GACjC,gCAAgC,GAChC,0CAA0C,GAC1C,kDAAkD,CAAC;AAGvD,MAAM,WAAW,yBAAyB;IACxC,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,YAAY,CAAC;CACnE;AAED,MAAM,MAAM,sBAAsB,GAC9B;IAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;CAAE,GACzB;IACE,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAC;IAC5C,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAGN,MAAM,MAAM,gCAAgC,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,CAAC;AAEzF,MAAM,MAAM,iCAAiC,GAC3C,cAAc,GAAG,sBAAsB,GAAG,kBAAkB,GAAG,iBAAiB,CAAC;AAEnF,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,Q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export declare const GOOGLE_GENAI_ADAPTER_DIAGNOSTICS: Readonly<{
4
+ readonly GOOGLE_GENAI_FUNCTION_DECLARATION_LIMIT_EXCEEDED: "The detected Google Gen AI function-declaration collection exceeds the supported SDK declaration limit.";
5
+ readonly GOOGLE_GENAI_INSTRUCTION_LOADER_NOT_WIRED: "The declared instruction loader is not wired to the detected Google Gen AI generate-content configuration.";
6
+ readonly GOOGLE_GENAI_INSTRUCTION_LOADER_SYMBOL_NOT_FOUND: "The declared instruction-loader symbol was not found.";
7
+ readonly GOOGLE_GENAI_PACKAGE_MANIFEST_INVALID: "The owning package manifest is invalid for Google Gen AI dependency detection.";
8
+ readonly GOOGLE_GENAI_RUNTIME_AGENT_SYMBOL_NOT_FOUND: "The declared runtime-agent symbol was not found.";
9
+ readonly GOOGLE_GENAI_SDK_VERSION_UNSUPPORTED: "The observed Google Gen AI SDK dependency range is disjoint from the supported range.";
10
+ readonly GOOGLE_GENAI_SOURCE_SYNTAX_INVALID: "The referenced Google Gen AI source file contains invalid TypeScript syntax.";
11
+ readonly GOOGLE_GENAI_SOURCE_TEXT_INVALID: "The referenced Google Gen AI source file is not valid normalized text.";
12
+ readonly GOOGLE_GENAI_TOOL_INPUT_SCHEMA_NOT_WIRED: "The declared tool input schema is not wired to the detected function declaration's parameters JSON schema.";
13
+ readonly GOOGLE_GENAI_TOOL_INPUT_SCHEMA_SYMBOL_NOT_FOUND: "The declared tool input-schema symbol was not found.";
14
+ readonly GOOGLE_GENAI_TOOL_NAME_INVALID: "The detected Google Gen AI function name violates the supported SDK declaration limit.";
15
+ readonly GOOGLE_GENAI_TOOL_NAME_MISMATCH: "The declared tool name does not match the detected Google Gen AI function name.";
16
+ readonly GOOGLE_GENAI_TOOL_REGISTRATION_NOT_WIRED: "The declared tool registration is not wired to the detected Google Gen AI function-declaration collection.";
17
+ readonly GOOGLE_GENAI_TOOL_REGISTRATION_SYMBOL_NOT_FOUND: "The declared tool-registration symbol was not found.";
18
+ }>;
19
+ /**
20
+ * Creates one frozen, safely namespaced Google Gen AI adapter diagnostic.
21
+ * @param input The complete code, location, entity, and safe scalar details.
22
+ * @returns The immutable adapter diagnostic.
23
+ */
24
+ export declare const createGoogleGenAiDiagnostic: (input: IGoogleGenAiDiagnosticInput) => IAdapterDiagnostic;
25
+ //# 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,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAG/B,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;EA4BoC,CAAC;AAElF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GACtC,OAAO,2BAA2B,KACjC,kBAOC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { googleGenAiAdapter } from './adapter/index.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}