flyspace-cli 0.1.47 → 0.1.48

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.
@@ -1884,6 +1884,10 @@ function buildHookSettings(runtime, builtInStyleName) {
1884
1884
  }
1885
1885
  });
1886
1886
  }
1887
+ function isModelForGateway(model, pinned) {
1888
+ if (!pinned) return true;
1889
+ return model.split("-")[0].toLowerCase() === pinned.split("-")[0].toLowerCase();
1890
+ }
1887
1891
  function buildArgs(prompt, botName, options, resumeSessionId, isolatedStyle) {
1888
1892
  const args = [
1889
1893
  "--print",
@@ -1927,7 +1931,7 @@ function buildArgs(prompt, botName, options, resumeSessionId, isolatedStyle) {
1927
1931
  if (options.mcpConfigPath) {
1928
1932
  args.push("--mcp-config", options.mcpConfigPath);
1929
1933
  }
1930
- if (options.model && !process.env["ANTHROPIC_MODEL"]) {
1934
+ if (options.model && isModelForGateway(options.model, process.env["ANTHROPIC_MODEL"])) {
1931
1935
  args.push("--model", resolveModelAlias(options.model));
1932
1936
  }
1933
1937
  if (options.effort) {
package/dist/cli.js CHANGED
@@ -191,7 +191,7 @@ import {
191
191
  warnOnBrokenChannelCwds,
192
192
  workspaceSkillsDir,
193
193
  writeSkillFile
194
- } from "./chunk-AMA7LCCE.js";
194
+ } from "./chunk-2V33REYC.js";
195
195
  import {
196
196
  firstReplyBody,
197
197
  getThread,
@@ -19492,7 +19492,7 @@ async function runAuthCmd(args) {
19492
19492
 
19493
19493
  // ../api/src/version.ts
19494
19494
  import { readFileSync as readFileSync8 } from "fs";
19495
- var CLI_VERSION = true ? "0.1.47" : devVersion();
19495
+ var CLI_VERSION = true ? "0.1.48" : devVersion();
19496
19496
  function isOlderVersion(a, b) {
19497
19497
  const parse = (v) => v.replace(/^v/, "").split("-")[0].split(".").map(Number);
19498
19498
  const [pa, pb] = [parse(a), parse(b)];
@@ -20120,7 +20120,7 @@ function npmEnv(target) {
20120
20120
  return nodeBin ? { ...process.env, PATH: `${nodeBin}:${process.env.PATH ?? ""}` } : process.env;
20121
20121
  }
20122
20122
  async function runUpgrade() {
20123
- const current = "0.1.47";
20123
+ const current = "0.1.48";
20124
20124
  console.log(`Current version: ${current}`);
20125
20125
  console.log("Checking for updates...\n");
20126
20126
  try {
@@ -38858,6 +38858,11 @@ async function provisionChannels(specs) {
38858
38858
  console.log(` channel "${spec.name}" exists`);
38859
38859
  continue;
38860
38860
  }
38861
+ if (spec.name === "general") {
38862
+ await ensureGeneralChannel();
38863
+ console.log(' channel "general" created (default)');
38864
+ continue;
38865
+ }
38861
38866
  const cwd = expandPath(spec.cwd);
38862
38867
  if (!existsSync36(cwd)) {
38863
38868
  mkdirSync14(cwd, { recursive: true });
@@ -39078,7 +39083,7 @@ async function main() {
39078
39083
  break;
39079
39084
  case "-v":
39080
39085
  case "--version":
39081
- printRaw("0.1.47");
39086
+ printRaw("0.1.48");
39082
39087
  break;
39083
39088
  case "-h":
39084
39089
  case "--help":
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { createRequire as __flyspaceCreateRequire } from 'node:module';
3
3
  const require = __flyspaceCreateRequire(import.meta.url);
4
4
  import {
5
5
  startServer
6
- } from "./chunk-AMA7LCCE.js";
6
+ } from "./chunk-2V33REYC.js";
7
7
  import "./chunk-F5CXKDZV.js";
8
8
  export {
9
9
  startServer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flyspace-cli",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "description": "AI-native headless community OS",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "private": false,