@narumitw/pi-starship 0.56.2 → 0.57.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/chunks/{chunk-ZQZSXXPI.js → chunk-ADX4CY27.ts} +1 -1
- package/dist/chunks/{chunk-YWY5RIDQ.js → chunk-PD457PX5.ts} +1 -1
- package/dist/chunks/{chunk-G2QRDLEN.js → chunk-W2IYFPT4.ts} +5 -3
- package/dist/chunks/{chunk-G2QRDLEN.js.map → chunk-W2IYFPT4.ts.map} +2 -2
- package/dist/chunks/{cloud-C4VU3TX3.js → cloud-EPAEV4ZB.ts} +2 -2
- package/dist/chunks/{commands-JKG2TCPI.js → commands-TW2O3UVA.ts} +2 -2
- package/dist/chunks/{deployment-FMNTYRBW.js → deployment-7J54EHNR.ts} +2 -2
- package/dist/chunks/{development-OUYXDPBS.js → development-IWJAAAEV.ts} +2 -2
- package/dist/chunks/{execution-HJOGLMWD.js → execution-P4WZALW2.ts} +3 -3
- package/dist/chunks/{languages-WXMF4GOF.js → languages-JO6R2PHL.ts} +2 -2
- package/dist/chunks/{package-YXRZQAOV.js → package-H24VJEX3.ts} +2 -2
- package/dist/index.ts +10 -10
- package/package.json +1 -1
- package/skills/configuring-pi-starship/references/configuration.md +1 -1
- package/skills/configuring-pi-starship/references/module-catalog.md +2 -1
- package/skills/configuring-pi-starship/references/modules.md +7 -5
- package/src/modules/model.ts +3 -2
- /package/dist/chunks/{chunk-ZQZSXXPI.js.map → chunk-ADX4CY27.ts.map} +0 -0
- /package/dist/chunks/{chunk-YWY5RIDQ.js.map → chunk-PD457PX5.ts.map} +0 -0
- /package/dist/chunks/{cloud-C4VU3TX3.js.map → cloud-EPAEV4ZB.ts.map} +0 -0
- /package/dist/chunks/{commands-JKG2TCPI.js.map → commands-TW2O3UVA.ts.map} +0 -0
- /package/dist/chunks/{deployment-FMNTYRBW.js.map → deployment-7J54EHNR.ts.map} +0 -0
- /package/dist/chunks/{development-OUYXDPBS.js.map → development-IWJAAAEV.ts.map} +0 -0
- /package/dist/chunks/{execution-HJOGLMWD.js.map → execution-P4WZALW2.ts.map} +0 -0
- /package/dist/chunks/{languages-WXMF4GOF.js.map → languages-JO6R2PHL.ts.map} +0 -0
- /package/dist/chunks/{package-YXRZQAOV.js.map → package-H24VJEX3.ts.map} +0 -0
|
@@ -1437,6 +1437,7 @@ var modelModule = defineModule({
|
|
|
1437
1437
|
model: ({ runtime }) => runtime.model?.id
|
|
1438
1438
|
},
|
|
1439
1439
|
options: {
|
|
1440
|
+
shorten_model: { kind: "boolean", default: false },
|
|
1440
1441
|
truncation_length: { kind: "integer", default: 0, minimum: 0, maximum: 1e3 },
|
|
1441
1442
|
truncation_symbol: { kind: "string", default: "\u2026" },
|
|
1442
1443
|
truncation_direction: {
|
|
@@ -1454,8 +1455,9 @@ var modelModule = defineModule({
|
|
|
1454
1455
|
const aliases = options.model_aliases;
|
|
1455
1456
|
const aliasMap = aliases && typeof aliases === "object" && !Array.isArray(aliases) ? aliases : void 0;
|
|
1456
1457
|
const alias = aliasMap && Object.hasOwn(aliasMap, runtime.model.id) ? aliasMap[runtime.model.id] : void 0;
|
|
1458
|
+
const model = alias ?? (options.shorten_model === true ? shortenModel(runtime.model.id) : runtime.model.id);
|
|
1457
1459
|
return {
|
|
1458
|
-
model: truncateModel(
|
|
1460
|
+
model: truncateModel(model, length, symbol, direction)
|
|
1459
1461
|
};
|
|
1460
1462
|
}
|
|
1461
1463
|
});
|
|
@@ -1482,7 +1484,7 @@ function isTruncationDirection(value) {
|
|
|
1482
1484
|
return TRUNCATION_DIRECTIONS.includes(value);
|
|
1483
1485
|
}
|
|
1484
1486
|
function shortenModel(model) {
|
|
1485
|
-
return model.replace(/^claude-/u, "").replace(
|
|
1487
|
+
return model.replace(/^claude-/u, "").replace(/-20\d{6}$/u, "").replace(/-latest$/u, "");
|
|
1486
1488
|
}
|
|
1487
1489
|
|
|
1488
1490
|
// src/modules/package.ts
|
|
@@ -2536,4 +2538,4 @@ export {
|
|
|
2536
2538
|
inspectStatuslineModules,
|
|
2537
2539
|
inspectUnavailableModules
|
|
2538
2540
|
};
|
|
2539
|
-
//# sourceMappingURL=chunk-
|
|
2541
|
+
//# sourceMappingURL=chunk-W2IYFPT4.ts.map
|