@flowrunner/cli 0.1.10 → 0.1.12
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/ai-docs/instructions/service-code-format/01-service-structure.md +1 -0
- package/ai-docs/instructions/service-code-format/11-output-model.md +1 -1
- package/dist/cli.js +5 -3
- package/dist/cli.js.map +2 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +2 -2
- package/dist/types/flow-extension-runner/src/v2/model/model-types.d.ts +1 -1
- package/dist/types/flow-extension-runner/src/v2/types.d.ts +5 -0
- package/dist/types/shared/src/constants/shared-extensions.d.ts +12 -0
- package/dist/types/shared/src/scheme/access-keys/dto.d.ts +101 -0
- package/dist/types/shared/src/scheme/access-keys/index.d.ts +2 -0
- package/dist/types/shared/src/scheme/flowrunner/custom-elements.d.ts +8 -8
- package/dist/types/shared/src/scheme/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/mcp-oauth/dto.d.ts +7 -5
- package/dist/types/shared/src/scheme/shared-extensions/base.d.ts +1 -1
- package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +9 -9
- package/dist/types/shared/src/scheme/shared-extensions/extension.d.ts +8 -8
- package/dist/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
- package/dist/types/shared/src/scheme/shared-extensions/list.d.ts +209 -0
- package/dist/types/shared/src/scheme/shared-extensions/resolve.d.ts +6 -6
- package/dist/types/shared/src/scheme/shared-extensions/search.d.ts +4 -4
- package/dist/types/shared/src/scheme/shared-extensions/service-info.d.ts +1 -1
- package/package.json +1 -1
- package/runtime/index.js +3 -1
- package/runtime/index.js.map +2 -2
- package/runtime/types/flow-extension-runner/src/v2/model/model-types.d.ts +1 -1
- package/runtime/types/flow-extension-runner/src/v2/types.d.ts +5 -0
- package/runtime/types/shared/src/constants/shared-extensions.d.ts +12 -0
- package/runtime/types/shared/src/scheme/access-keys/dto.d.ts +101 -0
- package/runtime/types/shared/src/scheme/access-keys/index.d.ts +2 -0
- package/runtime/types/shared/src/scheme/flowrunner/custom-elements.d.ts +8 -8
- package/runtime/types/shared/src/scheme/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/mcp-oauth/dto.d.ts +7 -5
- package/runtime/types/shared/src/scheme/shared-extensions/base.d.ts +1 -1
- package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +9 -9
- package/runtime/types/shared/src/scheme/shared-extensions/extension.d.ts +8 -8
- package/runtime/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
- package/runtime/types/shared/src/scheme/shared-extensions/list.d.ts +209 -0
- package/runtime/types/shared/src/scheme/shared-extensions/resolve.d.ts +6 -6
- package/runtime/types/shared/src/scheme/shared-extensions/search.d.ts +4 -4
- package/runtime/types/shared/src/scheme/shared-extensions/service-info.d.ts +1 -1
|
@@ -61,6 +61,7 @@ logo for that one item. Omit it and the item inherits the service's.
|
|
|
61
61
|
| `logo` | string | ✓ | Icon path, resolved **inside the service's `public/` folder** — see [Folder layout](#folder-layout). |
|
|
62
62
|
| `appearanceColors` | `[string, string]` | – | `[primary, secondary]`. |
|
|
63
63
|
| `usesFileStorage` | boolean | – | `true` provisions `ctx.files`; when false, `ctx.files` is a proxy that throws. Default false. See [10-files-api.md](10-files-api.md). |
|
|
64
|
+
| `serviceClassName` | string | – | **Deprecated — will be removed soon. Shared extensions only.** The class name of a shared extension rewritten from the legacy JSDoc class format (`'GeminiAIService'`). It is published as `serviceInfo.serviceClassName` (absent otherwise), so flows, configs and connections saved against the old service keep resolving to this one. Keep it unchanged once set. Never set it on a new service or a custom extension. |
|
|
64
65
|
| `configItems` | `z.object` | – | App + shared config (see [02-zod-types.md](02-zod-types.md)). → `appConfigDescriptions` / `sharedConfigDescriptions`. Omit when the service needs none — see [Services with no credentials](#services-with-no-credentials); a plain object of fields is **not** accepted (see [03-parameters.md](03-parameters.md)). |
|
|
65
66
|
| `initContext` | fn | – | `({ config, oauth }) => context`; runs once per invocation. Runs for OAuth flows too (`oauth` may be empty). |
|
|
66
67
|
| `apiRequest` | fn | – | Shared HTTP helper (envelope-unwrap, error-normalize, redacted logging). See [04-http-requests.md](04-http-requests.md). |
|
|
@@ -23,7 +23,7 @@ The names change on the way out, which matters when you inspect a built model:
|
|
|
23
23
|
|
|
24
24
|
| Authored | Published as |
|
|
25
25
|
|---|---|
|
|
26
|
-
| `
|
|
26
|
+
| `serviceClassName` (deprecated) | `serviceInfo.serviceClassName` — absent when not declared: `id` is not published on `serviceInfo` |
|
|
27
27
|
| `name` | `serviceInfo.integrationName` |
|
|
28
28
|
| `logo` | `serviceInfo.integrationIcon` |
|
|
29
29
|
| `description` | `serviceInfo.description` — shown under the extension's name in the console and the block palette |
|
package/dist/cli.js
CHANGED
|
@@ -4185,7 +4185,7 @@ var require_package = __commonJS({
|
|
|
4185
4185
|
"package.json"(exports2, module2) {
|
|
4186
4186
|
module2.exports = {
|
|
4187
4187
|
name: "@flowrunner/cli",
|
|
4188
|
-
version: "0.1.
|
|
4188
|
+
version: "0.1.12",
|
|
4189
4189
|
publishConfig: {
|
|
4190
4190
|
access: "public"
|
|
4191
4191
|
},
|
|
@@ -8730,7 +8730,9 @@ var Extension = class {
|
|
|
8730
8730
|
}
|
|
8731
8731
|
toServiceInfo() {
|
|
8732
8732
|
return {
|
|
8733
|
-
|
|
8733
|
+
// Only a shared extension migrated from v1 has one: its v1 class name, which the legacy ids of its elements,
|
|
8734
|
+
// configs and OAuth connections are built from. A service written as v2 is identified by its id alone
|
|
8735
|
+
...this.props.serviceClassName ? { serviceClassName: this.props.serviceClassName } : {},
|
|
8734
8736
|
integrationName: this.props.name,
|
|
8735
8737
|
integrationIcon: this.props.logo ?? null,
|
|
8736
8738
|
description: this.props.description || null,
|
|
@@ -9524,7 +9526,7 @@ function discoverServices(projectRoot = process.cwd()) {
|
|
|
9524
9526
|
}
|
|
9525
9527
|
const v2Definition = buildServiceDefinition2(serviceId, serviceFilePath);
|
|
9526
9528
|
const { methodsMap, serviceInfo } = v2Definition ?? parseJsDocToServiceJson(serviceFilePath);
|
|
9527
|
-
if (!serviceInfo || !serviceInfo.serviceClassName) {
|
|
9529
|
+
if (!serviceInfo || !v2Definition && !serviceInfo.serviceClassName) {
|
|
9528
9530
|
skipped.push({ serviceId, reason: "its entry point does not define a service" });
|
|
9529
9531
|
continue;
|
|
9530
9532
|
}
|