@hearthscale/app 0.2.0 → 0.2.2

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 (2) hide show
  1. package/dist/index.d.ts +19 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -93,6 +93,9 @@ interface CompanionOption {
93
93
  interface HubCandidate {
94
94
  /** The model id the pull makes, with the projector a lone one picks. */
95
95
  id: string;
96
+ /** The name the pulled model goes by where no other model of the
97
+ * library shares it, as `CatalogModel.label` names it. */
98
+ name: string;
96
99
  path: string;
97
100
  quantization: string;
98
101
  /** Every byte the pull writes for this file, its set and its projector. */
@@ -143,9 +146,10 @@ interface HubCandidate {
143
146
  /** `GET /control/discover?task=&q=&sort=` answers the repositories of one
144
147
  * task that `q` matches, or with no `q` the whole set, at most 30, as
145
148
  * `HubRepository[]`; and `GET /control/discover/{owner}/{repo}` one
146
- * repository as `HubListing`: the files a runtime of the Server runs, and
147
- * how many files it publishes in all, so a repository whose listing
148
- * yields no candidate is one no runtime there runs. Both read Hugging
149
+ * repository as `HubListing`: the files a runtime of the Server runs, how
150
+ * many files it publishes in all, so a repository whose listing yields
151
+ * no candidate is one no runtime there runs, and every file a pull of
152
+ * another repository's model can name as a companion. Both read Hugging
149
153
  * Face on a person's act and on nothing else, and with no token, so they
150
154
  * reach the public repositories alone; the Server's own window reads the
151
155
  * same answers from `/local/discover`, with the token the person stored. */
@@ -154,6 +158,7 @@ interface HubListing {
154
158
  model: HubRepository;
155
159
  files: number;
156
160
  candidates: HubCandidate[];
161
+ companions: CompanionOption[];
157
162
  capabilities: {
158
163
  vision: boolean;
159
164
  tools: boolean;
@@ -3431,6 +3436,11 @@ interface HostSlot {
3431
3436
  * them, becomes the tab's. */
3432
3437
  session?: string | null;
3433
3438
  project?: string;
3439
+ /** On a `chat` or `composer` slot: false draws the composer with no
3440
+ * model picker, for an app whose models are chosen only on its page in
3441
+ * Settings; the rest of the composer's footer keeps its place. Absent,
3442
+ * the composer shows the picker. */
3443
+ modelPicker?: boolean;
3434
3444
  /** On a `terminal` slot: the folder its shell starts in, inside a folder
3435
3445
  * the person gave the view's app. The slot's id, letters, digits, `-`
3436
3446
  * and `_`, names the shell in the view's tab: the same id takes up the
@@ -3604,6 +3614,12 @@ interface ViewHostMethods {
3604
3614
  params: Empty;
3605
3615
  result: Empty;
3606
3616
  };
3617
+ /** Opens Settings in the window at the calling view's own app's page,
3618
+ * under Apps, on a click inside the view. */
3619
+ 'hearthscale/ui/open-settings': {
3620
+ params: Empty;
3621
+ result: Empty;
3622
+ };
3607
3623
  /** Keeps a JSON value for this view's tab, which the host gives back in
3608
3624
  * `hearthscale/widgetState`; it never reaches a model. The value takes
3609
3625
  * at most 65,536 UTF-16 code units as JSON text. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearthscale/app",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "The types a Hearthscale app's backend and views import: the backend's exports and context, the view's host methods, extensions and slots; and the typed call of a view's requests.",
5
5
  "license": "MIT",
6
6
  "type": "module",