@dexto/server 1.6.17 → 1.6.19
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/hono/__tests__/test-fixtures.cjs +3 -2
- package/dist/hono/__tests__/test-fixtures.d.ts +6 -2
- package/dist/hono/__tests__/test-fixtures.d.ts.map +1 -1
- package/dist/hono/__tests__/test-fixtures.js +3 -2
- package/dist/hono/index.d.ts +101 -14
- package/dist/hono/index.d.ts.map +1 -1
- package/dist/hono/routes/approvals.d.ts +10 -10
- package/dist/hono/routes/approvals.d.ts.map +1 -1
- package/dist/hono/routes/messages.d.ts +1 -1
- package/dist/hono/routes/search.d.ts +2 -2
- package/dist/hono/routes/sessions.cjs +198 -2
- package/dist/hono/routes/sessions.d.ts +88 -1
- package/dist/hono/routes/sessions.d.ts.map +1 -1
- package/dist/hono/routes/sessions.js +202 -3
- package/dist/hono/routes/system-prompt.d.ts +1 -1
- package/dist/hono/schemas/responses.d.ts +26 -26
- package/package.json +11 -11
|
@@ -80,14 +80,15 @@ function createTestAgentConfig() {
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
async function createTestAgent(config) {
|
|
83
|
+
async function createTestAgent(config, options) {
|
|
84
84
|
const agentConfig = config ?? createTestAgentConfig();
|
|
85
85
|
const validatedConfig = import_agent_config.AgentConfigSchema.parse(agentConfig);
|
|
86
86
|
const services = await (0, import_agent_config.resolveServicesFromConfig)(validatedConfig, import_image_local.default);
|
|
87
87
|
const agent = new import_core.DextoAgent(
|
|
88
88
|
(0, import_agent_config.toDextoAgentOptions)({
|
|
89
89
|
config: validatedConfig,
|
|
90
|
-
services
|
|
90
|
+
services,
|
|
91
|
+
...options?.runtimeOverrides ? { runtimeOverrides: options.runtimeOverrides } : {}
|
|
91
92
|
})
|
|
92
93
|
);
|
|
93
94
|
await agent.start();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type AgentConfig } from '@dexto/agent-config';
|
|
2
2
|
import { DextoAgent } from '@dexto/core';
|
|
3
|
-
import type { AgentCard } from '@dexto/core';
|
|
3
|
+
import type { AgentCard, DextoAgentConfigInput } from '@dexto/core';
|
|
4
4
|
import type { Server as HttpServer } from 'node:http';
|
|
5
5
|
import type { DextoApp } from '../types.js';
|
|
6
6
|
import { type NodeBridgeResult } from '../node/index.js';
|
|
@@ -10,11 +10,14 @@ import type { CreateDextoAppOptions } from '../index.js';
|
|
|
10
10
|
* Uses in-memory storage to avoid side effects
|
|
11
11
|
*/
|
|
12
12
|
export declare function createTestAgentConfig(): AgentConfig;
|
|
13
|
+
interface CreateTestAgentOptions {
|
|
14
|
+
runtimeOverrides?: Pick<DextoAgentConfigInput, 'usageScopeId'> | undefined;
|
|
15
|
+
}
|
|
13
16
|
/**
|
|
14
17
|
* Creates a real DextoAgent instance with in-memory storage
|
|
15
18
|
* No mocks - uses real implementations
|
|
16
19
|
*/
|
|
17
|
-
export declare function createTestAgent(config?: AgentConfig): Promise<DextoAgent>;
|
|
20
|
+
export declare function createTestAgent(config?: AgentConfig, options?: CreateTestAgentOptions): Promise<DextoAgent>;
|
|
18
21
|
/**
|
|
19
22
|
* Test server setup result
|
|
20
23
|
*/
|
|
@@ -63,4 +66,5 @@ export declare const validators: {
|
|
|
63
66
|
optionalArray: (value: unknown) => boolean;
|
|
64
67
|
optionalObject: (value: unknown) => boolean;
|
|
65
68
|
};
|
|
69
|
+
export {};
|
|
66
70
|
//# sourceMappingURL=test-fixtures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-fixtures.d.ts","sourceRoot":"","sources":["../../../src/hono/__tests__/test-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,WAAW,EACnB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAmB,MAAM,aAAa,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3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eAAe,CAAC,GACvD,OAAO,CAAC,UAAU,CAAC,CA+FrB;AAmCD;;GAEG;AACH,wBAAsB,WAAW,CAC7B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,OAAO,EACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACjC,OAAO,CAAC;IACP,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC,CAmCD;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACnC,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,GACpD,IAAI,CAgBN;AAED;;GAEG;AACH,eAAO,MAAM,UAAU;oBACH,OAAO,KAAG,OAAO;oBACjB,OAAO,KAAG,OAAO;qBAChB,OAAO,KAAG,OAAO;mBACnB,OAAO,KAAG,OAAO;oBAChB,OAAO,KAAG,OAAO;4BAET,OAAO,KAAG,OAAO;4BACjB,OAAO,KAAG,OAAO;2BAClB,OAAO,KAAG,OAAO;4BAChB,OAAO,KAAG,OAAO;CAG5C,CAAC"}
|
|
@@ -46,14 +46,15 @@ function createTestAgentConfig() {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
async function createTestAgent(config) {
|
|
49
|
+
async function createTestAgent(config, options) {
|
|
50
50
|
const agentConfig = config ?? createTestAgentConfig();
|
|
51
51
|
const validatedConfig = AgentConfigSchema.parse(agentConfig);
|
|
52
52
|
const services = await resolveServicesFromConfig(validatedConfig, imageLocal);
|
|
53
53
|
const agent = new DextoAgent(
|
|
54
54
|
toDextoAgentOptions({
|
|
55
55
|
config: validatedConfig,
|
|
56
|
-
services
|
|
56
|
+
services,
|
|
57
|
+
...options?.runtimeOverrides ? { runtimeOverrides: options.runtimeOverrides } : {}
|
|
57
58
|
})
|
|
58
59
|
);
|
|
59
60
|
await agent.start();
|
package/dist/hono/index.d.ts
CHANGED
|
@@ -86,9 +86,9 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
86
86
|
output: {
|
|
87
87
|
id: string;
|
|
88
88
|
enabled: boolean;
|
|
89
|
-
removed?: boolean | undefined;
|
|
90
89
|
priority?: number | undefined;
|
|
91
90
|
replaced?: boolean | undefined;
|
|
91
|
+
removed?: boolean | undefined;
|
|
92
92
|
contentLength?: number | undefined;
|
|
93
93
|
truncated?: boolean | undefined;
|
|
94
94
|
};
|
|
@@ -802,13 +802,13 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
802
802
|
};
|
|
803
803
|
} & {
|
|
804
804
|
json: {
|
|
805
|
-
status:
|
|
805
|
+
status: "approved" | "denied" | "cancelled";
|
|
806
806
|
message?: string | undefined;
|
|
807
807
|
formData?: Record<string, unknown> | undefined;
|
|
808
808
|
rememberChoice?: boolean | undefined;
|
|
809
809
|
rememberPattern?: string | undefined;
|
|
810
810
|
rememberDirectory?: boolean | undefined;
|
|
811
|
-
reason?:
|
|
811
|
+
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
812
812
|
};
|
|
813
813
|
};
|
|
814
814
|
output: {};
|
|
@@ -825,13 +825,13 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
825
825
|
};
|
|
826
826
|
} & {
|
|
827
827
|
json: {
|
|
828
|
-
status:
|
|
828
|
+
status: "approved" | "denied" | "cancelled";
|
|
829
829
|
message?: string | undefined;
|
|
830
830
|
formData?: Record<string, unknown> | undefined;
|
|
831
831
|
rememberChoice?: boolean | undefined;
|
|
832
832
|
rememberPattern?: string | undefined;
|
|
833
833
|
rememberDirectory?: boolean | undefined;
|
|
834
|
-
reason?:
|
|
834
|
+
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
835
835
|
};
|
|
836
836
|
};
|
|
837
837
|
output: {};
|
|
@@ -848,13 +848,13 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
848
848
|
};
|
|
849
849
|
} & {
|
|
850
850
|
json: {
|
|
851
|
-
status:
|
|
851
|
+
status: "approved" | "denied" | "cancelled";
|
|
852
852
|
message?: string | undefined;
|
|
853
853
|
formData?: Record<string, unknown> | undefined;
|
|
854
854
|
rememberChoice?: boolean | undefined;
|
|
855
855
|
rememberPattern?: string | undefined;
|
|
856
856
|
rememberDirectory?: boolean | undefined;
|
|
857
|
-
reason?:
|
|
857
|
+
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
858
858
|
};
|
|
859
859
|
};
|
|
860
860
|
output: {};
|
|
@@ -871,17 +871,17 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
871
871
|
};
|
|
872
872
|
} & {
|
|
873
873
|
json: {
|
|
874
|
-
status:
|
|
874
|
+
status: "approved" | "denied" | "cancelled";
|
|
875
875
|
message?: string | undefined;
|
|
876
876
|
formData?: Record<string, unknown> | undefined;
|
|
877
877
|
rememberChoice?: boolean | undefined;
|
|
878
878
|
rememberPattern?: string | undefined;
|
|
879
879
|
rememberDirectory?: boolean | undefined;
|
|
880
|
-
reason?:
|
|
880
|
+
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
881
881
|
};
|
|
882
882
|
};
|
|
883
883
|
output: {
|
|
884
|
-
status:
|
|
884
|
+
status: "approved" | "denied" | "cancelled";
|
|
885
885
|
ok: boolean;
|
|
886
886
|
approvalId: string;
|
|
887
887
|
};
|
|
@@ -2335,6 +2335,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2335
2335
|
} | undefined;
|
|
2336
2336
|
})[] | null;
|
|
2337
2337
|
role: "system" | "user" | "assistant" | "tool";
|
|
2338
|
+
usageScopeId?: string | undefined;
|
|
2338
2339
|
id?: string | undefined;
|
|
2339
2340
|
name?: string | undefined;
|
|
2340
2341
|
timestamp?: number | undefined;
|
|
@@ -2349,7 +2350,6 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2349
2350
|
} | undefined;
|
|
2350
2351
|
estimatedCost?: number | undefined;
|
|
2351
2352
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2352
|
-
usageScopeId?: string | undefined;
|
|
2353
2353
|
model?: string | undefined;
|
|
2354
2354
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2355
2355
|
toolCalls?: {
|
|
@@ -2422,6 +2422,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2422
2422
|
} | undefined;
|
|
2423
2423
|
})[] | null;
|
|
2424
2424
|
role: "system" | "user" | "assistant" | "tool";
|
|
2425
|
+
usageScopeId?: string | undefined;
|
|
2425
2426
|
id?: string | undefined;
|
|
2426
2427
|
name?: string | undefined;
|
|
2427
2428
|
timestamp?: number | undefined;
|
|
@@ -2436,7 +2437,6 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2436
2437
|
} | undefined;
|
|
2437
2438
|
estimatedCost?: number | undefined;
|
|
2438
2439
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2439
|
-
usageScopeId?: string | undefined;
|
|
2440
2440
|
model?: string | undefined;
|
|
2441
2441
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2442
2442
|
toolCalls?: {
|
|
@@ -2719,6 +2719,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2719
2719
|
} | undefined;
|
|
2720
2720
|
})[] | null;
|
|
2721
2721
|
role: "system" | "user" | "assistant" | "tool";
|
|
2722
|
+
usageScopeId?: string | undefined;
|
|
2722
2723
|
id?: string | undefined;
|
|
2723
2724
|
name?: string | undefined;
|
|
2724
2725
|
timestamp?: number | undefined;
|
|
@@ -2733,7 +2734,6 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2733
2734
|
} | undefined;
|
|
2734
2735
|
estimatedCost?: number | undefined;
|
|
2735
2736
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
2736
|
-
usageScopeId?: string | undefined;
|
|
2737
2737
|
model?: string | undefined;
|
|
2738
2738
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
2739
2739
|
toolCalls?: {
|
|
@@ -2753,6 +2753,93 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
2753
2753
|
status: 200;
|
|
2754
2754
|
};
|
|
2755
2755
|
};
|
|
2756
|
+
} & {
|
|
2757
|
+
"/sessions/:sessionId/system-prompt/contributors": {
|
|
2758
|
+
$get: {
|
|
2759
|
+
input: {
|
|
2760
|
+
param: {
|
|
2761
|
+
sessionId: string;
|
|
2762
|
+
};
|
|
2763
|
+
};
|
|
2764
|
+
output: never;
|
|
2765
|
+
outputFormat: "json";
|
|
2766
|
+
status: 404;
|
|
2767
|
+
} | {
|
|
2768
|
+
input: {
|
|
2769
|
+
param: {
|
|
2770
|
+
sessionId: string;
|
|
2771
|
+
};
|
|
2772
|
+
};
|
|
2773
|
+
output: {
|
|
2774
|
+
contributors: {
|
|
2775
|
+
id: string;
|
|
2776
|
+
priority: number;
|
|
2777
|
+
}[];
|
|
2778
|
+
};
|
|
2779
|
+
outputFormat: "json";
|
|
2780
|
+
status: 200;
|
|
2781
|
+
};
|
|
2782
|
+
};
|
|
2783
|
+
} & {
|
|
2784
|
+
"/sessions/:sessionId/system-prompt/contributors": {
|
|
2785
|
+
$post: {
|
|
2786
|
+
input: {
|
|
2787
|
+
param: {
|
|
2788
|
+
sessionId: string;
|
|
2789
|
+
};
|
|
2790
|
+
} & {
|
|
2791
|
+
json: {
|
|
2792
|
+
id: string;
|
|
2793
|
+
content?: string | undefined;
|
|
2794
|
+
enabled?: boolean | undefined;
|
|
2795
|
+
priority?: number | undefined;
|
|
2796
|
+
};
|
|
2797
|
+
};
|
|
2798
|
+
output: never;
|
|
2799
|
+
outputFormat: "json";
|
|
2800
|
+
status: 400;
|
|
2801
|
+
} | {
|
|
2802
|
+
input: {
|
|
2803
|
+
param: {
|
|
2804
|
+
sessionId: string;
|
|
2805
|
+
};
|
|
2806
|
+
} & {
|
|
2807
|
+
json: {
|
|
2808
|
+
id: string;
|
|
2809
|
+
content?: string | undefined;
|
|
2810
|
+
enabled?: boolean | undefined;
|
|
2811
|
+
priority?: number | undefined;
|
|
2812
|
+
};
|
|
2813
|
+
};
|
|
2814
|
+
output: never;
|
|
2815
|
+
outputFormat: "json";
|
|
2816
|
+
status: 404;
|
|
2817
|
+
} | {
|
|
2818
|
+
input: {
|
|
2819
|
+
param: {
|
|
2820
|
+
sessionId: string;
|
|
2821
|
+
};
|
|
2822
|
+
} & {
|
|
2823
|
+
json: {
|
|
2824
|
+
id: string;
|
|
2825
|
+
content?: string | undefined;
|
|
2826
|
+
enabled?: boolean | undefined;
|
|
2827
|
+
priority?: number | undefined;
|
|
2828
|
+
};
|
|
2829
|
+
};
|
|
2830
|
+
output: {
|
|
2831
|
+
id: string;
|
|
2832
|
+
enabled: boolean;
|
|
2833
|
+
priority?: number | undefined;
|
|
2834
|
+
replaced?: boolean | undefined;
|
|
2835
|
+
removed?: boolean | undefined;
|
|
2836
|
+
contentLength?: number | undefined;
|
|
2837
|
+
truncated?: boolean | undefined;
|
|
2838
|
+
};
|
|
2839
|
+
outputFormat: "json";
|
|
2840
|
+
status: 200;
|
|
2841
|
+
};
|
|
2842
|
+
};
|
|
2756
2843
|
} & {
|
|
2757
2844
|
"/sessions/:sessionId": {
|
|
2758
2845
|
$delete: {
|
|
@@ -3809,6 +3896,7 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
3809
3896
|
output: {
|
|
3810
3897
|
sessionId: string;
|
|
3811
3898
|
response: string;
|
|
3899
|
+
usageScopeId?: string | undefined;
|
|
3812
3900
|
reasoning?: string | undefined;
|
|
3813
3901
|
tokenUsage?: {
|
|
3814
3902
|
inputTokens?: number | undefined;
|
|
@@ -3820,7 +3908,6 @@ export declare function createDextoApp(options: CreateDextoAppOptions): OpenAPIH
|
|
|
3820
3908
|
} | undefined;
|
|
3821
3909
|
estimatedCost?: number | undefined;
|
|
3822
3910
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
3823
|
-
usageScopeId?: string | undefined;
|
|
3824
3911
|
model?: string | undefined;
|
|
3825
3912
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
3826
3913
|
messageId?: string | undefined;
|
package/dist/hono/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hono/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA6QhC;AAID,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAGxD,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OpenAPIHono } from '@hono/zod-openapi';
|
|
2
|
-
import { type DextoAgent
|
|
2
|
+
import { type DextoAgent } from '@dexto/core';
|
|
3
3
|
import type { ApprovalCoordinator } from '../../approval/approval-coordinator.js';
|
|
4
4
|
import type { Context } from 'hono';
|
|
5
5
|
type GetAgentFn = (ctx: Context) => DextoAgent | Promise<DextoAgent>;
|
|
@@ -41,13 +41,13 @@ export declare function createApprovalsRouter(getAgent: GetAgentFn, approvalCoor
|
|
|
41
41
|
};
|
|
42
42
|
} & {
|
|
43
43
|
json: {
|
|
44
|
-
status:
|
|
44
|
+
status: "approved" | "denied" | "cancelled";
|
|
45
45
|
message?: string | undefined;
|
|
46
46
|
formData?: Record<string, unknown> | undefined;
|
|
47
47
|
rememberChoice?: boolean | undefined;
|
|
48
48
|
rememberPattern?: string | undefined;
|
|
49
49
|
rememberDirectory?: boolean | undefined;
|
|
50
|
-
reason?:
|
|
50
|
+
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
output: {};
|
|
@@ -64,13 +64,13 @@ export declare function createApprovalsRouter(getAgent: GetAgentFn, approvalCoor
|
|
|
64
64
|
};
|
|
65
65
|
} & {
|
|
66
66
|
json: {
|
|
67
|
-
status:
|
|
67
|
+
status: "approved" | "denied" | "cancelled";
|
|
68
68
|
message?: string | undefined;
|
|
69
69
|
formData?: Record<string, unknown> | undefined;
|
|
70
70
|
rememberChoice?: boolean | undefined;
|
|
71
71
|
rememberPattern?: string | undefined;
|
|
72
72
|
rememberDirectory?: boolean | undefined;
|
|
73
|
-
reason?:
|
|
73
|
+
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
output: {};
|
|
@@ -87,13 +87,13 @@ export declare function createApprovalsRouter(getAgent: GetAgentFn, approvalCoor
|
|
|
87
87
|
};
|
|
88
88
|
} & {
|
|
89
89
|
json: {
|
|
90
|
-
status:
|
|
90
|
+
status: "approved" | "denied" | "cancelled";
|
|
91
91
|
message?: string | undefined;
|
|
92
92
|
formData?: Record<string, unknown> | undefined;
|
|
93
93
|
rememberChoice?: boolean | undefined;
|
|
94
94
|
rememberPattern?: string | undefined;
|
|
95
95
|
rememberDirectory?: boolean | undefined;
|
|
96
|
-
reason?:
|
|
96
|
+
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
output: {};
|
|
@@ -110,17 +110,17 @@ export declare function createApprovalsRouter(getAgent: GetAgentFn, approvalCoor
|
|
|
110
110
|
};
|
|
111
111
|
} & {
|
|
112
112
|
json: {
|
|
113
|
-
status:
|
|
113
|
+
status: "approved" | "denied" | "cancelled";
|
|
114
114
|
message?: string | undefined;
|
|
115
115
|
formData?: Record<string, unknown> | undefined;
|
|
116
116
|
rememberChoice?: boolean | undefined;
|
|
117
117
|
rememberPattern?: string | undefined;
|
|
118
118
|
rememberDirectory?: boolean | undefined;
|
|
119
|
-
reason?:
|
|
119
|
+
reason?: "timeout" | "user_denied" | "system_denied" | "user_cancelled" | "system_cancelled" | "validation_failed" | "elicitation_disabled" | undefined;
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
122
|
output: {
|
|
123
|
-
status:
|
|
123
|
+
status: "approved" | "denied" | "cancelled";
|
|
124
124
|
ok: boolean;
|
|
125
125
|
approvalId: string;
|
|
126
126
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/approvals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../../../src/hono/routes/approvals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAkB,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,KAAK,UAAU,EAA+C,MAAM,aAAa,CAAC;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,KAAK,UAAU,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAqIrE,wBAAgB,qBAAqB,CACjC,QAAQ,EAAE,UAAU,EACpB,mBAAmB,CAAC,EAAE,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAmL5C"}
|
|
@@ -98,6 +98,7 @@ export declare function createMessagesRouter(getAgent: GetAgentFn, approvalCoord
|
|
|
98
98
|
output: {
|
|
99
99
|
sessionId: string;
|
|
100
100
|
response: string;
|
|
101
|
+
usageScopeId?: string | undefined;
|
|
101
102
|
reasoning?: string | undefined;
|
|
102
103
|
tokenUsage?: {
|
|
103
104
|
inputTokens?: number | undefined;
|
|
@@ -109,7 +110,6 @@ export declare function createMessagesRouter(getAgent: GetAgentFn, approvalCoord
|
|
|
109
110
|
} | undefined;
|
|
110
111
|
estimatedCost?: number | undefined;
|
|
111
112
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
112
|
-
usageScopeId?: string | undefined;
|
|
113
113
|
model?: string | undefined;
|
|
114
114
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
115
115
|
messageId?: string | undefined;
|
|
@@ -45,6 +45,7 @@ export declare function createSearchRouter(getAgent: GetAgentFn): OpenAPIHono<im
|
|
|
45
45
|
} | undefined;
|
|
46
46
|
})[] | null;
|
|
47
47
|
role: "system" | "user" | "assistant" | "tool";
|
|
48
|
+
usageScopeId?: string | undefined;
|
|
48
49
|
id?: string | undefined;
|
|
49
50
|
name?: string | undefined;
|
|
50
51
|
timestamp?: number | undefined;
|
|
@@ -59,7 +60,6 @@ export declare function createSearchRouter(getAgent: GetAgentFn): OpenAPIHono<im
|
|
|
59
60
|
} | undefined;
|
|
60
61
|
estimatedCost?: number | undefined;
|
|
61
62
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
62
|
-
usageScopeId?: string | undefined;
|
|
63
63
|
model?: string | undefined;
|
|
64
64
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
65
65
|
toolCalls?: {
|
|
@@ -132,6 +132,7 @@ export declare function createSearchRouter(getAgent: GetAgentFn): OpenAPIHono<im
|
|
|
132
132
|
} | undefined;
|
|
133
133
|
})[] | null;
|
|
134
134
|
role: "system" | "user" | "assistant" | "tool";
|
|
135
|
+
usageScopeId?: string | undefined;
|
|
135
136
|
id?: string | undefined;
|
|
136
137
|
name?: string | undefined;
|
|
137
138
|
timestamp?: number | undefined;
|
|
@@ -146,7 +147,6 @@ export declare function createSearchRouter(getAgent: GetAgentFn): OpenAPIHono<im
|
|
|
146
147
|
} | undefined;
|
|
147
148
|
estimatedCost?: number | undefined;
|
|
148
149
|
pricingStatus?: "estimated" | "unpriced" | undefined;
|
|
149
|
-
usageScopeId?: string | undefined;
|
|
150
150
|
model?: string | undefined;
|
|
151
151
|
provider?: "openai" | "openai-compatible" | "anthropic" | "google" | "groq" | "xai" | "cohere" | "minimax" | "glm" | "openrouter" | "litellm" | "glama" | "vertex" | "bedrock" | "local" | "ollama" | "dexto-nova" | undefined;
|
|
152
152
|
toolCalls?: {
|