@malloydata/malloyyo 0.2.0 → 0.2.2
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 +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1821,8 +1821,10 @@ async function serveMcp(opts) {
|
|
|
1821
1821
|
});
|
|
1822
1822
|
}
|
|
1823
1823
|
|
|
1824
|
+
// package.json
|
|
1825
|
+
var version = "0.2.2";
|
|
1826
|
+
|
|
1824
1827
|
// src/index.ts
|
|
1825
|
-
var VERSION = "0.2.0";
|
|
1826
1828
|
function shortSha(sha) {
|
|
1827
1829
|
return sha ? sha.slice(0, 7) : "";
|
|
1828
1830
|
}
|
|
@@ -1879,7 +1881,7 @@ async function logoutCmd(target) {
|
|
|
1879
1881
|
console.log(clearCreds(inst.url) ? `\u2713 logged out of ${inst.url}` : `not logged in to ${inst.url}`);
|
|
1880
1882
|
}
|
|
1881
1883
|
var program = new Command();
|
|
1882
|
-
program.name("malloyyo").description("Publish Malloy models to a Malloyyo instance").version(
|
|
1884
|
+
program.name("malloyyo").description("Publish Malloy models to a Malloyyo instance").version(version);
|
|
1883
1885
|
program.command("login").argument("[target]", "target name or instance URL (optional if the config has one target)").description("sign in to an instance in your browser (stores a token)").action(loginCmd);
|
|
1884
1886
|
program.command("logout").argument("[target]", "target name or instance URL (optional if the config has one target)").description("forget the stored token for an instance").action(logoutCmd);
|
|
1885
1887
|
program.command("publish").argument("<target>", "named target from the `malloyyo` config block").argument("[dir]", "directory to publish", ".").option("--token <token>", "bearer token (overrides login/env)").option("--dry-run", "gather and report what would be sent, but don't POST").description('push the Malloy model in <dir> (default ".") to <target>').action(publish);
|
|
@@ -1887,7 +1889,7 @@ program.command("status").argument("<target>", "named target from the `malloyyo`
|
|
|
1887
1889
|
program.command("mcp").option("-C, --root <dir>", "project root (default: current directory)").description(
|
|
1888
1890
|
"run a local stdio MCP server (the explore / test-window surface) over the Malloy model in the current directory"
|
|
1889
1891
|
).action(async (opts) => {
|
|
1890
|
-
await serveMcp({ root: opts.root, version
|
|
1892
|
+
await serveMcp({ root: opts.root, version });
|
|
1891
1893
|
});
|
|
1892
1894
|
program.parseAsync().catch((err) => {
|
|
1893
1895
|
console.error(err instanceof Error ? err.message : String(err));
|