yap2app 1.1.9 → 1.2.0
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/bin/cli-esm.js +1 -3
- package/bin/cli.bundle.js +2 -3
- package/bin/cli.js +2 -3
- package/bridge.js +1 -1
- package/package.json +1 -1
package/bin/cli-esm.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
1
|
import '../polyfills.js';
|
|
4
2
|
import { startBridge } from '../bridge.js';
|
|
5
3
|
import { runMcpServer } from '../mcp.js';
|
|
@@ -20,7 +18,7 @@ async function main() {
|
|
|
20
18
|
console.log(` Path Alias: ${context.path_alias || '@/'}`);
|
|
21
19
|
console.log(` Files: ${context.discovered_files?.length || 0}`);
|
|
22
20
|
console.log(` Components: ${(context.component_names || []).join(', ') || 'None'}\n`);
|
|
23
|
-
} else if (command === 'init' || command === 'install') {
|
|
21
|
+
} else if (command === 'init' || command === 'install' || command === 'insall') {
|
|
24
22
|
const context = await scanCodebase(process.cwd());
|
|
25
23
|
console.log(`\n⚡ Yap2App Workspace Initializer:`);
|
|
26
24
|
console.log(` Directory: ${context.project_root}`);
|
package/bin/cli.bundle.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
#!/usr/bin/env node
|
|
3
2
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __defProp = Object.defineProperty;
|
|
@@ -7581,7 +7580,7 @@ var fs2 = fsSync2.promises || {
|
|
|
7581
7580
|
var PORT = Number(process.env.YAP2APP_PORT) || 10420;
|
|
7582
7581
|
var PROJECT_ROOT = process.cwd();
|
|
7583
7582
|
var PAIR_CODE = (process.env.YAP2APP_PAIR_CODE || "Y2A-" + Math.floor(1e3 + Math.random() * 9e3)).toUpperCase();
|
|
7584
|
-
var CLI_VERSION = "1.
|
|
7583
|
+
var CLI_VERSION = "1.2.0";
|
|
7585
7584
|
function safeResolvePath(baseDir, relativePath) {
|
|
7586
7585
|
const cleanRel = (relativePath || "").replace(/^[\\\/]+/, "");
|
|
7587
7586
|
const resolved = path2.resolve(baseDir, cleanRel);
|
|
@@ -16503,7 +16502,7 @@ Yap2App Codebase Context:
|
|
|
16503
16502
|
console.log(` Files: ${context.discovered_files?.length || 0}`);
|
|
16504
16503
|
console.log(` Components: ${(context.component_names || []).join(", ") || "None"}
|
|
16505
16504
|
`);
|
|
16506
|
-
} else if (command === "init" || command === "install") {
|
|
16505
|
+
} else if (command === "init" || command === "install" || command === "insall") {
|
|
16507
16506
|
const context = await scanCodebase(process.cwd());
|
|
16508
16507
|
console.log(`
|
|
16509
16508
|
\u26A1 Yap2App Workspace Initializer:`);
|
package/bin/cli.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
#!/usr/bin/env node
|
|
3
2
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __defProp = Object.defineProperty;
|
|
@@ -7581,7 +7580,7 @@ var fs2 = fsSync2.promises || {
|
|
|
7581
7580
|
var PORT = Number(process.env.YAP2APP_PORT) || 10420;
|
|
7582
7581
|
var PROJECT_ROOT = process.cwd();
|
|
7583
7582
|
var PAIR_CODE = (process.env.YAP2APP_PAIR_CODE || "Y2A-" + Math.floor(1e3 + Math.random() * 9e3)).toUpperCase();
|
|
7584
|
-
var CLI_VERSION = "1.
|
|
7583
|
+
var CLI_VERSION = "1.2.0";
|
|
7585
7584
|
function safeResolvePath(baseDir, relativePath) {
|
|
7586
7585
|
const cleanRel = (relativePath || "").replace(/^[\\\/]+/, "");
|
|
7587
7586
|
const resolved = path2.resolve(baseDir, cleanRel);
|
|
@@ -16503,7 +16502,7 @@ Yap2App Codebase Context:
|
|
|
16503
16502
|
console.log(` Files: ${context.discovered_files?.length || 0}`);
|
|
16504
16503
|
console.log(` Components: ${(context.component_names || []).join(", ") || "None"}
|
|
16505
16504
|
`);
|
|
16506
|
-
} else if (command === "init" || command === "install") {
|
|
16505
|
+
} else if (command === "init" || command === "install" || command === "insall") {
|
|
16507
16506
|
const context = await scanCodebase(process.cwd());
|
|
16508
16507
|
console.log(`
|
|
16509
16508
|
\u26A1 Yap2App Workspace Initializer:`);
|
package/bridge.js
CHANGED
|
@@ -15,7 +15,7 @@ const fs = fsSync.promises || {
|
|
|
15
15
|
const PORT = Number(process.env.YAP2APP_PORT) || 10420;
|
|
16
16
|
const PROJECT_ROOT = process.cwd();
|
|
17
17
|
const PAIR_CODE = (process.env.YAP2APP_PAIR_CODE || ('Y2A-' + Math.floor(1000 + Math.random() * 9000))).toUpperCase();
|
|
18
|
-
const CLI_VERSION = '1.
|
|
18
|
+
const CLI_VERSION = '1.2.0';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Validates and resolves relative file paths strictly inside PROJECT_ROOT.
|