@fatagnus/dink-sdk 2.1.0 → 2.4.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/dist/center/client.d.ts +42 -0
- package/dist/center/client.d.ts.map +1 -1
- package/dist/center/client.js +179 -0
- package/dist/center/client.js.map +1 -1
- package/dist/edge/client.d.ts +7 -0
- package/dist/edge/client.d.ts.map +1 -1
- package/dist/edge/client.js +26 -1
- package/dist/edge/client.js.map +1 -1
- package/dist/edge/index.d.ts +1 -0
- package/dist/edge/index.d.ts.map +1 -1
- package/dist/edge/index.js +1 -0
- package/dist/edge/index.js.map +1 -1
- package/dist/edge/service-builder.d.ts +94 -0
- package/dist/edge/service-builder.d.ts.map +1 -0
- package/dist/edge/service-builder.js +166 -0
- package/dist/edge/service-builder.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/introspect-utils.d.ts +55 -0
- package/dist/introspect-utils.d.ts.map +1 -0
- package/dist/introspect-utils.js +372 -0
- package/dist/introspect-utils.js.map +1 -0
- package/dist/introspect.d.ts +72 -0
- package/dist/introspect.d.ts.map +1 -0
- package/dist/introspect.js +7 -0
- package/dist/introspect.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service introspection types for AI agent support.
|
|
3
|
+
* These types match the Go struct definitions in pkg/types/introspect.go
|
|
4
|
+
* Property names use snake_case to match Go JSON tags for wire compatibility.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* MethodAIContext provides AI-specific guidance for understanding and using a method.
|
|
8
|
+
*/
|
|
9
|
+
export interface MethodAIContext {
|
|
10
|
+
/** When this method should be called */
|
|
11
|
+
when_to_use?: string;
|
|
12
|
+
/** Why to use this method over alternatives */
|
|
13
|
+
why_to_use?: string;
|
|
14
|
+
/** Instructions on how to use this method correctly */
|
|
15
|
+
how_to_use?: string;
|
|
16
|
+
/** Conditions that must be true before calling this method */
|
|
17
|
+
preconditions?: string[];
|
|
18
|
+
/** Side effects that occur when calling this method */
|
|
19
|
+
side_effects?: string[];
|
|
20
|
+
/** Names of related methods that may be useful */
|
|
21
|
+
related_methods?: string[];
|
|
22
|
+
/** Scenarios describing when to use this method */
|
|
23
|
+
scenarios?: string[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* ServiceAIContext provides AI-specific guidance for understanding a service.
|
|
27
|
+
*/
|
|
28
|
+
export interface ServiceAIContext {
|
|
29
|
+
/** High-level description of what this service does */
|
|
30
|
+
overview?: string;
|
|
31
|
+
/** List of capabilities this service provides */
|
|
32
|
+
capabilities?: string[];
|
|
33
|
+
/** Known limitations of this service */
|
|
34
|
+
limitations?: string[];
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* MethodDescriptor provides complete metadata about a service method for introspection
|
|
38
|
+
* and AI agent consumption.
|
|
39
|
+
*/
|
|
40
|
+
export interface MethodDescriptor {
|
|
41
|
+
/** Method name */
|
|
42
|
+
name: string;
|
|
43
|
+
/** Human-readable description of what this method does */
|
|
44
|
+
description?: string;
|
|
45
|
+
/** JSON Schema describing the input parameters */
|
|
46
|
+
input_schema?: Record<string, unknown>;
|
|
47
|
+
/** JSON Schema describing the output */
|
|
48
|
+
output_schema?: Record<string, unknown>;
|
|
49
|
+
/** Tags for categorization and filtering */
|
|
50
|
+
tags?: string[];
|
|
51
|
+
/** AI-specific context for this method */
|
|
52
|
+
ai_context?: MethodAIContext;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* ServiceDescriptor provides complete metadata about a service for introspection
|
|
56
|
+
* and AI agent consumption.
|
|
57
|
+
*/
|
|
58
|
+
export interface ServiceDescriptor {
|
|
59
|
+
/** Service name */
|
|
60
|
+
name: string;
|
|
61
|
+
/** Service version (semver recommended) */
|
|
62
|
+
version: string;
|
|
63
|
+
/** Human-readable description of this service */
|
|
64
|
+
description?: string;
|
|
65
|
+
/** Methods provided by this service */
|
|
66
|
+
methods?: MethodDescriptor[];
|
|
67
|
+
/** AI-specific context for this service */
|
|
68
|
+
ai_context?: ServiceAIContext;
|
|
69
|
+
/** Names of related services */
|
|
70
|
+
related_services?: string[];
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=introspect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"introspect.d.ts","sourceRoot":"","sources":["../src/introspect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,uDAAuD;IACvD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,kDAAkD;IAClD,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,wCAAwC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B,2CAA2C;IAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,gCAAgC;IAChC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service introspection types for AI agent support.
|
|
3
|
+
* These types match the Go struct definitions in pkg/types/introspect.go
|
|
4
|
+
* Property names use snake_case to match Go JSON tags for wire compatibility.
|
|
5
|
+
*/
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=introspect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"introspect.js","sourceRoot":"","sources":["../src/introspect.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|