palbase 0.45.0 → 0.46.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.
Files changed (50) hide show
  1. package/dist/ai/index.js +2 -2
  2. package/dist/backend/engine.js +2 -2
  3. package/dist/backend/env.js +1 -1
  4. package/dist/backend/index.js +3 -3
  5. package/dist/backend/stack.js +1 -1
  6. package/dist/backend/test.js +2 -2
  7. package/dist/chunks/{ZGVX7WRI.js → 2SLHJSIF.js} +2 -2
  8. package/dist/chunks/{JNDALWBO.js → 3GHIFW36.js} +2 -2
  9. package/dist/chunks/{WC2OBMWI.js → 6YJVW22G.js} +2 -2
  10. package/dist/chunks/{AHQOIIM4.js → 7IYQLZSX.js} +1 -1
  11. package/dist/chunks/{YRXIPG5E.js → 7RHFUK72.js} +2 -2
  12. package/dist/chunks/{R3F3FRU5.js → B4W6QZ2L.js} +2 -2
  13. package/dist/chunks/{PLWYBIC2.js → C2FT4E6H.js} +1 -1
  14. package/dist/chunks/{L7EECRLE.js → CCSBVKCW.js} +1 -1
  15. package/dist/chunks/{DPF3B362.js → GUCZ3T4F.js} +1 -1
  16. package/dist/chunks/{SJCCOM55.js → LA3A5S2X.js} +2 -2
  17. package/dist/chunks/{SKIQT56T.js → LS7Y7HYW.js} +1 -1
  18. package/dist/chunks/{RJOAR4UI.js → OI4XC7FR.js} +2 -2
  19. package/dist/chunks/{YDAGPKJZ.js → QCTAKMC2.js} +2 -2
  20. package/dist/chunks/{ZAKNBO7Q.js → RD5F43NE.js} +2 -2
  21. package/dist/chunks/{OHC2I2MW.js → SFMYKCSB.js} +1 -1
  22. package/dist/chunks/{MLKWX35V.js → SQXRSTVP.js} +2 -2
  23. package/dist/chunks/{I3QUVQSV.js → SRDGM7J3.js} +2 -2
  24. package/dist/chunks/{5MQR5IMS.js → UBF33TCO.js} +1 -1
  25. package/dist/chunks/{NWREL5P6.js → UDDJKNTV.js} +2 -2
  26. package/dist/chunks/{IGRKIX4X.js → VGZALUN2.js} +2 -2
  27. package/dist/chunks/{VRDOXAEV.js → W64X4TM4.js} +2 -2
  28. package/dist/chunks/{VTTAOVYK.js → WAF5G3RZ.js} +2 -2
  29. package/dist/chunks/{242WNIKX.js → ZKIRHUG4.js} +2 -2
  30. package/dist/cli.js +6 -6
  31. package/dist/cloud/index.js +2 -2
  32. package/dist/refuse/ai.js +1 -1
  33. package/dist/refuse/backend.js +1 -1
  34. package/dist/refuse/cloud.js +1 -1
  35. package/dist/refuse/server.js +1 -1
  36. package/dist/server/index.js +2 -2
  37. package/dist/server/testing.js +2 -2
  38. package/dist/web/index.js +2 -2
  39. package/dist/web/message.js +2 -2
  40. package/dist/web/palbe.js +2 -2
  41. package/dist/web/paywall.js +2 -2
  42. package/dist/web/push-sw.js +1 -1
  43. package/dist/web/ssr.js +2 -2
  44. package/dist/web/vite.js +2 -2
  45. package/package.json +2 -2
  46. package/types/ai/src/ai.d.ts +11 -8
  47. package/types/ai/src/tools.d.ts +2 -3
  48. package/types/backend/src/database.d.ts +1 -1
  49. package/types/internal/src/modules/ai.d.ts +41 -36
  50. package/types/internal/src/modules/machines.d.ts +1 -1
@@ -12,7 +12,7 @@ export type Advisor = {
12
12
  */
13
13
  instructions?: string;
14
14
  /**
15
- * A role (fast, default, strong) or a catalogue model. Left out: the agent's.
15
+ * A model's name, as GET /ai/models says it (gpt-6-luna). Left out: the project's default.
16
16
  */
17
17
  model?: string;
18
18
  /**
@@ -108,7 +108,7 @@ export type AgentDefinition = {
108
108
  */
109
109
  max_tool_calls?: number;
110
110
  /**
111
- * A role (fast, default, strong) or a catalogue model.
111
+ * A model's name, as GET /ai/models says it (gpt-6-luna). Left out: the project's default.
112
112
  */
113
113
  model?: string;
114
114
  /**
@@ -375,10 +375,15 @@ export type ChatModel = {
375
375
  * Whether it is the model a turn that names none runs on.
376
376
  */
377
377
  default: boolean;
378
+ deprecated?: ModelDeprecation;
378
379
  /**
379
380
  * What it is for.
380
381
  */
381
382
  description: string;
383
+ /**
384
+ * Its name as people read it (GPT-6 Luna).
385
+ */
386
+ display_name: string;
382
387
  /**
383
388
  * Whether anyone says which rungs it takes: false offers none but the provider's own.
384
389
  */
@@ -388,7 +393,7 @@ export type ChatModel = {
388
393
  */
389
394
  efforts: string[];
390
395
  /**
391
- * What a definition names it by (provider:model).
396
+ * The same model on the connection that serves it, as connection:model.
392
397
  */
393
398
  id: string;
394
399
  /**
@@ -400,7 +405,7 @@ export type ChatModel = {
400
405
  */
401
406
  max_output_tokens: number;
402
407
  /**
403
- * Its name as people read it.
408
+ * Its name: what a call names it by (gpt-6-luna), with no provider.
404
409
  */
405
410
  name: string;
406
411
  price: ChatModelPrice;
@@ -408,10 +413,6 @@ export type ChatModel = {
408
413
  * The provider connection that serves it.
409
414
  */
410
415
  provider: string;
411
- /**
412
- * The roles it carries: fast, default, strong.
413
- */
414
- roles: string[];
415
416
  };
416
417
  /**
417
418
  * A text model's list price per million tokens.
@@ -653,6 +654,10 @@ export type DecisionRequest = {
653
654
  * An embedding model.
654
655
  */
655
656
  export type EmbeddingModel = {
657
+ /**
658
+ * Whether it is the model a request that names none runs on.
659
+ */
660
+ default: boolean;
656
661
  /**
657
662
  * Its vectors' length, and the most that can be asked for.
658
663
  */
@@ -662,13 +667,13 @@ export type EmbeddingModel = {
662
667
  */
663
668
  input_usd_per_mtok: number;
664
669
  /**
665
- * The model, as provider:model.
670
+ * The same model on the connection that serves it, as connection:model.
666
671
  */
667
672
  model: string;
668
673
  /**
669
- * The role that names it: default, or empty.
674
+ * Its name: what a request names it by.
670
675
  */
671
- role: string;
676
+ name: string;
672
677
  };
673
678
  /**
674
679
  * The vectors.
@@ -708,7 +713,7 @@ export type EmbeddingsRequest = {
708
713
  */
709
714
  input: string[];
710
715
  /**
711
- * default, or a catalogue embedding model as provider:model.
716
+ * An embedding model's name (GET /ai/models), or left out for the default.
712
717
  */
713
718
  model?: string;
714
719
  };
@@ -1139,6 +1144,10 @@ export type ImageInput = {
1139
1144
  * An image model.
1140
1145
  */
1141
1146
  export type ImageModel = {
1147
+ /**
1148
+ * Whether it is the model a request that names none runs on.
1149
+ */
1150
+ default: boolean;
1142
1151
  /**
1143
1152
  * List price of a million reference picture tokens, in US dollars.
1144
1153
  */
@@ -1148,13 +1157,13 @@ export type ImageModel = {
1148
1157
  */
1149
1158
  image_output_usd_per_mtok: number;
1150
1159
  /**
1151
- * The model, as provider:model.
1160
+ * The same model on the connection that serves it, as connection:model.
1152
1161
  */
1153
1162
  model: string;
1154
1163
  /**
1155
- * The role that names it: default, strong, or empty.
1164
+ * Its name: what a request names it by.
1156
1165
  */
1157
- role: string;
1166
+ name: string;
1158
1167
  /**
1159
1168
  * List price of a million prompt tokens, in US dollars.
1160
1169
  */
@@ -1178,7 +1187,7 @@ export type ImageRequest = {
1178
1187
  format?: string;
1179
1188
  mask?: ImageInput;
1180
1189
  /**
1181
- * default (fast), strong (precise edits), or a catalogue image model as provider:model.
1190
+ * An image model's name (GET /ai/models), or left out for the default.
1182
1191
  */
1183
1192
  model?: string;
1184
1193
  /**
@@ -1449,6 +1458,19 @@ export type MessageVoice = {
1449
1458
  */
1450
1459
  role: string;
1451
1460
  };
1461
+ /**
1462
+ * A deprecated model: still offered and still run, and no new code should name it.
1463
+ */
1464
+ export type ModelDeprecation = {
1465
+ /**
1466
+ * The day it was deprecated (YYYY-MM-DD).
1467
+ */
1468
+ since: string;
1469
+ /**
1470
+ * The name of the model to name in its place.
1471
+ */
1472
+ use_instead: string;
1473
+ };
1452
1474
  /**
1453
1475
  * What a project may name.
1454
1476
  */
@@ -1465,10 +1487,6 @@ export type Models = {
1465
1487
  * Image models, with their list prices.
1466
1488
  */
1467
1489
  images: ImageModel[];
1468
- /**
1469
- * The roles a text model is chosen by.
1470
- */
1471
- text: TextModel[];
1472
1490
  /**
1473
1491
  * The providers whose models could not be listed just now: their models are missing from chat until they answer.
1474
1492
  */
@@ -1987,7 +2005,7 @@ export type ResponseRequest = {
1987
2005
  [key: string]: string;
1988
2006
  };
1989
2007
  /**
1990
- * A role — fast, default (the default), strong — or a catalogue model as provider:model. Name a role: when a provider retires a model, the role is bound to another and your code does not change.
2008
+ * A model's name, as GET /ai/models says it (gpt-6-luna), or left out for the project's default. A deprecated model still runs; the catalogue says what to name instead.
1991
2009
  */
1992
2010
  model?: string;
1993
2011
  /**
@@ -2199,7 +2217,7 @@ export type Subagent = {
2199
2217
  */
2200
2218
  instructions?: string;
2201
2219
  /**
2202
- * Its model: a role (fast, default, strong) or a catalogue model.
2220
+ * Its model's name (GET /ai/models). Left out: the project's default.
2203
2221
  */
2204
2222
  model?: string;
2205
2223
  /**
@@ -2458,19 +2476,6 @@ export type SyncProblem = {
2458
2476
  type?: string;
2459
2477
  [key: string]: unknown;
2460
2478
  };
2461
- /**
2462
- * A role a text model is chosen by.
2463
- */
2464
- export type TextModel = {
2465
- /**
2466
- * What it is for.
2467
- */
2468
- description: string;
2469
- /**
2470
- * The role.
2471
- */
2472
- role: string;
2473
- };
2474
2479
  /**
2475
2480
  * The support line's answer: what to do, and whether it was logged as something Palbase lacks — then with the case it was logged under.
2476
2481
  */
@@ -4155,7 +4160,7 @@ export declare function client(t: Transport): {
4155
4160
  /**
4156
4161
  * What a project may name
4157
4162
  *
4158
- * The roles a text model is chosen by, and the embedding and image models with their list prices.
4163
+ * Every text model a turn may name (the default and a deprecated one marked), and the embedding and image models, with their list prices.
4159
4164
  */
4160
4165
  listModels(input?: {
4161
4166
  signal?: AbortSignal;
@@ -2272,7 +2272,7 @@ export type BuildOnItsWay = {
2272
2272
  id?: string;
2273
2273
  commit?: string;
2274
2274
  /**
2275
- * requested (a build of the head is asked for; no build yet), waiting_checks, queued, building, testing, waiting_config, or rolling out
2275
+ * requested (a build of the head is asked for; no build yet), waiting_checks, queued, building, testing, waiting_config, rolling out (built; the version before serves), or waking (built, the machine asleep: woken on the version it served, it rolls the new one out — the call woke it)
2276
2276
  */
2277
2277
  state: string;
2278
2278
  };