@swipt/cli 0.1.0-nightly.94 → 0.1.0-nightly.97

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 (106) hide show
  1. package/dist/cli/cli.js +1 -1
  2. package/dist/cli/cli.js.map +1 -1
  3. package/dist/cli/commands/data/read.js +4 -6
  4. package/dist/cli/commands/data/read.js.map +1 -1
  5. package/dist/cli/commands/device/stop.js +3 -3
  6. package/dist/cli/commands/device/stop.js.map +1 -1
  7. package/dist/cli/commands/driver/driver.js +28 -0
  8. package/dist/cli/commands/driver/driver.js.map +1 -0
  9. package/dist/cli/commands/driver/index.js +1 -0
  10. package/dist/cli/commands/flags.js +8 -7
  11. package/dist/cli/commands/flags.js.map +1 -1
  12. package/dist/cli/commands/index.js +3 -0
  13. package/dist/cli/commands/index.js.map +1 -1
  14. package/dist/cli/commands/project/create.js +2 -2
  15. package/dist/cli/commands/project/create.js.map +1 -1
  16. package/dist/cli/commands/project/source.js +10 -9
  17. package/dist/cli/commands/project/source.js.map +1 -1
  18. package/dist/cli/commands/swiplet/remove.js +1 -1
  19. package/dist/cli/commands/swiplet/remove.js.map +1 -1
  20. package/dist/client.js +27 -6
  21. package/dist/client.js.map +1 -1
  22. package/dist/connection.d.ts +3 -1
  23. package/dist/connection.js +41 -52
  24. package/dist/connection.js.map +1 -1
  25. package/dist/directories.d.ts +2 -0
  26. package/dist/directories.js +9 -0
  27. package/dist/directories.js.map +1 -0
  28. package/dist/driver.d.ts +39 -0
  29. package/dist/driver.js +199 -0
  30. package/dist/driver.js.map +1 -0
  31. package/dist/i18n.d.ts +1 -1
  32. package/dist/i18n.js +43 -7
  33. package/dist/i18n.js.map +1 -1
  34. package/dist/mdns.d.ts +7 -0
  35. package/dist/mdns.js +44 -0
  36. package/dist/mdns.js.map +1 -0
  37. package/dist/output.js +6 -6
  38. package/dist/output.js.map +1 -1
  39. package/dist/passcode.d.ts +9 -0
  40. package/dist/passcode.js +81 -0
  41. package/dist/passcode.js.map +1 -0
  42. package/dist/project.js +38 -32
  43. package/dist/project.js.map +1 -1
  44. package/dist/serve.d.ts +1 -0
  45. package/dist/serve.js +124 -0
  46. package/dist/serve.js.map +1 -0
  47. package/dist/sideload.d.ts +0 -1
  48. package/dist/sideload.js +82 -340
  49. package/dist/sideload.js.map +1 -1
  50. package/dist/swipt-app.d.ts +14 -0
  51. package/dist/swipt-app.js +51 -0
  52. package/dist/swipt-app.js.map +1 -0
  53. package/locales/ar.json +52 -28
  54. package/locales/bg.json +58 -34
  55. package/locales/bn.json +49 -25
  56. package/locales/ca.json +55 -31
  57. package/locales/cs.json +55 -31
  58. package/locales/da.json +50 -26
  59. package/locales/de.json +50 -26
  60. package/locales/el.json +60 -36
  61. package/locales/es-419.json +51 -27
  62. package/locales/es.json +51 -27
  63. package/locales/fi.json +51 -27
  64. package/locales/fr-CA.json +53 -29
  65. package/locales/fr.json +56 -32
  66. package/locales/gu.json +69 -45
  67. package/locales/he.json +51 -27
  68. package/locales/hi.json +50 -26
  69. package/locales/hr.json +51 -27
  70. package/locales/hu.json +62 -38
  71. package/locales/id.json +50 -26
  72. package/locales/it.json +69 -45
  73. package/locales/ja.json +50 -26
  74. package/locales/kk.json +49 -25
  75. package/locales/kn.json +49 -25
  76. package/locales/ko.json +79 -55
  77. package/locales/lt.json +50 -26
  78. package/locales/ml.json +49 -25
  79. package/locales/mr.json +56 -32
  80. package/locales/ms.json +50 -26
  81. package/locales/nb.json +50 -26
  82. package/locales/nl.json +56 -32
  83. package/locales/or.json +50 -26
  84. package/locales/pa.json +49 -25
  85. package/locales/pl.json +68 -44
  86. package/locales/pt-BR.json +51 -27
  87. package/locales/pt-PT.json +52 -28
  88. package/locales/ro.json +52 -28
  89. package/locales/ru.json +54 -30
  90. package/locales/sk.json +80 -56
  91. package/locales/sl.json +50 -26
  92. package/locales/sv.json +52 -28
  93. package/locales/ta.json +49 -25
  94. package/locales/te.json +49 -25
  95. package/locales/th.json +54 -30
  96. package/locales/tr.json +50 -26
  97. package/locales/uk.json +53 -29
  98. package/locales/ur.json +49 -25
  99. package/locales/vi.json +49 -25
  100. package/locales/zh-HK.json +54 -30
  101. package/locales/zh-Hans.json +54 -30
  102. package/locales/zh-Hant.json +60 -36
  103. package/package.json +13 -4
  104. package/dist/coredevice.d.ts +0 -22
  105. package/dist/coredevice.js +0 -329
  106. package/dist/coredevice.js.map +0 -1
@@ -9,18 +9,20 @@
9
9
  "\"swiplet.name\" in package.json must be a nonempty string.": "package.json 中的 \"swiplet.name\" 必須是非空字串。",
10
10
  "\"swiplet.versionCode\" in package.json must be a positive integer.": "package.json 中的 \"swiplet.versionCode\" 必須是正整數。",
11
11
  "\"{field}\" in package.json must be a string.": "package.json 中的 \"{field}\" 必須是字串。",
12
- "(offline)": "(離線)",
13
12
  "--input isn't JSON: {error}": "--input 不是 JSON:{error}",
14
13
  "--level is error, warn, info or debug": "--level 只能是 error、warn、info 或 debug",
14
+ "--token and --random-token can't be used together.": "--token 和 --random-token 不能同時使用。",
15
15
  "4 or 6 digit passcode": "4 或 6 位數字密碼",
16
16
  "4 or 6 digits": "4 或 6 位數",
17
17
  "A command is missing.": "缺少指令。",
18
18
  "A numeric passcode is digits only.": "數字密碼只能包含數字。",
19
19
  "A passcode is up to 64 printable ASCII characters.": "密碼最多包含 64 個可列印的 ASCII 字元。",
20
20
  "A pin passcode is 4 or 6 digits; a custom one needs --passcode-type numeric or alphanumeric": "pin 密碼為 4 或 6 位數字;自訂密碼需要 --passcode-type numeric 或 alphanumeric",
21
+ "A token is one or more printable ASCII characters without spaces.": "權杖由一個或多個可列印的 ASCII 字元組成,不含空格。",
21
22
  "ACTIONS": "動作",
22
23
  "API level {level}": "API 等級 {level}",
23
- "Add a device by its URL; needed when it's remote or requires a token": "透過 URL 加入裝置;裝置位於遠端或需要權杖時必須這樣做",
24
+ "Add a device by its URL; needed when it's remote or requires a token": "透過 URL 加入裝置;遠端裝置或需要權杖的裝置需要這樣加入",
25
+ "Apple Mobile Device Service isn't running; install Apple Devices from the Microsoft Store": "Apple Mobile Device Service 未在執行;請從 Microsoft Store 安裝「Apple 裝置」App",
24
26
  "Argument {index} of require.context must be a regular expression literal.": "require.context 的第 {index} 個引數必須是正規表示式字面值。",
25
27
  "Argument {index} of require.context must be {expected}": "require.context 的第 {index} 個引數必須是 {expected}",
26
28
  "Build the project and install it on the device": "建置專案並安裝到裝置上",
@@ -28,13 +30,14 @@
28
30
  "Bundle the project into dist/<swiplet.id>.swiplet": "將專案打包為 dist/<swiplet.id>.swiplet",
29
31
  "CODE is an expression whose value is printed. FILE, or standard input given as - or no argument, is a program, and only its console output is printed.": "CODE 是運算式,會輸出其值。FILE 或標準輸入(傳入 - 或不傳入引數)是程式,只會輸出其主控台內容。",
30
32
  "Call a swiplet action": "呼叫 Swiplet 動作",
33
+ "Cancel": "取消",
31
34
  "Check these with available(), mark the code that uses them with @available, or raise \"swiplet.minimumAPILevel\" or \"swiplet.minimumIOSVersion\" in package.json.": "請使用 available() 檢查這些項目、使用 @available 標記使用它們的程式碼,或提高 package.json 中的 \"swiplet.minimumAPILevel\" 或 \"swiplet.minimumIOSVersion\"。",
32
35
  "Choose a device": "選擇裝置",
33
36
  "Choose a device with -d NAME|UDID": "請使用 -d NAME|UDID 選擇裝置",
34
37
  "Choose a team": "選擇團隊",
35
38
  "Choose a team with --team ID:": "請使用 --team ID 選擇團隊:",
36
39
  "Collect the built swiplets into dist/ with a swiplets.json": "將已建置的 Swiplet 收集到 dist/,並產生 swiplets.json",
37
- "CoreDevice can't reach the device while its loopback VPN is on; turn off Swipt's VPN on the device, then run this again.": "回送 VPN 開啟時,CoreDevice 無法連線至裝置;請關閉裝置上 Swipt 的 VPN,然後重新執行。",
40
+ "Ctrl-C stops the driver.": "按下 Ctrl-C 可停止驅動程式。",
38
41
  "Custom alphanumeric passcode": "自訂英數密碼",
39
42
  "Custom numeric passcode": "自訂數字密碼",
40
43
  "Device passcode": "裝置密碼",
@@ -42,17 +45,18 @@
42
45
  "Downgrade Swipt on {device} from nightly {version} to stable {releaseVersion}? Swipt resets its data when the earlier version can't read it.": "要將 {device} 上的 Swipt 從 nightly 版本 {version} 降級至穩定版本 {releaseVersion} 嗎?舊版本無法讀取資料時,Swipt 會重設其資料。",
43
46
  "Downgrade Swipt on {device} from {version} to {releaseVersion}? Swipt resets its data when the earlier version can't read it.": "要將 {device} 上的 Swipt 從 {version} 降級至 {releaseVersion} 嗎?舊版本無法讀取資料時,Swipt 會重設其資料。",
44
47
  "Enter the passcode.": "請輸入密碼。",
45
- "Every paired iPhone and iPad is offline; {hint}:": "所有已配對的 iPhone 和 iPad 都已離線;{hint}:",
46
48
  "Forget a device": "忘記裝置",
47
49
  "ID": "ID",
48
50
  "Install Swipt": "安裝 Swipt",
49
51
  "Install a swiplet archive": "安裝 Swiplet 封存檔",
50
- "It opens after {device} is unlocked.": "{device} 解鎖後就會打開。",
51
- "Its developer isn't trusted yet; trust it in the Settings page opened on {device}, then open Swipt.": "尚未信任其開發者;請在 {device} 上打開的「設定」頁面中信任,然後打開 Swipt。",
52
+ "Installing or updating Swipt needs macOS; install it from a Mac, then set it up here with \"swipt sideload setup\".": "安裝或更新 Swipt 需要 macOS;請在 Mac 上安裝,然後在此使用 \"swipt sideload setup\" 設定。",
53
+ "It opens after {device} is unlocked.": "{device} 解鎖後就會開啟。",
54
+ "Its developer isn't trusted yet; trust it in the Settings page opened on {device}, then open Swipt.": "尚未信任其開發者;請在 {device} 上開啟的「設定」頁面中信任,然後開啟 Swipt。",
52
55
  "Its signing expires {expiration}.": "簽署將於 {expiration}到期。",
53
56
  "List data files": "列出資料檔案",
54
57
  "List the devices, adding the ones found on the local network": "列出裝置,並加入在區域網路上找到的裝置",
55
58
  "List the swiplets": "列出 Swiplet",
59
+ "Local network": "區域網路",
56
60
  "Make a swiplet project in a new or empty directory": "在新目錄或空目錄中建立 Swiplet 專案",
57
61
  "Make, build and deploy swiplet projects": "建立、建置和部署 Swiplet 專案",
58
62
  "Manage swiplet services": "管理 Swiplet 服務",
@@ -63,12 +67,14 @@
63
67
  "More than one iPhone or iPad is named {name}; choose one by UDID": "有多部 iPhone 或 iPad 名為 {name};請透過 UDID 選擇",
64
68
  "No Thanks": "不用了,謝謝",
65
69
  "No device publishes Swipt on the local network; turn on Swipt › Developer › Local Network, or connect one with \"swipt device add URL\".": "區域網路上沒有裝置發佈 Swipt;請開啟「Swipt」>「開發者」>「區域網路」,或使用 \"swipt device add URL\" 連線裝置。",
70
+ "No iPhone or iPad is connected to this computer or found on the local network; connect one with a USB cable and unlock it.": "沒有 iPhone 或 iPad 連接到此電腦,在區域網路上也找不到;請以 USB 連接線連接裝置並解鎖。",
66
71
  "No iPhone or iPad is named {name}": "沒有名為 {name} 的 iPhone 或 iPad",
67
- "No iPhone or iPad is paired with this Mac; connect one with a USB cable, unlock it, and trust this Mac.": "沒有 iPhone 或 iPad 與此 Mac 配對;請以 USB 連接裝置、解鎖,並信任此 Mac。",
72
+ "Only one can control the device at a time: Swipt on it, or the driver on one computer.": "同一時間只能有一方控制裝置:裝置上的 Swipt,或一台電腦上的驅動程式。",
68
73
  "Pairing failed, so Swipt pairs in Settings instead: {error}": "配對失敗,Swipt 將改為在「設定」中配對:{error}",
69
74
  "Print the TypeScript declarations of the globals and modules": "輸出全域變數和模組的 TypeScript 宣告",
70
75
  "Print the logs": "輸出記錄",
71
76
  "Print the version": "輸出版本",
77
+ "Quit Swipt": "結束 Swipt",
72
78
  "Read a data file or directory": "讀取資料檔案或目錄",
73
79
  "Remove Swipt": "移除 Swipt",
74
80
  "Remove a data file": "移除資料檔案",
@@ -80,18 +86,20 @@
80
86
  "Run a JavaScript expression or program on the device": "在裝置上執行 JavaScript 運算式或程式",
81
87
  "SERVICE": "服務",
82
88
  "STATUS": "狀態",
89
+ "Serve the Swipt API and MCP for a device from this computer": "從此電腦為裝置提供 Swipt API 和 MCP",
83
90
  "Set up Swipt": "設定 Swipt",
84
91
  "Set up auto-unlock? Swipt can then unlock this device by itself.": "要設定自動解鎖嗎?設定後 Swipt 可以自行解鎖此裝置。",
85
92
  "Show a swiplet": "顯示 Swiplet",
86
93
  "Sideload Swipt": "側載 Swipt",
87
- "Stop the Swipt server": "停止 Swipt 伺服器",
94
+ "Stop serving the Swipt API": "停止提供 Swipt API",
95
+ "Stop the driver on {computer}": "停止 {computer} 上的驅動程式",
88
96
  "Swipt CLI": "Swipt 命令列工具",
89
97
  "Swipt at {url} doesn't have this command; update Swipt.": "{url} 上的 Swipt 沒有此指令;請更新 Swipt。",
90
98
  "Swipt at {url} is unreachable: {message}": "無法連線至 {url} 上的 Swipt:{message}",
91
99
  "Swipt doesn't provide \"{module}\" to extensions; bundle it into extension.js.": "Swipt 未向延伸功能提供 \"{module}\";請將其打包至 extension.js。",
92
100
  "Swipt is sideloaded on {device} by more than one team; choose one with --team ID:": "多個團隊在 {device} 上側載了 Swipt;請使用 --team ID 選擇一個:",
93
- "Swipt isn't sideloaded on any online iPhone or iPad.": "所有線上的 iPhone 和 iPad 都未側載 Swipt。",
94
- "Swipt isn't sideloaded on any online iPhone or iPad; install it with \"swipt sideload install\".": "所有線上的 iPhone 和 iPad 都未側載 Swipt;請使用 \"swipt sideload install\" 安裝。",
101
+ "Swipt isn't sideloaded on any iPhone or iPad.": "所有 iPhone 和 iPad 都未側載 Swipt。",
102
+ "Swipt isn't sideloaded on any iPhone or iPad; install it with \"swipt sideload install\".": "所有 iPhone 和 iPad 都未側載 Swipt;請使用 \"swipt sideload install\" 安裝。",
95
103
  "Swipt isn't sideloaded on {device} by team {team}.": "團隊 {team} 未在 {device} 上側載 Swipt。",
96
104
  "Swipt isn't sideloaded on {device} by team {team}; install it with \"swipt sideload install\".": "團隊 {team} 未在 {device} 上側載 Swipt;請使用 \"swipt sideload install\" 安裝。",
97
105
  "Swipt isn't sideloaded on {device}.": "{device} 上未側載 Swipt。",
@@ -99,16 +107,23 @@
99
107
  "TITLE": "標題",
100
108
  "The action {action} can only expose itself to \"shortcuts\".": "動作 {action} 只能向 \"shortcuts\" 公開。",
101
109
  "The action {action} needs a title.": "動作 {action} 需要標題。",
102
- "The database": "資料庫",
110
+ "The database is used while extension.js loads; use it inside run or an action.": "extension.js 載入期間使用了資料庫;請在 run 或動作內使用。",
111
+ "The driver can't control {device} while Swipt is running on it. Quit Swipt?": "Swipt 正在 {device} 上執行,驅動程式無法控制該裝置。要結束 Swipt 嗎?",
112
+ "The driver can't control {device} while Swipt is running on it; quit Swipt first.": "Swipt 正在 {device} 上執行,驅動程式無法控制該裝置;請先結束 Swipt。",
113
+ "The driver is already running on this computer; stop it first.": "驅動程式已在此電腦上執行;請先停止它。",
114
+ "The driver is missing; install it with \"npm install -g @swipt/cli --include=optional\".": "缺少驅動程式;請使用 \"npm install -g @swipt/cli --include=optional\" 安裝。",
115
+ "The driver on {computer} already serves {device}. Stop that driver?": "{computer} 上的驅動程式已在為 {device} 提供服務。要停止該驅動程式嗎?",
116
+ "The driver on {computer} already serves {device}; stop that driver first.": "{computer} 上的驅動程式已在為 {device} 提供服務;請先停止該驅動程式。",
117
+ "The driver on {computer} didn't stop.": "{computer} 上的驅動程式未能停止。",
103
118
  "The extension defines different actions depending on available(); define the same actions on every system and check available() inside run or an action.": "延伸功能會依 available() 定義不同的動作;請在所有系統上定義相同的動作,並在 run 或動作內檢查 available()。",
104
119
  "The extension's default export isn't the result of defineExtension.": "延伸功能的預設匯出不是 defineExtension 的結果。",
105
120
  "The first argument is FILE when it names an existing file and CODE otherwise; options go before it.": "第一個引數指向現有檔案時視為 FILE,否則視為 CODE;選項要放在它之前。",
106
- "The interface imports {file} at runtime; import its type with `import type`.": "介面在執行階段載入了 {file};請改用 `import type` 取得其類型。",
121
+ "The interface imports {file} at runtime; import its type with `import type`.": "介面在執行階段匯入了 {file};請使用 `import type` 匯入其類型。",
107
122
  "The project has react-native-worklets {version}, but Swipt runs {expected}; install react-native-worklets@{expected} or remove it.": "專案使用 react-native-worklets {version},但 Swipt 執行的是 {expected};請安裝 react-native-worklets@{expected} 或將其移除。",
108
- "The storage": "儲存空間",
123
+ "The storage is used while extension.js loads; use it inside run or an action.": "extension.js 載入期間使用了儲存空間;請在 run 或動作內使用。",
109
124
  "The {side} schema of the action {action} doesn't implement Standard JSON Schema; use a library that does, such as Zod 4.": "動作 {action} 的 {side} 結構描述未實作 Standard JSON Schema;請使用已實作它的程式庫,例如 Zod 4。",
110
125
  "There is more than one device: {devices}; choose one with -d": "有多部裝置:{devices};請使用 -d 選擇一部",
111
- "There is no archive at {path}": "{path} 沒有封存檔",
126
+ "There is no archive at {path}": "{path} 處沒有封存檔",
112
127
  "There is no device {device}.": "沒有裝置 {device}。",
113
128
  "There is no device {device}; \"swipt device list\" lists them.": "沒有裝置 {device};執行 \"swipt device list\" 可列出裝置。",
114
129
  "There is no device; turn on Swipt › Developer › Local Network, or connect one with \"swipt device add URL\".": "沒有裝置;請開啟「Swipt」>「開發者」>「區域網路」,或使用 \"swipt device add URL\" 連線裝置。",
@@ -125,8 +140,20 @@
125
140
  "Xcode has no account for team {team}; sign in to its Apple Account at {accounts}.": "Xcode 沒有團隊 {team} 的帳號;請在 {accounts} 中以其 Apple 帳號登入。",
126
141
  "Xcode has no account; sign in at {accounts}, or choose a team with --team ID": "Xcode 沒有帳號;請在 {accounts} 中登入,或使用 --team ID 選擇團隊",
127
142
  "Xcode has no development certificate; add one at {accounts} › Manage Certificates, or choose a team with --team ID": "Xcode 沒有開發憑證;請在 {accounts} › Manage Certificates 中加入,或使用 --team ID 選擇團隊",
128
- "Xcode is missing; install it from the App Store, open it once, and select it with xcode-select": "缺少 Xcode;請從 App Store 安裝,打開一次,然後使用 xcode-select 選擇",
143
+ "[Swiplet] removed {name}": "已移除 {name}",
144
+ "[device connection] connecting": "連線中",
145
+ "[device connection] failed": "失敗",
146
+ "[device connection] preparing": "準備中",
147
+ "[device connection] running": "已連線",
148
+ "[device connection] stopped": "已停止",
149
+ "[device] removed {name}": "已移除 {name}",
129
150
  "[input is masked]": "[輸入內容已隱藏]",
151
+ "[service] failed": "失敗",
152
+ "[service] running": "執行中",
153
+ "[service] starting": "啟動中",
154
+ "[service] stopped": "已停止",
155
+ "[service] turned off": "已關閉",
156
+ "[service] turned on": "已開啟",
130
157
  "a Boolean": "布林值",
131
158
  "a string": "字串",
132
159
  "accepts at least {count} args, received {received}": "至少需要 {count} 個引數,收到 {received} 個",
@@ -138,20 +165,19 @@
138
165
  "built in {elapsed}; nothing changed": "已在 {elapsed} 內完成建置;沒有任何變更",
139
166
  "checking Swipt on {device}": "正在檢查 {device} 上的 Swipt",
140
167
  "checking the latest release": "正在檢查最新版本",
168
+ "checking {device}": "正在檢查 {device}",
141
169
  "commands:": "指令:",
142
- "connecting": "連線中",
143
170
  "couldn't prepare the Developer Disk Image on {device}: {error}": "無法準備 {device} 上的開發者磁碟映像檔:{error}",
144
171
  "destination": "目的位置",
145
172
  "developer mode off": "開發者模式已關閉",
146
173
  "device unsupported": "不支援此裝置",
147
- "disk image missing": "沒有磁碟映像檔",
148
- "disk image mount failed": "無法裝載磁碟映像檔",
174
+ "disk image missing": "缺少磁碟映像檔",
175
+ "disk image mount failed": "磁碟映像檔裝載失敗",
149
176
  "don't pair Swipt": "不配對 Swipt",
150
177
  "don't pair Swipt, trust its developer or publish its API": "不配對 Swipt、不信任其開發者,也不發佈其 API",
151
178
  "don't publish the API to the local network": "不向區域網路發佈 API",
152
179
  "downloading Swipt {version} ({build}) from {release}": "正在從 {release} 下載 Swipt {version}({build})",
153
180
  "error: {message}": "錯誤:{message}",
154
- "failed": "失敗",
155
181
  "follow new entries": "持續顯示新項目",
156
182
  "help": "輔助說明",
157
183
  "image directory (default: a new temporary directory)": "影像目錄(預設:新的暫存目錄)",
@@ -168,52 +194,52 @@
168
194
  "invalid argument {value} for {option}: it's a number": "{option} 的引數 {value} 無效:應為數字",
169
195
  "looking for Swipt on the devices": "正在裝置上尋找 Swipt",
170
196
  "looking for devices": "正在尋找裝置",
171
- "maximum age": "最長時間範圍",
197
+ "maximum age": "最長回溯時間",
172
198
  "minimum level (default info)": "最低等級(預設 info)",
173
199
  "navigate": "移動",
174
200
  "number of past entries (default 100)": "過去項目數量(預設 100)",
175
201
  "numeric": "數字",
176
202
  "offline": "離線",
177
203
  "one of {values}": "{values} 其中之一",
178
- "opening Settings on {device}": "正在打開 {device} 上的「設定」",
179
- "opening Swipt on {device}": "正在打開 {device} 上的 Swipt",
204
+ "opening Settings on {device}": "正在開啟 {device} 上的「設定」",
205
+ "opening Swipt on {device}": "正在開啟 {device} 上的 Swipt",
180
206
  "options:": "選項:",
181
207
  "output: {schema}": "輸出:{schema}",
182
208
  "package.json lists no workspaces with swiplets; name the swiplets to list.": "package.json 未列出包含 Swiplet 的工作區;請指定要列出的 Swiplet。",
183
209
  "pairing rejected": "配對遭拒",
184
210
  "pairing with {device}": "正在與 {device} 配對",
211
+ "passcode to unlock the device automatically; empty turns that off": "用於自動解鎖裝置的密碼;留空則關閉自動解鎖",
185
212
  "pin (4 or 6 digits, default), numeric or alphanumeric": "pin(4 或 6 位數字,預設)、numeric 或 alphanumeric",
186
- "preparing": "準備中",
187
213
  "preparing signing for Swipt with team {team} through Xcode": "正在透過 Xcode 以團隊 {team} 為 Swipt 準備簽署",
188
214
  "preparing the Developer Disk Image on {device}": "正在準備 {device} 上的開發者磁碟映像檔",
215
+ "quitting Swipt on {device}": "正在結束 {device} 上的 Swipt",
189
216
  "re-signing Swipt": "正在重新簽署 Swipt",
190
217
  "removed {build} from {device}": "已從 {device} 移除 {build}",
191
- "removed {name}": "已移除 {name}",
192
218
  "removing Swipt from {device}": "正在從 {device} 移除 Swipt",
193
219
  "replaced {id} {version}": "已取代 {id} {version}",
220
+ "require a random token from API clients": "要求 API 用戶端提供隨機權杖",
221
+ "require this token from API clients": "要求 API 用戶端提供此權杖",
194
222
  "requires a token": "需要權杖",
195
- "running": "執行中",
196
223
  "saved {count} files to {path}": "已將 {count} 個檔案儲存至 {path}",
197
224
  "screen in use": "螢幕使用中",
198
225
  "select": "選擇",
199
226
  "service: {status}": "服務:{status}",
200
227
  "set up auto-unlock with this passcode": "使用此密碼設定自動解鎖",
201
228
  "setting up auto-unlock": "正在設定自動解鎖",
202
- "starting": "啟動中",
229
+ "starting the driver for {device}": "正在為 {device} 啟動驅動程式",
203
230
  "stopped": "已停止",
231
+ "stopping the driver on {computer}": "正在停止 {computer} 上的驅動程式",
204
232
  "swiplet ID": "Swiplet ID",
205
- "swipt-server is missing; install it with \"npm install -g @swipt/cli --include=optional\"": "缺少 swipt-server;請使用 \"npm install -g @swipt/cli --include=optional\" 安裝",
233
+ "tap Trust on {device} and enter its passcode to trust this computer": "請在 {device} 上點一下「信任」並輸入密碼,以信任此電腦",
206
234
  "team ID, required if more than one": "團隊 ID,有多個團隊時必須指定",
207
235
  "the device to use": "要使用的裝置",
208
236
  "trusting {developer} in Settings": "正在「設定」中信任 {developer}",
209
- "turned off": "已停用",
210
- "turned on": "已啟用",
211
237
  "unknown command {name} for {parent}": "{parent} 沒有指令 {name}",
212
238
  "unlock device with this passcode": "使用此密碼解鎖裝置",
213
- "unlock the device and connect it with a USB cable or the same network as this Mac": "請解鎖裝置,並透過 USB 或與此 Mac 相同的網路連接",
214
239
  "unlocking the device": "正在解鎖裝置",
215
240
  "unreachable": "無法連線",
216
241
  "usage: {usage}": "用法:{usage}",
242
+ "usbmuxd isn't running; install usbmuxd and start it": "usbmuxd 未在執行;請安裝 usbmuxd 並啟動它",
217
243
  "use nightly build": "使用 nightly 版本",
218
244
  "waiting for {device}": "正在等待 {device}",
219
245
  "watch the state": "監看狀態",
@@ -228,7 +254,7 @@
228
254
  "{build} on {device} is later than {release} ({releaseBuild}).": "{device} 上的 {build} 比 {release}({releaseBuild})更新。",
229
255
  "{build} on {device} needs new signing, but {release} ({releaseBuild}) is earlier; use --nightly, or downgrade with \"swipt sideload install --force\".": "{device} 上的 {build} 需要重新簽署,但 {release}({releaseBuild})的版本較舊;請使用 --nightly,或使用 \"swipt sideload install --force\" 降級。",
230
256
  "{developer} is trusted.": "已信任 {developer}。",
231
- "{device} is offline; {hint}.": "{device} 已離線;{hint}。",
257
+ "{device} isn't unlocked automatically; set its passcode with --passcode. Ctrl-C stops the driver.": "{device} 不會自動解鎖;請使用 --passcode 設定其密碼。按下 Ctrl-C 可停止驅動程式。",
232
258
  "{device} requires a token: swipt device add {url}": "{device} 需要權杖:swipt device add {url}",
233
259
  "{device} wasn't found on the local network; find its API URLs in Swipt › Developer › Local Network.": "在區域網路上找不到 {device};請前往「Swipt」>「開發者」>「區域網路」查看其 API URL。",
234
260
  "{device}: {message}; unlock it or pass --passcode, then run this again.": "{device}:{message};請解鎖裝置或傳入 --passcode,然後重新執行。",
@@ -236,15 +262,13 @@
236
262
  "{enabled}, {status}": "{enabled},{status}",
237
263
  "{enabled}, {status} since {time}": "{enabled},自 {time} 起{status}",
238
264
  "{file} is missing; build {directory} first.": "缺少 {file};請先建置 {directory}。",
239
- "{hint}; Swipt pairs in Settings instead.": "{hint};Swipt 將改為在「設定」中配對。",
240
- "{hint}; its developer isn't trusted automatically.": "{hint};不會自動信任其開發者。",
241
265
  "{id} is both {first} and {second}": "{id} 同時對應 {first} 和 {second}",
242
266
  "{location}: @available has \"{entry}\"; it takes \"apiLevel <level>\" and \"iOS <version>\", separated by commas.": "{location}:@available 包含 \"{entry}\";@available 接受以逗號分隔的 \"apiLevel <level>\" 和 \"iOS <version>\"。",
243
267
  "{location}: @available names {kind} twice.": "{location}:@available 兩次指定了 {kind}。",
244
- "{location}: importing {name} needs {requirement}; raise \"swiplet.minimumAPILevel\" or \"swiplet.minimumIOSVersion\" in package.json.": "{location}:載入 {name} 需要 {requirement};請提高 package.json 中的 \"swiplet.minimumAPILevel\" 或 \"swiplet.minimumIOSVersion\"。",
268
+ "{location}: importing {name} needs {requirement}; raise \"swiplet.minimumAPILevel\" or \"swiplet.minimumIOSVersion\" in package.json.": "{location}:匯入 {name} 需要 {requirement};請提高 package.json 中的 \"swiplet.minimumAPILevel\" 或 \"swiplet.minimumIOSVersion\"。",
245
269
  "{location}: {name} is an entry of the swiplet and needs {requirement}; raise \"swiplet.minimumAPILevel\" or \"swiplet.minimumIOSVersion\" in package.json.": "{location}:{name} 是 Swiplet 的進入點,需要 {requirement};請提高 package.json 中的 \"swiplet.minimumAPILevel\" 或 \"swiplet.minimumIOSVersion\"。",
246
270
  "{location}: {name} needs {requirement}.": "{location}:{name} 需要 {requirement}。",
247
- "{message}; connect with the URL from Swipt › Developer: swipt device add {url}": "{message};請使用「Swipt」>「開發者」中的 URL 連線:swipt device add {url}",
271
+ "{message}; connect with the URL that Swipt › Developer or \"swipt driver\" shows: swipt device add {url}": "{message};請使用「Swipt」>「開發者」或 \"swipt driver\" 顯示的 URL 連線:swipt device add {url}",
248
272
  "{name} is used while extension.js loads; use it inside run or an action.": "extension.js 載入期間使用了 {name};請在 run 或動作內使用。",
249
273
  "{name} works only in the swiplet interface.": "{name} 只能在 Swiplet 介面中使用。",
250
274
  "{option} isn't an option of {command}.": "{option} 不是 {command} 的選項。",
@@ -252,7 +276,7 @@
252
276
  "{path} is a directory in the data directory of {swiplet}; save it with --output DIRECTORY": "{path} 是 {swiplet} 資料目錄中的目錄;請使用 --output DIRECTORY 儲存",
253
277
  "{path} names the data directory of the REPL; save it with --output DIRECTORY": "{path} 指向 REPL 的資料目錄;請使用 --output DIRECTORY 儲存",
254
278
  "{path} names the data directory of {swiplet}; save it with --output DIRECTORY": "{path} 指向 {swiplet} 的資料目錄;請使用 --output DIRECTORY 儲存",
255
- "{reason}; paired iPhone and iPad devices:": "{reason};已配對的 iPhone 和 iPad:",
279
+ "{reason}; connected iPhone and iPad devices:": "{reason};已連接的 iPhone 和 iPad:",
256
280
  "{source} and {asset} would both be assets/{name} in the swiplet.": "{source} 和 {asset} 在 Swiplet 中都會成為 assets/{name}。",
257
281
  "{text} isn't a URL.": "{text} 不是 URL。",
258
282
  "{text} isn't an http or https URL.": "{text} 不是 http 或 https URL。"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swipt/cli",
3
- "version": "0.1.0-nightly.94",
3
+ "version": "0.1.0-nightly.97",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,6 +8,9 @@
8
8
  "directory": "cli"
9
9
  },
10
10
  "type": "module",
11
+ "engines": {
12
+ "node": "^22.13.0 || >=23.5.0"
13
+ },
11
14
  "bin": {
12
15
  "swipt": "./dist/bin/swipt.js"
13
16
  },
@@ -38,9 +41,11 @@
38
41
  "@expo/env": "^2.5.3",
39
42
  "@inquirer/password": "^5.2.5",
40
43
  "@inquirer/select": "^5.2.8",
44
+ "@swipt/developer-disk-image": "27.2.0",
41
45
  "babel-preset-expo": "~58.0.23",
42
46
  "bonjour-service": "^1.4.4",
43
47
  "esbuild": "^0.28.2",
48
+ "fflate": "^0.8.3",
44
49
  "image-size": "^2.0.4",
45
50
  "multicast-dns": "^7.2.5",
46
51
  "react-native-worklets": "0.13.0",
@@ -48,11 +53,15 @@
48
53
  "typescript": "7.0.2"
49
54
  },
50
55
  "peerDependencies": {
51
- "@swipt/api": "0.1.0-nightly.94"
56
+ "@swipt/api": "0.1.0-nightly.97"
52
57
  },
53
58
  "optionalDependencies": {
54
- "@swipt/server-darwin-arm64": "0.1.0-nightly.94",
55
- "@swipt/server-darwin-x64": "0.1.0-nightly.94"
59
+ "@swipt/driver-darwin-arm64": "0.1.0-nightly.97",
60
+ "@swipt/driver-darwin-x64": "0.1.0-nightly.97",
61
+ "@swipt/driver-linux-arm64": "0.1.0-nightly.97",
62
+ "@swipt/driver-linux-x64": "0.1.0-nightly.97",
63
+ "@swipt/driver-win32-arm64": "0.1.0-nightly.97",
64
+ "@swipt/driver-win32-x64": "0.1.0-nightly.97"
56
65
  },
57
66
  "devDependencies": {
58
67
  "@types/node": "^24.19.2",
@@ -1,22 +0,0 @@
1
- export declare function devicectl(args: any, { parse }?: {
2
- parse?: boolean;
3
- }): Promise<any>;
4
- export declare const serverHint: any;
5
- export declare function serverPath(): any;
6
- interface DeviceQuery {
7
- required?: boolean;
8
- filter?: (devices: any[]) => Promise<any[]> | any[];
9
- }
10
- export declare const apps: (device: any) => Promise<any>;
11
- export declare const lockedError: RegExp;
12
- export declare const installApp: (device: any, app: any, id: any) => Promise<any>;
13
- export declare const uninstallApp: (device: any, id: any) => Promise<any>;
14
- export declare const launchApp: (device: any, id: any, args?: any[]) => Promise<any>;
15
- export declare function terminateApp(device: any, id: any): Promise<void>;
16
- export declare const configureGuest: (device: any, id: any, name: any) => Promise<void>;
17
- export declare function coreDevice(context: any, options?: DeviceQuery): Promise<any>;
18
- export declare function containerHasFile(device: any, id: any, file: any): Promise<any>;
19
- export declare function pullFromContainer(device: any, id: any, source: any, destination: any): Promise<void>;
20
- export declare function pushToContainer(device: any, id: any, source: any, destination: any): Promise<void>;
21
- export declare const provisioningProfiles: (udid: any) => Promise<any>;
22
- export {};