@acrylblends/blends-frame 0.1.3 → 0.1.5

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/lib/registry.d.ts CHANGED
@@ -27,6 +27,8 @@ export interface RegistryMarks {
27
27
  }
28
28
  /** `owner/repo` of a `github:` source, lower case; undefined for any other source. */
29
29
  export declare function repoOfSource(source: string): string | undefined;
30
+ /** The unpacked size of the native package an entry brings for this computer: its OS and CPU first, then its OS for any CPU (plugin-share/native.ts). */
31
+ export declare function downloadFor(native: unknown, platform?: string, arch?: string): number | undefined;
30
32
  /**
31
33
  * The entries a Blends app can pull: the ones the index gives a version and a pull line (a plugin whose code is only a folder of another
32
34
  * repository has none). @throws when the index is not formatVersion 1.
@@ -6,8 +6,10 @@ export declare const forOtherApps: (entry: RegistryEntryView) => boolean;
6
6
  export declare function filterRegistry(entries: readonly RegistryEntryView[], query: string, showAll: boolean): RegistryEntryView[];
7
7
  /** The address a person can type or paste: `github:<owner>/<repo>@<version>`; leading and trailing space is ignored. */
8
8
  export declare function cleanAddress(text: string): string | undefined;
9
- /** The question before anything is added: whose code it is, in one sentence. */
10
- export declare const addQuestion: (name: string, owner: string) => string;
9
+ /** A download size the way a person reads it: whole megabytes (1 MB = 1,000,000 bytes, as npm and the Blends pages count). */
10
+ export declare const megabytes: (bytes: number) => string;
11
+ /** The question before anything is added: whose code it is, and what it downloads for this computer when it brings a native package. */
12
+ export declare const addQuestion: (name: string, owner: string, download?: number) => string;
11
13
  /** The answer after an add. */
12
14
  export declare function addedText(pulled: PulledPluginView): string;
13
15
  /** One line under a row: who released it, which version and when. */
@@ -350,6 +350,8 @@ export interface RegistryEntryView {
350
350
  readonly installed: boolean;
351
351
  /** The account the person is signed in to GitHub with (or shares to) released it. */
352
352
  readonly mine: boolean;
353
+ /** Bytes it downloads besides itself for this computer (a native package, plugin-share/native.ts), when the index says. */
354
+ readonly download?: number;
353
355
  }
354
356
  /** The registry as the Host read it: its entries, or why they could not be read (offline, rate limited, the site changed). */
355
357
  export type RegistryView = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrylblends/blends-frame",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "ACRYL Blends frame: the workbench around an app being built - a top bar, the branches and versions on the left, the app alone in the centre, and the agents on the right - as one Cordis plugin with a Host and a client half",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -60,11 +60,11 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@webboxes/blends-core": "0.5.0",
63
- "@webboxes/plugin-hub": "0.2.0",
64
- "@acrylblends/app-shell": "^0.1.0",
63
+ "@webboxes/plugin-hub": "0.2.2",
64
+ "@acrylblends/app-shell": "^0.1.1",
65
65
  "@acrylblends/loopback-http": "^0.1.0",
66
66
  "@acrylblends/versions": "^0.1.1",
67
- "@acrylblends/workspace": "^0.1.0",
67
+ "@acrylblends/workspace": "^0.1.1",
68
68
  "yaml": "2.9.0"
69
69
  },
70
70
  "peerDependencies": {
@@ -93,7 +93,7 @@
93
93
  "@types/node": "^24.0.0",
94
94
  "@types/react": "^18",
95
95
  "@types/react-dom": "^18",
96
- "acrylblends": "^0.1.3",
96
+ "acrylblends": "^0.1.5",
97
97
  "cytoscape": "3.34.3",
98
98
  "jsdom": "29.1.1",
99
99
  "react": "18.3.1",