omnispace 0.5.0 → 0.5.1
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/dist/index.js +17 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import { cloneSpace, CONFLICT_CHOICES, pullSpace } from "./pull.js";
|
|
|
10
10
|
import { buildManifest } from "./include.js";
|
|
11
11
|
import { printSyncPreview } from "./report.js";
|
|
12
12
|
import { LockedError } from "./lock.js";
|
|
13
|
+
import { defaultApiUrl } from "./config.js";
|
|
13
14
|
const USAGE = `
|
|
14
15
|
Omni CLI
|
|
15
16
|
|
|
@@ -47,10 +48,23 @@ async function main(argv) {
|
|
|
47
48
|
const hasScanOnly = rest.includes("--scan-only");
|
|
48
49
|
const target = resolve(positional[0] ?? process.cwd());
|
|
49
50
|
// Writing to disk is not implemented yet (Etapa técnica 1 segue em aberto), so a run that
|
|
50
|
-
// asked for neither mode must stop instead of pretending the full flow happened.
|
|
51
|
+
// asked for neither mode must stop instead of pretending the full flow happened. A bare
|
|
52
|
+
// `npx omnispace init` is exactly what the LP shows, so it points to where the flow starts.
|
|
51
53
|
if (!hasScanOnly && !linkCode) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
const site = defaultApiUrl();
|
|
55
|
+
console.log(`
|
|
56
|
+
Omni CLI
|
|
57
|
+
|
|
58
|
+
Para ligar uma pasta ao Omni, comece pelo navegador:
|
|
59
|
+
${site}/omnispace/escolha
|
|
60
|
+
|
|
61
|
+
Lá aparece um código (tipo ABCD-2345). Com ele, dentro da pasta do espaço, rode:
|
|
62
|
+
npx -y omnispace@latest init . --link <código>
|
|
63
|
+
|
|
64
|
+
Só quer ver o que o Omni leria nesta pasta, sem enviar nada?
|
|
65
|
+
npx -y omnispace@latest init . --scan-only
|
|
66
|
+
`);
|
|
67
|
+
return 0;
|
|
54
68
|
}
|
|
55
69
|
try {
|
|
56
70
|
const info = await stat(target);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnispace",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Omni CLI (alpha): transforma uma pasta da sua máquina em um espaço Omni e sincroniza entre máquinas.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"build": "tsc -p tsconfig.json",
|
|
16
16
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
17
17
|
"omni": "node dist/index.js",
|
|
18
|
-
"test": "tsc -p tsconfig.test.json && node
|
|
18
|
+
"test": "tsc -p tsconfig.test.json && node scripts/run-tests.mjs"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
21
|
"node": ">=20"
|