@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.
Files changed (41) hide show
  1. package/ai-docs/instructions/service-code-format/01-service-structure.md +1 -0
  2. package/ai-docs/instructions/service-code-format/11-output-model.md +1 -1
  3. package/dist/cli.js +5 -3
  4. package/dist/cli.js.map +2 -2
  5. package/dist/index.js +4 -2
  6. package/dist/index.js.map +2 -2
  7. package/dist/types/flow-extension-runner/src/v2/model/model-types.d.ts +1 -1
  8. package/dist/types/flow-extension-runner/src/v2/types.d.ts +5 -0
  9. package/dist/types/shared/src/constants/shared-extensions.d.ts +12 -0
  10. package/dist/types/shared/src/scheme/access-keys/dto.d.ts +101 -0
  11. package/dist/types/shared/src/scheme/access-keys/index.d.ts +2 -0
  12. package/dist/types/shared/src/scheme/flowrunner/custom-elements.d.ts +8 -8
  13. package/dist/types/shared/src/scheme/index.d.ts +1 -0
  14. package/dist/types/shared/src/scheme/mcp-oauth/dto.d.ts +7 -5
  15. package/dist/types/shared/src/scheme/shared-extensions/base.d.ts +1 -1
  16. package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +9 -9
  17. package/dist/types/shared/src/scheme/shared-extensions/extension.d.ts +8 -8
  18. package/dist/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
  19. package/dist/types/shared/src/scheme/shared-extensions/list.d.ts +209 -0
  20. package/dist/types/shared/src/scheme/shared-extensions/resolve.d.ts +6 -6
  21. package/dist/types/shared/src/scheme/shared-extensions/search.d.ts +4 -4
  22. package/dist/types/shared/src/scheme/shared-extensions/service-info.d.ts +1 -1
  23. package/package.json +1 -1
  24. package/runtime/index.js +3 -1
  25. package/runtime/index.js.map +2 -2
  26. package/runtime/types/flow-extension-runner/src/v2/model/model-types.d.ts +1 -1
  27. package/runtime/types/flow-extension-runner/src/v2/types.d.ts +5 -0
  28. package/runtime/types/shared/src/constants/shared-extensions.d.ts +12 -0
  29. package/runtime/types/shared/src/scheme/access-keys/dto.d.ts +101 -0
  30. package/runtime/types/shared/src/scheme/access-keys/index.d.ts +2 -0
  31. package/runtime/types/shared/src/scheme/flowrunner/custom-elements.d.ts +8 -8
  32. package/runtime/types/shared/src/scheme/index.d.ts +1 -0
  33. package/runtime/types/shared/src/scheme/mcp-oauth/dto.d.ts +7 -5
  34. package/runtime/types/shared/src/scheme/shared-extensions/base.d.ts +1 -1
  35. package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +9 -9
  36. package/runtime/types/shared/src/scheme/shared-extensions/extension.d.ts +8 -8
  37. package/runtime/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
  38. package/runtime/types/shared/src/scheme/shared-extensions/list.d.ts +209 -0
  39. package/runtime/types/shared/src/scheme/shared-extensions/resolve.d.ts +6 -6
  40. package/runtime/types/shared/src/scheme/shared-extensions/search.d.ts +4 -4
  41. 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
- | `id` | `serviceInfo.serviceClassName` |
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.10",
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
- serviceClassName: this.props.id,
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
  }