@allyhub/sdk 0.3.0 → 0.4.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 (143) hide show
  1. package/dist/free.d.ts +2 -2
  2. package/dist/index.d.ts +2 -9
  3. package/dist/index.js +1 -1
  4. package/dist/module.d.ts +2 -3
  5. package/dist/module.js +1 -1
  6. package/dist/parts.d.ts +2 -2
  7. package/dist/piece.d.ts +7 -32
  8. package/dist/piece.js +1 -1
  9. package/dist/props.d.ts +53 -10
  10. package/dist/slides.d.ts +8 -0
  11. package/dist/slides.js +2 -0
  12. package/docs/README.md +1 -1
  13. package/docs/batches.md +2 -2
  14. package/docs/defaults.md +106 -3
  15. package/docs/docs.md +1 -1
  16. package/docs/project.md +5 -5
  17. package/docs/sheets.md +1 -1
  18. package/docs/slides.md +182 -80
  19. package/node_modules/@allyhub-next/audio/package.json +1 -1
  20. package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +22 -0
  21. package/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
  22. package/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1494 -0
  23. package/node_modules/@allyhub-next/formats/dist/data/slides.js +2 -0
  24. package/node_modules/@allyhub-next/formats/dist/index.d.ts +2 -0
  25. package/node_modules/@allyhub-next/formats/dist/index.js +1 -1
  26. package/node_modules/@allyhub-next/formats/dist/items.d.ts +21 -0
  27. package/node_modules/@allyhub-next/formats/dist/items.js +1 -1
  28. package/node_modules/@allyhub-next/formats/dist/note-shape.d.ts +39 -0
  29. package/node_modules/@allyhub-next/formats/dist/note-shape.js +2 -0
  30. package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +418 -0
  31. package/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
  32. package/node_modules/@allyhub-next/formats/package.json +1 -1
  33. package/node_modules/@allyhub-next/protocol/dist/app.d.ts +0 -64
  34. package/node_modules/@allyhub-next/protocol/dist/app.js +1 -1
  35. package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +0 -17
  36. package/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
  37. package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +0 -4
  38. package/node_modules/@allyhub-next/protocol/dist/cli.js +1 -1
  39. package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +9 -26
  40. package/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
  41. package/node_modules/@allyhub-next/protocol/dist/index.d.ts +1 -0
  42. package/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
  43. package/node_modules/@allyhub-next/protocol/dist/notes.d.ts +163 -0
  44. package/node_modules/@allyhub-next/protocol/dist/notes.js +2 -0
  45. package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +1 -1
  46. package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +3 -0
  47. package/node_modules/@allyhub-next/protocol/dist/runtimes.js +1 -1
  48. package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +37 -0
  49. package/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
  50. package/node_modules/@allyhub-next/protocol/package.json +1 -1
  51. package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +5 -1
  52. package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +1 -0
  53. package/node_modules/@allyhub-next/runtimes/dist/index.js +1 -1
  54. package/node_modules/@allyhub-next/runtimes/dist/node-program.d.ts +3 -0
  55. package/node_modules/@allyhub-next/runtimes/dist/node-program.js +2 -0
  56. package/node_modules/@allyhub-next/runtimes/dist/packages.d.ts +65 -0
  57. package/node_modules/@allyhub-next/runtimes/dist/packages.js +4 -0
  58. package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +2 -2
  59. package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
  60. package/node_modules/@allyhub-next/runtimes/dist/unpack.js +1 -1
  61. package/node_modules/@allyhub-next/runtimes/package.json +5 -1
  62. package/node_modules/@allyhub-next/runtimes/pins/docx/package-lock.json +67 -0
  63. package/node_modules/@allyhub-next/runtimes/pins/docx/package.json +9 -0
  64. package/node_modules/@allyhub-next/runtimes/pins/exceljs/package-lock.json +2533 -0
  65. package/node_modules/@allyhub-next/runtimes/pins/exceljs/package.json +8 -0
  66. package/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package-lock.json +753 -0
  67. package/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package.json +14 -0
  68. package/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package-lock.json +950 -0
  69. package/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package.json +8 -0
  70. package/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package-lock.json +227 -0
  71. package/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package.json +8 -0
  72. package/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package-lock.json +105 -0
  73. package/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package.json +8 -0
  74. package/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package-lock.json +128 -0
  75. package/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package.json +9 -0
  76. package/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +5 -24
  77. package/node_modules/@allyhub-next/scenery/package.json +1 -1
  78. package/node_modules/@allyhub-next/slides-core/LICENSE +241 -0
  79. package/node_modules/@allyhub-next/slides-core/dist/animation.d.ts +129 -0
  80. package/node_modules/@allyhub-next/slides-core/dist/animation.js +2 -0
  81. package/node_modules/@allyhub-next/slides-core/dist/api.d.ts +649 -0
  82. package/node_modules/@allyhub-next/slides-core/dist/api.js +4 -0
  83. package/node_modules/@allyhub-next/slides-core/dist/capabilities.d.ts +18 -0
  84. package/node_modules/@allyhub-next/slides-core/dist/capabilities.js +2 -0
  85. package/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +165 -0
  86. package/node_modules/@allyhub-next/slides-core/dist/chart-api.js +2 -0
  87. package/node_modules/@allyhub-next/slides-core/dist/chart-file.d.ts +11 -0
  88. package/node_modules/@allyhub-next/slides-core/dist/chart-file.js +2 -0
  89. package/node_modules/@allyhub-next/slides-core/dist/chart.d.ts +184 -0
  90. package/node_modules/@allyhub-next/slides-core/dist/chart.js +2 -0
  91. package/node_modules/@allyhub-next/slides-core/dist/check.d.ts +7 -0
  92. package/node_modules/@allyhub-next/slides-core/dist/check.js +2 -0
  93. package/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +146 -0
  94. package/node_modules/@allyhub-next/slides-core/dist/enums.js +2 -0
  95. package/node_modules/@allyhub-next/slides-core/dist/file.d.ts +109 -0
  96. package/node_modules/@allyhub-next/slides-core/dist/file.js +4 -0
  97. package/node_modules/@allyhub-next/slides-core/dist/index.d.ts +21 -0
  98. package/node_modules/@allyhub-next/slides-core/dist/index.js +2 -0
  99. package/node_modules/@allyhub-next/slides-core/dist/measure.d.ts +34 -0
  100. package/node_modules/@allyhub-next/slides-core/dist/measure.js +2 -0
  101. package/node_modules/@allyhub-next/slides-core/dist/model.d.ts +278 -0
  102. package/node_modules/@allyhub-next/slides-core/dist/model.js +2 -0
  103. package/node_modules/@allyhub-next/slides-core/dist/office.d.ts +58 -0
  104. package/node_modules/@allyhub-next/slides-core/dist/office.js +2 -0
  105. package/node_modules/@allyhub-next/slides-core/dist/path.d.ts +6 -0
  106. package/node_modules/@allyhub-next/slides-core/dist/path.js +2 -0
  107. package/node_modules/@allyhub-next/slides-core/dist/placeholders.d.ts +7 -0
  108. package/node_modules/@allyhub-next/slides-core/dist/placeholders.js +2 -0
  109. package/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +181 -0
  110. package/node_modules/@allyhub-next/slides-core/dist/resolve.js +2 -0
  111. package/node_modules/@allyhub-next/slides-core/dist/script.d.ts +43 -0
  112. package/node_modules/@allyhub-next/slides-core/dist/script.js +3 -0
  113. package/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +63 -0
  114. package/node_modules/@allyhub-next/slides-core/dist/stage.js +2 -0
  115. package/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +23 -0
  116. package/node_modules/@allyhub-next/slides-core/dist/strict.js +2 -0
  117. package/node_modules/@allyhub-next/slides-core/dist/theme.d.ts +72 -0
  118. package/node_modules/@allyhub-next/slides-core/dist/theme.js +2 -0
  119. package/node_modules/@allyhub-next/slides-core/dist/units.d.ts +35 -0
  120. package/node_modules/@allyhub-next/slides-core/dist/units.js +2 -0
  121. package/node_modules/@allyhub-next/slides-core/package.json +14 -0
  122. package/node_modules/@allyhub-next/video-core/dist/export.d.ts +6 -5
  123. package/node_modules/@allyhub-next/video-core/dist/export.js +1 -1
  124. package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +173 -4
  125. package/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
  126. package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +6 -13
  127. package/node_modules/@allyhub-next/video-core/dist/formats.js +1 -1
  128. package/node_modules/@allyhub-next/video-core/dist/index.d.ts +0 -1
  129. package/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
  130. package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +83 -0
  131. package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +8 -9
  132. package/node_modules/@allyhub-next/video-core/dist/piece.js +1 -1
  133. package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +5 -1
  134. package/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
  135. package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +0 -2
  136. package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +4 -0
  137. package/node_modules/@allyhub-next/video-core/dist/script.d.ts +8 -0
  138. package/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
  139. package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +34 -1
  140. package/node_modules/@allyhub-next/video-core/package.json +1 -1
  141. package/package.json +15 -8
  142. package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +0 -37
  143. package/node_modules/@allyhub-next/video-core/dist/slides.js +0 -2
@@ -1,14 +1,4 @@
1
1
  import { z } from "zod";
2
- /** The tool the model calls to show an item. */
3
- export declare const OPEN_TOOL = "allyhub_open";
4
- /** The card's resource. */
5
- export declare const CARD_RESOURCE = "ui://allyhub/card";
6
- /** Where the tool result's `_meta` holds the card whole. */
7
- export declare const CARD_META = "allyhub/card";
8
- /** `allyhub_open`'s input. */
9
- export declare const OpenInputSchema: z.ZodObject<{
10
- path: z.ZodOptional<z.ZodString>;
11
- }, z.core.$strict>;
12
2
  /** What the card shows of an item, made from its files when it is opened. */
13
3
  export declare const PreviewSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
14
4
  type: z.ZodLiteral<"picture">;
@@ -44,58 +34,4 @@ export declare const CardItemSchema: z.ZodObject<{
44
34
  title: z.ZodOptional<z.ZodString>;
45
35
  }, z.core.$strict>;
46
36
  export type CardItem = z.infer<typeof CardItemSchema>;
47
- /** `allyhub_open`'s structured result: what the card shows. */
48
- export declare const CardSchema: z.ZodObject<{
49
- project: z.ZodObject<{
50
- name: z.ZodString;
51
- }, z.core.$strict>;
52
- url: z.ZodString;
53
- item: z.ZodOptional<z.ZodObject<{
54
- kind: z.ZodEnum<{
55
- video: "video";
56
- slides: "slides";
57
- doc: "doc";
58
- sheet: "sheet";
59
- scenery: "scenery";
60
- model: "model";
61
- website: "website";
62
- }>;
63
- dir: z.ZodString;
64
- entry: z.ZodString;
65
- title: z.ZodOptional<z.ZodString>;
66
- }, z.core.$strict>>;
67
- preview: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
68
- type: z.ZodLiteral<"picture">;
69
- image: z.ZodObject<{
70
- mime: z.ZodString;
71
- data: z.ZodBase64;
72
- }, z.core.$strict>;
73
- width: z.ZodInt;
74
- height: z.ZodInt;
75
- duration: z.ZodOptional<z.ZodNumber>;
76
- }, z.core.$strict>, z.ZodObject<{
77
- type: z.ZodLiteral<"text">;
78
- lines: z.ZodArray<z.ZodString>;
79
- }, z.core.$strict>, z.ZodObject<{
80
- type: z.ZodLiteral<"table">;
81
- columns: z.ZodArray<z.ZodString>;
82
- rows: z.ZodArray<z.ZodArray<z.ZodString>>;
83
- count: z.ZodInt;
84
- }, z.core.$strict>], "type">>;
85
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
86
- kind: z.ZodEnum<{
87
- video: "video";
88
- slides: "slides";
89
- doc: "doc";
90
- sheet: "sheet";
91
- scenery: "scenery";
92
- model: "model";
93
- website: "website";
94
- }>;
95
- dir: z.ZodString;
96
- entry: z.ZodString;
97
- title: z.ZodOptional<z.ZodString>;
98
- }, z.core.$strict>>>;
99
- }, z.core.$strict>;
100
- export type Card = z.infer<typeof CardSchema>;
101
37
  //# sourceMappingURL=app.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";import{KINDS as r}from"@allyhub-next/formats";import{PathSchema as e}from"./files.js";import{ImageSchema as i}from"./tools.js";export const OPEN_TOOL="allyhub_open",CARD_RESOURCE="ui://allyhub/card",CARD_META="allyhub/card",OpenInputSchema=t.strictObject({path:t.string().min(1).optional().describe("The item to open: its folder or entry file, absolute or from the folder allyhub mcp runs in (launch/plan, launch/plan/doc.mdx); leave it out for the project's items")}),PreviewSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("picture"),image:i,width:t.int().positive(),height:t.int().positive(),duration:t.number().nonnegative().optional()}),t.strictObject({type:t.literal("text"),lines:t.array(t.string())}),t.strictObject({type:t.literal("table"),columns:t.array(t.string()),rows:t.array(t.array(t.string())),count:t.int().nonnegative()})]),CardItemSchema=t.strictObject({kind:t.enum(r),dir:e,entry:e,title:t.string().optional()}),CardSchema=t.strictObject({project:t.strictObject({name:t.string().min(1)}),url:t.string().min(1),item:CardItemSchema.optional(),preview:PreviewSchema.optional(),items:t.array(CardItemSchema).optional()});
2
+ import{z as t}from"zod";import{KINDS as e}from"@allyhub-next/formats";import{PathSchema as i}from"./files.js";import{ImageSchema as r}from"./tools.js";export const PreviewSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("picture"),image:r,width:t.int().positive(),height:t.int().positive(),duration:t.number().nonnegative().optional()}),t.strictObject({type:t.literal("text"),lines:t.array(t.string())}),t.strictObject({type:t.literal("table"),columns:t.array(t.string()),rows:t.array(t.array(t.string())),count:t.int().nonnegative()})]),CardItemSchema=t.strictObject({kind:t.enum(e),dir:i,entry:i,title:t.string().optional()});
@@ -113,21 +113,4 @@ export declare const CredentialsFileSchema: z.ZodObject<{
113
113
  since: z.ZodISODateTime;
114
114
  }, z.core.$strict>;
115
115
  export type CredentialsFile = z.infer<typeof CredentialsFileSchema>;
116
- /** What `allyhub auth token --json` prints: an access token for the API, renewed as needed. */
117
- export declare const TokenOutputSchema: z.ZodObject<{
118
- accessToken: z.ZodString;
119
- expiresAt: z.ZodISODateTime;
120
- account: z.ZodObject<{
121
- id: z.ZodString;
122
- email: z.ZodEmail;
123
- name: z.ZodOptional<z.ZodString>;
124
- organization: z.ZodOptional<z.ZodObject<{
125
- id: z.ZodString;
126
- name: z.ZodString;
127
- }, z.core.$strict>>;
128
- }, z.core.$strict>;
129
- }, z.core.$strict>;
130
- export type TokenOutput = z.infer<typeof TokenOutputSchema>;
131
- /** What a client sends with it: `Authorization: Bearer <accessToken>`. */
132
- export declare const bearer: (token: TokenOutput) => string;
133
116
  //# sourceMappingURL=auth.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as e}from"zod";export const AuthServerSchema=e.object({issuer:e.url(),authorization_endpoint:e.url(),token_endpoint:e.url(),device_authorization_endpoint:e.url(),revocation_endpoint:e.url(),code_challenge_methods_supported:e.array(e.string()).refine(t=>t.includes("S256"),{message:"The server must take S256 PKCE challenges."})}),CLIENT_ID="allyhub-cli",ISSUER_PATH="/api/auth",METADATA_PATH=`/.well-known/oauth-authorization-server${ISSUER_PATH}`,SCOPES="openid profile email offline_access",ACCOUNT_PATH="/api/account",ORGANIZATION_HEADER="x-allyhub-organization",DEVICES_PAGE_PATH="/devices",DEVICES_PATH="/api/account/devices",ACCOUNT_EXPORT_PATH="/api/account/export",ACCOUNT_DELETE_PATH="/api/account/delete",DevicesSchema=e.object({devices:e.array(e.object({id:e.string(),client:e.string(),signedInAt:e.iso.datetime(),lastActiveAt:e.iso.datetime()}))}),BROWSER_LINK_PATH="/api/account/browser-link",BrowserLinkRequestSchema=e.strictObject({to:e.string().startsWith("/")}),BrowserLinkSchema=e.object({url:e.url()}),CREDENTIALS_FILE=".allyhub/credentials.json",TokenResponseSchema=e.object({access_token:e.string().min(1),token_type:e.string(),expires_in:e.number().positive(),refresh_token:e.string().min(1).optional(),scope:e.string().optional()}),OAuthErrorSchema=e.object({error:e.string(),error_description:e.string().optional()}),DeviceAuthorizationSchema=e.object({device_code:e.string().min(1),user_code:e.string().min(1),verification_uri:e.url(),verification_uri_complete:e.url().optional(),expires_in:e.number().positive(),interval:e.number().positive().optional()}),AccountSchema=e.strictObject({id:e.string().min(1),email:e.email(),name:e.string().optional(),organization:e.strictObject({id:e.string().min(1),name:e.string()}).optional()}),CredentialsFileSchema=e.strictObject({version:e.literal(1),url:e.url(),issuer:e.url(),account:AccountSchema,refreshToken:e.string().min(1),access:e.strictObject({token:e.string().min(1),expiresAt:e.iso.datetime({offset:!0})}).optional(),since:e.iso.datetime({offset:!0})}),TokenOutputSchema=e.strictObject({accessToken:e.string().min(1),expiresAt:e.iso.datetime({offset:!0}),account:AccountSchema}),bearer=t=>`Bearer ${t.accessToken}`;
2
+ import{z as e}from"zod";export const AuthServerSchema=e.object({issuer:e.url(),authorization_endpoint:e.url(),token_endpoint:e.url(),device_authorization_endpoint:e.url(),revocation_endpoint:e.url(),code_challenge_methods_supported:e.array(e.string()).refine(t=>t.includes("S256"),{message:"The server must take S256 PKCE challenges."})}),CLIENT_ID="allyhub-cli",ISSUER_PATH="/api/auth",METADATA_PATH=`/.well-known/oauth-authorization-server${ISSUER_PATH}`,SCOPES="openid profile email offline_access",ACCOUNT_PATH="/api/account",ORGANIZATION_HEADER="x-allyhub-organization",DEVICES_PAGE_PATH="/devices",DEVICES_PATH="/api/account/devices",ACCOUNT_EXPORT_PATH="/api/account/export",ACCOUNT_DELETE_PATH="/api/account/delete",DevicesSchema=e.object({devices:e.array(e.object({id:e.string(),client:e.string(),signedInAt:e.iso.datetime(),lastActiveAt:e.iso.datetime()}))}),BROWSER_LINK_PATH="/api/account/browser-link",BrowserLinkRequestSchema=e.strictObject({to:e.string().startsWith("/")}),BrowserLinkSchema=e.object({url:e.url()}),CREDENTIALS_FILE=".allyhub/credentials.json",TokenResponseSchema=e.object({access_token:e.string().min(1),token_type:e.string(),expires_in:e.number().positive(),refresh_token:e.string().min(1).optional(),scope:e.string().optional()}),OAuthErrorSchema=e.object({error:e.string(),error_description:e.string().optional()}),DeviceAuthorizationSchema=e.object({device_code:e.string().min(1),user_code:e.string().min(1),verification_uri:e.url(),verification_uri_complete:e.url().optional(),expires_in:e.number().positive(),interval:e.number().positive().optional()}),AccountSchema=e.strictObject({id:e.string().min(1),email:e.email(),name:e.string().optional(),organization:e.strictObject({id:e.string().min(1),name:e.string()}).optional()}),CredentialsFileSchema=e.strictObject({version:e.literal(1),url:e.url(),issuer:e.url(),account:AccountSchema,refreshToken:e.string().min(1),access:e.strictObject({token:e.string().min(1),expiresAt:e.iso.datetime({offset:!0})}).optional(),since:e.iso.datetime({offset:!0})});
@@ -40,8 +40,6 @@ export interface CommandSpec<I extends z.ZodObject = z.ZodObject, O extends z.Zo
40
40
  output: O;
41
41
  /** Lines of `allyhub help <command>` that show it at work. */
42
42
  examples?: readonly string[];
43
- /** Exposed as an MCP tool by `allyhub mcp` (most are; one that talks to a terminal is not). */
44
- mcp?: boolean;
45
43
  }
46
44
  /** A command's spec, checked: its name's form, and that each positional is a field. */
47
45
  export declare function command<I extends z.ZodObject, O extends z.ZodType>(spec: CommandSpec<I, O>): CommandSpec<I, O>;
@@ -54,6 +52,4 @@ export declare function describeCommand(spec: CommandSpec): {
54
52
  output: Record<string, unknown>;
55
53
  examples: string[];
56
54
  };
57
- /** The MCP tool name of a command: `scenery view` is `allyhub_scenery_view`. */
58
- export declare const toolName: (name: string) => string;
59
55
  //# sourceMappingURL=cli.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as o}from"zod";export const EXIT={ok:0,failed:1,usage:2,conflict:3,auth:4,platform:5,notFound:6,interrupted:130},CliErrorSchema=o.strictObject({error:o.strictObject({code:o.string().regex(/^[a-z][a-z0-9-]*$/u),message:o.string().min(1),hint:o.string().optional()})}),COMMAND_NAME=/^[a-z0-9][a-z0-9-]*(?: [a-z0-9][a-z0-9-]*)*$/u;export function command(t){if(!COMMAND_NAME.test(t.name))throw new Error(`"${t.name}" is not a command name.`);const e=Object.keys(t.input.shape);for(const n of t.positional??[])if(!e.includes(n))throw new Error(`${t.name}: positional "${n}" is not a field of its input.`);for(const[n,r]of Object.entries(t.input.shape))if(!r.description)throw new Error(`${t.name}: "${n}" has no description.`);return t}export function describeCommand(t){return{name:t.name,summary:t.summary,positional:[...t.positional??[]],input:o.toJSONSchema(t.input,{io:"input",unrepresentable:"any"}),output:o.toJSONSchema(t.output,{io:"output",unrepresentable:"any"}),examples:[...t.examples??[]]}}export const toolName=t=>`allyhub_${t.replaceAll(/[ -]/gu,"_")}`;
2
+ import{z as o}from"zod";export const EXIT={ok:0,failed:1,usage:2,conflict:3,auth:4,platform:5,notFound:6,interrupted:130},CliErrorSchema=o.strictObject({error:o.strictObject({code:o.string().regex(/^[a-z][a-z0-9-]*$/u),message:o.string().min(1),hint:o.string().optional()})}),COMMAND_NAME=/^[a-z0-9][a-z0-9-]*(?: [a-z0-9][a-z0-9-]*)*$/u;export function command(t){if(!COMMAND_NAME.test(t.name))throw new Error(`"${t.name}" is not a command name.`);const e=Object.keys(t.input.shape);for(const n of t.positional??[])if(!e.includes(n))throw new Error(`${t.name}: positional "${n}" is not a field of its input.`);for(const[n,r]of Object.entries(t.input.shape))if(!r.description)throw new Error(`${t.name}: "${n}" has no description.`);return t}export function describeCommand(t){return{name:t.name,summary:t.summary,positional:[...t.positional??[]],input:o.toJSONSchema(t.input,{io:"input",unrepresentable:"any"}),output:o.toJSONSchema(t.output,{io:"output",unrepresentable:"any"}),examples:[...t.examples??[]]}}
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { type ClientOf } from "./jsonrpc.js";
3
+ import type { NoteSurface } from "./notes.js";
3
4
  export declare const ThemeSchema: z.ZodEnum<{
4
5
  light: "light";
5
6
  dark: "dark";
@@ -115,19 +116,6 @@ export declare const HOST_METHODS: {
115
116
  }>;
116
117
  message: z.ZodOptional<z.ZodString>;
117
118
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
118
- readonly "editor/context": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
119
- text: z.ZodString;
120
- at: z.ZodOptional<z.ZodObject<{
121
- t: z.ZodNumber;
122
- version: z.ZodString;
123
- }, z.core.$strict>>;
124
- picture: z.ZodOptional<z.ZodObject<{
125
- x: z.ZodNumber;
126
- y: z.ZodNumber;
127
- width: z.ZodNumber;
128
- height: z.ZodNumber;
129
- }, z.core.$strict>>;
130
- }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
131
119
  readonly "tools/call": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
132
120
  name: z.ZodString;
133
121
  arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -176,6 +164,7 @@ export declare const HOST_NOTIFICATIONS: {
176
164
  item: z.ZodString;
177
165
  versions: z.ZodArray<z.ZodString>;
178
166
  types: z.ZodArray<z.ZodString>;
167
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
179
168
  state: z.ZodEnum<{
180
169
  running: "running";
181
170
  done: "done";
@@ -249,6 +238,11 @@ export declare const HOST_NOTIFICATIONS: {
249
238
  website: "website";
250
239
  }>;
251
240
  }, z.core.$strict>>;
241
+ readonly "editor/command": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
242
+ command: z.ZodEnum<{
243
+ export: "export";
244
+ }>;
245
+ }, z.core.$strict>>;
252
246
  };
253
247
  /** Every method an editor may call on its host. */
254
248
  export declare const EDITOR_HOST_METHODS: {
@@ -315,19 +309,6 @@ export declare const EDITOR_HOST_METHODS: {
315
309
  }>;
316
310
  message: z.ZodOptional<z.ZodString>;
317
311
  }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
318
- readonly "editor/context": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
319
- text: z.ZodString;
320
- at: z.ZodOptional<z.ZodObject<{
321
- t: z.ZodNumber;
322
- version: z.ZodString;
323
- }, z.core.$strict>>;
324
- picture: z.ZodOptional<z.ZodObject<{
325
- x: z.ZodNumber;
326
- y: z.ZodNumber;
327
- width: z.ZodNumber;
328
- height: z.ZodNumber;
329
- }, z.core.$strict>>;
330
- }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
331
312
  readonly "tools/call": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
332
313
  name: z.ZodString;
333
314
  arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -405,5 +386,7 @@ export declare const EDITOR_HOST_METHODS: {
405
386
  export type EditorHost = ClientOf<typeof EDITOR_HOST_METHODS> & {
406
387
  /** Tells `files/changed`, `host/context-changed` and the tools' notifications; answers how to stop. */
407
388
  on<N extends keyof typeof HOST_NOTIFICATIONS>(name: N, listener: (params: z.output<(typeof HOST_NOTIFICATIONS)[N]["params"]>) => void): () => void;
389
+ /** Gives the host what it asks of the editor for a person's notes; answers how to stop. Absent where nobody takes notes. */
390
+ notes?(surface: NoteSurface): () => void;
408
391
  };
409
392
  //# sourceMappingURL=editor.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";import{EDITORS as r,KINDS as s}from"@allyhub-next/formats";import{FILE_METHODS as n,FILE_NOTIFICATIONS as i,PathSchema as o}from"./files.js";import{method as e,notification as a}from"./jsonrpc.js";import{TOOL_NOTIFICATIONS as c}from"./tools.js";export const ThemeSchema=t.enum(["light","dark"]),HostContextSchema=t.strictObject({locale:t.string().min(2),theme:ThemeSchema,agent:t.strictObject({name:t.string().min(1)}).optional(),project:t.strictObject({name:t.string().min(1)}),item:t.strictObject({kind:t.enum(s),dir:o,entry:o}),editor:t.enum(r)}),OpenTargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("file"),path:o,line:t.int().positive().optional()}),t.strictObject({type:t.literal("browser"),url:t.url({protocol:/^https?$/u}).optional(),tabId:t.string().min(1).optional()})]),EDITOR_STATES=["saved","saving","unsaved","error"],HOST_METHODS={"host/context":e(t.strictObject({}),HostContextSchema,"Where the editor runs."),"items/open":e(t.strictObject({target:OpenTargetSchema}),t.strictObject({}),"Shows another item, a file or a page, where the host shows things."),"storage/get":e(t.strictObject({key:t.string().min(1)}),t.strictObject({value:t.unknown()}),"What the editor kept for this person on this computer (a hand sort, what was last seen), or null."),"storage/set":e(t.strictObject({key:t.string().min(1),value:t.unknown()}),t.strictObject({}),"Keeps a value for this person on this computer; null removes it."),"editor/state":e(t.strictObject({state:t.enum(EDITOR_STATES),message:t.string().optional()}),t.strictObject({}),"Says whether what the person typed is saved."),"editor/context":e(t.strictObject({text:t.string(),at:t.strictObject({t:t.number().nonnegative(),version:t.string()}).optional(),picture:t.strictObject({x:t.number(),y:t.number(),width:t.number().positive(),height:t.number().positive()}).optional()}),t.strictObject({}),"Tells the host what the editor shows, as MCP Apps' ui/update-model-context does: what a note the person makes on it is about."),"tools/call":e(t.strictObject({name:t.string().min(1),arguments:t.record(t.string(),t.unknown()).default({})}),t.strictObject({result:t.unknown()}),"Runs one of the project server's tools (tools.ts's PROJECT_TOOLS), for an editor that needs more than files (a video's preview, a still).")},HOST_NOTIFICATIONS={"host/context-changed":a(HostContextSchema,"The language, theme or agent changed."),...i,...c},EDITOR_HOST_METHODS={...n,...HOST_METHODS};
2
+ import{z as t}from"zod";import{EDITORS as s,KINDS as n}from"@allyhub-next/formats";import{FILE_METHODS as i,FILE_NOTIFICATIONS as a,PathSchema as o}from"./files.js";import{method as e,notification as r}from"./jsonrpc.js";import{TOOL_NOTIFICATIONS as c}from"./tools.js";export const ThemeSchema=t.enum(["light","dark"]),HostContextSchema=t.strictObject({locale:t.string().min(2),theme:ThemeSchema,agent:t.strictObject({name:t.string().min(1)}).optional(),project:t.strictObject({name:t.string().min(1)}),item:t.strictObject({kind:t.enum(n),dir:o,entry:o}),editor:t.enum(s)}),OpenTargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("file"),path:o,line:t.int().positive().optional()}),t.strictObject({type:t.literal("browser"),url:t.url({protocol:/^https?$/u}).optional(),tabId:t.string().min(1).optional()})]),EDITOR_STATES=["saved","saving","unsaved","error"],HOST_METHODS={"host/context":e(t.strictObject({}),HostContextSchema,"Where the editor runs."),"items/open":e(t.strictObject({target:OpenTargetSchema}),t.strictObject({}),"Shows another item, a file or a page, where the host shows things."),"storage/get":e(t.strictObject({key:t.string().min(1)}),t.strictObject({value:t.unknown()}),"What the editor kept for this person on this computer (a hand sort, what was last seen), or null."),"storage/set":e(t.strictObject({key:t.string().min(1),value:t.unknown()}),t.strictObject({}),"Keeps a value for this person on this computer; null removes it."),"editor/state":e(t.strictObject({state:t.enum(EDITOR_STATES),message:t.string().optional()}),t.strictObject({}),"Says whether what the person typed is saved."),"tools/call":e(t.strictObject({name:t.string().min(1),arguments:t.record(t.string(),t.unknown()).default({})}),t.strictObject({result:t.unknown()}),"Runs one of the project server's tools (tools.ts's PROJECT_TOOLS), for an editor that needs more than files (a video's preview, a still).")},HOST_NOTIFICATIONS={"host/context-changed":r(HostContextSchema,"The language, theme or agent changed."),"editor/command":r(t.strictObject({command:t.enum(["export"])}),"The host around the editor asked it to do what its own shortcut does."),...a,...c},EDITOR_HOST_METHODS={...i,...HOST_METHODS};
@@ -1,6 +1,7 @@
1
1
  export * from "./jsonrpc.js";
2
2
  export * from "./files.js";
3
3
  export * from "./editor.js";
4
+ export * from "./notes.js";
4
5
  export * from "./tools.js";
5
6
  export * from "./cli.js";
6
7
  export * from "./auth.js";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export*from"./jsonrpc.js";export*from"./files.js";export*from"./editor.js";export*from"./tools.js";export*from"./cli.js";export*from"./auth.js";export*from"./registry.js";export*from"./runtimes.js";export*from"./cloud.js";export*from"./teams.js";export*from"./app.js";export*from"./routes.js";
2
+ export*from"./jsonrpc.js";export*from"./files.js";export*from"./editor.js";export*from"./notes.js";export*from"./tools.js";export*from"./cli.js";export*from"./auth.js";export*from"./registry.js";export*from"./runtimes.js";export*from"./cloud.js";export*from"./teams.js";export*from"./app.js";export*from"./routes.js";
@@ -0,0 +1,163 @@
1
+ import { z } from "zod";
2
+ import { pointsOf, mapShape, touches, type NoteShape } from "@allyhub-next/formats";
3
+ export declare const NoteRectSchema: z.ZodObject<{
4
+ x: z.ZodNumber;
5
+ y: z.ZodNumber;
6
+ width: z.ZodNumber;
7
+ height: z.ZodNumber;
8
+ }, z.core.$strict>;
9
+ export type NoteRect = z.infer<typeof NoteRectSchema>;
10
+ /** A mark as the host tells it, px of the surface: its shape, and nothing of what is under it. */
11
+ export declare const NoteShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12
+ kind: z.ZodLiteral<"box">;
13
+ rect: z.ZodObject<{
14
+ x: z.ZodNumber;
15
+ y: z.ZodNumber;
16
+ width: z.ZodNumber;
17
+ height: z.ZodNumber;
18
+ }, z.core.$strict>;
19
+ }, z.core.$strict>, z.ZodObject<{
20
+ kind: z.ZodLiteral<"round">;
21
+ rect: z.ZodObject<{
22
+ x: z.ZodNumber;
23
+ y: z.ZodNumber;
24
+ width: z.ZodNumber;
25
+ height: z.ZodNumber;
26
+ }, z.core.$strict>;
27
+ }, z.core.$strict>, z.ZodObject<{
28
+ kind: z.ZodLiteral<"arrow">;
29
+ from: z.ZodObject<{
30
+ x: z.ZodNumber;
31
+ y: z.ZodNumber;
32
+ }, z.core.$strict>;
33
+ to: z.ZodObject<{
34
+ x: z.ZodNumber;
35
+ y: z.ZodNumber;
36
+ }, z.core.$strict>;
37
+ }, z.core.$strict>, z.ZodObject<{
38
+ kind: z.ZodLiteral<"line">;
39
+ points: z.ZodArray<z.ZodObject<{
40
+ x: z.ZodNumber;
41
+ y: z.ZodNumber;
42
+ }, z.core.$strict>>;
43
+ }, z.core.$strict>], "kind">;
44
+ export { mapShape, pointsOf, touches };
45
+ export type { NoteShape };
46
+ /** Where to change something: a project's file, and its line. */
47
+ export declare const NoteSourceSchema: z.ZodObject<{
48
+ path: z.ZodString;
49
+ line: z.ZodOptional<z.ZodInt>;
50
+ }, z.core.$strict>;
51
+ export type NoteSource = z.infer<typeof NoteSourceSchema>;
52
+ export declare const FrozenSchema: z.ZodObject<{
53
+ key: z.ZodString;
54
+ what: z.ZodString;
55
+ source: z.ZodOptional<z.ZodObject<{
56
+ path: z.ZodString;
57
+ line: z.ZodOptional<z.ZodInt>;
58
+ }, z.core.$strict>>;
59
+ }, z.core.$strict>;
60
+ export type Frozen = z.infer<typeof FrozenSchema>;
61
+ export declare const NotePictureSchema: z.ZodObject<{
62
+ rect: z.ZodOptional<z.ZodObject<{
63
+ x: z.ZodNumber;
64
+ y: z.ZodNumber;
65
+ width: z.ZodNumber;
66
+ height: z.ZodNumber;
67
+ }, z.core.$strict>>;
68
+ mime: z.ZodString;
69
+ data: z.ZodString;
70
+ }, z.core.$strict>;
71
+ export type NotePicture = z.infer<typeof NotePictureSchema>;
72
+ export declare const NoteElementSchema: z.ZodObject<{
73
+ name: z.ZodString;
74
+ source: z.ZodOptional<z.ZodObject<{
75
+ path: z.ZodString;
76
+ line: z.ZodOptional<z.ZodInt>;
77
+ }, z.core.$strict>>;
78
+ text: z.ZodOptional<z.ZodString>;
79
+ }, z.core.$strict>;
80
+ export type NoteElement = z.infer<typeof NoteElementSchema>;
81
+ /**
82
+ * What a framed page tells the window that holds it: it answers `NOTE_METHODS`
83
+ * from now on, or no longer. The window asks only a page that has said so.
84
+ */
85
+ export declare const NOTE_READY = "note/ready";
86
+ export declare const NOTE_GONE = "note/gone";
87
+ export declare const NOTE_METHODS: {
88
+ readonly "note/freeze": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
89
+ key: z.ZodString;
90
+ what: z.ZodString;
91
+ source: z.ZodOptional<z.ZodObject<{
92
+ path: z.ZodString;
93
+ line: z.ZodOptional<z.ZodInt>;
94
+ }, z.core.$strict>>;
95
+ }, z.core.$strict>>;
96
+ readonly "note/pictures": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
97
+ page: z.ZodBoolean;
98
+ }, z.core.$strict>, z.ZodObject<{
99
+ pictures: z.ZodArray<z.ZodObject<{
100
+ rect: z.ZodOptional<z.ZodObject<{
101
+ x: z.ZodNumber;
102
+ y: z.ZodNumber;
103
+ width: z.ZodNumber;
104
+ height: z.ZodNumber;
105
+ }, z.core.$strict>>;
106
+ mime: z.ZodString;
107
+ data: z.ZodString;
108
+ }, z.core.$strict>>;
109
+ }, z.core.$strict>>;
110
+ readonly "note/locate": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
111
+ mark: z.ZodDiscriminatedUnion<[z.ZodObject<{
112
+ kind: z.ZodLiteral<"box">;
113
+ rect: z.ZodObject<{
114
+ x: z.ZodNumber;
115
+ y: z.ZodNumber;
116
+ width: z.ZodNumber;
117
+ height: z.ZodNumber;
118
+ }, z.core.$strict>;
119
+ }, z.core.$strict>, z.ZodObject<{
120
+ kind: z.ZodLiteral<"round">;
121
+ rect: z.ZodObject<{
122
+ x: z.ZodNumber;
123
+ y: z.ZodNumber;
124
+ width: z.ZodNumber;
125
+ height: z.ZodNumber;
126
+ }, z.core.$strict>;
127
+ }, z.core.$strict>, z.ZodObject<{
128
+ kind: z.ZodLiteral<"arrow">;
129
+ from: z.ZodObject<{
130
+ x: z.ZodNumber;
131
+ y: z.ZodNumber;
132
+ }, z.core.$strict>;
133
+ to: z.ZodObject<{
134
+ x: z.ZodNumber;
135
+ y: z.ZodNumber;
136
+ }, z.core.$strict>;
137
+ }, z.core.$strict>, z.ZodObject<{
138
+ kind: z.ZodLiteral<"line">;
139
+ points: z.ZodArray<z.ZodObject<{
140
+ x: z.ZodNumber;
141
+ y: z.ZodNumber;
142
+ }, z.core.$strict>>;
143
+ }, z.core.$strict>], "kind">;
144
+ }, z.core.$strict>, z.ZodObject<{
145
+ elements: z.ZodArray<z.ZodObject<{
146
+ name: z.ZodString;
147
+ source: z.ZodOptional<z.ZodObject<{
148
+ path: z.ZodString;
149
+ line: z.ZodOptional<z.ZodInt>;
150
+ }, z.core.$strict>>;
151
+ text: z.ZodOptional<z.ZodString>;
152
+ }, z.core.$strict>>;
153
+ }, z.core.$strict>>;
154
+ readonly "note/thaw": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
155
+ };
156
+ /** What an editor gives its host for notes on it, for as long as it is on show. */
157
+ export interface NoteSurface {
158
+ freeze(): Promise<Frozen>;
159
+ pictures?(): Promise<NotePicture[]>;
160
+ locate?(mark: NoteShape): Promise<NoteElement[]>;
161
+ thaw?(): void;
162
+ }
163
+ //# sourceMappingURL=notes.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as t}from"zod";import{pointsOf as r,mapShape as n,touches as i}from"@allyhub-next/formats";import{PathSchema as s}from"./files.js";import{method as e}from"./jsonrpc.js";export const NoteRectSchema=t.strictObject({x:t.number(),y:t.number(),width:t.number().nonnegative(),height:t.number().nonnegative()});const o=t.strictObject({x:t.number(),y:t.number()});export const NoteShapeSchema=t.discriminatedUnion("kind",[t.strictObject({kind:t.literal("box"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("round"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("arrow"),from:o,to:o}),t.strictObject({kind:t.literal("line"),points:t.array(o).min(1)})]);export{n as mapShape,r as pointsOf,i as touches};export const NoteSourceSchema=t.strictObject({path:s,line:t.int().positive().optional()}),FrozenSchema=t.strictObject({key:t.string().min(1),what:t.string(),source:NoteSourceSchema.optional()}),NotePictureSchema=t.strictObject({rect:NoteRectSchema.optional(),mime:t.string().min(1),data:t.string().min(1)}),NoteElementSchema=t.strictObject({name:t.string().min(1),source:NoteSourceSchema.optional(),text:t.string().optional()}),NOTE_READY="note/ready",NOTE_GONE="note/gone",NOTE_METHODS={"note/freeze":e(t.strictObject({}),FrozenSchema,"Stops what moves and says what is on show. Answered once it is drawn, so a page still loading is not captured empty."),"note/pictures":e(t.strictObject({page:t.boolean()}),t.strictObject({pictures:t.array(NotePictureSchema)}),"What is on show drawn better than a screenshot can, or what a screenshot cannot reach: a render's frame, a frame of its own. Laid in order over the host's screenshot."),"note/locate":e(t.strictObject({mark:NoteShapeSchema}),t.strictObject({elements:t.array(NoteElementSchema)}),"What a mark is on, while frozen: the surface alone knows what it shows, and says it in its own terms, with its file and line where it knows them. Empty is an answer: the mark's place still goes."),"note/thaw":e(t.strictObject({}),t.strictObject({}),"The person is done. Nothing starts by itself: a video that was paused stays paused.")};
@@ -144,8 +144,8 @@ export declare const RegistryIndexSchema: z.ZodObject<{
144
144
  title: z.ZodString;
145
145
  description: z.ZodString;
146
146
  version: z.ZodOptional<z.ZodString>;
147
- preview: z.ZodOptional<z.ZodString>;
148
147
  categories: z.ZodDefault<z.ZodArray<z.ZodString>>;
148
+ preview: z.ZodOptional<z.ZodString>;
149
149
  card: z.ZodOptional<z.ZodObject<{
150
150
  category: z.ZodEnum<{
151
151
  video: "video";
@@ -10,6 +10,7 @@ export declare const RuntimeFileSchema: z.ZodObject<{
10
10
  none: "none";
11
11
  zip: "zip";
12
12
  tgz: "tgz";
13
+ dmg: "dmg";
13
14
  }>>;
14
15
  name: z.ZodOptional<z.ZodString>;
15
16
  check: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -39,6 +40,7 @@ export declare const RuntimeSchema: z.ZodObject<{
39
40
  none: "none";
40
41
  zip: "zip";
41
42
  tgz: "tgz";
43
+ dmg: "dmg";
42
44
  }>>;
43
45
  name: z.ZodOptional<z.ZodString>;
44
46
  check: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -72,6 +74,7 @@ export declare const RuntimeManifestSchema: z.ZodObject<{
72
74
  none: "none";
73
75
  zip: "zip";
74
76
  tgz: "tgz";
77
+ dmg: "dmg";
75
78
  }>>;
76
79
  name: z.ZodOptional<z.ZodString>;
77
80
  check: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";export const PLATFORMS=["darwin-arm64","darwin-x64","linux-x64","linux-arm64","win32-x64"];const s=t.string().regex(/^[0-9a-f]{64}$/u),i=t.string().min(1).refine(e=>!e.startsWith("/")&&!e.split(/[\\/]/u).includes(".."),{message:"A path stays inside the runtime's folder."});export const RuntimeFileSchema=t.strictObject({url:t.url({protocol:/^https$/u}),sha256:s,size:t.int().positive(),unpack:t.enum(["none","zip","tgz"]).default("none"),name:i.optional(),check:t.array(t.strictObject({path:i,sha256:s})).default([]),executable:t.boolean().default(!1),bins:t.record(t.string().regex(/^[a-z0-9][a-z0-9-]*$/u),i).default({})}),RuntimeSchema=t.strictObject({about:t.string().min(1),version:t.string().min(1),license:t.string().min(1),homepage:t.url().optional(),platforms:t.partialRecord(t.union([t.enum(PLATFORMS),t.literal("any")]),t.array(RuntimeFileSchema).min(1))}),RuntimeManifestSchema=t.strictObject({$schema:t.string().optional(),version:t.literal(1),runtimes:t.record(t.string().regex(/^[a-z0-9][a-z0-9-]*$/u),RuntimeSchema)});export function platformOf(e,n){const r=`${e}-${n}`;return PLATFORMS.includes(r)?r:void 0}export function binsOf(e){return Object.assign({},...e.map(n=>n.bins))}export function filesFor(e,n){return e.platforms[n]??e.platforms.any}
2
+ import{z as t}from"zod";export const PLATFORMS=["darwin-arm64","darwin-x64","linux-x64","linux-arm64","win32-x64"];const s=t.string().regex(/^[0-9a-f]{64}$/u),i=t.string().min(1).refine(e=>!e.startsWith("/")&&!e.split(/[\\/]/u).includes(".."),{message:"A path stays inside the runtime's folder."});export const RuntimeFileSchema=t.strictObject({url:t.url({protocol:/^https$/u}),sha256:s,size:t.int().positive(),unpack:t.enum(["none","zip","tgz","dmg"]).default("none"),name:i.optional(),check:t.array(t.strictObject({path:i,sha256:s})).default([]),executable:t.boolean().default(!1),bins:t.record(t.string().regex(/^[a-z0-9][a-z0-9-]*$/u),i).default({})}),RuntimeSchema=t.strictObject({about:t.string().min(1),version:t.string().min(1),license:t.string().min(1),homepage:t.url().optional(),platforms:t.partialRecord(t.union([t.enum(PLATFORMS),t.literal("any")]),t.array(RuntimeFileSchema).min(1))}),RuntimeManifestSchema=t.strictObject({$schema:t.string().optional(),version:t.literal(1),runtimes:t.record(t.string().regex(/^[a-z0-9][a-z0-9-]*$/u),RuntimeSchema)});export function platformOf(e,n){const r=`${e}-${n}`;return PLATFORMS.includes(r)?r:void 0}export function binsOf(e){return Object.assign({},...e.map(n=>n.bins))}export function filesFor(e,n){return e.platforms[n]??e.platforms.any}
@@ -67,11 +67,15 @@ export declare const CheckStateSchema: z.ZodObject<{
67
67
  export type CheckState = z.infer<typeof CheckStateSchema>;
68
68
  export declare const EXPORT_STATES: readonly ["queued", "running", "done", "failed", "cancelled"];
69
69
  /** An export the person asked for, one at a time. */
70
+ /** The choices an export is made with (`EXPORT_OFFER`). */
71
+ export declare const ExportOptionsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
72
+ export type ExportOptions = z.infer<typeof ExportOptionsSchema>;
70
73
  export declare const ExportJobSchema: z.ZodObject<{
71
74
  id: z.ZodString;
72
75
  item: z.ZodString;
73
76
  versions: z.ZodArray<z.ZodString>;
74
77
  types: z.ZodArray<z.ZodString>;
78
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
75
79
  state: z.ZodEnum<{
76
80
  running: "running";
77
81
  done: "done";
@@ -132,6 +136,17 @@ export declare const PROJECT_TOOLS: {
132
136
  lang: z.ZodOptional<z.ZodString>;
133
137
  }, z.core.$strict>>;
134
138
  }, z.core.$strict>>;
139
+ readonly "slides/deck": MethodSpec<z.ZodObject<{
140
+ item: z.ZodString;
141
+ }, z.core.$strict>, z.ZodObject<{
142
+ piece: z.ZodString;
143
+ file: z.ZodString;
144
+ prefix: z.ZodString;
145
+ layouts: z.ZodArray<z.ZodString>;
146
+ components: z.ZodRecord<z.ZodString, z.ZodUnknown>;
147
+ generators: z.ZodArray<z.ZodString>;
148
+ scripts: z.ZodRecord<z.ZodString, z.ZodString>;
149
+ }, z.core.$strict>>;
135
150
  readonly "video/stage": MethodSpec<z.ZodObject<{
136
151
  start: z.ZodOptional<z.ZodObject<{
137
152
  t: z.ZodOptional<z.ZodNumber>;
@@ -141,6 +156,7 @@ export declare const PROJECT_TOOLS: {
141
156
  }, z.core.$strict>>;
142
157
  play: z.ZodOptional<z.ZodBoolean>;
143
158
  chrome: z.ZodOptional<z.ZodBoolean>;
159
+ edit: z.ZodOptional<z.ZodBoolean>;
144
160
  item: z.ZodString;
145
161
  version: z.ZodOptional<z.ZodString>;
146
162
  }, z.core.$strict>, z.ZodObject<{
@@ -174,6 +190,19 @@ export declare const PROJECT_TOOLS: {
174
190
  height: z.ZodInt;
175
191
  duration: z.ZodNumber;
176
192
  }, z.core.$strict>>;
193
+ readonly "video/stills": MethodSpec<z.ZodObject<{
194
+ moments: z.ZodArray<z.ZodNumber>;
195
+ item: z.ZodString;
196
+ version: z.ZodOptional<z.ZodString>;
197
+ }, z.core.$strict>, z.ZodObject<{
198
+ stills: z.ZodArray<z.ZodObject<{
199
+ t: z.ZodNumber;
200
+ image: z.ZodObject<{
201
+ mime: z.ZodString;
202
+ data: z.ZodBase64;
203
+ }, z.core.$strict>;
204
+ }, z.core.$strict>>;
205
+ }, z.core.$strict>>;
177
206
  readonly "check/results": MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
178
207
  status: z.ZodEnum<{
179
208
  off: "off";
@@ -210,12 +239,14 @@ export declare const PROJECT_TOOLS: {
210
239
  item: z.ZodString;
211
240
  versions: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
241
  types: z.ZodOptional<z.ZodArray<z.ZodString>>;
242
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
213
243
  }, z.core.$strict>, z.ZodObject<{
214
244
  job: z.ZodObject<{
215
245
  id: z.ZodString;
216
246
  item: z.ZodString;
217
247
  versions: z.ZodArray<z.ZodString>;
218
248
  types: z.ZodArray<z.ZodString>;
249
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
219
250
  state: z.ZodEnum<{
220
251
  running: "running";
221
252
  done: "done";
@@ -237,6 +268,7 @@ export declare const PROJECT_TOOLS: {
237
268
  item: z.ZodString;
238
269
  versions: z.ZodArray<z.ZodString>;
239
270
  types: z.ZodArray<z.ZodString>;
271
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
240
272
  state: z.ZodEnum<{
241
273
  running: "running";
242
274
  done: "done";
@@ -248,7 +280,11 @@ export declare const PROJECT_TOOLS: {
248
280
  files: z.ZodArray<z.ZodString>;
249
281
  error: z.ZodOptional<z.ZodString>;
250
282
  }, z.core.$strict>>;
283
+ reveal: z.ZodBoolean;
251
284
  }, z.core.$strict>>;
285
+ readonly "export/reveal": MethodSpec<z.ZodObject<{
286
+ path: z.ZodString;
287
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
252
288
  readonly "scenery/viewer": MethodSpec<z.ZodObject<{
253
289
  item: z.ZodString;
254
290
  camera: z.ZodOptional<z.ZodObject<{
@@ -318,6 +354,7 @@ export declare const TOOL_NOTIFICATIONS: {
318
354
  item: z.ZodString;
319
355
  versions: z.ZodArray<z.ZodString>;
320
356
  types: z.ZodArray<z.ZodString>;
357
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
321
358
  state: z.ZodEnum<{
322
359
  running: "running";
323
360
  done: "done";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as e}from"zod";import{KINDS as c}from"@allyhub-next/formats";import{PathSchema as n}from"./files.js";import{method as t,notification as r}from"./jsonrpc.js";const i={item:n,version:e.string().optional()};export const ImageSchema=e.strictObject({mime:e.string().regex(/^image\//u),data:e.base64()}),ProblemSchema=e.looseObject({code:e.string(),level:e.enum(["error","warn"]),message:e.string(),piece:e.string().optional(),part:e.string().optional(),t:e.number().optional()}),FactSchema=e.looseObject({kind:e.string(),data:e.unknown()}),TimelineSchema=e.looseObject({fps:e.number(),width:e.number(),height:e.number(),duration:e.number(),parts:e.array(e.unknown())}),CHECK_STATES=["off","waiting","running","done","failed"],CheckStateSchema=e.strictObject({status:e.enum(CHECK_STATES),revision:e.int().nonnegative(),problems:e.array(ProblemSchema),facts:e.array(FactSchema),versions:e.strictObject({total:e.int(),loaded:e.int(),reused:e.int()}).optional(),error:e.string().optional()}),EXPORT_STATES=["queued","running","done","failed","cancelled"],ExportJobSchema=e.strictObject({id:e.string(),item:n,versions:e.array(e.string()),types:e.array(e.string()),state:e.enum(EXPORT_STATES),progress:e.number().min(0).max(1),files:e.array(n),error:e.string().optional()}),IndexJobSchema=e.strictObject({file:n,status:e.enum(["running","done","failed"]),message:e.string(),share:e.number().min(0).max(1).optional()});const s=e.tuple([e.number(),e.number(),e.number()]),a=e.strictObject({url:e.string(),probe:e.string()});export const PROJECT_TOOLS={"project/items":t(e.strictObject({}),e.strictObject({items:e.array(e.strictObject({kind:e.enum(c),dir:n,entry:n,title:e.string().optional()})),folder:e.string(),name:e.string(),revision:e.int().nonnegative()}),"The project's items, as the build finds them."),"video/versions":t(e.strictObject({item:n}),e.strictObject({piece:e.string(),kind:e.enum(["video","slides"]),title:e.string().optional(),width:e.number(),height:e.number(),versions:e.array(e.strictObject({key:e.string(),lang:e.string().optional()}))}),"A video's or a deck's versions, one per language: what its stage, its timeline and its exports are asked for."),"video/stage":t(e.strictObject({...i,start:e.strictObject({t:e.number().nonnegative().optional(),part:e.string().optional(),offset:e.number().nonnegative().optional(),dur:e.number().positive().optional()}).optional(),play:e.boolean().optional(),chrome:e.boolean().optional()}),a,"The address of a version's stage page, for a sandboxed frame: it plays the piece and talks to its parent by postMessage."),"video/timeline":t(e.strictObject(i),e.strictObject({timeline:TimelineSchema,text:e.array(e.unknown())}),"A version's timeline, drawn nowhere."),"video/still":t(e.strictObject({...i,t:e.number().nonnegative().optional()}),e.strictObject({t:e.number(),image:ImageSchema,width:e.int().positive(),height:e.int().positive(),duration:e.number().nonnegative()}),"A moment of a version as the render draws it, as a picture."),"check/results":t(e.strictObject({}),CheckStateSchema,"The check run after edits, as it stands."),"check/run":t(e.strictObject({}),e.strictObject({}),"Runs the check again now."),"export/start":t(e.strictObject({item:n,versions:e.array(e.string()).optional(),types:e.array(e.string().min(1)).max(10).optional()}),e.strictObject({job:ExportJobSchema}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":t(e.strictObject({job:e.string()}),e.strictObject({}),"Stops an export."),"export/list":t(e.strictObject({}),e.strictObject({jobs:e.array(ExportJobSchema)}),"The exports asked for since the server started."),"scenery/viewer":t(e.strictObject({item:n,camera:e.strictObject({position:s,target:s}).optional()}),a,"The address of a scenery's viewer page, for a sandboxed frame: it tells what the person does by postMessage.")},AGENT_DOES={"project/items":{files:"the project's folder"},"video/versions":{command:"inspect combos"},"video/stage":{command:"frames"},"video/timeline":{command:"inspect timeline"},"video/still":{command:"frames"},"check/results":{command:"inspect"},"check/run":{command:"check"},"export/start":{command:"render"},"export/cancel":{command:"render"},"export/list":{files:".allyhub/out/"},"scenery/viewer":{command:"scenery view"}};export function toolSpec(o){return Object.hasOwn(PROJECT_TOOLS,o)?PROJECT_TOOLS[o]:void 0}export const TOOL_NOTIFICATIONS={"project/changed":r(e.strictObject({revision:e.int().nonnegative()}),"The build saw a change: a stage or a timeline asked for now is the new one's."),"check/changed":r(CheckStateSchema,"The check started, ended or failed."),"export/changed":r(e.strictObject({job:ExportJobSchema}),"An export moved on."),"index/changed":r(e.strictObject({jobs:e.array(IndexJobSchema)}),"Making what the media index lacks moved on.")};
2
+ import{z as e}from"zod";import{KINDS as c}from"@allyhub-next/formats";import{PathSchema as r}from"./files.js";import{method as t,notification as i}from"./jsonrpc.js";const n={item:r,version:e.string().optional()};export const ImageSchema=e.strictObject({mime:e.string().regex(/^image\//u),data:e.base64()}),ProblemSchema=e.looseObject({code:e.string(),level:e.enum(["error","warn"]),message:e.string(),piece:e.string().optional(),part:e.string().optional(),t:e.number().optional()}),FactSchema=e.looseObject({kind:e.string(),data:e.unknown()}),TimelineSchema=e.looseObject({fps:e.number(),width:e.number(),height:e.number(),duration:e.number(),parts:e.array(e.unknown())}),CHECK_STATES=["off","waiting","running","done","failed"],CheckStateSchema=e.strictObject({status:e.enum(CHECK_STATES),revision:e.int().nonnegative(),problems:e.array(ProblemSchema),facts:e.array(FactSchema),versions:e.strictObject({total:e.int(),loaded:e.int(),reused:e.int()}).optional(),error:e.string().optional()}),EXPORT_STATES=["queued","running","done","failed","cancelled"],ExportOptionsSchema=e.record(e.string(),e.union([e.string(),e.boolean()])),ExportJobSchema=e.strictObject({id:e.string(),item:r,versions:e.array(e.string()),types:e.array(e.string()),options:ExportOptionsSchema.optional(),state:e.enum(EXPORT_STATES),progress:e.number().min(0).max(1),files:e.array(r),error:e.string().optional()}),IndexJobSchema=e.strictObject({file:r,status:e.enum(["running","done","failed"]),message:e.string(),share:e.number().min(0).max(1).optional()});const o=e.tuple([e.number(),e.number(),e.number()]),a=e.strictObject({url:e.string(),probe:e.string()});export const PROJECT_TOOLS={"project/items":t(e.strictObject({}),e.strictObject({items:e.array(e.strictObject({kind:e.enum(c),dir:r,entry:r,title:e.string().optional()})),folder:e.string(),name:e.string(),revision:e.int().nonnegative()}),"The project's items, as the build finds them."),"video/versions":t(e.strictObject({item:r}),e.strictObject({piece:e.string(),kind:e.enum(["video","slides"]),title:e.string().optional(),width:e.number(),height:e.number(),versions:e.array(e.strictObject({key:e.string(),lang:e.string().optional()}))}),"A video's or a deck's versions, one per language: what its stage, its timeline and its exports are asked for."),"slides/deck":t(e.strictObject({item:r}),e.strictObject({piece:e.string(),file:r,prefix:e.string(),layouts:e.array(e.string()),components:e.record(e.string(),e.unknown()),generators:e.array(e.string()),scripts:e.record(e.string(),r)}),"A deck's layouts, components and generators, and its files: slides.yaml (its slides) and its script in each language (their words and notes), which the deck's editor edits."),"video/stage":t(e.strictObject({...n,start:e.strictObject({t:e.number().nonnegative().optional(),part:e.string().optional(),offset:e.number().nonnegative().optional(),dur:e.number().positive().optional()}).optional(),play:e.boolean().optional(),chrome:e.boolean().optional(),edit:e.boolean().optional()}),a,"The address of a version's stage page, for a sandboxed frame: it plays the piece and talks to its parent by postMessage."),"video/timeline":t(e.strictObject(n),e.strictObject({timeline:TimelineSchema,text:e.array(e.unknown())}),"A version's timeline, drawn nowhere."),"video/still":t(e.strictObject({...n,t:e.number().nonnegative().optional()}),e.strictObject({t:e.number(),image:ImageSchema,width:e.int().positive(),height:e.int().positive(),duration:e.number().nonnegative()}),"A moment of a version as the render draws it, as a picture."),"video/stills":t(e.strictObject({...n,moments:e.array(e.number().nonnegative()).min(1).max(32)}),e.strictObject({stills:e.array(e.strictObject({t:e.number(),image:ImageSchema}))}),"Several moments of a version as the render draws them: what `video/still` gives, on one page."),"check/results":t(e.strictObject({}),CheckStateSchema,"The check run after edits, as it stands."),"check/run":t(e.strictObject({}),e.strictObject({}),"Runs the check again now."),"export/start":t(e.strictObject({item:r,versions:e.array(e.string()).optional(),types:e.array(e.string().min(1)).max(10).optional(),options:ExportOptionsSchema.optional()}),e.strictObject({job:ExportJobSchema}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":t(e.strictObject({job:e.string()}),e.strictObject({}),"Stops an export."),"export/list":t(e.strictObject({}),e.strictObject({jobs:e.array(ExportJobSchema),reveal:e.boolean()}),"The exports asked for since the server started."),"export/reveal":t(e.strictObject({path:r}),e.strictObject({}),"Shows an exported file in the person's file manager, where the server runs on their computer (`export/list`'s `reveal`)."),"scenery/viewer":t(e.strictObject({item:r,camera:e.strictObject({position:o,target:o}).optional()}),a,"The address of a scenery's viewer page, for a sandboxed frame: it tells what the person does by postMessage.")},AGENT_DOES={"project/items":{files:"the project's folder"},"video/versions":{command:"inspect combos"},"slides/deck":{files:"slides.ts, slides.yaml and the item's script.<locale>.yaml"},"video/stage":{command:"frames"},"video/timeline":{command:"inspect timeline"},"video/still":{command:"frames"},"video/stills":{command:"frames"},"check/results":{command:"inspect"},"check/run":{command:"check"},"export/start":{command:"render"},"export/cancel":{command:"render"},"export/list":{files:".allyhub/out/"},"export/reveal":{files:".allyhub/out/"},"scenery/viewer":{command:"scenery view"}};export function toolSpec(s){return Object.hasOwn(PROJECT_TOOLS,s)?PROJECT_TOOLS[s]:void 0}export const TOOL_NOTIFICATIONS={"project/changed":i(e.strictObject({revision:e.int().nonnegative()}),"The build saw a change: a stage or a timeline asked for now is the new one's."),"check/changed":i(CheckStateSchema,"The check started, ended or failed."),"export/changed":i(e.strictObject({job:ExportJobSchema}),"An export moved on."),"index/changed":i(e.strictObject({jobs:e.array(IndexJobSchema)}),"Making what the media index lacks moved on.")};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allyhub-next/protocol",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -8,7 +8,11 @@ export type RuntimeErrorCode =
8
8
  /** A file came in another size or with another sha256 than its pin. */
9
9
  | "checksum"
10
10
  /** An archive could not be unpacked, or held a path outside its folder. */
11
- | "unpack" | "cancelled";
11
+ | "unpack"
12
+ /** The pins have no package by that name. */
13
+ | "unknown-package"
14
+ /** A package could not be installed from its lock. */
15
+ | "install" | "cancelled";
12
16
  export declare class RuntimeError extends Error {
13
17
  readonly code: RuntimeErrorCode;
14
18
  constructor(code: RuntimeErrorCode, message: string, options?: ErrorOptions);
@@ -1,4 +1,5 @@
1
1
  export { binVariable, createRuntimes, type EnsureOptions, type Located, type Progress, type Runtimes, type RuntimesOptions, type Status, } from "./runtimes.js";
2
+ export { createPackages, npmCi, type EnsurePackageOptions, type LoadOptions, type Install, type LocatedPackage, type Packages, type PackagesOptions, } from "./packages.js";
2
3
  export { bundledEnv, type BundledOptions } from "./bundled.js";
3
4
  export { RuntimeError, type RuntimeErrorCode } from "./errors.js";
4
5
  export { cacheHome } from "./home.js";
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export{binVariable,createRuntimes}from"./runtimes.js";export{bundledEnv}from"./bundled.js";export{RuntimeError}from"./errors.js";export{cacheHome}from"./home.js";export{shippedManifest}from"./manifest.js";export{download,sha256Of}from"./download.js";export{withLock}from"./lock.js";export{unzip,untgz}from"./unpack.js";
2
+ export{binVariable,createRuntimes}from"./runtimes.js";export{createPackages,npmCi}from"./packages.js";export{bundledEnv}from"./bundled.js";export{RuntimeError}from"./errors.js";export{cacheHome}from"./home.js";export{shippedManifest}from"./manifest.js";export{download,sha256Of}from"./download.js";export{withLock}from"./lock.js";export{unzip,untgz}from"./unpack.js";