@localizeaso/cli 0.1.0-preview.10 → 0.1.0-preview.4
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 +2 -7
- package/package.json +3 -3
- package/scripts/localizeaso.mjs +3 -13
- package/scripts/review-agent.mjs +1 -1
package/README.md
CHANGED
|
@@ -11,15 +11,10 @@ npx @localizeaso/cli@preview --help
|
|
|
11
11
|
For local desktop or BYO-agent use, sign in once and store a local CLI session:
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
npx @localizeaso/cli@preview whoami --json
|
|
14
|
+
localizeaso login --staging
|
|
15
|
+
localizeaso whoami --json
|
|
17
16
|
```
|
|
18
17
|
|
|
19
|
-
The LocalizeASO agent skill is installed through the Vercel Skills CLI from the
|
|
20
|
-
public LocalizeASO agent kit mirror. This package exposes the safe LocalizeASO
|
|
21
|
-
CLI and MCP bridge for Codex, OpenClaw, Cursor, and other coding-agent runtimes.
|
|
22
|
-
|
|
23
18
|
For VPS, CI, and hosted automation, prefer an explicit bearer token:
|
|
24
19
|
|
|
25
20
|
```sh
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localizeaso/cli",
|
|
3
|
-
"version": "0.1.0-preview.
|
|
3
|
+
"version": "0.1.0-preview.4",
|
|
4
4
|
"description": "LocalizeASO command-line tools for agent-assisted App Store review workflows.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"pack:dry": "npm pack --dry-run"
|
|
23
23
|
},
|
|
24
24
|
"engines": {
|
|
25
|
-
"node": ">=
|
|
25
|
+
"node": ">=22.14.0"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"codex",
|
|
37
37
|
"agents"
|
|
38
38
|
],
|
|
39
|
-
"license": "
|
|
39
|
+
"license": "UNLICENSED"
|
|
40
40
|
}
|
package/scripts/localizeaso.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { spawnSync } from 'node:child_process';
|
|
4
|
-
import { chmodSync, readFileSync,
|
|
4
|
+
import { chmodSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
|
5
5
|
import { homedir } from 'node:os';
|
|
6
6
|
import { dirname, join } from 'node:path';
|
|
7
7
|
import { fileURLToPath } from 'node:url';
|
|
@@ -1104,7 +1104,7 @@ function configuredToken(env = process.env) {
|
|
|
1104
1104
|
|
|
1105
1105
|
function stagingUrls() {
|
|
1106
1106
|
return {
|
|
1107
|
-
backend: 'https://api.staging.localizeaso.com',
|
|
1107
|
+
backend: 'https://api.staging.localizeaso.com:8787',
|
|
1108
1108
|
dashboard: 'https://dash.staging.localizeaso.com',
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
@@ -2240,17 +2240,7 @@ async function main() {
|
|
|
2240
2240
|
return runNodeScript(reviewAgentScript, mapped.args, { injectLocalDashboard: true });
|
|
2241
2241
|
}
|
|
2242
2242
|
|
|
2243
|
-
|
|
2244
|
-
const entrypoint = process.argv[1];
|
|
2245
|
-
if (!entrypoint) return false;
|
|
2246
|
-
try {
|
|
2247
|
-
return realpathSync(entrypoint) === realpathSync(fileURLToPath(import.meta.url));
|
|
2248
|
-
} catch {
|
|
2249
|
-
return import.meta.url === `file://${entrypoint}`;
|
|
2250
|
-
}
|
|
2251
|
-
}
|
|
2252
|
-
|
|
2253
|
-
if (isCliEntrypoint()) {
|
|
2243
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
2254
2244
|
main()
|
|
2255
2245
|
.then((code) => {
|
|
2256
2246
|
process.exitCode = code;
|
package/scripts/review-agent.mjs
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
|
|
28
28
|
const LOCAL_BACKEND_URL = 'http://localhost:8787';
|
|
29
29
|
const LOCAL_DASHBOARD_URL = 'http://localhost:5174';
|
|
30
|
-
const STAGING_BACKEND_URL = 'https://api.staging.localizeaso.com';
|
|
30
|
+
const STAGING_BACKEND_URL = 'https://api.staging.localizeaso.com:8787';
|
|
31
31
|
const STAGING_DASHBOARD_URL = 'https://dash.staging.localizeaso.com';
|
|
32
32
|
const DEFAULT_CLI_CONFIG_PATH = path.join(homedir(), '.localizeaso', 'config.json');
|
|
33
33
|
const SAFE_SHELL_TOKEN_RE = /^[A-Za-z0-9_./:@%+=,-]+$/;
|