openany-cli-dev 0.1.2 → 0.1.4
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/README.md +23 -13
- package/package.json +1 -1
- package/skills/openany/calls.md +1 -1
- package/skills/openany/setup.md +88 -78
- package/skills/openany/topups.md +2 -2
- package/skills/openany-provider/SKILL.md +13 -5
- package/skills/openany-provider/SKILL.zh-CN.md +13 -5
- package/skills/openany-provider/references/apis.md +7 -5
- package/skills/openany-provider/references/apis.zh-CN.md +6 -4
- package/skills/openany-provider/references/application.md +2 -2
- package/skills/openany-provider/references/application.zh-CN.md +2 -2
- package/skills/openany-provider/references/connections.md +9 -9
- package/skills/openany-provider/references/connections.zh-CN.md +8 -8
- package/skills/openany-provider/references/hermes-files.md +131 -0
- package/skills/openany-provider/references/imports.md +5 -3
- package/skills/openany-provider/references/imports.zh-CN.md +5 -3
- package/skills/openany-provider/references/login.md +3 -3
- package/skills/openany-provider/references/login.zh-CN.md +3 -3
- package/skills/openany-provider/references/model-import.md +1 -1
- package/skills/openany-provider/references/model-import.zh-CN.md +1 -1
- package/skills/openany-provider/references/models.md +11 -9
- package/skills/openany-provider/references/models.zh-CN.md +8 -6
- package/skills/openany-provider/references/publishing.md +9 -5
- package/skills/openany-provider/references/publishing.zh-CN.md +9 -7
- package/skills/openany-provider/references/reviews.md +4 -2
- package/skills/openany-provider/references/reviews.zh-CN.md +2 -0
- package/skills/openany-provider/templates/bindings.json +1 -1
- package/skills/openany-provider/templates/models-v2.json +12 -12
- package/skills/openany-provider/templates/models.json +2 -2
- package/skills/openany-provider/templates/provider-agent-api-template.json +13 -13
- package/skills/openany-provider/templates/seller-agent-api-import-template.json +17 -17
- package/src/cli.js +15 -4
- package/src/http.js +7 -0
- package/src/poll-artifacts.js +77 -0
- package/src/provider-api-import-v2.js +1 -1
- package/src/provider-connections.js +2 -2
- package/src/provider-import-format.js +5 -5
- package/src/provider-imports.js +6 -5
- package/src/provider-model-import-v2.js +10 -1
- package/src/provider-models.js +3 -3
- package/src/provider-state.js +31 -14
- package/src/provider.js +9 -3
- package/src/seller-fields.js +57 -0
|
@@ -2,19 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Use the environment, account, and supplier confirmed in the [main entry](../SKILL.md) before collecting resource materials. If no supplier is available, follow [Seller application](application.md) once authorized. For historical reviews only, read [Review results](reviews.md).
|
|
4
4
|
|
|
5
|
+
Follow the [main entry](../SKILL.md) form-first rule for every missing input, choice, or confirmation in this workflow. Ask through the native form once and wait for the answer.
|
|
6
|
+
|
|
5
7
|
## 1. Identify the type, connection, and source
|
|
6
8
|
|
|
7
9
|
Route an explicit “list an API” request to the [standard API workflow](apis.md) only, and an explicit “list a model” request to the [model workflow](models.md) only. Skip the resource type question for both.
|
|
8
10
|
|
|
9
|
-
For a request to list a resource, if the request and already confirmed information leave the type unclear, first
|
|
11
|
+
For a request to list a resource, if the request and already confirmed information leave the type unclear, first open a native form asking “What type of resource do you want to list?” Offer **Skill, Bot, Service, Data, and Goods**. If the types exceed the form's option limit, show the full list in the question and use follow-up selection forms to capture the exact type. Use the form's text input only if selectable options are unavailable. Reuse a type the user has already specified; API-based delivery alone does not make the listing an API. Use the form to clarify the stopping point (draft only or verify and publish) only if it is unclear.
|
|
10
12
|
|
|
11
13
|
For Skill, Bot, Service, Data, or Goods, use the [Agent API template](../templates/seller-agent-api-import-template.json) and [Imports](imports.md). Set `catalogType` to the selected type: `skill`, `bot`, `service`, `data`, or `digital`, respectively. The template's `service` value is an example.
|
|
12
14
|
|
|
13
|
-
When
|
|
15
|
+
When a connection is needed and still undecided, use the native form to choose an existing connection or add one. Follow [Connections](connections.md), reusing confirmed connections and using the secure dialog when no connection fields have been collected. For a connection-only task, stop once you confirm the ID and revision.
|
|
16
|
+
|
|
17
|
+
Confirm the required connection before requesting or reading source materials. When the source is missing, open a separate **Source materials** form with the options applicable to the chosen type: resource or API documentation link, sanitized cURL, file upload, or absolute local path. If the form allows only three options, group the two file options and ask how to provide the file next. In the form prompt, show the matching [Agent API](../templates/seller-agent-api-import-template.json), [standard API](../templates/provider-agent-api-template.json), or [model](../templates/models-v2.json) template location and say: “The template location is provided here. If you do not have a copy, download the template, fill it in, then upload the completed file or enter its absolute path.” Use an accessible absolute URL or verified local absolute path. If the location is inaccessible, attach the template and name it in the form. For Agent API listings, point to `fieldGuide` and the examples in `apis[0]`. Use a follow-up form for input the source selector cannot collect. For a file upload, direct the user to the attachment control.
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
Wait for the user to identify the source before inspecting any source materials. Do not scan the current directory or workspace for candidates, even during CLI setup. If the user chooses a local file without supplying its path, use a text-input form to ask only for the file's absolute path. Once the user provides the path, check only that file. If the path is invalid or points to a directory, use the form to request the correct file path.
|
|
16
20
|
|
|
17
|
-
Read the chosen source and ask only about omissions or conflicts. Collect the included content, usage instructions, effect examples, and how the resource is delivered. If its delivery is unsupported by the CLI, explain the limitation before preparing a draft. Preserve the supplied methods, paths, mappings, and billing terms. Validate imports against the template. Fetch the schema once for direct creation.
|
|
21
|
+
Read the chosen source and use the form to ask only about omissions or conflicts. Collect the included content, usage instructions, effect examples, and how the resource is delivered. If its delivery is unsupported by the CLI, explain the limitation before preparing a draft. Preserve the supplied methods, paths, mappings, and billing terms. Validate imports against the template. Fetch the schema once for direct creation.
|
|
18
22
|
|
|
19
23
|
Use top-level `categories` for APIs and `configuration.categories` in the metadata for OpenAPI imports. Use at most 16 distinct IDs. Use `routes[].familyId` for new public models, with choices from `items[].families` in the import preview. Preserve existing assignments. If the family is missing, ask the user to pick from the current options. Allow independently complete items to proceed.
|
|
20
24
|
|
|
@@ -32,7 +36,7 @@ Follow the [API and resource verification and publication workflow](apis.md) or
|
|
|
32
36
|
|
|
33
37
|
- If the session is missing or expired, or the identity changed, follow [Login](login.md), confirm the intended account and supplier, and explicitly resume. Do not switch identities or authentication methods silently.
|
|
34
38
|
- If the connection or commercial terms are missing, keep the draft or prepared inputs and report the specific missing fields. Do not switch authentication to `none` or fabricate credentials.
|
|
35
|
-
- Check the
|
|
39
|
+
- Check the service path only when publication reports an explicit service path error. For other conflicts, unknown results, admission errors, or publication errors, follow [Review results](reviews.md). Record error codes and resource or operation IDs while keeping secrets out of the report.
|
|
36
40
|
- Respect supplier admission and administrator permissions. Keep payment arrangements outside the onboarding workflow. Use the current version for authorized resource edits.
|
|
37
41
|
|
|
38
42
|
## Final report
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
# API / 模型 /
|
|
1
|
+
# API / 模型 / 资源上架与连接
|
|
2
2
|
|
|
3
|
-
沿用[主入口](../SKILL.zh-CN.md)确认的环境、账号和供应商,再收集资源资料。无可用供应商时,获授权后转入[供应商申请](application.zh-CN.md)。仅查历史审核时读[审核结果](reviews.zh-CN.md)
|
|
3
|
+
沿用[主入口](../SKILL.zh-CN.md)确认的环境、账号和供应商,再收集资源资料。无可用供应商时,获授权后转入[供应商申请](application.zh-CN.md)。仅查历史审核时读[审核结果](reviews.zh-CN.md)。与用户的交互优先使用表单交互,尽量不要在对话里提问。
|
|
4
4
|
|
|
5
5
|
## 1. 确定类型、连接和资料来源
|
|
6
6
|
|
|
7
7
|
用户明确要求「上架 API」时,只走[普通 API 流程](apis.zh-CN.md)。「上架模型」只走[模型流程](models.zh-CN.md)。这两种请求均跳过资源类型提问。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
用户要求上架资源时,如果请求和已明确的信息仍未指定类型,先用原生表单问「你想上架哪种资源?」列出 **Skill(技能)、Bot(机器人)、Service(服务)、Data(数据)、Goods(商品)**。类型超过表单选项上限时,在题面列出完整类型,再用后续选择表单收集具体类型。只有表单不支持可选项时才用表单文本输入。用户已明确类型就直接沿用;通过 API 交付不等于上架 API。仅在停止点不明确时用表单补问是只建草稿,还是验证并发布。
|
|
10
10
|
|
|
11
11
|
Skill、Bot、Service、Data、Goods 使用 [Agent API 模板](../templates/seller-agent-api-import-template.json),走[导入流程](imports.zh-CN.md),并按用户选定类型将 `catalogType` 分别填写为 `skill`、`bot`、`service`、`data`、`digital`。模板中的 `service` 只是示例。
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
需要连接且用户未指定时,用原生表单选择复用已有连接或新建。按[连接流程](connections.zh-CN.md)复用已确认的连接,按录入进度选择安全弹框或补齐字段。仅建连接时,确认 ID 和修订即结束。
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
先确认本次需要的连接,再索取或读取资源资料。缺来源时,单独打开**资料来源**表单:按已选类型提供适用的资源或接口文档链接、脱敏 cURL、上传文件或本地绝对路径选项。表单最多支持三项时合并文件选项,下一步再问上传或路径。在表单题面显示对应的 [Agent API](../templates/seller-agent-api-import-template.json)、[普通 API](../templates/provider-agent-api-template.json)或[模型](../templates/models-v2.json)模板位置,并注明「这里已提供模板位置。如果你还没有模板,请先下载并填写,再上传填好的文件或输入本地绝对路径。」使用可访问的完整 URL 或已核实的本地绝对路径,位置不可访问时提供附件并在表单标出文件名。Agent API 资源请参考 `fieldGuide` 和 `apis[0]` 中的示例。来源选择表单无法接收所选资料时,用后续表单收集。选择上传文件时,引导用户使用附件上传入口。
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
用户确认来源后才检查源资料。包括 CLI 准备阶段在内,禁止扫描当前目录或工作区寻找候选文件。用户选择本地文件但未给出路径时,只用文本输入表单索取该文件的绝对路径。收到路径后只检查指定文件。路径无效或指向目录时,通过表单请用户提供正确的文件路径。
|
|
18
|
+
|
|
19
|
+
读取指定资料后只通过表单补问缺项或冲突,保留原方法、路径、映射和计费。收集交付内容、使用说明、效果示例和交付方式。如果 CLI 不支持该交付方式,建草稿前先说明限制。导入按模板校验,直接创建时取对应 schema 一次。
|
|
18
20
|
|
|
19
21
|
API 分类用顶层 `categories`,OpenAPI 导入写入元数据的 `configuration.categories`,最多 16 个不重复 ID。新公共模型用 `routes[].familyId`,选项来自导入预览的 `items[].families`;已有归属保持原样。缺失时请用户从当前选项选择,缺配置的项目不阻塞独立完整项。
|
|
20
22
|
|
|
@@ -32,7 +34,7 @@ API 分类用顶层 `categories`,OpenAPI 导入写入元数据的 `configurati
|
|
|
32
34
|
|
|
33
35
|
- 登录缺失/过期或身份发生变化:遵循[身份认证](login.zh-CN.md),确认目标账号和供应商,然后明确恢复执行。不得静默切换身份或认证方式。
|
|
34
36
|
- 缺少连接或商业条款:保留草稿/已准备的输入,并报告具体缺失字段。不得将认证替换为 `none` 或编造凭据。
|
|
35
|
-
-
|
|
37
|
+
- 发布明确报服务路径错误时才核对路径。其他冲突、未知结果、准入或发布错误按[审核结果](reviews.zh-CN.md)处理。记录错误码和资源/操作 ID,勿泄露秘密。
|
|
36
38
|
- 不得绕过供应商准入、冒充管理员,或将安排付款作为接入流程的一部分。已获授权的资源编辑应使用当前版本。
|
|
37
39
|
|
|
38
40
|
## 最终报告
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Resource reviews are retired. Historical `reviews list|get` records remain readable, but do not determine current publication. Do not submit, approve, or withdraw resource reviews. Read the model/API itself for current activation and runtime synchronization. Supplier admission remains required.
|
|
4
4
|
|
|
5
|
+
Follow the [main entry](../SKILL.md) form-first rule if recovery needs the user's input or confirmation.
|
|
6
|
+
|
|
5
7
|
## Recover without duplicate side effects
|
|
6
8
|
|
|
7
9
|
Keep operation names unique across independent writes and stable across recovery. Preserve the original payload, account, application, resource ID, and any returned receipt IDs. Never treat matching names as proof of resource ownership.
|
|
@@ -11,7 +13,7 @@ An operation is bound to its request method, target path and JSON payload within
|
|
|
11
13
|
| Failure | Required recovery |
|
|
12
14
|
| --- | --- |
|
|
13
15
|
| Create timed out or `OPERATION_UNCERTAIN` for a create | Retry the original create command with the identical file, original `--operation`, and `--resume`; the CLI reuses its original idempotency key. Do not create with a new name/key |
|
|
14
|
-
| Verification has a known ID | Query that exact ID with the model/API `get --verification-id` command; do not repeat the
|
|
16
|
+
| Verification has a known ID | Query that exact ID with the model/API `get --verification-id` command; do not repeat the service test |
|
|
15
17
|
| Verification timed out with no ID | Read the resource and any exposed verification information; do not assume the newest receipt is yours. If the CLI output cannot positively identify the original test, retain the unknown operation and request reconciliation. Model configuration reads do not guarantee exposure of verification receipts |
|
|
16
18
|
| Update or publication outcome unknown | Read current resource and reconcile against the original intent before another mutation. Do not replay an uncertain update, publication, or verification, even with `--resume` |
|
|
17
19
|
| Version conflict or stale verification | Read current resource and connections, understand the changed inputs, correct if authorized, and reverify within budget. Never merely replace version numbers |
|
|
@@ -19,4 +21,4 @@ An operation is bound to its request method, target path and JSON payload within
|
|
|
19
21
|
| `IDEMPOTENCY_CONFLICT` | Stop reusing that operation with changed input; reconcile the original outcome first |
|
|
20
22
|
| Login/session or supplier changed | Follow [authentication](auth.md) and confirm the intended identity before explicitly resuming |
|
|
21
23
|
|
|
22
|
-
A running/unknown/failed verification is never a pass. If a test cannot be reconciled, report the unresolved operation and stop that resource before publication; independent resources can continue. Preserve public error codes and IDs in the final report without copying secrets or
|
|
24
|
+
A running/unknown/failed verification is never a pass. If a test cannot be reconciled, report the unresolved operation and stop that resource before publication; independent resources can continue. Preserve public error codes and IDs in the final report without copying secrets or sensitive service responses.
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
可以查询历史 `reviews list|get` 记录。当前启用和运行时同步状态以 API 或模型本身为准。供应商须先准入,资源审核的提交、审批和撤回流程已停用。
|
|
4
4
|
|
|
5
|
+
恢复过程中需要用户补充或确认时,按[主入口](../SKILL.zh-CN.md)的表单优先规则处理。
|
|
6
|
+
|
|
5
7
|
## 恢复结果不确定的操作
|
|
6
8
|
|
|
7
9
|
独立写入使用各自的操作名,恢复时保留原操作名、载荷、账号、供应商、资源 ID 和回执 ID。核对实际归属。操作与原账号、供应商、HTTP 方法、路径和 JSON 载荷绑定。变更后复用操作名会报 `IDEMPOTENCY_CONFLICT`。以原参数重跑已完成的操作只会返回已保存的结果。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":1,"items":[{"itemId":"GET /v1/example","
|
|
1
|
+
{"schemaVersion":1,"items":[{"itemId":"GET /v1/example","connectionId":"REPLACE_CONNECTION_ID"},{"itemId":"supplier-model-1","routes":[{"index":0,"connectionId":"REPLACE_CONNECTION_ID"}]}]}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"Enter amounts as strings in the currency specified by priceCurrency, with at most 6 decimal places.",
|
|
9
9
|
"When usageUnit (mapped to billingUnit) is not token, outputPrice (mapped to actualCompletion) must be the string \"0\", meaning actualCompletion must be 0.",
|
|
10
10
|
"In this example, inputPrice=\"1.000000\" means USD 1 per million input tokens.",
|
|
11
|
-
"Select the
|
|
11
|
+
"Select the connection on the import page. Never enter real API keys in this template.",
|
|
12
12
|
"Replace the domain, model ID, and route.provider in example requests with your actual configuration."
|
|
13
13
|
],
|
|
14
14
|
"timeExample": "UTC 01:00-04:00 corresponds to 09:00-12:00 China Standard Time (UTC+8)."
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"constraints": "At least one item is required. The file must not exceed 2 MiB. Model identifiers must be unique."
|
|
31
31
|
},
|
|
32
32
|
"models[].modelId": {
|
|
33
|
-
"label": "
|
|
33
|
+
"label": "Service model ID",
|
|
34
34
|
"type": "string",
|
|
35
35
|
"required": true,
|
|
36
|
-
"description": "The model ID recognized by the
|
|
36
|
+
"description": "The model ID recognized by the service.",
|
|
37
37
|
"constraints": "A non-empty string.",
|
|
38
38
|
"example": "qwen3.8-max"
|
|
39
39
|
},
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"type": "string",
|
|
43
43
|
"required": false,
|
|
44
44
|
"description": "The ID callers provide in the request's model field.",
|
|
45
|
-
"constraints": "Must be non-empty when provided. Defaults to the
|
|
45
|
+
"constraints": "Must be non-empty when provided. Defaults to the service model ID when omitted.",
|
|
46
46
|
"example": "openany-qwen3.8-max"
|
|
47
47
|
},
|
|
48
48
|
"models[].modelDescription": {
|
|
@@ -173,15 +173,15 @@
|
|
|
173
173
|
"example": 125000
|
|
174
174
|
},
|
|
175
175
|
"models[].endpoints": {
|
|
176
|
-
"label": "
|
|
176
|
+
"label": "Service endpoints",
|
|
177
177
|
"type": "array<object>",
|
|
178
178
|
"required": false,
|
|
179
|
-
"description": "Specify the
|
|
180
|
-
"constraints": "Each item contains operationType,
|
|
179
|
+
"description": "Specify the service endpoints used by the model.",
|
|
180
|
+
"constraints": "Each item contains operationType, servicePath, and httpMethod.",
|
|
181
181
|
"example": [
|
|
182
182
|
{
|
|
183
183
|
"operationType": "generations",
|
|
184
|
-
"
|
|
184
|
+
"servicePath": "/v1/chat/completions",
|
|
185
185
|
"httpMethod": "POST"
|
|
186
186
|
}
|
|
187
187
|
]
|
|
@@ -326,11 +326,11 @@
|
|
|
326
326
|
"constraints": "A non-empty string, such as generations.",
|
|
327
327
|
"example": "generations"
|
|
328
328
|
},
|
|
329
|
-
"models[].endpoints[].
|
|
330
|
-
"label": "
|
|
329
|
+
"models[].endpoints[].servicePath": {
|
|
330
|
+
"label": "Service endpoint path",
|
|
331
331
|
"type": "string",
|
|
332
332
|
"required": true,
|
|
333
|
-
"description": "Specify the path of the
|
|
333
|
+
"description": "Specify the path of the service request.",
|
|
334
334
|
"constraints": "Must start with / and must not include a domain.",
|
|
335
335
|
"example": "/v1/chat/completions"
|
|
336
336
|
},
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
"endpoints": [
|
|
507
507
|
{
|
|
508
508
|
"operationType": "generations",
|
|
509
|
-
"
|
|
509
|
+
"servicePath": "/v1/chat/completions",
|
|
510
510
|
"httpMethod": "POST"
|
|
511
511
|
}
|
|
512
512
|
],
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"items": [{
|
|
4
4
|
"itemId": "supplier-model-1",
|
|
5
5
|
"configuration": {
|
|
6
|
-
"price": {"model": "
|
|
7
|
-
"routes": [{"publicModel": "REPLACE_OPENANY_ROUTE_MODEL_ID", "familyId": null, "
|
|
6
|
+
"price": {"model": "REPLACE_SERVICE_MODEL_ID", "description": "", "providerLogoUrl": "", "modelReleaseDate": null, "descriptionTranslations": {}, "modalities": [], "outModalities": [], "supportedFeatures": [], "contextWindowTokens": null, "maxOutputTokens": null, "servicePath": [], "bodySchema": {}, "curlExample": "", "currency": "USD", "billingType": "usage_flat", "billingUnit": "token", "actualPrompt": "REPLACE_QUOTE", "actualCompletion": "REPLACE_QUOTE"},
|
|
7
|
+
"routes": [{"publicModel": "REPLACE_OPENANY_ROUTE_MODEL_ID", "familyId": null, "connectionId": null, "status": "active", "matchRules": {}, "operations": []}]
|
|
8
8
|
}
|
|
9
9
|
}]
|
|
10
10
|
}
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
"example": "POST"
|
|
99
99
|
},
|
|
100
100
|
"apis[].publicPath": {
|
|
101
|
-
"label": "
|
|
101
|
+
"label": "Service API relative path",
|
|
102
102
|
"type": "string",
|
|
103
103
|
"required": true,
|
|
104
|
-
"description": "Enter the
|
|
104
|
+
"description": "Enter the service API's relative path. The public path is the same as the service path; the selected connection supplies the domain.",
|
|
105
105
|
"constraints": "Required; must start with /; at most 2048 characters; use {parameterName} for path parameters.",
|
|
106
106
|
"example": "/v1/text/process"
|
|
107
107
|
},
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"label": "Request body format",
|
|
110
110
|
"type": "string",
|
|
111
111
|
"required": true,
|
|
112
|
-
"description": "Enter the request body encoding accepted by the
|
|
112
|
+
"description": "Enter the request body encoding accepted by the service API.",
|
|
113
113
|
"constraints": "Only none / application/json / application/x-www-form-urlencoded.",
|
|
114
114
|
"example": "application/json"
|
|
115
115
|
},
|
|
@@ -279,26 +279,26 @@
|
|
|
279
279
|
"example": []
|
|
280
280
|
},
|
|
281
281
|
"apis[].config.parameterMappings": {
|
|
282
|
-
"label": "
|
|
282
|
+
"label": "Service parameter mappings",
|
|
283
283
|
"type": "array<object>",
|
|
284
284
|
"required": true,
|
|
285
|
-
"description": "Forward caller parameters to specified
|
|
286
|
-
"constraints": "source references a declared parameter; target specifies
|
|
285
|
+
"description": "Forward caller parameters to specified service locations.",
|
|
286
|
+
"constraints": "source references a declared parameter; target specifies a service location.",
|
|
287
287
|
"example": []
|
|
288
288
|
},
|
|
289
289
|
"apis[].config.fixedHeaders": {
|
|
290
|
-
"label": "Fixed
|
|
290
|
+
"label": "Fixed service request headers",
|
|
291
291
|
"type": "object",
|
|
292
292
|
"required": false,
|
|
293
|
-
"description": "Enter non-sensitive headers added to every forwarded
|
|
293
|
+
"description": "Enter non-sensitive headers added to every forwarded service request.",
|
|
294
294
|
"constraints": "Values must be strings. Do not include credentials such as Authorization or Cookie, or reserved headers. Use {} if none.",
|
|
295
295
|
"example": {}
|
|
296
296
|
},
|
|
297
297
|
"apis[].config.fixedBody": {
|
|
298
|
-
"label": "Fixed
|
|
298
|
+
"label": "Fixed service request body fields",
|
|
299
299
|
"type": "object",
|
|
300
300
|
"required": false,
|
|
301
|
-
"description": "Enter JSON fields added to every forwarded
|
|
301
|
+
"description": "Enter JSON fields added to every forwarded service request.",
|
|
302
302
|
"constraints": "Enter a JSON object without secrets. Use {} if none.",
|
|
303
303
|
"example": {}
|
|
304
304
|
},
|
|
@@ -431,10 +431,10 @@
|
|
|
431
431
|
"example": "body:/text"
|
|
432
432
|
},
|
|
433
433
|
"apis[].config.parameterMappings[].target": {
|
|
434
|
-
"label": "
|
|
434
|
+
"label": "Service parameter target",
|
|
435
435
|
"type": "string",
|
|
436
436
|
"required": true,
|
|
437
|
-
"description": "Enter where the
|
|
437
|
+
"description": "Enter where the service API receives the parameter.",
|
|
438
438
|
"constraints": "For example, body:/text refers to the /text field in the JSON request body. An identical source and target forwards it without changing its location.",
|
|
439
439
|
"example": "body:/text"
|
|
440
440
|
},
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
"type": "object",
|
|
544
544
|
"required": true,
|
|
545
545
|
"description": "Enter non-sensitive request headers.",
|
|
546
|
-
"constraints": "
|
|
546
|
+
"constraints": "Authorization may contain a placeholder such as Bearer $OPENANY_DEV_API_KEY in request examples. Configure real credentials through the connection. Use {} if there are no extra headers.",
|
|
547
547
|
"example": {}
|
|
548
548
|
},
|
|
549
549
|
"apis[].config.requestResponseExamples[].request.body": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"apiDescription must contain at least 150 Unicode characters after trimming, covering core capabilities, how to call the API, and use cases. Incomplete drafts can be previewed and edited; this requirement must be met before importing and saving.",
|
|
15
15
|
"Select a catalogType: skill, bot, service, data, or digital. Fill in includedContentHtml, usageInstructionsHtml, and at least one complete effect example.",
|
|
16
16
|
"For synchronous delivery, keep executionMode set to sync and asyncConfig set to null. For asynchronous delivery, use POST and copy the callback or poll option below. Update the API description and request and response examples to match your service.",
|
|
17
|
-
"The asynchronous examples show fixed billing and
|
|
17
|
+
"The asynchronous examples show fixed billing and a service acknowledgement. For polling, implement GET /v1/jobs/{task_id} and return the documented status and result fields. Keep credentials in the connection and webhook settings."
|
|
18
18
|
],
|
|
19
19
|
"pricingExample": "1,000 micro-USD per call, equivalent to USD 0.001.",
|
|
20
20
|
"billingInstructions": "Each API must use exactly one billing method: fixed (per call) or usage (based on consumption). The example under apis uses fixed by default. For usage billing, replace config.billing in its entirety with billingOptions.usage.billing, then update the usage field and response example to match the actual response. Do not mix fields from the two billing methods or add both options from the guide to apis.",
|
|
@@ -154,10 +154,10 @@
|
|
|
154
154
|
"example": "POST"
|
|
155
155
|
},
|
|
156
156
|
"apis[].publicPath": {
|
|
157
|
-
"label": "
|
|
157
|
+
"label": "Service API relative path",
|
|
158
158
|
"type": "string",
|
|
159
159
|
"required": true,
|
|
160
|
-
"description": "Enter the
|
|
160
|
+
"description": "Enter the service API's relative path. V2 uses it as both the public path and servicePathTemplate, including for async dispatch. The selected connection supplies the base URL.",
|
|
161
161
|
"constraints": "Required; must start with /; at most 2048 characters; use {parameterName} for path parameters.",
|
|
162
162
|
"example": "/v1/text/process"
|
|
163
163
|
},
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"label": "Request body format",
|
|
166
166
|
"type": "string",
|
|
167
167
|
"required": true,
|
|
168
|
-
"description": "Enter the request body encoding accepted by the
|
|
168
|
+
"description": "Enter the request body encoding accepted by the service API.",
|
|
169
169
|
"constraints": "Only none / application/json / application/x-www-form-urlencoded.",
|
|
170
170
|
"example": "application/json"
|
|
171
171
|
},
|
|
@@ -335,26 +335,26 @@
|
|
|
335
335
|
"example": []
|
|
336
336
|
},
|
|
337
337
|
"apis[].config.parameterMappings": {
|
|
338
|
-
"label": "
|
|
338
|
+
"label": "Service parameter mappings",
|
|
339
339
|
"type": "array<object>",
|
|
340
340
|
"required": true,
|
|
341
|
-
"description": "Forward caller parameters to specified
|
|
342
|
-
"constraints": "source references a declared parameter; target specifies
|
|
341
|
+
"description": "Forward caller parameters to specified service locations.",
|
|
342
|
+
"constraints": "source references a declared parameter; target specifies a service location.",
|
|
343
343
|
"example": []
|
|
344
344
|
},
|
|
345
345
|
"apis[].config.fixedHeaders": {
|
|
346
|
-
"label": "Fixed
|
|
346
|
+
"label": "Fixed service request headers",
|
|
347
347
|
"type": "object",
|
|
348
348
|
"required": false,
|
|
349
|
-
"description": "Enter non-sensitive headers added to every forwarded
|
|
349
|
+
"description": "Enter non-sensitive headers added to every forwarded service request.",
|
|
350
350
|
"constraints": "Values must be strings. Do not include credentials such as Authorization or Cookie, or reserved headers. Use {} if none.",
|
|
351
351
|
"example": {}
|
|
352
352
|
},
|
|
353
353
|
"apis[].config.fixedBody": {
|
|
354
|
-
"label": "Fixed
|
|
354
|
+
"label": "Fixed service request body fields",
|
|
355
355
|
"type": "object",
|
|
356
356
|
"required": false,
|
|
357
|
-
"description": "Enter JSON fields added to every forwarded
|
|
357
|
+
"description": "Enter JSON fields added to every forwarded service request.",
|
|
358
358
|
"constraints": "Enter a JSON object without secrets. Use {} if none.",
|
|
359
359
|
"example": {}
|
|
360
360
|
},
|
|
@@ -487,10 +487,10 @@
|
|
|
487
487
|
"example": "body:/text"
|
|
488
488
|
},
|
|
489
489
|
"apis[].config.parameterMappings[].target": {
|
|
490
|
-
"label": "
|
|
490
|
+
"label": "Service parameter target",
|
|
491
491
|
"type": "string",
|
|
492
492
|
"required": true,
|
|
493
|
-
"description": "Enter where the
|
|
493
|
+
"description": "Enter where the service API receives the parameter.",
|
|
494
494
|
"constraints": "For example, body:/text refers to the /text field in the JSON request body. An identical source and target forwards it without changing its location.",
|
|
495
495
|
"example": "body:/text"
|
|
496
496
|
},
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
"type": "object",
|
|
595
595
|
"required": true,
|
|
596
596
|
"description": "Enter non-sensitive request headers.",
|
|
597
|
-
"constraints": "
|
|
597
|
+
"constraints": "Authorization may contain a placeholder such as Bearer $OPENANY_DEV_API_KEY in request examples. Configure real credentials through the connection. Use {} if there are no extra headers.",
|
|
598
598
|
"example": {}
|
|
599
599
|
},
|
|
600
600
|
"apis[].config.requestResponseExamples[].request.body": {
|
|
@@ -698,13 +698,13 @@
|
|
|
698
698
|
"apis[].asyncConfig.adapter_type": {
|
|
699
699
|
"type": "string",
|
|
700
700
|
"required": "Required for async",
|
|
701
|
-
"description": "Choose webhook or grok_bot, according to the
|
|
701
|
+
"description": "Choose webhook or grok_bot, according to the service adapter.",
|
|
702
702
|
"example": "webhook"
|
|
703
703
|
},
|
|
704
704
|
"apis[].asyncConfig.delivery_mode": {
|
|
705
705
|
"type": "string",
|
|
706
706
|
"required": "Required for async",
|
|
707
|
-
"description": "Use callback when the
|
|
707
|
+
"description": "Use callback when the service sends the result, or poll when the gateway queries your service for the result.",
|
|
708
708
|
"example": "callback"
|
|
709
709
|
},
|
|
710
710
|
"apis[].asyncConfig.timeout_secs": {
|
|
@@ -724,7 +724,7 @@
|
|
|
724
724
|
"apis[].asyncConfig.poll": {
|
|
725
725
|
"type": "object",
|
|
726
726
|
"required": "Required for poll",
|
|
727
|
-
"description": "Copy the poll option and use the fixed
|
|
727
|
+
"description": "Copy the poll option and use the fixed service path GET /v1/jobs/{task_id}. Use the platform task ID from task_id in the submission body or from the Idempotency-Key header for native HTTP JSON. Return HTTP 200 with a top-level status of running, succeeded, or failed. Include a top-level result on success. The optional polling interval is 1 to 300 seconds.",
|
|
728
728
|
"example": {
|
|
729
729
|
"publication": {},
|
|
730
730
|
"path": "/v1/jobs/{task_id}",
|
package/src/cli.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sellerOutput, sellerText } from "./seller-fields.js";
|
|
1
2
|
import packageInfo from "../package.json" with { type: "json" };
|
|
2
3
|
import { tmpdir } from "node:os";
|
|
3
4
|
import { join } from "node:path";
|
|
@@ -42,10 +43,12 @@ Model execution uses the OpenAny gateway with the path and query from curlExampl
|
|
|
42
43
|
Multiple providers require --provider; multiple requests require --example.
|
|
43
44
|
Supply the complete JSON body, including model; route.provider is bound from the catalog.
|
|
44
45
|
Audio transcription is not supported. Task polling is explicit, never automatic.
|
|
46
|
+
seller tasks upload --id TASK_ID --file FILE --content-type MIME [-j]
|
|
47
|
+
Requires OPENANY_DEV_SELLER_KEY and absolute OPENANY_TASK_ROOT; does not settle the task.
|
|
45
48
|
seller status [--application ID]
|
|
46
49
|
seller applications list|create --file REGISTRATION_JSON --operation NAME
|
|
47
50
|
seller connections list|get|create --application ID [--id ID]
|
|
48
|
-
create --file JSON --operation NAME [--stdin] (or
|
|
51
|
+
create --file JSON --operation NAME [--stdin] (or OPENANY_CONNECTION_API_KEY)
|
|
49
52
|
create --gui --operation NAME [-j] (native connection dialog; macOS/Windows)
|
|
50
53
|
seller models|apis list|get|create|update|verify|publish|unpublish --application ID
|
|
51
54
|
[--id ID] [--file PATH | --input JSON] [--operation NAME] [--verification-id ID]
|
|
@@ -164,6 +167,7 @@ const valuedOptions = new Set([
|
|
|
164
167
|
"resource-id",
|
|
165
168
|
"verification-id",
|
|
166
169
|
"timeout-seconds",
|
|
170
|
+
"content-type",
|
|
167
171
|
]);
|
|
168
172
|
export function parseArgs(argv) {
|
|
169
173
|
const options = {},
|
|
@@ -492,15 +496,23 @@ export async function main(
|
|
|
492
496
|
stdin = process.stdin,
|
|
493
497
|
} = {},
|
|
494
498
|
) {
|
|
499
|
+
let seller = argv[0] === "seller";
|
|
495
500
|
const secrets = [
|
|
496
501
|
env.OPENANY_DEV_API_KEY,
|
|
502
|
+
env.OPENANY_CONNECTION_API_KEY,
|
|
497
503
|
env.OPENANY_DEV_UPSTREAM_API_KEY,
|
|
498
504
|
env.OPENANY_DEV_ACCESS_TOKEN,
|
|
499
505
|
env.OPENANY_DEV_SESSION_TOKEN,
|
|
500
506
|
env.OPENANY_DEV_WALLET_PRIVATE_KEY,
|
|
501
507
|
].filter(Boolean);
|
|
508
|
+
const format = (value, space) => {
|
|
509
|
+
if (!seller) return redact(value, secrets, space);
|
|
510
|
+
const sellerSecrets = secrets.filter(secret => typeof secret === "string").map(sellerText);
|
|
511
|
+
return redact(sellerOutput(value), [...secrets, ...sellerSecrets], space);
|
|
512
|
+
};
|
|
502
513
|
try {
|
|
503
514
|
const { args, options } = parseArgs(argv);
|
|
515
|
+
seller = args[0] === "seller";
|
|
504
516
|
if (options.version || options.help || !args.length) {
|
|
505
517
|
const value = options.version ? { version: packageInfo.version } : { help: HELP };
|
|
506
518
|
const text = options.json
|
|
@@ -589,8 +601,7 @@ export async function main(
|
|
|
589
601
|
);
|
|
590
602
|
return 0;
|
|
591
603
|
}
|
|
592
|
-
const content =
|
|
593
|
-
bytes ?? redact(result, secrets, options.json ? 0 : 2) + "\n";
|
|
604
|
+
const content = bytes ?? format(result, options.json ? 0 : 2) + "\n";
|
|
594
605
|
if (options.output) {
|
|
595
606
|
await writeFile(options.output, content, { flag: "wx", mode: 0o600 });
|
|
596
607
|
stdout.write(
|
|
@@ -599,7 +610,7 @@ export async function main(
|
|
|
599
610
|
} else stdout.write(content);
|
|
600
611
|
return 0;
|
|
601
612
|
} catch (error) {
|
|
602
|
-
stderr.write(
|
|
613
|
+
stderr.write(format(errorRecord(error)) + "\n");
|
|
603
614
|
return 1;
|
|
604
615
|
}
|
|
605
616
|
}
|
package/src/http.js
CHANGED
|
@@ -94,6 +94,7 @@ export class HttpClient {
|
|
|
94
94
|
body,
|
|
95
95
|
headers: extra,
|
|
96
96
|
credential,
|
|
97
|
+
sellerKey,
|
|
97
98
|
auth,
|
|
98
99
|
allowStatuses = [],
|
|
99
100
|
timeoutMs = this.timeoutMs,
|
|
@@ -114,6 +115,11 @@ export class HttpClient {
|
|
|
114
115
|
"CREDENTIAL_SCOPE",
|
|
115
116
|
"API key is not allowed on this backend endpoint",
|
|
116
117
|
);
|
|
118
|
+
if (sellerKey !== undefined && (
|
|
119
|
+
origin !== GATEWAY_ORIGIN || method !== "POST" || auth || credential ||
|
|
120
|
+
!/^\/v1\/agent-api-tasks\/[0-9a-f-]{36}\/artifacts$/.test(path) ||
|
|
121
|
+
typeof sellerKey !== "string" || !/^[\x21-\x7e]+$/.test(sellerKey)))
|
|
122
|
+
throw new CLIError("CREDENTIAL_SCOPE", "Seller upload credentials are scoped to task artifact uploads");
|
|
117
123
|
const url = new URL(path, origin);
|
|
118
124
|
if (rawSearch) url.search = rawSearch;
|
|
119
125
|
for (const [key, value] of Object.entries(query || {}))
|
|
@@ -140,6 +146,7 @@ export class HttpClient {
|
|
|
140
146
|
});
|
|
141
147
|
headers.set("Authorization", `Bearer ${this.apiKey}`);
|
|
142
148
|
}
|
|
149
|
+
if (sellerKey) headers.set("Authorization", `Bearer ${sellerKey}`);
|
|
143
150
|
if (credential?.token)
|
|
144
151
|
headers.set("Authorization", `Bearer ${credential.token}`);
|
|
145
152
|
if (credential?.workspaceId)
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import fs, { realpath } from 'node:fs/promises';
|
|
2
|
+
import { constants } from 'node:fs';
|
|
3
|
+
import { basename, isAbsolute, join, relative, sep } from 'node:path';
|
|
4
|
+
import { CLIError } from './errors.js';
|
|
5
|
+
|
|
6
|
+
const types = new Set(['application/pdf', 'application/zip',
|
|
7
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
8
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
9
|
+
'application/vnd.ms-excel', 'application/json', 'text/plain', 'text/csv']);
|
|
10
|
+
const inside = (root, file) => {
|
|
11
|
+
const rel = relative(root, file);
|
|
12
|
+
return rel !== '' && rel !== '..' && !rel.startsWith('..' + sep) && !isAbsolute(rel);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export async function uploadPollArtifact(args, ctx) {
|
|
16
|
+
const { options, env, http, secrets } = ctx;
|
|
17
|
+
const keyName = 'OPENANY_DEV_SELLER_KEY';
|
|
18
|
+
const key = env[keyName]?.trim();
|
|
19
|
+
if (key) secrets.push(key);
|
|
20
|
+
if (args.length !== 3 || args[2] !== 'upload' ||
|
|
21
|
+
Object.keys(options).some(k => !['id','file','content-type','json','output'].includes(k)))
|
|
22
|
+
throw new CLIError('INVALID_INPUT', 'Use seller tasks upload --id TASK_ID --file FILE --content-type MIME [-j]');
|
|
23
|
+
const id = options.id?.toLowerCase();
|
|
24
|
+
if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(id || ''))
|
|
25
|
+
throw new CLIError('INVALID_INPUT', 'Use the OpenAny task UUID, not the Hermes run_id');
|
|
26
|
+
if (!key || !/^[\x21-\x7e]+$/.test(key))
|
|
27
|
+
throw new CLIError('CONFIG_REQUIRED', `Configure ${keyName} in the execution environment`);
|
|
28
|
+
if (!types.has(options['content-type']))
|
|
29
|
+
throw new CLIError('INVALID_INPUT', 'Unsupported file MIME type; use ZIP for multiple files');
|
|
30
|
+
if (!env.OPENANY_TASK_ROOT || !isAbsolute(env.OPENANY_TASK_ROOT) || !options.file)
|
|
31
|
+
throw new CLIError('INVALID_INPUT', 'Configure absolute OPENANY_TASK_ROOT and provide --file');
|
|
32
|
+
let handle;
|
|
33
|
+
let bytes;
|
|
34
|
+
try {
|
|
35
|
+
const root = await realpath(env.OPENANY_TASK_ROOT);
|
|
36
|
+
const taskDir = await realpath(join(root, id));
|
|
37
|
+
const file = await realpath(options.file);
|
|
38
|
+
if (!inside(root, taskDir) || relative(root, taskDir) !== id || !inside(taskDir, file))
|
|
39
|
+
throw new CLIError('UNSAFE_PATH', 'File must be inside OPENANY_TASK_ROOT/TASK_ID');
|
|
40
|
+
const checked = await fs.stat(file, {bigint:true});
|
|
41
|
+
handle = await fs.open(file, constants.O_RDONLY | constants.O_NOFOLLOW);
|
|
42
|
+
const stat = await handle.stat({bigint:true});
|
|
43
|
+
// Pin reads to the checked inode and recheck parent resolution after open.
|
|
44
|
+
// Host process/permission isolation is still required against hostile same-UID mutation.
|
|
45
|
+
if (checked.dev !== stat.dev || checked.ino !== stat.ino ||
|
|
46
|
+
await realpath(file) !== file || await realpath(join(root,id)) !== taskDir)
|
|
47
|
+
throw new CLIError('UNSAFE_PATH', 'Task directory changed while opening the file');
|
|
48
|
+
const current = await fs.stat(file, {bigint:true});
|
|
49
|
+
if (current.dev !== stat.dev || current.ino !== stat.ino)
|
|
50
|
+
throw new CLIError('UNSAFE_PATH', 'Task file changed while opening');
|
|
51
|
+
if (!stat.isFile() || stat.size < 1 || stat.size > 10_000_000)
|
|
52
|
+
throw new CLIError('INVALID_INPUT', 'File must contain 1–10000000 bytes');
|
|
53
|
+
// A bounded positional read also rejects a file that grows after stat().
|
|
54
|
+
const buffer = Buffer.alloc(10_000_001);
|
|
55
|
+
let size = 0;
|
|
56
|
+
while (size < buffer.length) {
|
|
57
|
+
const part = await handle.read(buffer, size, buffer.length - size, size);
|
|
58
|
+
if (!part.bytesRead) break;
|
|
59
|
+
size += part.bytesRead;
|
|
60
|
+
}
|
|
61
|
+
if (size < 1 || size > 10_000_000) throw new CLIError('INVALID_INPUT', 'File size changed or exceeds limit');
|
|
62
|
+
bytes = buffer.subarray(0, size);
|
|
63
|
+
} catch (error) {
|
|
64
|
+
if (error instanceof CLIError) throw error;
|
|
65
|
+
throw new CLIError('FILE_UNAVAILABLE', 'Cannot read the task file; no upload was submitted');
|
|
66
|
+
} finally { await handle?.close(); }
|
|
67
|
+
const body = new FormData();
|
|
68
|
+
body.set('metadata', JSON.stringify({status:'completed'}));
|
|
69
|
+
body.set('files', new Blob([bytes], {type:options['content-type']}), basename(options.file));
|
|
70
|
+
const response = await http.gateway(`/v1/agent-api-tasks/${id}/artifacts`, {
|
|
71
|
+
method:'POST', body, sellerKey:key,
|
|
72
|
+
});
|
|
73
|
+
if (response.body?.task_id !== id || response.body?.status !== 'stored' ||
|
|
74
|
+
typeof response.body?.artifact?.artifact_id !== 'string')
|
|
75
|
+
throw new CLIError('INVALID_RESPONSE', 'Upload outcome is uncertain; retry the same task and unchanged file');
|
|
76
|
+
return response.body;
|
|
77
|
+
}
|
|
@@ -42,7 +42,7 @@ export function apiImportV2(document) {
|
|
|
42
42
|
return document.apis.map((entry, index) => {
|
|
43
43
|
const path = `apis[${index}]`;
|
|
44
44
|
const api = rename(entry, fields.api, path);
|
|
45
|
-
checkConfiguration(api);
|
|
45
|
+
checkConfiguration(api, "api");
|
|
46
46
|
validateApiImportCategories(api.categories, path);
|
|
47
47
|
if (!["GET", "POST", "PUT", "PATCH", "DELETE"].includes(api.method) ||
|
|
48
48
|
typeof api.pathTemplate !== "string" || !api.pathTemplate.startsWith("/") || api.pathTemplate.length > maxPathLength)
|
|
@@ -126,7 +126,7 @@ export async function runConnections(action, client, ctx) {
|
|
|
126
126
|
"Specify a supported authentication type explicitly",
|
|
127
127
|
);
|
|
128
128
|
if (input.authType.toLowerCase() !== "none") {
|
|
129
|
-
let key = gui ? gui.secret : ctx.env.OPENANY_DEV_UPSTREAM_API_KEY;
|
|
129
|
+
let key = gui ? gui.secret : (ctx.env.OPENANY_CONNECTION_API_KEY || ctx.env.OPENANY_DEV_UPSTREAM_API_KEY);
|
|
130
130
|
if (ctx.options.stdin) {
|
|
131
131
|
key = "";
|
|
132
132
|
for await (const chunk of ctx.stdin) {
|
|
@@ -143,7 +143,7 @@ export async function runConnections(action, client, ctx) {
|
|
|
143
143
|
if (!key)
|
|
144
144
|
throw new CLIError(
|
|
145
145
|
"UPSTREAM_CREDENTIAL_REQUIRED",
|
|
146
|
-
"Set
|
|
146
|
+
"Set OPENANY_CONNECTION_API_KEY or provide the key with --stdin; never put it in configuration files",
|
|
147
147
|
);
|
|
148
148
|
ctx.secrets.push(key);
|
|
149
149
|
input.apiKey = key;
|