@flowrunner/cli 0.1.7 → 0.1.9
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 +2 -2
- package/ai-docs/instructions/service-code-format/04-http-requests.md +17 -13
- package/ai-docs/instructions/service-code-format/06-oauth2.md +1 -5
- package/ai-docs/instructions/service-code-format/07-actions.md +16 -12
- package/ai-docs/instructions/service-code-format/11-output-model.md +2 -1
- package/ai-docs/instructions/service-code-format/14-reference-service.md +5 -4
- package/ai-docs/instructions/service-code-format/17-client-certificates.md +5 -3
- package/dist/cli.js +19 -1
- package/dist/cli.js.map +2 -2
- package/dist/index.js +18 -0
- package/dist/index.js.map +2 -2
- package/dist/types/flow-extension-runner/src/v2/model/model-types.d.ts +1 -0
- package/dist/types/flow-extension-runner/src/v2/types.d.ts +2 -2
- package/dist/types/shared/src/constants/notification-types.d.ts +2 -2
- package/dist/types/shared/src/scheme/flowrunner/custom-elements.d.ts +4 -0
- package/dist/types/shared/src/scheme/shared-extensions/base.d.ts +1 -0
- package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +5 -0
- package/dist/types/shared/src/scheme/shared-extensions/extension.d.ts +4 -0
- package/dist/types/shared/src/scheme/shared-extensions/resolve.d.ts +3 -0
- package/dist/types/shared/src/scheme/shared-extensions/search.d.ts +2 -0
- package/dist/types/shared/src/scheme/shared-extensions/service-info.d.ts +1 -0
- package/package.json +1 -1
- package/runtime/index.js +1 -0
- package/runtime/index.js.map +2 -2
- package/runtime/types/flow-extension-runner/src/v2/model/model-types.d.ts +1 -0
- package/runtime/types/flow-extension-runner/src/v2/types.d.ts +2 -2
- package/runtime/types/shared/src/constants/notification-types.d.ts +2 -2
- package/runtime/types/shared/src/scheme/flowrunner/custom-elements.d.ts +4 -0
- package/runtime/types/shared/src/scheme/shared-extensions/base.d.ts +1 -0
- package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +5 -0
- package/runtime/types/shared/src/scheme/shared-extensions/extension.d.ts +4 -0
- package/runtime/types/shared/src/scheme/shared-extensions/resolve.d.ts +3 -0
- package/runtime/types/shared/src/scheme/shared-extensions/search.d.ts +2 -0
- package/runtime/types/shared/src/scheme/shared-extensions/service-info.d.ts +1 -0
- package/templates/blank/files/src/index.js +1 -1
- package/templates/demo-todo-list/files/src/index.js +1 -1
- package/templates/qa-test/files/src/index.js +1 -1
package/dist/index.js
CHANGED
|
@@ -7977,6 +7977,7 @@ var Extension = class {
|
|
|
7977
7977
|
serviceClassName: this.props.id,
|
|
7978
7978
|
integrationName: this.props.name,
|
|
7979
7979
|
integrationIcon: this.props.logo ?? null,
|
|
7980
|
+
description: this.props.description || null,
|
|
7980
7981
|
integrationTriggersScope: this.#realtime?.scope ?? null,
|
|
7981
7982
|
requireOAuth: this.#oauth ? true : void 0
|
|
7982
7983
|
};
|
|
@@ -9652,6 +9653,22 @@ function writeReadme(projectRoot) {
|
|
|
9652
9653
|
import_fs13.default.writeFileSync(fullPath, README(packageNameFrom(projectRoot)), "utf-8");
|
|
9653
9654
|
return "created";
|
|
9654
9655
|
}
|
|
9656
|
+
var JSCONFIG = {
|
|
9657
|
+
compilerOptions: {
|
|
9658
|
+
module: "node16",
|
|
9659
|
+
moduleResolution: "node16",
|
|
9660
|
+
types: [`${CLI_PACKAGE}/runtime`]
|
|
9661
|
+
},
|
|
9662
|
+
include: ["services/*/src/**/*.js"]
|
|
9663
|
+
};
|
|
9664
|
+
function writeJsconfig(projectRoot) {
|
|
9665
|
+
const fullPath = import_path18.default.join(projectRoot, "jsconfig.json");
|
|
9666
|
+
if (import_fs13.default.existsSync(fullPath)) {
|
|
9667
|
+
return "skipped";
|
|
9668
|
+
}
|
|
9669
|
+
import_fs13.default.writeFileSync(fullPath, JSON.stringify(JSCONFIG, null, 2) + "\n", "utf-8");
|
|
9670
|
+
return "created";
|
|
9671
|
+
}
|
|
9655
9672
|
function git(projectRoot, args) {
|
|
9656
9673
|
(0, import_child_process.execFileSync)("git", args, { cwd: projectRoot, stdio: "pipe" });
|
|
9657
9674
|
}
|
|
@@ -9767,6 +9784,7 @@ async function init(options = {}) {
|
|
|
9767
9784
|
const server = ensureServerUrl(projectRoot, requestedServerUrl);
|
|
9768
9785
|
record(CONFIG_FILE, server.created ? "created" : server.updated ? "updated" : "skipped");
|
|
9769
9786
|
record("README.md", writeReadme(projectRoot));
|
|
9787
|
+
record("jsconfig.json", writeJsconfig(projectRoot));
|
|
9770
9788
|
const testing = tests ? writeTestingFiles(projectRoot) : { created: [], skipped: [] };
|
|
9771
9789
|
testing.created.forEach((file) => record(file, "created"));
|
|
9772
9790
|
testing.skipped.forEach((file) => record(file, "skipped"));
|