@simplysm/sd-cli 13.0.93 → 13.0.95

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 (64) hide show
  1. package/README.md +1 -1
  2. package/dist/capacitor/capacitor.d.ts +15 -1
  3. package/dist/capacitor/capacitor.d.ts.map +1 -1
  4. package/dist/capacitor/capacitor.js +52 -31
  5. package/dist/capacitor/capacitor.js.map +1 -1
  6. package/dist/electron/electron.d.ts +6 -2
  7. package/dist/electron/electron.d.ts.map +1 -1
  8. package/dist/electron/electron.js +12 -6
  9. package/dist/electron/electron.js.map +1 -1
  10. package/dist/orchestrators/DevOrchestrator.d.ts.map +1 -1
  11. package/dist/orchestrators/DevOrchestrator.js +16 -0
  12. package/dist/orchestrators/DevOrchestrator.js.map +1 -1
  13. package/dist/sd-cli-entry.d.ts.map +1 -1
  14. package/dist/sd-cli-entry.js +4 -1
  15. package/dist/sd-cli-entry.js.map +1 -1
  16. package/dist/utils/esbuild-config.d.ts +2 -0
  17. package/dist/utils/esbuild-config.d.ts.map +1 -1
  18. package/dist/utils/esbuild-config.js +86 -6
  19. package/dist/utils/esbuild-config.js.map +1 -1
  20. package/dist/utils/package-utils.d.ts.map +1 -1
  21. package/dist/utils/package-utils.js +7 -0
  22. package/dist/utils/package-utils.js.map +1 -1
  23. package/dist/utils/replace-deps.d.ts.map +1 -1
  24. package/dist/utils/replace-deps.js +17 -0
  25. package/dist/utils/replace-deps.js.map +1 -1
  26. package/dist/utils/worker-utils.d.ts +9 -1
  27. package/dist/utils/worker-utils.d.ts.map +1 -1
  28. package/dist/utils/worker-utils.js +7 -0
  29. package/dist/utils/worker-utils.js.map +1 -1
  30. package/dist/workers/client.worker.d.ts.map +1 -1
  31. package/dist/workers/client.worker.js +2 -1
  32. package/dist/workers/client.worker.js.map +1 -1
  33. package/dist/workers/dts.worker.d.ts.map +1 -1
  34. package/dist/workers/dts.worker.js +2 -1
  35. package/dist/workers/dts.worker.js.map +1 -1
  36. package/dist/workers/library.worker.d.ts.map +1 -1
  37. package/dist/workers/library.worker.js +2 -1
  38. package/dist/workers/library.worker.js.map +1 -1
  39. package/dist/workers/server-runtime.worker.d.ts.map +1 -1
  40. package/dist/workers/server-runtime.worker.js +31 -2
  41. package/dist/workers/server-runtime.worker.js.map +1 -1
  42. package/dist/workers/server.worker.d.ts.map +1 -1
  43. package/dist/workers/server.worker.js +144 -4
  44. package/dist/workers/server.worker.js.map +1 -1
  45. package/package.json +4 -4
  46. package/src/capacitor/capacitor.ts +59 -31
  47. package/src/electron/electron.ts +13 -6
  48. package/src/orchestrators/DevOrchestrator.ts +16 -0
  49. package/src/sd-cli-entry.ts +4 -1
  50. package/src/utils/esbuild-config.ts +86 -6
  51. package/src/utils/package-utils.ts +8 -0
  52. package/src/utils/replace-deps.ts +20 -0
  53. package/src/utils/worker-utils.ts +14 -1
  54. package/src/workers/client.worker.ts +3 -1
  55. package/src/workers/dts.worker.ts +3 -1
  56. package/src/workers/library.worker.ts +3 -1
  57. package/src/workers/server-runtime.worker.ts +34 -2
  58. package/src/workers/server.worker.ts +165 -3
  59. package/templates/init/package.json.hbs +3 -3
  60. package/templates/init/packages/client-admin/package.json.hbs +7 -7
  61. package/templates/init/packages/db-main/package.json.hbs +2 -2
  62. package/templates/init/packages/server/package.json.hbs +5 -5
  63. package/templates/init/tests-e2e/package.json.hbs +1 -1
  64. package/tests/capacitor.spec.ts +49 -0
@@ -19,9 +19,9 @@
19
19
  "postinstall": "playwright install && playwright-cli install --skills"
20
20
  },
21
21
  "devDependencies": {
22
- "@simplysm/lint": "~13.0.93",
23
- "@simplysm/sd-cli": "~13.0.93",
24
- "@simplysm/sd-claude": "~13.0.93",
22
+ "@simplysm/lint": "~13.0.95",
23
+ "@simplysm/sd-cli": "~13.0.95",
24
+ "@simplysm/sd-claude": "~13.0.95",
25
25
  "@types/node": "^20.19.37",
26
26
  "eslint": "^9.39.4",
27
27
  "prettier": "^3.8.1",
@@ -6,13 +6,13 @@
6
6
  "private": true,
7
7
  "dependencies": {
8
8
  "@{{projectName}}/db-main": "workspace:*",
9
- "@simplysm/core-browser": "~13.0.93",
10
- "@simplysm/core-common": "~13.0.93",
11
- "@simplysm/excel": "~13.0.93",
12
- "@simplysm/orm-common": "~13.0.93",
13
- "@simplysm/service-client": "~13.0.93",
14
- "@simplysm/service-common": "~13.0.93",
15
- "@simplysm/solid": "~13.0.93",
9
+ "@simplysm/core-browser": "~13.0.95",
10
+ "@simplysm/core-common": "~13.0.95",
11
+ "@simplysm/excel": "~13.0.95",
12
+ "@simplysm/orm-common": "~13.0.95",
13
+ "@simplysm/service-client": "~13.0.95",
14
+ "@simplysm/service-common": "~13.0.95",
15
+ "@simplysm/solid": "~13.0.95",
16
16
  "@solid-primitives/event-listener": "^2.4.5",
17
17
  "@solidjs/router": "^0.15.4",
18
18
  "@tabler/icons-solidjs": "^3.40.0",
@@ -7,7 +7,7 @@
7
7
  ".": "./src/index.ts"
8
8
  },
9
9
  "dependencies": {
10
- "@simplysm/core-common": "~13.0.93",
11
- "@simplysm/orm-common": "~13.0.93"
10
+ "@simplysm/core-common": "~13.0.95",
11
+ "@simplysm/orm-common": "~13.0.95"
12
12
  }
13
13
  }
@@ -5,11 +5,11 @@
5
5
  "private": true,
6
6
  "dependencies": {
7
7
  "@{{projectName}}/db-main": "workspace:*",
8
- "@simplysm/core-common": "~13.0.93",
9
- "@simplysm/excel": "~13.0.93",
10
- "@simplysm/orm-common": "~13.0.93",
11
- "@simplysm/orm-node": "~13.0.93",
12
- "@simplysm/service-server": "~13.0.93",
8
+ "@simplysm/core-common": "~13.0.95",
9
+ "@simplysm/excel": "~13.0.95",
10
+ "@simplysm/orm-common": "~13.0.95",
11
+ "@simplysm/orm-node": "~13.0.95",
12
+ "@simplysm/service-server": "~13.0.95",
13
13
  "bcrypt": "^6.0.0",
14
14
  "pg": "^8.20.0",
15
15
  "pg-copy-streams": "^7.0.0"
@@ -6,7 +6,7 @@
6
6
  "private": true,
7
7
  "dependencies": {
8
8
  "@{{projectName}}/db-main": "workspace:*",
9
- "@simplysm/orm-node": "~13.0.93",
9
+ "@simplysm/orm-node": "~13.0.95",
10
10
  "bcrypt": "^6.0.0",
11
11
  "playwright": "^1.58.2"
12
12
  },
@@ -0,0 +1,49 @@
1
+ import { describe, expect, it, vi } from "vitest";
2
+
3
+ vi.mock("@simplysm/core-node", () => ({
4
+ fsx: {
5
+ readJson: vi.fn().mockResolvedValue({ name: "test", version: "1.0.0" }),
6
+ },
7
+ }));
8
+
9
+ vi.mock("consola", () => {
10
+ const withTag = () => ({ debug: vi.fn(), warn: vi.fn() });
11
+ const consola = { withTag };
12
+ return { default: consola, consola };
13
+ });
14
+
15
+ vi.mock("sharp", () => ({ default: vi.fn() }));
16
+ vi.mock("execa", () => ({ execa: vi.fn() }));
17
+
18
+ import { Capacitor } from "../src/capacitor/capacitor";
19
+
20
+ describe("Capacitor appName validation", () => {
21
+ const createConfig = (appName: string) => ({
22
+ appId: "com.test.app",
23
+ appName,
24
+ });
25
+
26
+ it("한글 포함 앱 이름을 허용해야 한다", async () => {
27
+ await expect(
28
+ Capacitor.create("/tmp", createConfig("AD-TEK 기업솔루션")),
29
+ ).resolves.toBeDefined();
30
+ });
31
+
32
+ it("ASCII 앱 이름을 허용해야 한다", async () => {
33
+ await expect(
34
+ Capacitor.create("/tmp", createConfig("My App-1")),
35
+ ).resolves.toBeDefined();
36
+ });
37
+
38
+ it("파일명 위험 특수문자를 거부해야 한다", async () => {
39
+ await expect(
40
+ Capacitor.create("/tmp", createConfig("App<script>")),
41
+ ).rejects.toThrow("invalid characters");
42
+ });
43
+
44
+ it("빈 문자열을 거부해야 한다", async () => {
45
+ await expect(
46
+ Capacitor.create("/tmp", createConfig("")),
47
+ ).rejects.toThrow("appName is required");
48
+ });
49
+ });