@shipfox/api-agent-dto 12.2.0 → 13.1.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 +11 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inter-module.d.ts +14 -1
- package/dist/inter-module.d.ts.map +1 -1
- package/dist/inter-module.js +11 -2
- package/dist/inter-module.js.map +1 -1
- package/dist/schemas/catalog.d.ts +26 -78
- package/dist/schemas/catalog.d.ts.map +1 -1
- package/dist/schemas/catalog.js +26 -5
- package/dist/schemas/catalog.js.map +1 -1
- package/dist/schemas/index.d.ts +3 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +3 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/managed-provider.d.ts +32 -0
- package/dist/schemas/managed-provider.d.ts.map +1 -0
- package/dist/schemas/managed-provider.js +8 -0
- package/dist/schemas/managed-provider.js.map +1 -0
- package/dist/schemas/runtime-config.d.ts +9 -0
- package/dist/schemas/runtime-config.d.ts.map +1 -1
- package/dist/schemas/runtime-config.js +7 -2
- package/dist/schemas/runtime-config.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +9 -0
- package/src/inter-module.ts +12 -1
- package/src/schemas/catalog.test.ts +38 -0
- package/src/schemas/catalog.ts +22 -2
- package/src/schemas/index.ts +11 -0
- package/src/schemas/managed-provider.ts +36 -0
- package/src/schemas/runtime-config.test.ts +19 -0
- package/src/schemas/runtime-config.ts +13 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type AgentModelOptionDto,\n type AgentThinking,\n agentModelOptionSchema,\n agentThinkingByHarness,\n agentThinkingSchema,\n claudeAgentThinkingSchema,\n DEFAULT_AGENT_THINKING,\n DEFAULT_HARNESS,\n DEFAULT_MODEL_PROVIDER,\n getModelProviderEntry,\n type Harness,\n harnessSchema,\n listSupportedModelProviders,\n MODEL_PROVIDER_CATALOG_SEED,\n type ModelProviderCatalogEntryDto,\n type ModelProviderCatalogResponseDto,\n type ModelProviderCatalogSeedDto,\n type ModelProviderCredentialFieldDto,\n type ModelProviderSupportStatus,\n modelProviderCatalogEntrySchema,\n modelProviderCatalogResponseSchema,\n modelProviderCatalogSeedSchema,\n modelProviderCredentialFieldSchema,\n modelProviderSupportStatusSchema,\n piAgentThinkingSchema,\n thinkingLevelsForHarness,\n} from './catalog.js';\nexport {\n type CreateCustomModelProviderBodyDto,\n type CustomAgentModelDto,\n type CustomModelProviderConfigDto,\n type CustomModelProviderHeaderDto,\n type CustomModelProviderHeaderRequestDto,\n type CustomModelProviderRuntimeConfigDto,\n createCustomModelProviderBodySchema,\n customAgentModelSchema,\n customModelProviderConfigDtoSchema,\n customModelProviderHeaderDtoSchema,\n customModelProviderHeaderRequestSchema,\n customModelProviderRuntimeConfigSchema,\n DEFAULT_CUSTOM_MODEL_CONTEXT_WINDOW,\n DEFAULT_CUSTOM_MODEL_INPUT_IMAGE,\n DEFAULT_CUSTOM_MODEL_MAX_OUTPUT_TOKENS,\n DEFAULT_CUSTOM_MODEL_REASONING,\n type DiscoverCustomModelProviderModelsBodyDto,\n type DiscoverCustomModelProviderModelsBySlugBodyDto,\n type DiscoverCustomModelProviderModelsResponseDto,\n discoverCustomModelProviderModelsBodySchema,\n discoverCustomModelProviderModelsBySlugBodySchema,\n discoverCustomModelProviderModelsResponseSchema,\n MAX_MODEL_COUNT,\n type ModelProviderApi,\n modelProviderApiSchema,\n type UpdateCustomModelProviderBodyDto,\n type UpdateCustomModelProviderHeaderRequestDto,\n updateCustomModelProviderBodySchema,\n updateCustomModelProviderHeaderRequestSchema,\n} from './custom-model-provider.js';\nexport {\n buildHarnessToolDeploymentConfig,\n CLAUDE_HARNESS,\n DEFAULT_HARNESS_TOOL_DEPLOYMENT_CONFIG,\n DEFAULT_PI_ENABLED_TOOL_PACKAGES,\n DEFAULT_PI_WEB_SEARCH_ENABLED,\n getHarnessDescriptor,\n getHarnessToolDescriptor,\n HARNESS_TOOL_PACKAGE_NAMES,\n type HarnessDescriptor,\n type HarnessToolDeploymentConfig,\n type HarnessToolDescriptor,\n type HarnessToolPackageName,\n harnessSupportsProvider,\n harnessSupportsTool,\n listEnabledHarnessTools,\n listHarnessDescriptors,\n listHarnessTools,\n PI_HARNESS,\n PI_HARNESS_TOOL_PACKAGE_NAMES,\n parsePiEnabledToolPackages,\n} from './harness.js';\nexport {\n AGENT_INTEGRATION_MCP_AUTH,\n AGENT_INTEGRATION_MCP_ENDPOINT,\n AGENT_INTEGRATION_MCP_SERVER_NAME,\n AGENT_INTEGRATION_MCP_TRANSPORT,\n type AgentIntegrationMcpServerConfigDto,\n agentIntegrationMcpServerSchema,\n type MaterializedAgentIntegrationConfigDto,\n type MaterializedAgentIntegrationToolConfigDto,\n type MaterializedAgentStepConfigDto,\n materializedAgentIntegrationSchema,\n materializedAgentIntegrationToolSchema,\n materializedAgentStepConfigSchema,\n} from './materialized-agent-step-config.js';\nexport {\n getModelProviderCredentialKeys,\n type ListModelProviderConfigsResponseDto,\n listModelProviderConfigsResponseSchema,\n type ModelProviderConfigDto,\n type ModelProviderConfigResponseDto,\n modelProviderConfigDtoSchema,\n modelProviderConfigResponseSchema,\n modelProviderCredentialKeysMatch,\n type SetDefaultModelProviderBodyDto,\n type SetDefaultModelProviderResponseDto,\n setDefaultModelProviderBodySchema,\n setDefaultModelProviderResponseSchema,\n type UpdateModelProviderConfigBodyDto,\n type UpdateModelProviderDefaultModelBodyDto,\n updateModelProviderConfigBodySchema,\n updateModelProviderDefaultModelBodySchema,\n} from './model-provider-config.js';\nexport {\n isReservedModelProviderId,\n MODEL_PROVIDER_IDS,\n MODEL_PROVIDER_SLUG_PATTERN,\n type ModelProviderId,\n type ModelProviderRef,\n modelProviderRefSchema,\n providerIdSchema,\n SUPPORTED_MODEL_PROVIDER_IDS,\n type SupportedModelProviderId,\n supportedModelProviderIdSchema,\n UNSUPPORTED_MODEL_PROVIDER_IDS,\n} from './model-provider-id.js';\nexport {\n type AgentRuntimeCredentialsResponseDto,\n agentRuntimeCredentialsResponseSchema,\n} from './runtime-config.js';\nexport {\n type SetDefaultHarnessBodyDto,\n type SetDefaultHarnessResponseDto,\n setDefaultHarnessBodySchema,\n setDefaultHarnessResponseSchema,\n} from './workspace-defaults.js';\n"],"names":["agentModelOptionSchema","agentThinkingByHarness","agentThinkingSchema","claudeAgentThinkingSchema","DEFAULT_AGENT_THINKING","DEFAULT_HARNESS","DEFAULT_MODEL_PROVIDER","getModelProviderEntry","harnessSchema","listSupportedModelProviders","MODEL_PROVIDER_CATALOG_SEED","modelProviderCatalogEntrySchema","modelProviderCatalogResponseSchema","modelProviderCatalogSeedSchema","modelProviderCredentialFieldSchema","modelProviderSupportStatusSchema","piAgentThinkingSchema","thinkingLevelsForHarness","createCustomModelProviderBodySchema","customAgentModelSchema","customModelProviderConfigDtoSchema","customModelProviderHeaderDtoSchema","customModelProviderHeaderRequestSchema","customModelProviderRuntimeConfigSchema","DEFAULT_CUSTOM_MODEL_CONTEXT_WINDOW","DEFAULT_CUSTOM_MODEL_INPUT_IMAGE","DEFAULT_CUSTOM_MODEL_MAX_OUTPUT_TOKENS","DEFAULT_CUSTOM_MODEL_REASONING","discoverCustomModelProviderModelsBodySchema","discoverCustomModelProviderModelsBySlugBodySchema","discoverCustomModelProviderModelsResponseSchema","MAX_MODEL_COUNT","modelProviderApiSchema","updateCustomModelProviderBodySchema","updateCustomModelProviderHeaderRequestSchema","buildHarnessToolDeploymentConfig","CLAUDE_HARNESS","DEFAULT_HARNESS_TOOL_DEPLOYMENT_CONFIG","DEFAULT_PI_ENABLED_TOOL_PACKAGES","DEFAULT_PI_WEB_SEARCH_ENABLED","getHarnessDescriptor","getHarnessToolDescriptor","HARNESS_TOOL_PACKAGE_NAMES","harnessSupportsProvider","harnessSupportsTool","listEnabledHarnessTools","listHarnessDescriptors","listHarnessTools","PI_HARNESS","PI_HARNESS_TOOL_PACKAGE_NAMES","parsePiEnabledToolPackages","AGENT_INTEGRATION_MCP_AUTH","AGENT_INTEGRATION_MCP_ENDPOINT","AGENT_INTEGRATION_MCP_SERVER_NAME","AGENT_INTEGRATION_MCP_TRANSPORT","agentIntegrationMcpServerSchema","materializedAgentIntegrationSchema","materializedAgentIntegrationToolSchema","materializedAgentStepConfigSchema","getModelProviderCredentialKeys","listModelProviderConfigsResponseSchema","modelProviderConfigDtoSchema","modelProviderConfigResponseSchema","modelProviderCredentialKeysMatch","setDefaultModelProviderBodySchema","setDefaultModelProviderResponseSchema","updateModelProviderConfigBodySchema","updateModelProviderDefaultModelBodySchema","isReservedModelProviderId","MODEL_PROVIDER_IDS","MODEL_PROVIDER_SLUG_PATTERN","modelProviderRefSchema","providerIdSchema","SUPPORTED_MODEL_PROVIDER_IDS","supportedModelProviderIdSchema","UNSUPPORTED_MODEL_PROVIDER_IDS","agentRuntimeCredentialsResponseSchema","setDefaultHarnessBodySchema","setDefaultHarnessResponseSchema"],"mappings":"AAAA,SAGEA,sBAAsB,EACtBC,sBAAsB,EACtBC,mBAAmB,EACnBC,yBAAyB,EACzBC,sBAAsB,EACtBC,eAAe,EACfC,sBAAsB,EACtBC,qBAAqB,EAErBC,aAAa,EACbC,2BAA2B,EAC3BC,2BAA2B,EAM3BC,+BAA+B,EAC/BC,kCAAkC,EAClCC,8BAA8B,EAC9BC,kCAAkC,EAClCC,gCAAgC,EAChCC,qBAAqB,EACrBC,wBAAwB,
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type AgentModelOptionDto,\n type AgentThinking,\n agentModelOptionSchema,\n agentThinkingByHarness,\n agentThinkingSchema,\n claudeAgentThinkingSchema,\n DEFAULT_AGENT_THINKING,\n DEFAULT_HARNESS,\n DEFAULT_MODEL_PROVIDER,\n getModelProviderEntry,\n type Harness,\n harnessSchema,\n listSupportedModelProviders,\n MODEL_PROVIDER_CATALOG_SEED,\n type ModelProviderCatalogEntryDto,\n type ModelProviderCatalogResponseDto,\n type ModelProviderCatalogSeedDto,\n type ModelProviderCredentialFieldDto,\n type ModelProviderSupportStatus,\n modelProviderCatalogEntrySchema,\n modelProviderCatalogResponseSchema,\n modelProviderCatalogSeedSchema,\n modelProviderCredentialFieldSchema,\n modelProviderSupportStatusSchema,\n piAgentThinkingSchema,\n thinkingLevelsForHarness,\n type WorkspaceProvidersPolicy,\n workspaceProvidersPolicySchema,\n} from './catalog.js';\nexport {\n type CreateCustomModelProviderBodyDto,\n type CustomAgentModelDto,\n type CustomModelProviderConfigDto,\n type CustomModelProviderHeaderDto,\n type CustomModelProviderHeaderRequestDto,\n type CustomModelProviderRuntimeConfigDto,\n createCustomModelProviderBodySchema,\n customAgentModelSchema,\n customModelProviderConfigDtoSchema,\n customModelProviderHeaderDtoSchema,\n customModelProviderHeaderRequestSchema,\n customModelProviderRuntimeConfigSchema,\n DEFAULT_CUSTOM_MODEL_CONTEXT_WINDOW,\n DEFAULT_CUSTOM_MODEL_INPUT_IMAGE,\n DEFAULT_CUSTOM_MODEL_MAX_OUTPUT_TOKENS,\n DEFAULT_CUSTOM_MODEL_REASONING,\n type DiscoverCustomModelProviderModelsBodyDto,\n type DiscoverCustomModelProviderModelsBySlugBodyDto,\n type DiscoverCustomModelProviderModelsResponseDto,\n discoverCustomModelProviderModelsBodySchema,\n discoverCustomModelProviderModelsBySlugBodySchema,\n discoverCustomModelProviderModelsResponseSchema,\n MAX_MODEL_COUNT,\n type ModelProviderApi,\n modelProviderApiSchema,\n type UpdateCustomModelProviderBodyDto,\n type UpdateCustomModelProviderHeaderRequestDto,\n updateCustomModelProviderBodySchema,\n updateCustomModelProviderHeaderRequestSchema,\n} from './custom-model-provider.js';\nexport {\n buildHarnessToolDeploymentConfig,\n CLAUDE_HARNESS,\n DEFAULT_HARNESS_TOOL_DEPLOYMENT_CONFIG,\n DEFAULT_PI_ENABLED_TOOL_PACKAGES,\n DEFAULT_PI_WEB_SEARCH_ENABLED,\n getHarnessDescriptor,\n getHarnessToolDescriptor,\n HARNESS_TOOL_PACKAGE_NAMES,\n type HarnessDescriptor,\n type HarnessToolDeploymentConfig,\n type HarnessToolDescriptor,\n type HarnessToolPackageName,\n harnessSupportsProvider,\n harnessSupportsTool,\n listEnabledHarnessTools,\n listHarnessDescriptors,\n listHarnessTools,\n PI_HARNESS,\n PI_HARNESS_TOOL_PACKAGE_NAMES,\n parsePiEnabledToolPackages,\n} from './harness.js';\nexport {\n type ManagedModelApi,\n type ManagedModelEntry,\n type ManagedModelProvider,\n type ManagedProviderRuntimeConfig,\n managedModelApiSchema,\n} from './managed-provider.js';\nexport {\n AGENT_INTEGRATION_MCP_AUTH,\n AGENT_INTEGRATION_MCP_ENDPOINT,\n AGENT_INTEGRATION_MCP_SERVER_NAME,\n AGENT_INTEGRATION_MCP_TRANSPORT,\n type AgentIntegrationMcpServerConfigDto,\n agentIntegrationMcpServerSchema,\n type MaterializedAgentIntegrationConfigDto,\n type MaterializedAgentIntegrationToolConfigDto,\n type MaterializedAgentStepConfigDto,\n materializedAgentIntegrationSchema,\n materializedAgentIntegrationToolSchema,\n materializedAgentStepConfigSchema,\n} from './materialized-agent-step-config.js';\nexport {\n getModelProviderCredentialKeys,\n type ListModelProviderConfigsResponseDto,\n listModelProviderConfigsResponseSchema,\n type ModelProviderConfigDto,\n type ModelProviderConfigResponseDto,\n modelProviderConfigDtoSchema,\n modelProviderConfigResponseSchema,\n modelProviderCredentialKeysMatch,\n type SetDefaultModelProviderBodyDto,\n type SetDefaultModelProviderResponseDto,\n setDefaultModelProviderBodySchema,\n setDefaultModelProviderResponseSchema,\n type UpdateModelProviderConfigBodyDto,\n type UpdateModelProviderDefaultModelBodyDto,\n updateModelProviderConfigBodySchema,\n updateModelProviderDefaultModelBodySchema,\n} from './model-provider-config.js';\nexport {\n isReservedModelProviderId,\n MODEL_PROVIDER_IDS,\n MODEL_PROVIDER_SLUG_PATTERN,\n type ModelProviderId,\n type ModelProviderRef,\n modelProviderRefSchema,\n providerIdSchema,\n SUPPORTED_MODEL_PROVIDER_IDS,\n type SupportedModelProviderId,\n supportedModelProviderIdSchema,\n UNSUPPORTED_MODEL_PROVIDER_IDS,\n} from './model-provider-id.js';\nexport {\n type AgentRuntimeCredentialsResponseDto,\n agentRuntimeCredentialsResponseSchema,\n type ClaudeRuntimeConfigDto,\n claudeRuntimeConfigSchema,\n} from './runtime-config.js';\nexport {\n type SetDefaultHarnessBodyDto,\n type SetDefaultHarnessResponseDto,\n setDefaultHarnessBodySchema,\n setDefaultHarnessResponseSchema,\n} from './workspace-defaults.js';\n"],"names":["agentModelOptionSchema","agentThinkingByHarness","agentThinkingSchema","claudeAgentThinkingSchema","DEFAULT_AGENT_THINKING","DEFAULT_HARNESS","DEFAULT_MODEL_PROVIDER","getModelProviderEntry","harnessSchema","listSupportedModelProviders","MODEL_PROVIDER_CATALOG_SEED","modelProviderCatalogEntrySchema","modelProviderCatalogResponseSchema","modelProviderCatalogSeedSchema","modelProviderCredentialFieldSchema","modelProviderSupportStatusSchema","piAgentThinkingSchema","thinkingLevelsForHarness","workspaceProvidersPolicySchema","createCustomModelProviderBodySchema","customAgentModelSchema","customModelProviderConfigDtoSchema","customModelProviderHeaderDtoSchema","customModelProviderHeaderRequestSchema","customModelProviderRuntimeConfigSchema","DEFAULT_CUSTOM_MODEL_CONTEXT_WINDOW","DEFAULT_CUSTOM_MODEL_INPUT_IMAGE","DEFAULT_CUSTOM_MODEL_MAX_OUTPUT_TOKENS","DEFAULT_CUSTOM_MODEL_REASONING","discoverCustomModelProviderModelsBodySchema","discoverCustomModelProviderModelsBySlugBodySchema","discoverCustomModelProviderModelsResponseSchema","MAX_MODEL_COUNT","modelProviderApiSchema","updateCustomModelProviderBodySchema","updateCustomModelProviderHeaderRequestSchema","buildHarnessToolDeploymentConfig","CLAUDE_HARNESS","DEFAULT_HARNESS_TOOL_DEPLOYMENT_CONFIG","DEFAULT_PI_ENABLED_TOOL_PACKAGES","DEFAULT_PI_WEB_SEARCH_ENABLED","getHarnessDescriptor","getHarnessToolDescriptor","HARNESS_TOOL_PACKAGE_NAMES","harnessSupportsProvider","harnessSupportsTool","listEnabledHarnessTools","listHarnessDescriptors","listHarnessTools","PI_HARNESS","PI_HARNESS_TOOL_PACKAGE_NAMES","parsePiEnabledToolPackages","managedModelApiSchema","AGENT_INTEGRATION_MCP_AUTH","AGENT_INTEGRATION_MCP_ENDPOINT","AGENT_INTEGRATION_MCP_SERVER_NAME","AGENT_INTEGRATION_MCP_TRANSPORT","agentIntegrationMcpServerSchema","materializedAgentIntegrationSchema","materializedAgentIntegrationToolSchema","materializedAgentStepConfigSchema","getModelProviderCredentialKeys","listModelProviderConfigsResponseSchema","modelProviderConfigDtoSchema","modelProviderConfigResponseSchema","modelProviderCredentialKeysMatch","setDefaultModelProviderBodySchema","setDefaultModelProviderResponseSchema","updateModelProviderConfigBodySchema","updateModelProviderDefaultModelBodySchema","isReservedModelProviderId","MODEL_PROVIDER_IDS","MODEL_PROVIDER_SLUG_PATTERN","modelProviderRefSchema","providerIdSchema","SUPPORTED_MODEL_PROVIDER_IDS","supportedModelProviderIdSchema","UNSUPPORTED_MODEL_PROVIDER_IDS","agentRuntimeCredentialsResponseSchema","claudeRuntimeConfigSchema","setDefaultHarnessBodySchema","setDefaultHarnessResponseSchema"],"mappings":"AAAA,SAGEA,sBAAsB,EACtBC,sBAAsB,EACtBC,mBAAmB,EACnBC,yBAAyB,EACzBC,sBAAsB,EACtBC,eAAe,EACfC,sBAAsB,EACtBC,qBAAqB,EAErBC,aAAa,EACbC,2BAA2B,EAC3BC,2BAA2B,EAM3BC,+BAA+B,EAC/BC,kCAAkC,EAClCC,8BAA8B,EAC9BC,kCAAkC,EAClCC,gCAAgC,EAChCC,qBAAqB,EACrBC,wBAAwB,EAExBC,8BAA8B,QACzB,eAAe;AACtB,SAOEC,mCAAmC,EACnCC,sBAAsB,EACtBC,kCAAkC,EAClCC,kCAAkC,EAClCC,sCAAsC,EACtCC,sCAAsC,EACtCC,mCAAmC,EACnCC,gCAAgC,EAChCC,sCAAsC,EACtCC,8BAA8B,EAI9BC,2CAA2C,EAC3CC,iDAAiD,EACjDC,+CAA+C,EAC/CC,eAAe,EAEfC,sBAAsB,EAGtBC,mCAAmC,EACnCC,4CAA4C,QACvC,6BAA6B;AACpC,SACEC,gCAAgC,EAChCC,cAAc,EACdC,sCAAsC,EACtCC,gCAAgC,EAChCC,6BAA6B,EAC7BC,oBAAoB,EACpBC,wBAAwB,EACxBC,0BAA0B,EAK1BC,uBAAuB,EACvBC,mBAAmB,EACnBC,uBAAuB,EACvBC,sBAAsB,EACtBC,gBAAgB,EAChBC,UAAU,EACVC,6BAA6B,EAC7BC,0BAA0B,QACrB,eAAe;AACtB,SAKEC,qBAAqB,QAChB,wBAAwB;AAC/B,SACEC,0BAA0B,EAC1BC,8BAA8B,EAC9BC,iCAAiC,EACjCC,+BAA+B,EAE/BC,+BAA+B,EAI/BC,kCAAkC,EAClCC,sCAAsC,EACtCC,iCAAiC,QAC5B,sCAAsC;AAC7C,SACEC,8BAA8B,EAE9BC,sCAAsC,EAGtCC,4BAA4B,EAC5BC,iCAAiC,EACjCC,gCAAgC,EAGhCC,iCAAiC,EACjCC,qCAAqC,EAGrCC,mCAAmC,EACnCC,yCAAyC,QACpC,6BAA6B;AACpC,SACEC,yBAAyB,EACzBC,kBAAkB,EAClBC,2BAA2B,EAG3BC,sBAAsB,EACtBC,gBAAgB,EAChBC,4BAA4B,EAE5BC,8BAA8B,EAC9BC,8BAA8B,QACzB,yBAAyB;AAChC,SAEEC,qCAAqC,EAErCC,yBAAyB,QACpB,sBAAsB;AAC7B,SAGEC,2BAA2B,EAC3BC,+BAA+B,QAC1B,0BAA0B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AgentThinking } from '@shipfox/workflow-document';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const managedModelApiSchema: z.ZodEnum<{
|
|
4
|
+
"anthropic-messages": "anthropic-messages";
|
|
5
|
+
"openai-completions": "openai-completions";
|
|
6
|
+
"openai-responses": "openai-responses";
|
|
7
|
+
}>;
|
|
8
|
+
export type ManagedModelApi = z.infer<typeof managedModelApiSchema>;
|
|
9
|
+
export interface ManagedModelEntry {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly label: string;
|
|
12
|
+
readonly api: ManagedModelApi;
|
|
13
|
+
}
|
|
14
|
+
export interface ManagedProviderRuntimeConfig {
|
|
15
|
+
readonly api: ManagedModelApi;
|
|
16
|
+
readonly baseUrl: string;
|
|
17
|
+
readonly credentials: Record<string, string>;
|
|
18
|
+
}
|
|
19
|
+
export interface ManagedModelProvider {
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly label: string;
|
|
22
|
+
readonly models: readonly ManagedModelEntry[];
|
|
23
|
+
readonly defaultModel: string;
|
|
24
|
+
readonly defaultThinking?: AgentThinking | undefined;
|
|
25
|
+
readonly resolveCredentials: (params: {
|
|
26
|
+
workspaceId: string;
|
|
27
|
+
runId: string;
|
|
28
|
+
stepAttemptId: string;
|
|
29
|
+
model: string;
|
|
30
|
+
}) => Promise<ManagedProviderRuntimeConfig>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=managed-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-provider.d.ts","sourceRoot":"","sources":["../../src/schemas/managed-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,qBAAqB;;;;EAIhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAC;CAC/B;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,GAAG,EAAE,eAAe,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9C;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC9C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACrD,QAAQ,CAAC,kBAAkB,EAAE,CAAC,MAAM,EAAE;QACpC,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,aAAa,EAAE,MAAM,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;KACf,KAAK,OAAO,CAAC,4BAA4B,CAAC,CAAC;CAC7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/managed-provider.ts"],"sourcesContent":["import type {AgentThinking} from '@shipfox/workflow-document';\nimport {z} from 'zod';\n\nexport const managedModelApiSchema = z.enum([\n 'anthropic-messages',\n 'openai-responses',\n 'openai-completions',\n]);\n\nexport type ManagedModelApi = z.infer<typeof managedModelApiSchema>;\n\nexport interface ManagedModelEntry {\n readonly id: string;\n readonly label: string;\n readonly api: ManagedModelApi;\n}\n\nexport interface ManagedProviderRuntimeConfig {\n readonly api: ManagedModelApi;\n readonly baseUrl: string;\n readonly credentials: Record<string, string>;\n}\n\nexport interface ManagedModelProvider {\n readonly id: string;\n readonly label: string;\n readonly models: readonly ManagedModelEntry[];\n readonly defaultModel: string;\n readonly defaultThinking?: AgentThinking | undefined;\n readonly resolveCredentials: (params: {\n workspaceId: string;\n runId: string;\n stepAttemptId: string;\n model: string;\n }) => Promise<ManagedProviderRuntimeConfig>;\n}\n"],"names":["z","managedModelApiSchema","enum"],"mappings":"AACA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,wBAAwBD,EAAEE,IAAI,CAAC;IAC1C;IACA;IACA;CACD,EAAE"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { customModelProviderRuntimeConfigSchema } from './custom-model-provider.js';
|
|
3
|
+
export declare const claudeRuntimeConfigSchema: z.ZodObject<{
|
|
4
|
+
base_url: z.ZodString;
|
|
5
|
+
auth_token: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type ClaudeRuntimeConfigDto = z.infer<typeof claudeRuntimeConfigSchema>;
|
|
3
8
|
/**
|
|
4
9
|
* Lease-scoped runtime credentials. The credential values are secrets and must
|
|
5
10
|
* never be written to logs, traces, client state, or generic catalog surfaces.
|
|
@@ -44,6 +49,10 @@ export declare const agentRuntimeCredentialsResponseSchema: z.ZodObject<{
|
|
|
44
49
|
}, z.core.$strip>>;
|
|
45
50
|
requires_api_key: z.ZodBoolean;
|
|
46
51
|
}, z.core.$strip>>;
|
|
52
|
+
claude: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
base_url: z.ZodString;
|
|
54
|
+
auth_token: z.ZodString;
|
|
55
|
+
}, z.core.$strip>>;
|
|
47
56
|
}, z.core.$strip>;
|
|
48
57
|
export type AgentRuntimeCredentialsResponseDto = z.infer<typeof agentRuntimeCredentialsResponseSchema>;
|
|
49
58
|
export type { CustomModelProviderRuntimeConfigDto } from './custom-model-provider.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-config.d.ts","sourceRoot":"","sources":["../../src/schemas/runtime-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,sCAAsC,EAAC,MAAM,4BAA4B,CAAC;AAMlF;;;GAGG;AACH,eAAO,MAAM,qCAAqC
|
|
1
|
+
{"version":3,"file":"runtime-config.d.ts","sourceRoot":"","sources":["../../src/schemas/runtime-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,sCAAsC,EAAC,MAAM,4BAA4B,CAAC;AAMlF,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwB9C,CAAC;AAEL,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,qCAAqC,CAC7C,CAAC;AACF,YAAY,EAAC,mCAAmC,EAAC,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAC,sCAAsC,EAAC,CAAC"}
|
|
@@ -4,6 +4,10 @@ import { customModelProviderRuntimeConfigSchema } from './custom-model-provider.
|
|
|
4
4
|
import { isReservedModelProviderId, modelProviderRefSchema } from './model-provider-id.js';
|
|
5
5
|
const credentialKeySchema = z.string().min(1);
|
|
6
6
|
const credentialValueSchema = z.string().min(1);
|
|
7
|
+
export const claudeRuntimeConfigSchema = z.object({
|
|
8
|
+
base_url: z.string().url().max(2048),
|
|
9
|
+
auth_token: credentialValueSchema
|
|
10
|
+
});
|
|
7
11
|
/**
|
|
8
12
|
* Lease-scoped runtime credentials. The credential values are secrets and must
|
|
9
13
|
* never be written to logs, traces, client state, or generic catalog surfaces.
|
|
@@ -13,9 +17,10 @@ const credentialValueSchema = z.string().min(1);
|
|
|
13
17
|
model: z.string().min(1),
|
|
14
18
|
thinking: agentThinkingSchema,
|
|
15
19
|
credentials: z.record(credentialKeySchema, credentialValueSchema),
|
|
16
|
-
custom_provider: customModelProviderRuntimeConfigSchema.optional()
|
|
20
|
+
custom_provider: customModelProviderRuntimeConfigSchema.optional(),
|
|
21
|
+
claude: claudeRuntimeConfigSchema.optional()
|
|
17
22
|
}).superRefine((response, ctx)=>{
|
|
18
|
-
if (isReservedModelProviderId(response.provider_id) || response.custom_provider !== undefined) {
|
|
23
|
+
if (isReservedModelProviderId(response.provider_id) || response.custom_provider !== undefined || response.claude !== undefined) {
|
|
19
24
|
return;
|
|
20
25
|
}
|
|
21
26
|
ctx.addIssue({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/runtime-config.ts"],"sourcesContent":["import {agentThinkingSchema, harnessSchema} from '@shipfox/workflow-document';\nimport {z} from 'zod';\nimport {customModelProviderRuntimeConfigSchema} from './custom-model-provider.js';\nimport {isReservedModelProviderId, modelProviderRefSchema} from './model-provider-id.js';\n\nconst credentialKeySchema = z.string().min(1);\nconst credentialValueSchema = z.string().min(1);\n\n/**\n * Lease-scoped runtime credentials. The credential values are secrets and must\n * never be written to logs, traces, client state, or generic catalog surfaces.\n */\nexport const agentRuntimeCredentialsResponseSchema = z\n .object({\n harness: harnessSchema,\n provider_id: modelProviderRefSchema,\n model: z.string().min(1),\n thinking: agentThinkingSchema,\n credentials: z.record(credentialKeySchema, credentialValueSchema),\n custom_provider: customModelProviderRuntimeConfigSchema.optional(),\n })\n .superRefine((response, ctx) => {\n if (isReservedModelProviderId(response.provider_id)
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/runtime-config.ts"],"sourcesContent":["import {agentThinkingSchema, harnessSchema} from '@shipfox/workflow-document';\nimport {z} from 'zod';\nimport {customModelProviderRuntimeConfigSchema} from './custom-model-provider.js';\nimport {isReservedModelProviderId, modelProviderRefSchema} from './model-provider-id.js';\n\nconst credentialKeySchema = z.string().min(1);\nconst credentialValueSchema = z.string().min(1);\n\nexport const claudeRuntimeConfigSchema = z.object({\n base_url: z.string().url().max(2048),\n auth_token: credentialValueSchema,\n});\n\nexport type ClaudeRuntimeConfigDto = z.infer<typeof claudeRuntimeConfigSchema>;\n\n/**\n * Lease-scoped runtime credentials. The credential values are secrets and must\n * never be written to logs, traces, client state, or generic catalog surfaces.\n */\nexport const agentRuntimeCredentialsResponseSchema = z\n .object({\n harness: harnessSchema,\n provider_id: modelProviderRefSchema,\n model: z.string().min(1),\n thinking: agentThinkingSchema,\n credentials: z.record(credentialKeySchema, credentialValueSchema),\n custom_provider: customModelProviderRuntimeConfigSchema.optional(),\n claude: claudeRuntimeConfigSchema.optional(),\n })\n .superRefine((response, ctx) => {\n if (\n isReservedModelProviderId(response.provider_id) ||\n response.custom_provider !== undefined ||\n response.claude !== undefined\n ) {\n return;\n }\n\n ctx.addIssue({\n code: 'custom',\n path: ['custom_provider'],\n message: 'Custom model provider runtime config is required for custom model provider refs.',\n });\n });\n\nexport type AgentRuntimeCredentialsResponseDto = z.infer<\n typeof agentRuntimeCredentialsResponseSchema\n>;\nexport type {CustomModelProviderRuntimeConfigDto} from './custom-model-provider.js';\nexport {customModelProviderRuntimeConfigSchema};\n"],"names":["agentThinkingSchema","harnessSchema","z","customModelProviderRuntimeConfigSchema","isReservedModelProviderId","modelProviderRefSchema","credentialKeySchema","string","min","credentialValueSchema","claudeRuntimeConfigSchema","object","base_url","url","max","auth_token","agentRuntimeCredentialsResponseSchema","harness","provider_id","model","thinking","credentials","record","custom_provider","optional","claude","superRefine","response","ctx","undefined","addIssue","code","path","message"],"mappings":"AAAA,SAAQA,mBAAmB,EAAEC,aAAa,QAAO,6BAA6B;AAC9E,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,sCAAsC,QAAO,6BAA6B;AAClF,SAAQC,yBAAyB,EAAEC,sBAAsB,QAAO,yBAAyB;AAEzF,MAAMC,sBAAsBJ,EAAEK,MAAM,GAAGC,GAAG,CAAC;AAC3C,MAAMC,wBAAwBP,EAAEK,MAAM,GAAGC,GAAG,CAAC;AAE7C,OAAO,MAAME,4BAA4BR,EAAES,MAAM,CAAC;IAChDC,UAAUV,EAAEK,MAAM,GAAGM,GAAG,GAAGC,GAAG,CAAC;IAC/BC,YAAYN;AACd,GAAG;AAIH;;;CAGC,GACD,OAAO,MAAMO,wCAAwCd,EAClDS,MAAM,CAAC;IACNM,SAAShB;IACTiB,aAAab;IACbc,OAAOjB,EAAEK,MAAM,GAAGC,GAAG,CAAC;IACtBY,UAAUpB;IACVqB,aAAanB,EAAEoB,MAAM,CAAChB,qBAAqBG;IAC3Cc,iBAAiBpB,uCAAuCqB,QAAQ;IAChEC,QAAQf,0BAA0Bc,QAAQ;AAC5C,GACCE,WAAW,CAAC,CAACC,UAAUC;IACtB,IACExB,0BAA0BuB,SAAST,WAAW,KAC9CS,SAASJ,eAAe,KAAKM,aAC7BF,SAASF,MAAM,KAAKI,WACpB;QACA;IACF;IAEAD,IAAIE,QAAQ,CAAC;QACXC,MAAM;QACNC,MAAM;YAAC;SAAkB;QACzBC,SAAS;IACX;AACF,GAAG;AAML,SAAQ9B,sCAAsC,GAAE"}
|