@aidotnet/astra-gate 0.7.1 → 0.8.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/dist/index.js CHANGED
@@ -1235,7 +1235,7 @@ import { fileURLToPath } from "url";
1235
1235
  // package.json
1236
1236
  var package_default = {
1237
1237
  name: "@aidotnet/astra-gate",
1238
- version: "0.7.1",
1238
+ version: "0.8.0",
1239
1239
  description: "Astra \u2014 a local AI gateway. Install, start, stop and manage the astra-server from the terminal.",
1240
1240
  license: "MIT",
1241
1241
  type: "module",
@@ -1266,12 +1266,12 @@ var package_default = {
1266
1266
  commander: "^12.1.0"
1267
1267
  },
1268
1268
  optionalDependencies: {
1269
- "@aidotnet/server-darwin-arm64": "0.7.1",
1270
- "@aidotnet/server-darwin-x64": "0.7.1",
1271
- "@aidotnet/server-linux-arm64": "0.7.1",
1272
- "@aidotnet/server-linux-x64": "0.7.1",
1273
- "@aidotnet/server-win32-arm64": "0.7.1",
1274
- "@aidotnet/server-win32-x64": "0.7.1"
1269
+ "@aidotnet/server-darwin-arm64": "0.8.0",
1270
+ "@aidotnet/server-darwin-x64": "0.8.0",
1271
+ "@aidotnet/server-linux-arm64": "0.8.0",
1272
+ "@aidotnet/server-linux-x64": "0.8.0",
1273
+ "@aidotnet/server-win32-arm64": "0.8.0",
1274
+ "@aidotnet/server-win32-x64": "0.8.0"
1275
1275
  },
1276
1276
  devDependencies: {
1277
1277
  "@aidotnet/update-core": "workspace:*",
@@ -2672,6 +2672,10 @@ async function runPluginUse(name, provider2) {
2672
2672
  await api2("/api/plugins/prefer", "POST", { spec: p.spec, provider: provider2 });
2673
2673
  success(`${p.shortName} serves ${provider2} now.`);
2674
2674
  }
2675
+ function marketOrigin(l) {
2676
+ if (l.origin !== "astra") return "community";
2677
+ return l.tarballs && l.tarballs.length > 0 ? "astra (hosted)" : "astra";
2678
+ }
2675
2679
  async function runPluginMarket(query) {
2676
2680
  if (query) {
2677
2681
  const results = await api2(`/api/plugins/search?q=${encodeURIComponent(query)}`);
@@ -2683,8 +2687,8 @@ async function runPluginMarket(query) {
2683
2687
  }
2684
2688
  const listings = await api2("/api/plugins/market");
2685
2689
  printTable(
2686
- listings.map((l) => [l.package, l.kind, l.latest ?? "", l.summary.en ?? ""]),
2687
- ["PACKAGE", "KIND", "LATEST", "SUMMARY"]
2690
+ listings.map((l) => [l.package, l.kind, l.latest ?? "", marketOrigin(l), l.summary.en ?? ""]),
2691
+ ["PACKAGE", "KIND", "LATEST", "FROM", "SUMMARY"]
2688
2692
  );
2689
2693
  info("Install one with `astra plugin add <package>`.");
2690
2694
  }