okno 1.0.0-beta.23 → 1.0.0-beta.25
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/cli.d.ts +6 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +21 -18
- package/dist/editor/index.js +22586 -22630
- package/dist/init.d.ts +3 -2
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +90 -81
- package/package.json +1 -1
package/dist/cli.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* `okno` CLI. The canonical command is BARE `npx okno` — the context-aware
|
|
4
|
+
* installer (adds the plugin, scaffolds, offers MCP). `okno mcp` runs the MCP
|
|
5
|
+
* server. Each path lazy-imports its deps so neither pays for the other's.
|
|
6
|
+
*/
|
|
7
|
+
declare function main(): Promise<void>;
|
|
3
8
|
//# sourceMappingURL=cli.d.ts.map
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAIH,iBAAe,IAAI,kBAuBlB"}
|
package/dist/cli.js
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
async function c() {
|
|
3
|
+
const [n] = process.argv.slice(2);
|
|
4
|
+
switch (n) {
|
|
5
|
+
case "mcp": {
|
|
6
|
+
const { runMcp: o } = await import("./mcp.js");
|
|
7
|
+
await o();
|
|
8
|
+
break;
|
|
9
|
+
}
|
|
10
|
+
case "help":
|
|
11
|
+
case "--help":
|
|
12
|
+
case "-h": {
|
|
13
|
+
console.log(
|
|
14
|
+
["", " npx okno Add okno to this project", " npx okno mcp Run the okno MCP server (for your AI client)", ""].join(`
|
|
14
15
|
`)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
);
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
default: {
|
|
20
|
+
const { runInit: o } = await import("./init.js");
|
|
21
|
+
await o();
|
|
22
|
+
}
|
|
21
23
|
}
|
|
22
24
|
}
|
|
25
|
+
c();
|