openxiangda 1.0.77 → 1.0.79
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 +3 -1
- package/lib/cli.js +330 -11
- package/openxiangda-skills/SKILL.md +11 -9
- package/openxiangda-skills/references/automation-v3.md +17 -1
- package/openxiangda-skills/references/connector-resources.md +4 -1
- package/openxiangda-skills/references/data-views.md +23 -9
- package/openxiangda-skills/references/pages/page-sdk.md +15 -0
- package/openxiangda-skills/references/resource-manifest-cheatsheet.md +92 -19
- package/openxiangda-skills/references/workflow-v3.md +17 -1
- package/openxiangda-skills/skills/openxiangda-app/SKILL.md +7 -5
- package/openxiangda-skills/skills/openxiangda-core/SKILL.md +7 -4
- package/openxiangda-skills/skills/openxiangda-form/SKILL.md +9 -9
- package/openxiangda-skills/skills/openxiangda-inspect/SKILL.md +2 -2
- package/openxiangda-skills/skills/openxiangda-page/SKILL.md +19 -16
- package/openxiangda-skills/skills/openxiangda-permission-settings/SKILL.md +4 -4
- package/openxiangda-skills/skills/openxiangda-workflow-automation/SKILL.md +27 -8
- package/package.json +1 -1
- package/packages/sdk/dist/runtime/index.cjs +20 -0
- package/packages/sdk/dist/runtime/index.cjs.map +1 -1
- package/packages/sdk/dist/runtime/index.d.mts +18 -1
- package/packages/sdk/dist/runtime/index.d.ts +18 -1
- package/packages/sdk/dist/runtime/index.mjs +20 -0
- package/packages/sdk/dist/runtime/index.mjs.map +1 -1
- package/templates/sy-lowcode-app-workspace/scripts/build-js-code.mjs +8 -2
- package/templates/sy-lowcode-app-workspace/tsconfig.js-code-nodes.json +5 -1
|
@@ -23,6 +23,12 @@ const sourceKinds = {
|
|
|
23
23
|
outputRoot: path.join(rootDir, "dist", "automations"),
|
|
24
24
|
label: "automation code",
|
|
25
25
|
},
|
|
26
|
+
functions: {
|
|
27
|
+
name: "functions",
|
|
28
|
+
sourceRoot: path.join(rootDir, "src", "functions"),
|
|
29
|
+
outputRoot: path.join(rootDir, "dist", "functions"),
|
|
30
|
+
label: "app function",
|
|
31
|
+
},
|
|
26
32
|
};
|
|
27
33
|
|
|
28
34
|
function readArg(name) {
|
|
@@ -102,7 +108,7 @@ const onlyScript = readArg("script");
|
|
|
102
108
|
const sourceArg = readArg("source");
|
|
103
109
|
const selectedKind = sourceArg ? sourceKinds[sourceArg] : undefined;
|
|
104
110
|
if (sourceArg && !selectedKind) {
|
|
105
|
-
throw new Error(`unsupported source: ${sourceArg}. Expected js-code-nodes or
|
|
111
|
+
throw new Error(`unsupported source: ${sourceArg}. Expected js-code-nodes, automations, or functions`);
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
async function resolveBuildTargets() {
|
|
@@ -129,7 +135,7 @@ async function resolveBuildTargets() {
|
|
|
129
135
|
const targets = await resolveBuildTargets();
|
|
130
136
|
|
|
131
137
|
if (targets.length === 0) {
|
|
132
|
-
console.log("no JS_CODE scripts found under src/js-code-nodes/<scriptCode>/index.ts
|
|
138
|
+
console.log("no JS_CODE scripts found under src/js-code-nodes/<scriptCode>/index.ts, src/automations/<scriptCode>/index.ts, or src/functions/<functionCode>/index.ts");
|
|
133
139
|
process.exit(0);
|
|
134
140
|
}
|
|
135
141
|
|