@psnext/slingcli 2.4.20260525-1 → 2.4.20260525-3

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/bin/sling.js CHANGED
@@ -203,8 +203,9 @@ async function checkAndInstallPackages(argv = process.argv.slice(2)) {
203
203
  for (const u of unsupported) installed.delete(u);
204
204
 
205
205
  const config = JSON.parse(readFileSync(configPath, "utf-8"));
206
+ const skipDefaultPackageUpdate = shouldSkipDefaultPackageUpdates(argv);
206
207
 
207
- if (!shouldSkipDefaultPackageUpdates(argv)) {
208
+ if (!skipDefaultPackageUpdate) {
208
209
  const updatePackages = (config.packages || []).filter((p) => {
209
210
  const source = typeof p === "object" && p !== null ? p.source : p;
210
211
  return installed.has(source);
@@ -220,7 +221,8 @@ async function checkAndInstallPackages(argv = process.argv.slice(2)) {
220
221
  }
221
222
  }
222
223
  } else {
223
- console.log("Skipping default package updates (--skip-pkg-update).");
224
+ console.log("Skipping default package updates and installs (--skip-pkg-update).");
225
+ return;
224
226
  }
225
227
  const packages = (config.packages || []).filter((p) => {
226
228
  const source = typeof p === "object" && p !== null ? p.source : p;
@@ -351,6 +353,8 @@ async function promptInstallScopeIfNeeded(args) {
351
353
 
352
354
  function updateSettings() {
353
355
  const configPath = path.resolve(homedir(), ".sling/agent/settings.json");
356
+ mkdirSync(path.dirname(configPath), { recursive: true });
357
+
354
358
  let config = { customItems: [] };
355
359
  if (existsSync(configPath)) {
356
360
  try {
@@ -5158,9 +5158,9 @@ export const MODELS = {
5158
5158
  reasoning: true,
5159
5159
  input: ["text"],
5160
5160
  cost: {
5161
- input: 1.74,
5162
- output: 3.48,
5163
- cacheRead: 0.145,
5161
+ input: 0.435,
5162
+ output: 0.87,
5163
+ cacheRead: 0.003625,
5164
5164
  cacheWrite: 0,
5165
5165
  },
5166
5166
  contextWindow: 1048576,
@@ -7941,23 +7941,6 @@ export const MODELS = {
7941
7941
  contextWindow: 256000,
7942
7942
  maxTokens: 4096,
7943
7943
  },
7944
- "alibaba/tongyi-deepresearch-30b-a3b": {
7945
- id: "alibaba/tongyi-deepresearch-30b-a3b",
7946
- name: "Tongyi DeepResearch 30B A3B",
7947
- api: "openai-completions",
7948
- provider: "openrouter",
7949
- baseUrl: "https://openrouter.ai/api/v1",
7950
- reasoning: true,
7951
- input: ["text"],
7952
- cost: {
7953
- input: 0.09,
7954
- output: 0.44999999999999996,
7955
- cacheRead: 0.09,
7956
- cacheWrite: 0,
7957
- },
7958
- contextWindow: 131072,
7959
- maxTokens: 131072,
7960
- },
7961
7944
  "amazon/nova-2-lite-v1": {
7962
7945
  id: "amazon/nova-2-lite-v1",
7963
7946
  name: "Amazon: Nova 2 Lite",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@psnext/slingcli",
3
- "version": "2.4.20260525-1",
3
+ "version": "2.4.20260525-3",
4
4
  "description": "Connects Sling CLI to Publicis Sapient Slingshot enterprise LLM gateway. Bundles the pi coding-agent runtime.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,7 +29,7 @@
29
29
  "type": "git",
30
30
  "url": "git+https://pscode.lioncloud.net/psaiproducts/slingcli.git"
31
31
  },
32
- "slingVersion": "2.4.20260525-1",
32
+ "slingVersion": "2.4.20260525-3",
33
33
  "dependencies": {
34
34
  "@earendil-works/pi-tui": "file:../.sling-pack/earendil-works-pi-tui-0.75.4.tgz",
35
35
  "@earendil-works/pi-ai": "file:../.sling-pack/earendil-works-pi-ai-0.75.4.tgz",