openxiangda 1.0.155 → 1.0.157

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 (31) hide show
  1. package/README.md +8 -2
  2. package/lib/cli.js +176 -1
  3. package/lib/open-api.js +256 -0
  4. package/lib/skills.js +16 -2
  5. package/openxiangda-skills/SKILL.md +7 -3
  6. package/openxiangda-skills/references/openxiangda-api.md +2 -2
  7. package/openxiangda-skills/references/pages/page-sdk.md +1 -1
  8. package/openxiangda-skills/references/troubleshooting.md +12 -0
  9. package/openxiangda-skills/skills/openxiangda-open-api/SKILL.md +57 -0
  10. package/openxiangda-skills/skills/openxiangda-open-api/agents/openai.yaml +4 -0
  11. package/openxiangda-skills/skills/openxiangda-open-api/references/backend-authentication.md +63 -0
  12. package/openxiangda-skills/skills/openxiangda-open-api/references/dingtalk-api.openapi.json +15653 -0
  13. package/package.json +6 -3
  14. package/packages/sdk/dist/components/index.cjs +2 -1
  15. package/packages/sdk/dist/components/index.cjs.map +1 -1
  16. package/packages/sdk/dist/components/index.mjs +2 -1
  17. package/packages/sdk/dist/components/index.mjs.map +1 -1
  18. package/packages/sdk/dist/runtime/index.cjs +54 -15
  19. package/packages/sdk/dist/runtime/index.cjs.map +1 -1
  20. package/packages/sdk/dist/runtime/index.mjs +54 -15
  21. package/packages/sdk/dist/runtime/index.mjs.map +1 -1
  22. package/packages/sdk/dist/runtime/react.cjs +54 -15
  23. package/packages/sdk/dist/runtime/react.cjs.map +1 -1
  24. package/packages/sdk/dist/runtime/react.mjs +54 -15
  25. package/packages/sdk/dist/runtime/react.mjs.map +1 -1
  26. package/templates/openxiangda-react-spa/.cursor/rules/openxiangda.mdc +2 -0
  27. package/templates/openxiangda-react-spa/.qoder/rules/openxiangda.md +2 -0
  28. package/templates/openxiangda-react-spa/AGENTS.md +2 -1
  29. package/templates/sy-lowcode-app-workspace/.cursor/rules/openxiangda.mdc +2 -1
  30. package/templates/sy-lowcode-app-workspace/.qoder/rules/openxiangda.md +2 -1
  31. package/templates/sy-lowcode-app-workspace/AGENTS.md +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openxiangda",
3
- "version": "1.0.155",
3
+ "version": "1.0.157",
4
4
  "description": "OpenXiangda CLI, workspace build tools, runtime SDK, and form components.",
5
5
  "private": false,
6
6
  "bin": {
@@ -62,7 +62,7 @@
62
62
  "scripts": {
63
63
  "build:sdk": "tsup --config packages/sdk/tsup.config.ts",
64
64
  "check": "node --check bin/openxiangda.js && node --check lib/*.js && node --check packages/sdk/src/build-source/src/cli.mjs && node --check packages/sdk/src/build-source/scripts/*.mjs && node --check packages/sdk/src/build-source/scripts/utils/*.mjs",
65
- "test": "npm run check && node scripts/form-export-cli-smoke.mjs",
65
+ "test": "npm run check && node scripts/form-export-cli-smoke.mjs && node scripts/open-api-cli-smoke.mjs",
66
66
  "prepack": "npm run build:sdk",
67
67
  "test:profile-isolation": "bash scripts/profile-isolation-smoke.sh",
68
68
  "test:resource-plan": "node scripts/resource-plan-smoke.mjs",
@@ -75,8 +75,11 @@
75
75
  "test:app-function-fallback": "node scripts/app-function-source-fallback-smoke.mjs",
76
76
  "test:runtime-deploy": "node scripts/runtime-deploy-smoke.mjs",
77
77
  "test:sdd": "node scripts/sdd-smoke.mjs",
78
+ "test:open-api": "node scripts/open-api-cli-smoke.mjs",
78
79
  "test:skill-install": "bash scripts/skill-install-smoke.sh",
79
- "test:workspace-init": "bash scripts/workspace-init-smoke.sh"
80
+ "test:workspace-init": "bash scripts/workspace-init-smoke.sh",
81
+ "open-api:sync": "node scripts/sync-dingtalk-openapi.mjs",
82
+ "open-api:verify": "node scripts/sync-dingtalk-openapi.mjs --check"
80
83
  },
81
84
  "dependencies": {
82
85
  "@ant-design/cssinjs": "^1.23.0",
@@ -4659,7 +4659,8 @@ var useFilePreviewController = ({
4659
4659
  );
4660
4660
  url = typeof ticket === "string" ? ticket : ticket?.downloadUrl || ticket?.relayUrl || ticket?.url || url;
4661
4661
  }
4662
- if (url && typeof window !== "undefined") window.location.assign(url);
4662
+ const resolvedUrl = resolvePreviewServiceUrl(url);
4663
+ if (resolvedUrl && typeof window !== "undefined") window.location.assign(resolvedUrl);
4663
4664
  },
4664
4665
  [api, bucketName]
4665
4666
  );