omnius 1.0.250 → 1.0.252
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 +14 -14
- package/npm-shrinkwrap.json +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -631513,9 +631513,14 @@ async function prewarmImageModel(ctx3, model, backend) {
|
|
|
631513
631513
|
async function handlePointcloudCommand(ctx3, arg, _hasLocal) {
|
|
631514
631514
|
const parsed = parseImageCommand(arg);
|
|
631515
631515
|
const tool = new PointcloudGenerateTool(ctx3.repoRoot);
|
|
631516
|
+
tool.setProgressHandler((event) => {
|
|
631517
|
+
renderInfo(event.message);
|
|
631518
|
+
});
|
|
631516
631519
|
if (!parsed.prompt || parsed.subcommand === "menu") {
|
|
631520
|
+
const result2 = await tool.execute({ action: "list_models" });
|
|
631521
|
+
if (result2.success) safeLog(result2.output);
|
|
631517
631522
|
renderInfo(
|
|
631518
|
-
"
|
|
631523
|
+
"Usage:\n /pointcloud --image <path> [--model <id>] [--backend depth-anything|mda]\n /pointcloud --image path1,path2 --backend mda (multi-view)"
|
|
631519
631524
|
);
|
|
631520
631525
|
return "handled";
|
|
631521
631526
|
}
|
|
@@ -631526,17 +631531,12 @@ async function handlePointcloudCommand(ctx3, arg, _hasLocal) {
|
|
|
631526
631531
|
return "handled";
|
|
631527
631532
|
}
|
|
631528
631533
|
if (parsed.subcommand === "setup") {
|
|
631529
|
-
const
|
|
631530
|
-
|
|
631531
|
-
);
|
|
631532
|
-
const
|
|
631533
|
-
|
|
631534
|
-
|
|
631535
|
-
backend: backend2,
|
|
631536
|
-
model: model2 || void 0
|
|
631537
|
-
});
|
|
631538
|
-
if (result2.success) safeLog(result2.output);
|
|
631539
|
-
else renderError(result2.error || "Setup plan failed.");
|
|
631534
|
+
const model2 = String(parsed.flags["model"] || "depth-anything-v3-base");
|
|
631535
|
+
const backend2 = String(parsed.flags["backend"] || "depth-anything");
|
|
631536
|
+
renderInfo(`Auto-setting up ${model2}...`);
|
|
631537
|
+
const result2 = await tool.execute({ action: "prewarm", model: model2, backend: backend2 });
|
|
631538
|
+
if (result2.success) renderInfo(`Ready: ${model2}`);
|
|
631539
|
+
else renderError(result2.error || "Setup failed.");
|
|
631540
631540
|
return "handled";
|
|
631541
631541
|
}
|
|
631542
631542
|
if (parsed.subcommand === "prewarm") {
|
|
@@ -631544,14 +631544,14 @@ async function handlePointcloudCommand(ctx3, arg, _hasLocal) {
|
|
|
631544
631544
|
const backend2 = String(parsed.flags["backend"] || "depth-anything");
|
|
631545
631545
|
renderInfo(`Pre-warming ${model2}...`);
|
|
631546
631546
|
const result2 = await tool.execute({ action: "prewarm", model: model2, backend: backend2 });
|
|
631547
|
-
if (result2.success) renderInfo(
|
|
631547
|
+
if (result2.success) renderInfo(`Ready: ${model2}`);
|
|
631548
631548
|
else renderError(result2.error || "Prewarm failed.");
|
|
631549
631549
|
return "handled";
|
|
631550
631550
|
}
|
|
631551
631551
|
const image = String(parsed.flags["image"] || "");
|
|
631552
631552
|
if (!image) {
|
|
631553
631553
|
renderError(
|
|
631554
|
-
"No --image provided. Usage: /pointcloud --image <path> [--model <
|
|
631554
|
+
"No --image provided. Usage: /pointcloud --image <path> [--model <id>]"
|
|
631555
631555
|
);
|
|
631556
631556
|
return "handled";
|
|
631557
631557
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.252",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.252",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
|
@@ -3903,9 +3903,9 @@
|
|
|
3903
3903
|
}
|
|
3904
3904
|
},
|
|
3905
3905
|
"node_modules/hono": {
|
|
3906
|
-
"version": "4.12.
|
|
3907
|
-
"resolved": "https://registry.npmjs.org/hono/-/hono-4.12.
|
|
3908
|
-
"integrity": "sha512-
|
|
3906
|
+
"version": "4.12.24",
|
|
3907
|
+
"resolved": "https://registry.npmjs.org/hono/-/hono-4.12.24.tgz",
|
|
3908
|
+
"integrity": "sha512-I36D1s+HgQc55KbhEr4iybfxv/9o1zdpw+XEM6dJa91LqQD0HCoSGdxpRJCZE+aavs87j4V3Ls2OJzq8C/U4iw==",
|
|
3909
3909
|
"license": "MIT",
|
|
3910
3910
|
"engines": {
|
|
3911
3911
|
"node": ">=16.9.0"
|
|
@@ -6337,9 +6337,9 @@
|
|
|
6337
6337
|
"license": "MIT"
|
|
6338
6338
|
},
|
|
6339
6339
|
"node_modules/semver": {
|
|
6340
|
-
"version": "7.8.
|
|
6341
|
-
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.
|
|
6342
|
-
"integrity": "sha512-
|
|
6340
|
+
"version": "7.8.3",
|
|
6341
|
+
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.3.tgz",
|
|
6342
|
+
"integrity": "sha512-wnilbGyMxzbY7dNOl7jpKbLSjcfeweJWU5j4+u5qW+6/wuGD9KzIGOyZnQVSBM9E7DtWaaH3CyHkppYrKYoxwg==",
|
|
6343
6343
|
"license": "ISC",
|
|
6344
6344
|
"bin": {
|
|
6345
6345
|
"semver": "bin/semver.js"
|
package/package.json
CHANGED