@shipfox/api-agent 12.0.0 → 12.2.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +10 -0
- package/dist/config.d.ts +2 -2
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/db/db.d.ts +10 -10
- package/dist/db/schema/agent-workspace-settings.d.ts +1 -1
- package/dist/db/schema/model-provider-configs.d.ts +4 -4
- package/dist/metrics/instance.d.ts +4 -4
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/tsconfig.build.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$ shipfox-swc
|
|
2
|
-
Successfully compiled: 52 files with swc (
|
|
2
|
+
Successfully compiled: 52 files with swc (599.65ms)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @shipfox/api-agent
|
|
2
2
|
|
|
3
|
+
## 12.2.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @shipfox/node-opentelemetry@0.6.4
|
|
8
|
+
- @shipfox/api-agent-dto@12.2.0
|
|
9
|
+
- @shipfox/node-fastify@0.4.2
|
|
10
|
+
- @shipfox/node-module@1.0.6
|
|
11
|
+
- @shipfox/api-auth-context@12.2.0
|
|
12
|
+
|
|
3
13
|
## 12.0.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/dist/config.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const config: Readonly<{
|
|
2
|
-
AGENT_DEFAULT_PROVIDER: "
|
|
2
|
+
AGENT_DEFAULT_PROVIDER: "ant-ling" | "anthropic" | "azure-openai-responses" | "cerebras" | "cloudflare-ai-gateway" | "cloudflare-workers-ai" | "deepseek" | "fireworks" | "google" | "groq" | "huggingface" | "kimi-coding" | "minimax" | "minimax-cn" | "mistral" | "moonshotai" | "moonshotai-cn" | "nvidia" | "openai" | "opencode" | "opencode-go" | "openrouter" | "qwen-token-plan" | "qwen-token-plan-cn" | "together" | "vercel-ai-gateway" | "xai" | "xiaomi" | "xiaomi-token-plan-ams" | "xiaomi-token-plan-cn" | "xiaomi-token-plan-sgp" | "zai" | "zai-coding-cn" | undefined;
|
|
3
3
|
AGENT_DEFAULT_PROVIDER_MODEL: string | undefined;
|
|
4
|
-
AGENT_DEFAULT_PROVIDER_THINKING: "
|
|
4
|
+
AGENT_DEFAULT_PROVIDER_THINKING: "high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh" | undefined;
|
|
5
5
|
AGENT_DEFAULT_PROVIDER_API_KEY: string | undefined;
|
|
6
6
|
AGENT_PROVIDER_VALIDATION_TIMEOUT_MS: number;
|
|
7
7
|
AGENT_CUSTOM_PROVIDER_ALLOW_PRIVATE_NETWORKS: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,OAAO,EACP,gBAAgB,EAChB,wBAAwB,EACzB,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,4BAA6B,SAAQ,KAAK;aAEnC,UAAU,EAAE,gBAAgB;aAC5B,gBAAgB,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,OAAO,EACP,gBAAgB,EAChB,wBAAwB,EACzB,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,4BAA6B,SAAQ,KAAK;aAEnC,UAAU,EAAE,gBAAgB;aAC5B,gBAAgB,EAAE,MAAM;IAF1C,YACkB,UAAU,EAAE,gBAAgB,EAC5B,gBAAgB,EAAE,MAAM,EAIzC;CACF;AAED,qBAAa,gCAAiC,SAAQ,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K;aAE5C,WAAW,EAAE,MAAM;aACnB,UAAU,EAAE,gBAAgB;IAF9C,YACkB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,gBAAgB,EAI7C;CACF;AAED,qBAAa,sCAAuC,SAAQ,KAAK;aAE7C,WAAW,EAAE,MAAM;aACnB,UAAU,EAAE,gBAAgB;IAF9C,YACkB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,gBAAgB,EAI7C;CACF;AAED,qBAAa,yCAA0C,SAAQ,KAAK;aAEhD,UAAU,EAAE,gBAAgB;aAC5B,UAAU,EAAE,MAAM;IAFpC,YACkB,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,MAAM,EAInC;CACF;AAED,qBAAa,iDAAkD,SAAQ,KAAK;aAC9C,UAAU,EAAE,gBAAgB;IAAxD,YAA4B,UAAU,EAAE,gBAAgB,EAKvD;CACF"}
|
package/dist/db/db.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export declare const schema: {
|
|
|
60
60
|
tableName: "model_provider_configs";
|
|
61
61
|
dataType: "string";
|
|
62
62
|
columnType: "PgEnumColumn";
|
|
63
|
-
data: "
|
|
63
|
+
data: "builtin" | "custom";
|
|
64
64
|
driverParam: string;
|
|
65
65
|
notNull: true;
|
|
66
66
|
hasDefault: true;
|
|
@@ -94,7 +94,7 @@ export declare const schema: {
|
|
|
94
94
|
tableName: "model_provider_configs";
|
|
95
95
|
dataType: "string";
|
|
96
96
|
columnType: "PgText";
|
|
97
|
-
data: "
|
|
97
|
+
data: "anthropic-messages" | "google-generative-ai" | "openai-completions" | "openai-responses";
|
|
98
98
|
driverParam: string;
|
|
99
99
|
notNull: false;
|
|
100
100
|
hasDefault: false;
|
|
@@ -106,7 +106,7 @@ export declare const schema: {
|
|
|
106
106
|
identity: undefined;
|
|
107
107
|
generated: undefined;
|
|
108
108
|
}, {}, {
|
|
109
|
-
$type: "
|
|
109
|
+
$type: "anthropic-messages" | "google-generative-ai" | "openai-completions" | "openai-responses";
|
|
110
110
|
}>;
|
|
111
111
|
baseUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
112
112
|
name: "base_url";
|
|
@@ -288,7 +288,7 @@ export declare const schema: {
|
|
|
288
288
|
generated: undefined;
|
|
289
289
|
}, {}, {}>;
|
|
290
290
|
};
|
|
291
|
-
dialect:
|
|
291
|
+
dialect: 'pg';
|
|
292
292
|
}>;
|
|
293
293
|
agentWorkspaceSettings: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
294
294
|
name: "workspace_settings";
|
|
@@ -380,7 +380,7 @@ export declare const schema: {
|
|
|
380
380
|
generated: undefined;
|
|
381
381
|
}, {}, {}>;
|
|
382
382
|
};
|
|
383
|
-
dialect:
|
|
383
|
+
dialect: 'pg';
|
|
384
384
|
}>;
|
|
385
385
|
};
|
|
386
386
|
export declare function db(): NodePgDatabase<{
|
|
@@ -444,7 +444,7 @@ export declare function db(): NodePgDatabase<{
|
|
|
444
444
|
tableName: "model_provider_configs";
|
|
445
445
|
dataType: "string";
|
|
446
446
|
columnType: "PgEnumColumn";
|
|
447
|
-
data: "
|
|
447
|
+
data: "builtin" | "custom";
|
|
448
448
|
driverParam: string;
|
|
449
449
|
notNull: true;
|
|
450
450
|
hasDefault: true;
|
|
@@ -478,7 +478,7 @@ export declare function db(): NodePgDatabase<{
|
|
|
478
478
|
tableName: "model_provider_configs";
|
|
479
479
|
dataType: "string";
|
|
480
480
|
columnType: "PgText";
|
|
481
|
-
data: "
|
|
481
|
+
data: "anthropic-messages" | "google-generative-ai" | "openai-completions" | "openai-responses";
|
|
482
482
|
driverParam: string;
|
|
483
483
|
notNull: false;
|
|
484
484
|
hasDefault: false;
|
|
@@ -490,7 +490,7 @@ export declare function db(): NodePgDatabase<{
|
|
|
490
490
|
identity: undefined;
|
|
491
491
|
generated: undefined;
|
|
492
492
|
}, {}, {
|
|
493
|
-
$type: "
|
|
493
|
+
$type: "anthropic-messages" | "google-generative-ai" | "openai-completions" | "openai-responses";
|
|
494
494
|
}>;
|
|
495
495
|
baseUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
496
496
|
name: "base_url";
|
|
@@ -672,7 +672,7 @@ export declare function db(): NodePgDatabase<{
|
|
|
672
672
|
generated: undefined;
|
|
673
673
|
}, {}, {}>;
|
|
674
674
|
};
|
|
675
|
-
dialect:
|
|
675
|
+
dialect: 'pg';
|
|
676
676
|
}>;
|
|
677
677
|
agentWorkspaceSettings: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
678
678
|
name: "workspace_settings";
|
|
@@ -764,7 +764,7 @@ export declare function db(): NodePgDatabase<{
|
|
|
764
764
|
generated: undefined;
|
|
765
765
|
}, {}, {}>;
|
|
766
766
|
};
|
|
767
|
-
dialect:
|
|
767
|
+
dialect: 'pg';
|
|
768
768
|
}>;
|
|
769
769
|
}>;
|
|
770
770
|
export declare function closeDb(): void;
|
|
@@ -89,7 +89,7 @@ export declare const agentWorkspaceSettings: import("drizzle-orm/pg-core").PgTab
|
|
|
89
89
|
generated: undefined;
|
|
90
90
|
}, {}, {}>;
|
|
91
91
|
};
|
|
92
|
-
dialect:
|
|
92
|
+
dialect: 'pg';
|
|
93
93
|
}>;
|
|
94
94
|
export type AgentWorkspaceSettingsDb = typeof agentWorkspaceSettings.$inferSelect;
|
|
95
95
|
export type AgentWorkspaceSettingsCreateDb = typeof agentWorkspaceSettings.$inferInsert;
|
|
@@ -60,7 +60,7 @@ export declare const modelProviderConfigs: import("drizzle-orm/pg-core").PgTable
|
|
|
60
60
|
tableName: "model_provider_configs";
|
|
61
61
|
dataType: "string";
|
|
62
62
|
columnType: "PgEnumColumn";
|
|
63
|
-
data: "
|
|
63
|
+
data: "builtin" | "custom";
|
|
64
64
|
driverParam: string;
|
|
65
65
|
notNull: true;
|
|
66
66
|
hasDefault: true;
|
|
@@ -94,7 +94,7 @@ export declare const modelProviderConfigs: import("drizzle-orm/pg-core").PgTable
|
|
|
94
94
|
tableName: "model_provider_configs";
|
|
95
95
|
dataType: "string";
|
|
96
96
|
columnType: "PgText";
|
|
97
|
-
data: "
|
|
97
|
+
data: "anthropic-messages" | "google-generative-ai" | "openai-completions" | "openai-responses";
|
|
98
98
|
driverParam: string;
|
|
99
99
|
notNull: false;
|
|
100
100
|
hasDefault: false;
|
|
@@ -106,7 +106,7 @@ export declare const modelProviderConfigs: import("drizzle-orm/pg-core").PgTable
|
|
|
106
106
|
identity: undefined;
|
|
107
107
|
generated: undefined;
|
|
108
108
|
}, {}, {
|
|
109
|
-
$type: "
|
|
109
|
+
$type: "anthropic-messages" | "google-generative-ai" | "openai-completions" | "openai-responses";
|
|
110
110
|
}>;
|
|
111
111
|
baseUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
112
112
|
name: "base_url";
|
|
@@ -288,7 +288,7 @@ export declare const modelProviderConfigs: import("drizzle-orm/pg-core").PgTable
|
|
|
288
288
|
generated: undefined;
|
|
289
289
|
}, {}, {}>;
|
|
290
290
|
};
|
|
291
|
-
dialect:
|
|
291
|
+
dialect: 'pg';
|
|
292
292
|
}>;
|
|
293
293
|
export type ModelProviderConfigDb = typeof modelProviderConfigs.$inferSelect;
|
|
294
294
|
export type ModelProviderConfigCreateDb = typeof modelProviderConfigs.$inferInsert;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { SupportedModelProviderId } from '@shipfox/api-agent-dto';
|
|
2
2
|
export declare const modelProviderValidationCount: import("@shipfox/node-opentelemetry").Counter<{
|
|
3
|
-
model_provider: SupportedModelProviderId |
|
|
4
|
-
outcome:
|
|
3
|
+
model_provider: SupportedModelProviderId | 'custom';
|
|
4
|
+
outcome: 'succeeded' | 'failed';
|
|
5
5
|
}>;
|
|
6
6
|
export declare const agentRuntimeConfigResolvedCount: import("@shipfox/node-opentelemetry").Counter<{
|
|
7
|
-
source:
|
|
8
|
-
outcome:
|
|
7
|
+
source: 'workspace' | 'instance';
|
|
8
|
+
outcome: 'resolved' | 'unavailable' | 'decryption_failed';
|
|
9
9
|
}>;
|
|
10
10
|
//# sourceMappingURL=instance.d.ts.map
|