@yagni-app/code-staging 1.2.14-staging.2421.1 → 1.2.14-staging.2423.1

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.
@@ -72,9 +72,4 @@ export declare function switchChosenModel(pi: ExtensionAPI, ctx: ChosenSwitchCon
72
72
  * pick anyway (the launcher opens every session on it).
73
73
  */
74
74
  export declare function chosenModelFallback(pi: ExtensionAPI, ctx: ChosenSwitchContext, errorMessage: string | undefined): Promise<string | null>;
75
- /** The label a person reads for the session's model: a lane's name, else the model's name. PURE. */
76
- export declare function sessionModelLabel(model: {
77
- id: string;
78
- name?: string;
79
- } | undefined): string;
80
75
  //# sourceMappingURL=modelChoice.d.ts.map
@@ -19,7 +19,7 @@
19
19
  * Pure helpers first, wiring last, as in `tierCommand.ts`.
20
20
  */
21
21
  import { logEvent } from "./errorSink.js";
22
- import { CHOSEN_MODEL_PREFIX, SESSION_START_TIER, TIER_LABEL, YAGNI_PROVIDER, isSelectableTier, trailReason, } from "./tierCommand.js";
22
+ import { CHOSEN_MODEL_PREFIX, SESSION_START_TIER, TIER_LABEL, YAGNI_PROVIDER, trailReason, } from "./tierCommand.js";
23
23
  export { CHOSEN_MODEL_PREFIX };
24
24
  export function isChosenModelId(id) {
25
25
  return !!id && id.startsWith(CHOSEN_MODEL_PREFIX) && id.length > CHOSEN_MODEL_PREFIX.length;
@@ -79,7 +79,7 @@ export function parseChosenModels(raw) {
79
79
  }
80
80
  /** The picker's second line for a model: who made it, where it bills, and whether it has a backup. PURE. */
81
81
  export function chosenModelDescription(entry) {
82
- const parts = [entry.maker, `billed on the ${TIER_LABEL[entry.lane]} lane`];
82
+ const parts = [entry.maker, `billed at list price plus 7%`];
83
83
  if (!entry.hasBackup)
84
84
  parts.push("no backup provider");
85
85
  return parts.join(" · ");
@@ -121,7 +121,7 @@ export function formatChosenModelFallback(name, refusal, landed) {
121
121
  }
122
122
  /** The notice when a switch to a chosen model lands. PURE. */
123
123
  export function formatChosenModelSwitched(entry) {
124
- return `Session model is now ${entry.name} (${entry.maker}, billed on the ${TIER_LABEL[entry.lane]} lane).`;
124
+ return `Session model is now ${entry.name} (${entry.maker}, billed at list price plus 7%).`;
125
125
  }
126
126
  /**
127
127
  * Move the session to a chosen model, the model picker's path for a model
@@ -204,12 +204,4 @@ export async function chosenModelFallback(pi, ctx, errorMessage) {
204
204
  }
205
205
  return notice;
206
206
  }
207
- /** The label a person reads for the session's model: a lane's name, else the model's name. PURE. */
208
- export function sessionModelLabel(model) {
209
- if (!model)
210
- return "unknown";
211
- if (isSelectableTier(model.id))
212
- return TIER_LABEL[model.id];
213
- return model.name || model.id;
214
- }
215
207
  //# sourceMappingURL=modelChoice.js.map
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * Model choice (models.customer_choice, modelChoice.ts): when the workspace
32
32
  * allows models by name, they follow the lanes in the same panel, each with
33
- * its maker, the lane it bills on, and whether it has a backup provider; the
33
+ * its maker, how it is billed, and whether it has a backup provider; the
34
34
  * lanes then read as YAGNI's pick. `/model <name>` switches to one directly.
35
35
  * With nothing listed the panel is exactly the lanes.
36
36
  */
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * Model choice (models.customer_choice, modelChoice.ts): when the workspace
32
32
  * allows models by name, they follow the lanes in the same panel, each with
33
- * its maker, the lane it bills on, and whether it has a backup provider; the
33
+ * its maker, how it is billed, and whether it has a backup provider; the
34
34
  * lanes then read as YAGNI's pick. `/model <name>` switches to one directly.
35
35
  * With nothing listed the panel is exactly the lanes.
36
36
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yagni-app/code-staging",
3
- "version": "1.2.14-staging.2421.1",
3
+ "version": "1.2.14-staging.2423.1",
4
4
  "description": "YAGNI Code: a terminal coding agent that already knows your company. One YAGNI login routes the model and grounds the agent in your team's context.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "YAGNI, Inc. <jack@yagni.app> (https://yagni.app)",
@@ -58,5 +58,5 @@
58
58
  "turndown": "^7.2.4",
59
59
  "typebox": "^1.3.15"
60
60
  },
61
- "yagniSourceSha": "22aa037b2ba9574c14b2d99ce5a46ae05ccbbe71"
61
+ "yagniSourceSha": "14fd58667767a13fd60443e502979402b8572fda"
62
62
  }