@smarter.sh/api 0.0.0-stage → 1.0.2-alpha.1
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/LICENSE.txt +671 -0
- package/README.md +193 -2
- package/dist/client.d.ts +146 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +178 -0
- package/dist/client.js.map +1 -0
- package/dist/core/config.d.ts +148 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +212 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/errors.d.ts +189 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +187 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/http.d.ts +207 -0
- package/dist/core/http.d.ts.map +1 -0
- package/dist/core/http.js +456 -0
- package/dist/core/http.js.map +1 -0
- package/dist/core/log.d.ts +62 -0
- package/dist/core/log.d.ts.map +1 -0
- package/dist/core/log.js +68 -0
- package/dist/core/log.js.map +1 -0
- package/dist/core/sse.d.ts +38 -0
- package/dist/core/sse.d.ts.map +1 -0
- package/dist/core/sse.js +79 -0
- package/dist/core/sse.js.map +1 -0
- package/dist/core/typing.d.ts +21 -0
- package/dist/core/typing.d.ts.map +1 -0
- package/dist/core/typing.js +13 -0
- package/dist/core/typing.js.map +1 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/dist/models/account.d.ts +112 -0
- package/dist/models/account.d.ts.map +1 -0
- package/dist/models/account.js +55 -0
- package/dist/models/account.js.map +1 -0
- package/dist/models/base.d.ts +99 -0
- package/dist/models/base.d.ts.map +1 -0
- package/dist/models/base.js +111 -0
- package/dist/models/base.js.map +1 -0
- package/dist/models/chat.d.ts +2243 -0
- package/dist/models/chat.d.ts.map +1 -0
- package/dist/models/chat.js +451 -0
- package/dist/models/chat.js.map +1 -0
- package/dist/models/guardrail.d.ts +109 -0
- package/dist/models/guardrail.d.ts.map +1 -0
- package/dist/models/guardrail.js +68 -0
- package/dist/models/guardrail.js.map +1 -0
- package/dist/models/journal.d.ts +159 -0
- package/dist/models/journal.d.ts.map +1 -0
- package/dist/models/journal.js +115 -0
- package/dist/models/journal.js.map +1 -0
- package/dist/models/llmclient.d.ts +183 -0
- package/dist/models/llmclient.d.ts.map +1 -0
- package/dist/models/llmclient.js +105 -0
- package/dist/models/llmclient.js.map +1 -0
- package/dist/models/llmhost.d.ts +121 -0
- package/dist/models/llmhost.d.ts.map +1 -0
- package/dist/models/llmhost.js +79 -0
- package/dist/models/llmhost.js.map +1 -0
- package/dist/models/manifest.d.ts +211 -0
- package/dist/models/manifest.d.ts.map +1 -0
- package/dist/models/manifest.js +290 -0
- package/dist/models/manifest.js.map +1 -0
- package/dist/models/mcpclient.d.ts +99 -0
- package/dist/models/mcpclient.d.ts.map +1 -0
- package/dist/models/mcpclient.js +65 -0
- package/dist/models/mcpclient.js.map +1 -0
- package/dist/models/misc.d.ts +232 -0
- package/dist/models/misc.d.ts.map +1 -0
- package/dist/models/misc.js +110 -0
- package/dist/models/misc.js.map +1 -0
- package/dist/models/platform.d.ts +88 -0
- package/dist/models/platform.d.ts.map +1 -0
- package/dist/models/platform.js +35 -0
- package/dist/models/platform.js.map +1 -0
- package/dist/models/plugin.d.ts +36 -0
- package/dist/models/plugin.d.ts.map +1 -0
- package/dist/models/plugin.js +16 -0
- package/dist/models/plugin.js.map +1 -0
- package/dist/models/react.d.ts +104 -0
- package/dist/models/react.d.ts.map +1 -0
- package/dist/models/react.js +136 -0
- package/dist/models/react.js.map +1 -0
- package/dist/models/sam/account.d.ts +155 -0
- package/dist/models/sam/account.d.ts.map +1 -0
- package/dist/models/sam/account.js +7 -0
- package/dist/models/sam/account.js.map +1 -0
- package/dist/models/sam/apiconnection.d.ts +147 -0
- package/dist/models/sam/apiconnection.d.ts.map +1 -0
- package/dist/models/sam/apiconnection.js +7 -0
- package/dist/models/sam/apiconnection.js.map +1 -0
- package/dist/models/sam/apiplugin.d.ts +278 -0
- package/dist/models/sam/apiplugin.d.ts.map +1 -0
- package/dist/models/sam/apiplugin.js +7 -0
- package/dist/models/sam/apiplugin.js.map +1 -0
- package/dist/models/sam/budget.d.ts +219 -0
- package/dist/models/sam/budget.d.ts.map +1 -0
- package/dist/models/sam/budget.js +7 -0
- package/dist/models/sam/budget.js.map +1 -0
- package/dist/models/sam/customdomain.d.ts +139 -0
- package/dist/models/sam/customdomain.d.ts.map +1 -0
- package/dist/models/sam/customdomain.js +7 -0
- package/dist/models/sam/customdomain.js.map +1 -0
- package/dist/models/sam/guardrail.d.ts +222 -0
- package/dist/models/sam/guardrail.d.ts.map +1 -0
- package/dist/models/sam/guardrail.js +7 -0
- package/dist/models/sam/guardrail.js.map +1 -0
- package/dist/models/sam/imagesearchplugin.d.ts +235 -0
- package/dist/models/sam/imagesearchplugin.d.ts.map +1 -0
- package/dist/models/sam/imagesearchplugin.js +7 -0
- package/dist/models/sam/imagesearchplugin.js.map +1 -0
- package/dist/models/sam/index.d.ts +104 -0
- package/dist/models/sam/index.d.ts.map +1 -0
- package/dist/models/sam/index.js +50 -0
- package/dist/models/sam/index.js.map +1 -0
- package/dist/models/sam/llmclient.d.ts +490 -0
- package/dist/models/sam/llmclient.d.ts.map +1 -0
- package/dist/models/sam/llmclient.js +7 -0
- package/dist/models/sam/llmclient.js.map +1 -0
- package/dist/models/sam/llmhost.d.ts +429 -0
- package/dist/models/sam/llmhost.d.ts.map +1 -0
- package/dist/models/sam/llmhost.js +7 -0
- package/dist/models/sam/llmhost.js.map +1 -0
- package/dist/models/sam/llmhostcompute.d.ts +221 -0
- package/dist/models/sam/llmhostcompute.d.ts.map +1 -0
- package/dist/models/sam/llmhostcompute.js +7 -0
- package/dist/models/sam/llmhostcompute.js.map +1 -0
- package/dist/models/sam/mcpclient.d.ts +195 -0
- package/dist/models/sam/mcpclient.d.ts.map +1 -0
- package/dist/models/sam/mcpclient.js +7 -0
- package/dist/models/sam/mcpclient.js.map +1 -0
- package/dist/models/sam/orchestrator.d.ts +163 -0
- package/dist/models/sam/orchestrator.d.ts.map +1 -0
- package/dist/models/sam/orchestrator.js +7 -0
- package/dist/models/sam/orchestrator.js.map +1 -0
- package/dist/models/sam/plugin.d.ts +163 -0
- package/dist/models/sam/plugin.d.ts.map +1 -0
- package/dist/models/sam/plugin.js +7 -0
- package/dist/models/sam/plugin.js.map +1 -0
- package/dist/models/sam/prompt.d.ts +116 -0
- package/dist/models/sam/prompt.d.ts.map +1 -0
- package/dist/models/sam/prompt.js +7 -0
- package/dist/models/sam/prompt.js.map +1 -0
- package/dist/models/sam/provider.d.ts +195 -0
- package/dist/models/sam/provider.d.ts.map +1 -0
- package/dist/models/sam/provider.js +7 -0
- package/dist/models/sam/provider.js.map +1 -0
- package/dist/models/sam/proxy.d.ts +163 -0
- package/dist/models/sam/proxy.d.ts.map +1 -0
- package/dist/models/sam/proxy.js +7 -0
- package/dist/models/sam/proxy.js.map +1 -0
- package/dist/models/sam/schemas.d.ts +8 -0
- package/dist/models/sam/schemas.d.ts.map +1 -0
- package/dist/models/sam/schemas.js +6059 -0
- package/dist/models/sam/schemas.js.map +1 -0
- package/dist/models/sam/secret.d.ts +123 -0
- package/dist/models/sam/secret.d.ts.map +1 -0
- package/dist/models/sam/secret.js +7 -0
- package/dist/models/sam/secret.js.map +1 -0
- package/dist/models/sam/skillplugin.d.ts +181 -0
- package/dist/models/sam/skillplugin.d.ts.map +1 -0
- package/dist/models/sam/skillplugin.js +7 -0
- package/dist/models/sam/skillplugin.js.map +1 -0
- package/dist/models/sam/smarterauthtoken.d.ts +115 -0
- package/dist/models/sam/smarterauthtoken.d.ts.map +1 -0
- package/dist/models/sam/smarterauthtoken.js +7 -0
- package/dist/models/sam/smarterauthtoken.js.map +1 -0
- package/dist/models/sam/sqlconnection.d.ts +187 -0
- package/dist/models/sam/sqlconnection.d.ts.map +1 -0
- package/dist/models/sam/sqlconnection.js +7 -0
- package/dist/models/sam/sqlconnection.js.map +1 -0
- package/dist/models/sam/sqlplugin.d.ts +232 -0
- package/dist/models/sam/sqlplugin.d.ts.map +1 -0
- package/dist/models/sam/sqlplugin.js +7 -0
- package/dist/models/sam/sqlplugin.js.map +1 -0
- package/dist/models/sam/user.d.ts +135 -0
- package/dist/models/sam/user.d.ts.map +1 -0
- package/dist/models/sam/user.js +7 -0
- package/dist/models/sam/user.js.map +1 -0
- package/dist/models/sam/vectorsearch.d.ts +150 -0
- package/dist/models/sam/vectorsearch.d.ts.map +1 -0
- package/dist/models/sam/vectorsearch.js +7 -0
- package/dist/models/sam/vectorsearch.js.map +1 -0
- package/dist/models/sam/vectorstore.d.ts +291 -0
- package/dist/models/sam/vectorstore.d.ts.map +1 -0
- package/dist/models/sam/vectorstore.js +7 -0
- package/dist/models/sam/vectorstore.js.map +1 -0
- package/dist/models/sam/websearchplugin.d.ts +229 -0
- package/dist/models/sam/websearchplugin.d.ts.map +1 -0
- package/dist/models/sam/websearchplugin.js +7 -0
- package/dist/models/sam/websearchplugin.js.map +1 -0
- package/dist/models/vectorstore.d.ts +165 -0
- package/dist/models/vectorstore.d.ts.map +1 -0
- package/dist/models/vectorstore.js +90 -0
- package/dist/models/vectorstore.js.map +1 -0
- package/dist/resources/accounts.d.ts +107 -0
- package/dist/resources/accounts.d.ts.map +1 -0
- package/dist/resources/accounts.js +84 -0
- package/dist/resources/accounts.js.map +1 -0
- package/dist/resources/base.d.ts +127 -0
- package/dist/resources/base.d.ts.map +1 -0
- package/dist/resources/base.js +139 -0
- package/dist/resources/base.js.map +1 -0
- package/dist/resources/catalog.d.ts +209 -0
- package/dist/resources/catalog.d.ts.map +1 -0
- package/dist/resources/catalog.js +124 -0
- package/dist/resources/catalog.js.map +1 -0
- package/dist/resources/guardrails.d.ts +82 -0
- package/dist/resources/guardrails.d.ts.map +1 -0
- package/dist/resources/guardrails.js +46 -0
- package/dist/resources/guardrails.js.map +1 -0
- package/dist/resources/history.d.ts +97 -0
- package/dist/resources/history.d.ts.map +1 -0
- package/dist/resources/history.js +109 -0
- package/dist/resources/history.js.map +1 -0
- package/dist/resources/llmclients.d.ts +348 -0
- package/dist/resources/llmclients.d.ts.map +1 -0
- package/dist/resources/llmclients.js +367 -0
- package/dist/resources/llmclients.js.map +1 -0
- package/dist/resources/llmhosts.d.ts +146 -0
- package/dist/resources/llmhosts.d.ts.map +1 -0
- package/dist/resources/llmhosts.js +128 -0
- package/dist/resources/llmhosts.js.map +1 -0
- package/dist/resources/manifests.d.ts +153 -0
- package/dist/resources/manifests.d.ts.map +1 -0
- package/dist/resources/manifests.js +203 -0
- package/dist/resources/manifests.js.map +1 -0
- package/dist/resources/mcpclients.d.ts +90 -0
- package/dist/resources/mcpclients.d.ts.map +1 -0
- package/dist/resources/mcpclients.js +57 -0
- package/dist/resources/mcpclients.js.map +1 -0
- package/dist/resources/providers.d.ts +33 -0
- package/dist/resources/providers.d.ts.map +1 -0
- package/dist/resources/providers.js +39 -0
- package/dist/resources/providers.js.map +1 -0
- package/dist/resources/proxies.d.ts +61 -0
- package/dist/resources/proxies.d.ts.map +1 -0
- package/dist/resources/proxies.js +57 -0
- package/dist/resources/proxies.js.map +1 -0
- package/dist/resources/vectorstores.d.ts +194 -0
- package/dist/resources/vectorstores.d.ts.map +1 -0
- package/dist/resources/vectorstores.js +200 -0
- package/dist/resources/vectorstores.js.map +1 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +5 -0
- package/dist/version.js.map +1 -0
- package/package.json +81 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llmhostcompute.js","sourceRoot":"","sources":["../../../src/models/sam/llmhostcompute.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SAM type of the `MCPClient` kind, generated from the Smarter platform's JSON Schema.
|
|
3
|
+
*
|
|
4
|
+
* Do not edit: run `make sam-models`. See `src/models/sam/index.ts`.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Smarter API Manifest - MCPClient.
|
|
8
|
+
*/
|
|
9
|
+
export interface SAMMCPClient {
|
|
10
|
+
/**
|
|
11
|
+
* apiVersion[String]: Required. The API version of the AbstractSAMBase.
|
|
12
|
+
*/
|
|
13
|
+
apiVersion: string;
|
|
14
|
+
/**
|
|
15
|
+
* kind[String]: Required. The kind of resource described by the manifest.
|
|
16
|
+
*/
|
|
17
|
+
kind: string;
|
|
18
|
+
metadata: SAMMCPClientMetadata;
|
|
19
|
+
spec: SAMMCPClientSpec;
|
|
20
|
+
/**
|
|
21
|
+
* MCPClient.status[obj]: Optional, Read-only. Stateful status information about the MCPClient.
|
|
22
|
+
*/
|
|
23
|
+
status?: SAMMCPClientStatus | null;
|
|
24
|
+
[k: string]: unknown | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* MCPClient.metadata[obj]: Required, the MCPClient metadata.
|
|
28
|
+
*/
|
|
29
|
+
export interface SAMMCPClientMetadata {
|
|
30
|
+
/**
|
|
31
|
+
* Annotations, as in Kubernetes: a map of keys to string values that clients and integrations attach to a resource for their own purposes, e.g. to associate it with a resource in another system. A key is an optional DNS-subdomain prefix that names its owner, then a slash and a name of one or more slash-separated segments, e.g. 'acme.com/crm-account-id'. The prefix 'smarter.sh' and its subdomains are reserved for the Smarter platform. Values are strings: unquoted YAML scalars such as true, 42 or dates are converted to strings, and structured data belongs in a JSON string. All annotations together are limited to 256 KiB. The list of one-key maps of older manifests, e.g. [{'acme.com/crm-account-id': 'A-10042'}], is also accepted.
|
|
32
|
+
*/
|
|
33
|
+
annotations?: {
|
|
34
|
+
[k: string]: string | undefined;
|
|
35
|
+
} | null;
|
|
36
|
+
/**
|
|
37
|
+
* The description for this resource. Be brief. Keep it under 255 characters.
|
|
38
|
+
*/
|
|
39
|
+
description: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* The camelCase name of the manifest resource
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* The tags of the manifest. Used for generic resource categorization and search. Example: ['tag1', 'tag2']
|
|
46
|
+
*/
|
|
47
|
+
tags?: string[] | null;
|
|
48
|
+
/**
|
|
49
|
+
* The semantic version of the manifest. Example: 0.1.0
|
|
50
|
+
*/
|
|
51
|
+
version: string | null;
|
|
52
|
+
[k: string]: unknown | undefined;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* MCPClient.spec[obj]: Required, the MCPClient specification.
|
|
56
|
+
*/
|
|
57
|
+
export interface SAMMCPClientSpec {
|
|
58
|
+
config: SAMMCPClientSpecConfig;
|
|
59
|
+
[k: string]: unknown | undefined;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* MCPClient.spec.config[object]. The configuration for the MCPClient.
|
|
63
|
+
*/
|
|
64
|
+
export interface SAMMCPClientSpecConfig {
|
|
65
|
+
/**
|
|
66
|
+
* MCPClient.spec.config.allowedResources[list]: glob patterns of the resource URIs that the LLM may read, e.g. docs://example.com/* . Empty means none.
|
|
67
|
+
*/
|
|
68
|
+
allowedResources?: string[] | null;
|
|
69
|
+
/**
|
|
70
|
+
* MCPClient.spec.config.allowedTools[list]: glob patterns of the tool names to offer the LLM, e.g. search_* . Empty means all of the tools that the server advertises.
|
|
71
|
+
*/
|
|
72
|
+
allowedTools?: string[] | null;
|
|
73
|
+
/**
|
|
74
|
+
* MCPClient.spec.config.apiKeyHeader[str]: the HTTP header that carries an api_key credential.
|
|
75
|
+
*/
|
|
76
|
+
apiKeyHeader?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* MCPClient.spec.config.authType[str]: how to authenticate with the MCP server. One of: ['none', 'api_key', 'bearer_token', 'oauth2']. oauth2 sends an OAuth access token, obtained elsewhere, as a bearer token.
|
|
79
|
+
*/
|
|
80
|
+
authType?: "none" | "api_key" | "bearer_token" | "oauth2";
|
|
81
|
+
/**
|
|
82
|
+
* MCPClient.spec.config.cacheTtl[int]: seconds to cache the MCP server's tools, instructions and capabilities, and the results of its read-only tools and resource reads. 0 disables caching.
|
|
83
|
+
*/
|
|
84
|
+
cacheTtl?: number;
|
|
85
|
+
/**
|
|
86
|
+
* MCPClient.spec.config.credentials[str]: the name of the Smarter Secret containing the credential. Required unless authType is none.
|
|
87
|
+
*/
|
|
88
|
+
credentials?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
* MCPClient.spec.config.endpointUrl[str]: the https URL of the MCP server's endpoint.
|
|
91
|
+
*/
|
|
92
|
+
endpointUrl: string;
|
|
93
|
+
/**
|
|
94
|
+
* MCPClient.spec.config.headers[dict]: optional, non-secret HTTP headers to send to the MCP server. Credentials belong in a Smarter Secret, via credentials.
|
|
95
|
+
*/
|
|
96
|
+
headers?: {
|
|
97
|
+
[k: string]: string | undefined;
|
|
98
|
+
} | null;
|
|
99
|
+
/**
|
|
100
|
+
* MCPClient.spec.config.includeInstructions[bool]: add the MCP server's instructions to the system prompt.
|
|
101
|
+
*/
|
|
102
|
+
includeInstructions?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* MCPClient.spec.config.isActive[bool]: whether LLMClients use this MCPClient.
|
|
105
|
+
*/
|
|
106
|
+
isActive?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* MCPClient.spec.config.priority[int]: the order in which an LLMClient's MCPClients are offered to the LLM. Lower runs first.
|
|
109
|
+
*/
|
|
110
|
+
priority?: number;
|
|
111
|
+
/**
|
|
112
|
+
* MCPClient.spec.config.timeout[int]: seconds to wait for the MCP server to connect and respond.
|
|
113
|
+
*/
|
|
114
|
+
timeout?: number;
|
|
115
|
+
/**
|
|
116
|
+
* MCPClient.spec.config.transport[str]: the MCP transport. One of: ['http', 'sse']. http is Streamable HTTP, and sse is the legacy HTTP+SSE transport.
|
|
117
|
+
*/
|
|
118
|
+
transport?: "http" | "sse";
|
|
119
|
+
[k: string]: unknown | undefined;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Smarter API MCPClient Manifest - Status class.
|
|
123
|
+
*
|
|
124
|
+
* Read only. Besides ownership, it reports the result of the last connection to the MCP server.
|
|
125
|
+
*/
|
|
126
|
+
export interface SAMMCPClientStatus {
|
|
127
|
+
/**
|
|
128
|
+
* MCPClient.status.account_number: The account owner of this MCPClient. Read only.
|
|
129
|
+
*/
|
|
130
|
+
accountNumber: string;
|
|
131
|
+
/**
|
|
132
|
+
* MCPClient.status.connectionStatus: the result of the last connection to the MCP server: unconfigured, connected, disconnected or error. Read only.
|
|
133
|
+
*/
|
|
134
|
+
connectionStatus?: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* The date in which this resource was created. Read only.
|
|
137
|
+
*/
|
|
138
|
+
created: string;
|
|
139
|
+
/**
|
|
140
|
+
* dependencies[List]: The resources that depend on this resource, and that must be deleted, or stop referring to it, before it can be deleted. Lists only the resources that you can read. Read only.
|
|
141
|
+
*/
|
|
142
|
+
dependencies?: SAMDependency[] | null;
|
|
143
|
+
/**
|
|
144
|
+
* MCPClient.status.lastConnected: when Smarter last connected to the MCP server. Read only.
|
|
145
|
+
*/
|
|
146
|
+
lastConnected?: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* MCPClient.status.lastError: the error of the last failed connection, if any. Read only.
|
|
149
|
+
*/
|
|
150
|
+
lastError?: string | null;
|
|
151
|
+
/**
|
|
152
|
+
* The date in which this resource was most recently changed. Read only.
|
|
153
|
+
*/
|
|
154
|
+
modified: string;
|
|
155
|
+
/**
|
|
156
|
+
* MCPClient.status.protocolVersion: the MCP protocol version negotiated with the server. Read only.
|
|
157
|
+
*/
|
|
158
|
+
protocolVersion?: string | null;
|
|
159
|
+
/**
|
|
160
|
+
* recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
|
|
161
|
+
*/
|
|
162
|
+
recordLocator: string;
|
|
163
|
+
/**
|
|
164
|
+
* MCPClient.status.serverName: the name that the MCP server reported. Read only.
|
|
165
|
+
*/
|
|
166
|
+
serverName?: string | null;
|
|
167
|
+
/**
|
|
168
|
+
* MCPClient.status.serverVersion: the version that the MCP server reported. Read only.
|
|
169
|
+
*/
|
|
170
|
+
serverVersion?: string | null;
|
|
171
|
+
/**
|
|
172
|
+
* MCPClient.status.tools: the names of the MCP server's tools that this MCPClient offers the LLM, as of the last connection. Read only.
|
|
173
|
+
*/
|
|
174
|
+
tools?: string[] | null;
|
|
175
|
+
/**
|
|
176
|
+
* MCPClient.status.username: The Smarter user who created this MCPClient. Read only.
|
|
177
|
+
*/
|
|
178
|
+
username: string;
|
|
179
|
+
[k: string]: unknown | undefined;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* A resource that depends on the resource that a manifest describes.
|
|
183
|
+
*/
|
|
184
|
+
export interface SAMDependency {
|
|
185
|
+
/**
|
|
186
|
+
* kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
|
|
187
|
+
*/
|
|
188
|
+
kind: string;
|
|
189
|
+
/**
|
|
190
|
+
* name[String]: The name of the resource that depends on this resource. Read only.
|
|
191
|
+
*/
|
|
192
|
+
name: string;
|
|
193
|
+
[k: string]: unknown | undefined;
|
|
194
|
+
}
|
|
195
|
+
//# sourceMappingURL=mcpclient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpclient.d.ts","sourceRoot":"","sources":["../../../src/models/sam/mcpclient.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACnC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG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,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpclient.js","sourceRoot":"","sources":["../../../src/models/sam/mcpclient.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SAM type of the `Orchestrator` kind, generated from the Smarter platform's JSON Schema.
|
|
3
|
+
*
|
|
4
|
+
* Do not edit: run `make sam-models`. See `src/models/sam/index.ts`.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The part this LLMClient plays in the Orchestrator: planner, executor, critic, router, summarizer or tool_caller. The supervisor strategy needs a planner, and the router strategy a router.
|
|
8
|
+
*/
|
|
9
|
+
export type HarnessRole = "planner" | "executor" | "critic" | "router" | "summarizer" | "tool_caller";
|
|
10
|
+
/**
|
|
11
|
+
* How the Orchestrator coordinates its LLMClients: sequential, parallel, supervisor, router, voting or debate. Supervisor needs a harness with role planner, router one with role router, and voting and debate at least two harnesses.
|
|
12
|
+
*/
|
|
13
|
+
export type OrchestrationStrategy = "sequential" | "parallel" | "supervisor" | "router" | "voting" | "debate";
|
|
14
|
+
/**
|
|
15
|
+
* Smarter API Manifest - Orchestrator.
|
|
16
|
+
*/
|
|
17
|
+
export interface SAMOrchestrator {
|
|
18
|
+
/**
|
|
19
|
+
* apiVersion[String]: Required. The API version of the AbstractSAMBase.
|
|
20
|
+
*/
|
|
21
|
+
apiVersion: string;
|
|
22
|
+
/**
|
|
23
|
+
* kind[String]: Required. The kind of resource described by the manifest.
|
|
24
|
+
*/
|
|
25
|
+
kind: string;
|
|
26
|
+
metadata: SAMOrchestratorMetadata;
|
|
27
|
+
spec: SAMOrchestratorSpec;
|
|
28
|
+
/**
|
|
29
|
+
* Orchestrator.status[obj]: Optional, Read-only. Stateful status information about the Orchestrator.
|
|
30
|
+
*/
|
|
31
|
+
status?: SAMOrchestratorStatus | null;
|
|
32
|
+
[k: string]: unknown | undefined;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Orchestrator.metadata[obj]: Required, the Orchestrator metadata.
|
|
36
|
+
*/
|
|
37
|
+
export interface SAMOrchestratorMetadata {
|
|
38
|
+
/**
|
|
39
|
+
* Annotations, as in Kubernetes: a map of keys to string values that clients and integrations attach to a resource for their own purposes, e.g. to associate it with a resource in another system. A key is an optional DNS-subdomain prefix that names its owner, then a slash and a name of one or more slash-separated segments, e.g. 'acme.com/crm-account-id'. The prefix 'smarter.sh' and its subdomains are reserved for the Smarter platform. Values are strings: unquoted YAML scalars such as true, 42 or dates are converted to strings, and structured data belongs in a JSON string. All annotations together are limited to 256 KiB. The list of one-key maps of older manifests, e.g. [{'acme.com/crm-account-id': 'A-10042'}], is also accepted.
|
|
40
|
+
*/
|
|
41
|
+
annotations?: {
|
|
42
|
+
[k: string]: string | undefined;
|
|
43
|
+
} | null;
|
|
44
|
+
/**
|
|
45
|
+
* The description for this resource. Be brief. Keep it under 255 characters.
|
|
46
|
+
*/
|
|
47
|
+
description: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* The camelCase name of the manifest resource
|
|
50
|
+
*/
|
|
51
|
+
name: string;
|
|
52
|
+
/**
|
|
53
|
+
* The tags of the manifest. Used for generic resource categorization and search. Example: ['tag1', 'tag2']
|
|
54
|
+
*/
|
|
55
|
+
tags?: string[] | null;
|
|
56
|
+
/**
|
|
57
|
+
* The semantic version of the manifest. Example: 0.1.0
|
|
58
|
+
*/
|
|
59
|
+
version: string | null;
|
|
60
|
+
[k: string]: unknown | undefined;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Orchestrator.spec[obj]: Required, the Orchestrator specification.
|
|
64
|
+
*/
|
|
65
|
+
export interface SAMOrchestratorSpec {
|
|
66
|
+
config: SAMOrchestratorSpecConfig;
|
|
67
|
+
[k: string]: unknown | undefined;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Orchestrator.spec.config[object]. The configuration for the Orchestrator.
|
|
71
|
+
*/
|
|
72
|
+
export interface SAMOrchestratorSpecConfig {
|
|
73
|
+
/**
|
|
74
|
+
* LLMClients (Harnesses) that participate in this Orchestrator.
|
|
75
|
+
*
|
|
76
|
+
* @minItems 1
|
|
77
|
+
*/
|
|
78
|
+
harnesses: [SAMOrchestratorHarnessConfig, ...SAMOrchestratorHarnessConfig[]];
|
|
79
|
+
/**
|
|
80
|
+
* Whether the Orchestrator is active.
|
|
81
|
+
*/
|
|
82
|
+
isActive?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Upper bound on orchestration loop iterations.
|
|
85
|
+
*/
|
|
86
|
+
maxIterations?: number;
|
|
87
|
+
strategy?: OrchestrationStrategy;
|
|
88
|
+
[k: string]: unknown | undefined;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* A single LLMClient (Harness) membership within the Orchestrator.
|
|
92
|
+
*
|
|
93
|
+
* Mirrors smarter.apps.orchestrator.models.OrchestratorHarness. The
|
|
94
|
+
* llmClientName is a reference by name, not by primary key — resolved
|
|
95
|
+
* against the account's existing LLMClients at apply time.
|
|
96
|
+
*/
|
|
97
|
+
export interface SAMOrchestratorHarnessConfig {
|
|
98
|
+
/**
|
|
99
|
+
* Per-membership overrides (e.g. temperature, system prompt fragment, tool allowlist).
|
|
100
|
+
*/
|
|
101
|
+
config?: {
|
|
102
|
+
[k: string]: unknown | undefined;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Relative ordering for sequential/supervisor strategies.
|
|
106
|
+
*/
|
|
107
|
+
executionOrder?: number;
|
|
108
|
+
/**
|
|
109
|
+
* Whether this LLMClient's membership in the Orchestrator is active.
|
|
110
|
+
*/
|
|
111
|
+
isActive?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Name of an existing LLMClient to attach as a Harness.
|
|
114
|
+
*/
|
|
115
|
+
llmClientName: string;
|
|
116
|
+
role?: HarnessRole;
|
|
117
|
+
[k: string]: unknown | undefined;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Smarter API Orchestrator Manifest - Status class.
|
|
121
|
+
*/
|
|
122
|
+
export interface SAMOrchestratorStatus {
|
|
123
|
+
/**
|
|
124
|
+
* Orchestrator.status.account_number: The account owner of this Orchestrator. Read only.
|
|
125
|
+
*/
|
|
126
|
+
accountNumber: string;
|
|
127
|
+
/**
|
|
128
|
+
* The date in which this resource was created. Read only.
|
|
129
|
+
*/
|
|
130
|
+
created: string;
|
|
131
|
+
/**
|
|
132
|
+
* dependencies[List]: The resources that depend on this resource, and that must be deleted, or stop referring to it, before it can be deleted. Lists only the resources that you can read. Read only.
|
|
133
|
+
*/
|
|
134
|
+
dependencies?: SAMDependency[] | null;
|
|
135
|
+
/**
|
|
136
|
+
* The date in which this resource was most recently changed. Read only.
|
|
137
|
+
*/
|
|
138
|
+
modified: string;
|
|
139
|
+
/**
|
|
140
|
+
* recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
|
|
141
|
+
*/
|
|
142
|
+
recordLocator: string;
|
|
143
|
+
/**
|
|
144
|
+
* Orchestrator.status.username: The Smarter user who created this Orchestrator. Read only.
|
|
145
|
+
*/
|
|
146
|
+
username: string;
|
|
147
|
+
[k: string]: unknown | undefined;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* A resource that depends on the resource that a manifest describes.
|
|
151
|
+
*/
|
|
152
|
+
export interface SAMDependency {
|
|
153
|
+
/**
|
|
154
|
+
* kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
|
|
155
|
+
*/
|
|
156
|
+
kind: string;
|
|
157
|
+
/**
|
|
158
|
+
* name[String]: The name of the resource that depends on this resource. Read only.
|
|
159
|
+
*/
|
|
160
|
+
name: string;
|
|
161
|
+
[k: string]: unknown | undefined;
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=orchestrator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../../src/models/sam/orchestrator.ts"],"names":[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
|
|
1
|
+
{"version":3,"file":"orchestrator.js","sourceRoot":"","sources":["../../../src/models/sam/orchestrator.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SAM type of the `Plugin` kind, generated from the Smarter platform's JSON Schema.
|
|
3
|
+
*
|
|
4
|
+
* Do not edit: run `make sam-models`. See `src/models/sam/index.ts`.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Smarter API Manifest - Plugin.
|
|
8
|
+
*/
|
|
9
|
+
export interface SAMPlugin {
|
|
10
|
+
/**
|
|
11
|
+
* apiVersion[String]: Required. The API version of the AbstractSAMBase.
|
|
12
|
+
*/
|
|
13
|
+
apiVersion: string;
|
|
14
|
+
/**
|
|
15
|
+
* kind[String]: Required. The kind of resource described by the manifest.
|
|
16
|
+
*/
|
|
17
|
+
kind: string;
|
|
18
|
+
metadata: SAMPluginCommonMetadata;
|
|
19
|
+
spec: SAMPluginStaticSpec;
|
|
20
|
+
/**
|
|
21
|
+
* Plugin.status[obj]: Optional, Read-only. Stateful status information about the Plugin.
|
|
22
|
+
*/
|
|
23
|
+
status?: SAMPluginCommonStatus | null;
|
|
24
|
+
[k: string]: unknown | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Plugin.metadata[obj]: Required, the Plugin metadata.
|
|
28
|
+
*/
|
|
29
|
+
export interface SAMPluginCommonMetadata {
|
|
30
|
+
/**
|
|
31
|
+
* Annotations, as in Kubernetes: a map of keys to string values that clients and integrations attach to a resource for their own purposes, e.g. to associate it with a resource in another system. A key is an optional DNS-subdomain prefix that names its owner, then a slash and a name of one or more slash-separated segments, e.g. 'acme.com/crm-account-id'. The prefix 'smarter.sh' and its subdomains are reserved for the Smarter platform. Values are strings: unquoted YAML scalars such as true, 42 or dates are converted to strings, and structured data belongs in a JSON string. All annotations together are limited to 256 KiB. The list of one-key maps of older manifests, e.g. [{'acme.com/crm-account-id': 'A-10042'}], is also accepted.
|
|
32
|
+
*/
|
|
33
|
+
annotations?: {
|
|
34
|
+
[k: string]: string | undefined;
|
|
35
|
+
} | null;
|
|
36
|
+
/**
|
|
37
|
+
* The description for this resource. Be brief. Keep it under 255 characters.
|
|
38
|
+
*/
|
|
39
|
+
description: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* The camelCase name of the manifest resource
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* The class of the plugin. one of: ['api', 'imagesearch', 'skill', 'sql', 'static', 'websearch']
|
|
46
|
+
*/
|
|
47
|
+
pluginClass: string;
|
|
48
|
+
/**
|
|
49
|
+
* The tags of the manifest. Used for generic resource categorization and search. Example: ['tag1', 'tag2']
|
|
50
|
+
*/
|
|
51
|
+
tags?: string[] | null;
|
|
52
|
+
/**
|
|
53
|
+
* The semantic version of the manifest. Example: 0.1.0
|
|
54
|
+
*/
|
|
55
|
+
version: string | null;
|
|
56
|
+
[k: string]: unknown | undefined;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Plugin.spec[obj]: Required, the Plugin specification.
|
|
60
|
+
*/
|
|
61
|
+
export interface SAMPluginStaticSpec {
|
|
62
|
+
data: SAMPluginStaticSpecData;
|
|
63
|
+
prompt: SAMPluginCommonSpecPrompt;
|
|
64
|
+
selector: SAMPluginCommonSpecSelector;
|
|
65
|
+
[k: string]: unknown | undefined;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Plugin.spec.data[obj]: the json data returned by the Plugin. This should be one of the following kinds: ['api', 'static', 'skill', 'static', 'sql', 'websearch', 'imagesearch']
|
|
69
|
+
*/
|
|
70
|
+
export interface SAMPluginStaticSpecData {
|
|
71
|
+
/**
|
|
72
|
+
* Plugin.spec.data.staticData[obj]: The static data returned by the Plugin when the class is 'static'. LLM's are adept at understanding the context of json data structures. Try to provide granular and specific data elements.
|
|
73
|
+
*/
|
|
74
|
+
staticData?: {
|
|
75
|
+
[k: string]: unknown | undefined;
|
|
76
|
+
} | null;
|
|
77
|
+
[k: string]: unknown | undefined;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Plugin.spec.prompt[obj]: the LLM prompt engineering to apply to the Plugin
|
|
81
|
+
*/
|
|
82
|
+
export interface SAMPluginCommonSpecPrompt {
|
|
83
|
+
/**
|
|
84
|
+
* Plugin.spec.prompt.maxTokens[int]. Optional. The maxTokens of the Plugin. Defaults to 2048. The maximum number of tokens the LLM should generate in the prompt response.
|
|
85
|
+
*/
|
|
86
|
+
maxTokens?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Plugin.spec.prompt.model[str] Optional. The model of the Plugin. Defaults to gpt-6-luna. Must be one of: ['chat-latest', 'gpt-4.1', 'gpt-4.1-2025-04-14', 'gpt-4.1-mini', 'gpt-4.1-mini-2025-04-14', 'gpt-4o', 'gpt-4o-2024-08-06', 'gpt-4o-2024-11-20', 'gpt-4o-mini', 'gpt-4o-mini-2024-07-18', 'gpt-5-search-api', 'gpt-5-search-api-2025-10-14', 'gpt-5.2', 'gpt-5.2-2025-12-11', 'gpt-5.4', 'gpt-5.4-2026-03-05', 'gpt-5.4-mini', 'gpt-5.4-mini-2026-03-17', 'gpt-5.5', 'gpt-5.5-2026-04-23', 'gpt-5.6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-6-astra', 'gpt-6-luna', 'gpt-6-sol', 'gpt-6.1-sol']
|
|
89
|
+
*/
|
|
90
|
+
model?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Plugin.spec.prompt.provider[str]. Optional. The provider of the LLM. Defaults to openai. The provider is the vendor name for the LLM service that will be used to generate the prompt response.
|
|
93
|
+
*/
|
|
94
|
+
provider?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Plugin.spec.prompt.systemRole[str]. Required. The system role that the Plugin will use for the LLM text completion prompt. Be verbose and specific. Ensure that systemRole accurately conveys to the LLM how you want it to use the Plugin data that is returned. The maximum length is 32768 characters.
|
|
97
|
+
*/
|
|
98
|
+
systemRole: string;
|
|
99
|
+
/**
|
|
100
|
+
* Plugin.spec.prompt.temperature[float] Optional. The temperature of the Plugin. Defaults to 1.0. Should be between 0 and 1.0. The higher the temperature, the more creative the response. The lower the temperature, the more predictable the response.
|
|
101
|
+
*/
|
|
102
|
+
temperature?: number;
|
|
103
|
+
[k: string]: unknown | undefined;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Plugin.spec.selector[obj]: the selector logic to use for the Plugin
|
|
107
|
+
*/
|
|
108
|
+
export interface SAMPluginCommonSpecSelector {
|
|
109
|
+
/**
|
|
110
|
+
* Plugin.spec.selector.directive[str]: Required. the kind of selector directive to use for the Plugin. Must be one of: ['search_terms', 'always', 'llm']
|
|
111
|
+
*/
|
|
112
|
+
directive: string;
|
|
113
|
+
/**
|
|
114
|
+
* Plugin.spec.selector.searchTerms[list]. Optional. The keyword search terms to use when the Plugin directive is 'search_terms'. Keywords are most effective when constrained to 1 or 2 words each and lists are limited to a few dozen items.
|
|
115
|
+
*/
|
|
116
|
+
searchTerms?: string[] | null;
|
|
117
|
+
[k: string]: unknown | undefined;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Smarter API Plugin Manifest - Status class.
|
|
121
|
+
*/
|
|
122
|
+
export interface SAMPluginCommonStatus {
|
|
123
|
+
/**
|
|
124
|
+
* Plugin.status.account_number: The account owner of this Plugin. Read only.
|
|
125
|
+
*/
|
|
126
|
+
accountNumber: string;
|
|
127
|
+
/**
|
|
128
|
+
* The date in which this resource was created. Read only.
|
|
129
|
+
*/
|
|
130
|
+
created: string;
|
|
131
|
+
/**
|
|
132
|
+
* dependencies[List]: The resources that depend on this resource, and that must be deleted, or stop referring to it, before it can be deleted. Lists only the resources that you can read. Read only.
|
|
133
|
+
*/
|
|
134
|
+
dependencies?: SAMDependency[] | null;
|
|
135
|
+
/**
|
|
136
|
+
* The date in which this resource was most recently changed. Read only.
|
|
137
|
+
*/
|
|
138
|
+
modified: string;
|
|
139
|
+
/**
|
|
140
|
+
* recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
|
|
141
|
+
*/
|
|
142
|
+
recordLocator: string;
|
|
143
|
+
/**
|
|
144
|
+
* Plugin.status.account_number: The Smarter user who created this Plugin. Read only.
|
|
145
|
+
*/
|
|
146
|
+
username: string;
|
|
147
|
+
[k: string]: unknown | undefined;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* A resource that depends on the resource that a manifest describes.
|
|
151
|
+
*/
|
|
152
|
+
export interface SAMDependency {
|
|
153
|
+
/**
|
|
154
|
+
* kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
|
|
155
|
+
*/
|
|
156
|
+
kind: string;
|
|
157
|
+
/**
|
|
158
|
+
* name[String]: The name of the resource that depends on this resource. Read only.
|
|
159
|
+
*/
|
|
160
|
+
name: string;
|
|
161
|
+
[k: string]: unknown | undefined;
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/models/sam/plugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,uBAAuB,CAAC;IAClC,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACtC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KACjC,GAA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