@allyhub/sdk 0.2.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.
- package/dist/free.d.ts +2 -2
- package/dist/index.d.ts +2 -9
- package/dist/index.js +1 -1
- package/dist/module.d.ts +2 -3
- package/dist/module.js +1 -1
- package/dist/parts.d.ts +2 -2
- package/dist/piece.d.ts +7 -32
- package/dist/piece.js +1 -1
- package/dist/props.d.ts +53 -10
- package/dist/slides.d.ts +8 -0
- package/dist/slides.js +2 -0
- package/docs/README.md +1 -1
- package/docs/batches.md +2 -2
- package/docs/defaults.md +106 -3
- package/docs/docs.md +1 -1
- package/docs/layers.md +1 -1
- package/docs/modeling.md +6 -6
- package/docs/project.md +7 -6
- package/docs/scenery.md +1 -1
- package/docs/sheets.md +1 -1
- package/docs/slides.md +182 -80
- package/node_modules/@allyhub-next/audio/package.json +1 -1
- package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +22 -0
- package/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
- package/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1494 -0
- package/node_modules/@allyhub-next/formats/dist/data/slides.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/index.d.ts +2 -0
- package/node_modules/@allyhub-next/formats/dist/index.js +1 -1
- package/node_modules/@allyhub-next/formats/dist/items.d.ts +26 -0
- package/node_modules/@allyhub-next/formats/dist/items.js +1 -1
- package/node_modules/@allyhub-next/formats/dist/layout.d.ts +2 -0
- package/node_modules/@allyhub-next/formats/dist/layout.js +1 -1
- package/node_modules/@allyhub-next/formats/dist/note-shape.d.ts +39 -0
- package/node_modules/@allyhub-next/formats/dist/note-shape.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +418 -0
- package/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
- package/node_modules/@allyhub-next/formats/package.json +1 -1
- package/node_modules/@allyhub-next/protocol/dist/app.d.ts +1 -62
- package/node_modules/@allyhub-next/protocol/dist/app.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +17 -17
- package/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +1 -5
- package/node_modules/@allyhub-next/protocol/dist/cli.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +13 -26
- package/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/index.d.ts +1 -0
- package/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/notes.d.ts +163 -0
- package/node_modules/@allyhub-next/protocol/dist/notes.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +4 -2
- package/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +3 -0
- package/node_modules/@allyhub-next/protocol/dist/runtimes.js +1 -1
- package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +38 -0
- package/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
- package/node_modules/@allyhub-next/protocol/package.json +1 -1
- package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +5 -1
- package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +1 -0
- package/node_modules/@allyhub-next/runtimes/dist/index.js +1 -1
- package/node_modules/@allyhub-next/runtimes/dist/node-program.d.ts +3 -0
- package/node_modules/@allyhub-next/runtimes/dist/node-program.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/packages.d.ts +65 -0
- package/node_modules/@allyhub-next/runtimes/dist/packages.js +4 -0
- package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +2 -2
- package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
- package/node_modules/@allyhub-next/runtimes/dist/unpack.js +1 -1
- package/node_modules/@allyhub-next/runtimes/package.json +5 -1
- package/node_modules/@allyhub-next/runtimes/pins/docx/package-lock.json +67 -0
- package/node_modules/@allyhub-next/runtimes/pins/docx/package.json +9 -0
- package/node_modules/@allyhub-next/runtimes/pins/exceljs/package-lock.json +2533 -0
- package/node_modules/@allyhub-next/runtimes/pins/exceljs/package.json +8 -0
- package/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package-lock.json +753 -0
- package/node_modules/@allyhub-next/runtimes/pins/gltf-tools/package.json +14 -0
- package/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package-lock.json +950 -0
- package/node_modules/@allyhub-next/runtimes/pins/manifold-3d/package.json +8 -0
- package/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package-lock.json +227 -0
- package/node_modules/@allyhub-next/runtimes/pins/onnxruntime-node/package.json +8 -0
- package/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package-lock.json +105 -0
- package/node_modules/@allyhub-next/runtimes/pins/sherpa-onnx-node/package.json +8 -0
- package/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package-lock.json +128 -0
- package/node_modules/@allyhub-next/runtimes/pins/tesseract.js/package.json +9 -0
- package/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +5 -24
- package/node_modules/@allyhub-next/scenery/package.json +1 -1
- package/node_modules/@allyhub-next/slides-core/LICENSE +241 -0
- package/node_modules/@allyhub-next/slides-core/dist/animation.d.ts +129 -0
- package/node_modules/@allyhub-next/slides-core/dist/animation.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/api.d.ts +649 -0
- package/node_modules/@allyhub-next/slides-core/dist/api.js +4 -0
- package/node_modules/@allyhub-next/slides-core/dist/capabilities.d.ts +18 -0
- package/node_modules/@allyhub-next/slides-core/dist/capabilities.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +165 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart-api.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart-file.d.ts +11 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart-file.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart.d.ts +184 -0
- package/node_modules/@allyhub-next/slides-core/dist/chart.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/check.d.ts +7 -0
- package/node_modules/@allyhub-next/slides-core/dist/check.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +146 -0
- package/node_modules/@allyhub-next/slides-core/dist/enums.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/file.d.ts +109 -0
- package/node_modules/@allyhub-next/slides-core/dist/file.js +4 -0
- package/node_modules/@allyhub-next/slides-core/dist/index.d.ts +21 -0
- package/node_modules/@allyhub-next/slides-core/dist/index.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/measure.d.ts +34 -0
- package/node_modules/@allyhub-next/slides-core/dist/measure.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/model.d.ts +278 -0
- package/node_modules/@allyhub-next/slides-core/dist/model.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/office.d.ts +58 -0
- package/node_modules/@allyhub-next/slides-core/dist/office.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/path.d.ts +6 -0
- package/node_modules/@allyhub-next/slides-core/dist/path.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/placeholders.d.ts +7 -0
- package/node_modules/@allyhub-next/slides-core/dist/placeholders.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +181 -0
- package/node_modules/@allyhub-next/slides-core/dist/resolve.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/script.d.ts +43 -0
- package/node_modules/@allyhub-next/slides-core/dist/script.js +3 -0
- package/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +63 -0
- package/node_modules/@allyhub-next/slides-core/dist/stage.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/strict.d.ts +23 -0
- package/node_modules/@allyhub-next/slides-core/dist/strict.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/theme.d.ts +72 -0
- package/node_modules/@allyhub-next/slides-core/dist/theme.js +2 -0
- package/node_modules/@allyhub-next/slides-core/dist/units.d.ts +35 -0
- package/node_modules/@allyhub-next/slides-core/dist/units.js +2 -0
- package/node_modules/@allyhub-next/slides-core/package.json +14 -0
- package/node_modules/@allyhub-next/video-core/dist/export.d.ts +6 -5
- package/node_modules/@allyhub-next/video-core/dist/export.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +173 -4
- package/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +6 -13
- package/node_modules/@allyhub-next/video-core/dist/formats.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/index.d.ts +0 -1
- package/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +83 -0
- package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +8 -9
- package/node_modules/@allyhub-next/video-core/dist/piece.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +9 -1
- package/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +0 -2
- package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +4 -0
- package/node_modules/@allyhub-next/video-core/dist/script.d.ts +8 -0
- package/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
- package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +34 -1
- package/node_modules/@allyhub-next/video-core/package.json +1 -1
- package/package.json +15 -8
- package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +0 -37
- 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">;
|
|
@@ -36,6 +26,7 @@ export declare const CardItemSchema: z.ZodObject<{
|
|
|
36
26
|
doc: "doc";
|
|
37
27
|
sheet: "sheet";
|
|
38
28
|
scenery: "scenery";
|
|
29
|
+
model: "model";
|
|
39
30
|
website: "website";
|
|
40
31
|
}>;
|
|
41
32
|
dir: z.ZodString;
|
|
@@ -43,56 +34,4 @@ export declare const CardItemSchema: z.ZodObject<{
|
|
|
43
34
|
title: z.ZodOptional<z.ZodString>;
|
|
44
35
|
}, z.core.$strict>;
|
|
45
36
|
export type CardItem = z.infer<typeof CardItemSchema>;
|
|
46
|
-
/** `allyhub_open`'s structured result: what the card shows. */
|
|
47
|
-
export declare const CardSchema: z.ZodObject<{
|
|
48
|
-
project: z.ZodObject<{
|
|
49
|
-
name: z.ZodString;
|
|
50
|
-
}, z.core.$strict>;
|
|
51
|
-
url: z.ZodString;
|
|
52
|
-
item: z.ZodOptional<z.ZodObject<{
|
|
53
|
-
kind: z.ZodEnum<{
|
|
54
|
-
video: "video";
|
|
55
|
-
slides: "slides";
|
|
56
|
-
doc: "doc";
|
|
57
|
-
sheet: "sheet";
|
|
58
|
-
scenery: "scenery";
|
|
59
|
-
website: "website";
|
|
60
|
-
}>;
|
|
61
|
-
dir: z.ZodString;
|
|
62
|
-
entry: z.ZodString;
|
|
63
|
-
title: z.ZodOptional<z.ZodString>;
|
|
64
|
-
}, z.core.$strict>>;
|
|
65
|
-
preview: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
66
|
-
type: z.ZodLiteral<"picture">;
|
|
67
|
-
image: z.ZodObject<{
|
|
68
|
-
mime: z.ZodString;
|
|
69
|
-
data: z.ZodBase64;
|
|
70
|
-
}, z.core.$strict>;
|
|
71
|
-
width: z.ZodInt;
|
|
72
|
-
height: z.ZodInt;
|
|
73
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
74
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
75
|
-
type: z.ZodLiteral<"text">;
|
|
76
|
-
lines: z.ZodArray<z.ZodString>;
|
|
77
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
78
|
-
type: z.ZodLiteral<"table">;
|
|
79
|
-
columns: z.ZodArray<z.ZodString>;
|
|
80
|
-
rows: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
81
|
-
count: z.ZodInt;
|
|
82
|
-
}, z.core.$strict>], "type">>;
|
|
83
|
-
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
84
|
-
kind: z.ZodEnum<{
|
|
85
|
-
video: "video";
|
|
86
|
-
slides: "slides";
|
|
87
|
-
doc: "doc";
|
|
88
|
-
sheet: "sheet";
|
|
89
|
-
scenery: "scenery";
|
|
90
|
-
website: "website";
|
|
91
|
-
}>;
|
|
92
|
-
dir: z.ZodString;
|
|
93
|
-
entry: z.ZodString;
|
|
94
|
-
title: z.ZodOptional<z.ZodString>;
|
|
95
|
-
}, z.core.$strict>>>;
|
|
96
|
-
}, z.core.$strict>;
|
|
97
|
-
export type Card = z.infer<typeof CardSchema>;
|
|
98
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
|
|
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()});
|
|
@@ -25,6 +25,10 @@ export declare const ORGANIZATION_HEADER = "x-allyhub-organization";
|
|
|
25
25
|
export declare const DEVICES_PAGE_PATH = "/devices";
|
|
26
26
|
/** `GET`: the computers signed in as the person (a session's alone); `DELETE <path>/<id>` signs one out. */
|
|
27
27
|
export declare const DEVICES_PATH = "/api/account/devices";
|
|
28
|
+
/** `GET`, from the account site: everything kept about the person, as a file. */
|
|
29
|
+
export declare const ACCOUNT_EXPORT_PATH = "/api/account/export";
|
|
30
|
+
/** `POST`, from the account site: mails the link that deletes the account, unless something stands in the way. */
|
|
31
|
+
export declare const ACCOUNT_DELETE_PATH = "/api/account/delete";
|
|
28
32
|
export declare const DevicesSchema: z.ZodObject<{
|
|
29
33
|
devices: z.ZodArray<z.ZodObject<{
|
|
30
34
|
id: z.ZodString;
|
|
@@ -34,6 +38,19 @@ export declare const DevicesSchema: z.ZodObject<{
|
|
|
34
38
|
}, z.core.$strip>>;
|
|
35
39
|
}, z.core.$strip>;
|
|
36
40
|
export type Devices = z.infer<typeof DevicesSchema>;
|
|
41
|
+
/**
|
|
42
|
+
* `POST { to }` with a computer's sign-in (the CLI's client): a link,
|
|
43
|
+
* `{ url }`, that signs a browser in as the person once, within three
|
|
44
|
+
* minutes, then opens `to`, a page of the account site (`/plan?view=…`).
|
|
45
|
+
*/
|
|
46
|
+
export declare const BROWSER_LINK_PATH = "/api/account/browser-link";
|
|
47
|
+
export declare const BrowserLinkRequestSchema: z.ZodObject<{
|
|
48
|
+
to: z.ZodString;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
export declare const BrowserLinkSchema: z.ZodObject<{
|
|
51
|
+
url: z.ZodURL;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export type BrowserLink = z.infer<typeof BrowserLinkSchema>;
|
|
37
54
|
/** The credentials file, relative to the home folder (ALLYHUB_HOME moves it). */
|
|
38
55
|
export declare const CREDENTIALS_FILE = ".allyhub/credentials.json";
|
|
39
56
|
/** A token endpoint's answer (RFC 6749 5.1). */
|
|
@@ -96,21 +113,4 @@ export declare const CredentialsFileSchema: z.ZodObject<{
|
|
|
96
113
|
since: z.ZodISODateTime;
|
|
97
114
|
}, z.core.$strict>;
|
|
98
115
|
export type CredentialsFile = z.infer<typeof CredentialsFileSchema>;
|
|
99
|
-
/** What `allyhub auth token --json` prints: an access token for the API, renewed as needed. */
|
|
100
|
-
export declare const TokenOutputSchema: z.ZodObject<{
|
|
101
|
-
accessToken: z.ZodString;
|
|
102
|
-
expiresAt: z.ZodISODateTime;
|
|
103
|
-
account: z.ZodObject<{
|
|
104
|
-
id: z.ZodString;
|
|
105
|
-
email: z.ZodEmail;
|
|
106
|
-
name: z.ZodOptional<z.ZodString>;
|
|
107
|
-
organization: z.ZodOptional<z.ZodObject<{
|
|
108
|
-
id: z.ZodString;
|
|
109
|
-
name: z.ZodString;
|
|
110
|
-
}, z.core.$strict>>;
|
|
111
|
-
}, z.core.$strict>;
|
|
112
|
-
}, z.core.$strict>;
|
|
113
|
-
export type TokenOutput = z.infer<typeof TokenOutputSchema>;
|
|
114
|
-
/** What a client sends with it: `Authorization: Bearer <accessToken>`. */
|
|
115
|
-
export declare const bearer: (token: TokenOutput) => string;
|
|
116
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",DevicesSchema=e.object({devices:e.array(e.object({id:e.string(),client:e.string(),signedInAt:e.iso.datetime(),lastActiveAt:e.iso.datetime()}))}),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})})
|
|
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})});
|
|
@@ -26,7 +26,7 @@ export declare const CliErrorSchema: z.ZodObject<{
|
|
|
26
26
|
}, z.core.$strict>;
|
|
27
27
|
}, z.core.$strict>;
|
|
28
28
|
export type CliError = z.infer<typeof CliErrorSchema>;
|
|
29
|
-
/** A command's name: words in lowercase, `scenery view`. */
|
|
29
|
+
/** A command's name: words in lowercase, `scenery view`; a word may start with a digit, `3d-model`. */
|
|
30
30
|
export declare const COMMAND_NAME: RegExp;
|
|
31
31
|
export interface CommandSpec<I extends z.ZodObject = z.ZodObject, O extends z.ZodType = z.ZodType> {
|
|
32
32
|
name: string;
|
|
@@ -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-
|
|
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";
|
|
@@ -23,6 +24,7 @@ export declare const HostContextSchema: z.ZodObject<{
|
|
|
23
24
|
doc: "doc";
|
|
24
25
|
sheet: "sheet";
|
|
25
26
|
scenery: "scenery";
|
|
27
|
+
model: "model";
|
|
26
28
|
website: "website";
|
|
27
29
|
}>;
|
|
28
30
|
dir: z.ZodString;
|
|
@@ -70,6 +72,7 @@ export declare const HOST_METHODS: {
|
|
|
70
72
|
doc: "doc";
|
|
71
73
|
sheet: "sheet";
|
|
72
74
|
scenery: "scenery";
|
|
75
|
+
model: "model";
|
|
73
76
|
website: "website";
|
|
74
77
|
}>;
|
|
75
78
|
dir: z.ZodString;
|
|
@@ -113,19 +116,6 @@ export declare const HOST_METHODS: {
|
|
|
113
116
|
}>;
|
|
114
117
|
message: z.ZodOptional<z.ZodString>;
|
|
115
118
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
116
|
-
readonly "editor/context": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
117
|
-
text: z.ZodString;
|
|
118
|
-
at: z.ZodOptional<z.ZodObject<{
|
|
119
|
-
t: z.ZodNumber;
|
|
120
|
-
version: z.ZodString;
|
|
121
|
-
}, z.core.$strict>>;
|
|
122
|
-
picture: z.ZodOptional<z.ZodObject<{
|
|
123
|
-
x: z.ZodNumber;
|
|
124
|
-
y: z.ZodNumber;
|
|
125
|
-
width: z.ZodNumber;
|
|
126
|
-
height: z.ZodNumber;
|
|
127
|
-
}, z.core.$strict>>;
|
|
128
|
-
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
129
119
|
readonly "tools/call": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
130
120
|
name: z.ZodString;
|
|
131
121
|
arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -174,6 +164,7 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
174
164
|
item: z.ZodString;
|
|
175
165
|
versions: z.ZodArray<z.ZodString>;
|
|
176
166
|
types: z.ZodArray<z.ZodString>;
|
|
167
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
|
|
177
168
|
state: z.ZodEnum<{
|
|
178
169
|
running: "running";
|
|
179
170
|
done: "done";
|
|
@@ -232,6 +223,7 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
232
223
|
doc: "doc";
|
|
233
224
|
sheet: "sheet";
|
|
234
225
|
scenery: "scenery";
|
|
226
|
+
model: "model";
|
|
235
227
|
website: "website";
|
|
236
228
|
}>;
|
|
237
229
|
dir: z.ZodString;
|
|
@@ -246,6 +238,11 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
246
238
|
website: "website";
|
|
247
239
|
}>;
|
|
248
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>>;
|
|
249
246
|
};
|
|
250
247
|
/** Every method an editor may call on its host. */
|
|
251
248
|
export declare const EDITOR_HOST_METHODS: {
|
|
@@ -268,6 +265,7 @@ export declare const EDITOR_HOST_METHODS: {
|
|
|
268
265
|
doc: "doc";
|
|
269
266
|
sheet: "sheet";
|
|
270
267
|
scenery: "scenery";
|
|
268
|
+
model: "model";
|
|
271
269
|
website: "website";
|
|
272
270
|
}>;
|
|
273
271
|
dir: z.ZodString;
|
|
@@ -311,19 +309,6 @@ export declare const EDITOR_HOST_METHODS: {
|
|
|
311
309
|
}>;
|
|
312
310
|
message: z.ZodOptional<z.ZodString>;
|
|
313
311
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
314
|
-
readonly "editor/context": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
315
|
-
text: z.ZodString;
|
|
316
|
-
at: z.ZodOptional<z.ZodObject<{
|
|
317
|
-
t: z.ZodNumber;
|
|
318
|
-
version: z.ZodString;
|
|
319
|
-
}, z.core.$strict>>;
|
|
320
|
-
picture: z.ZodOptional<z.ZodObject<{
|
|
321
|
-
x: z.ZodNumber;
|
|
322
|
-
y: z.ZodNumber;
|
|
323
|
-
width: z.ZodNumber;
|
|
324
|
-
height: z.ZodNumber;
|
|
325
|
-
}, z.core.$strict>>;
|
|
326
|
-
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
327
312
|
readonly "tools/call": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
328
313
|
name: z.ZodString;
|
|
329
314
|
arguments: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -401,5 +386,7 @@ export declare const EDITOR_HOST_METHODS: {
|
|
|
401
386
|
export type EditorHost = ClientOf<typeof EDITOR_HOST_METHODS> & {
|
|
402
387
|
/** Tells `files/changed`, `host/context-changed` and the tools' notifications; answers how to stop. */
|
|
403
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;
|
|
404
391
|
};
|
|
405
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
|
|
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,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.")};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const REGISTRY_TYPES: readonly ["allyhub:component", "allyhub:template", "allyhub:scenery", "allyhub:model", "allyhub:skill"];
|
|
2
|
+
export declare const REGISTRY_TYPES: readonly ["allyhub:component", "allyhub:template", "allyhub:scenery", "allyhub:model", "allyhub:skill", "allyhub:lib"];
|
|
3
3
|
export declare const RegistryFileSchema: z.ZodObject<{
|
|
4
4
|
path: z.ZodString;
|
|
5
5
|
target: z.ZodString;
|
|
@@ -73,6 +73,7 @@ export declare const RegistryItemSchema: z.ZodObject<{
|
|
|
73
73
|
"allyhub:scenery": "allyhub:scenery";
|
|
74
74
|
"allyhub:model": "allyhub:model";
|
|
75
75
|
"allyhub:skill": "allyhub:skill";
|
|
76
|
+
"allyhub:lib": "allyhub:lib";
|
|
76
77
|
}>;
|
|
77
78
|
title: z.ZodString;
|
|
78
79
|
description: z.ZodString;
|
|
@@ -137,13 +138,14 @@ export declare const RegistryIndexSchema: z.ZodObject<{
|
|
|
137
138
|
"allyhub:scenery": "allyhub:scenery";
|
|
138
139
|
"allyhub:model": "allyhub:model";
|
|
139
140
|
"allyhub:skill": "allyhub:skill";
|
|
141
|
+
"allyhub:lib": "allyhub:lib";
|
|
140
142
|
}>;
|
|
141
143
|
name: z.ZodString;
|
|
142
144
|
title: z.ZodString;
|
|
143
145
|
description: z.ZodString;
|
|
144
146
|
version: z.ZodOptional<z.ZodString>;
|
|
145
|
-
preview: z.ZodOptional<z.ZodString>;
|
|
146
147
|
categories: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
148
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
147
149
|
card: z.ZodOptional<z.ZodObject<{
|
|
148
150
|
category: z.ZodEnum<{
|
|
149
151
|
video: "video";
|
|
@@ -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 REGISTRY_TYPES=["allyhub:component","allyhub:template","allyhub:scenery","allyhub:model","allyhub:skill"];const e=t.string().regex(/^[a-z0-9][a-z0-9-]*$/u);export const RegistryFileSchema=t.strictObject({path:t.string().min(1),target:t.string().min(1),sha256:t.string().regex(/^[0-9a-f]{64}$/u),content:t.string().optional()}),RegistryAssetSchema=t.strictObject({source:t.literal("polyhaven"),id:t.string().min(1),resolution:t.string().min(1).optional(),maps:t.array(t.string().min(1)).optional()}),RegistryBakeSchema=t.strictObject({scenery:t.string().min(1),digest:t.string().regex(/^[0-9a-f]+$/u),renderer:t.string().min(1),sha256:t.string().regex(/^[0-9a-f]{64}$/u),size:t.number().int().positive(),url:t.url()}),SkillCardWordsSchema=t.strictObject({title:t.string().min(1),description:t.string().min(1),prompt:t.string().min(1).optional()}),SkillCardSchema=t.strictObject({category:t.enum(["video","writing","research"]),order:t.number().int().positive(),cover:t.string().optional(),words:SkillCardWordsSchema,languages:t.record(t.string(),SkillCardWordsSchema.partial()).default({})}),RegistryItemSchema=t.strictObject({$schema:t.string().optional(),name:e,type:t.enum(REGISTRY_TYPES),title:t.string().min(1),description:t.string().min(1),author:t.string().optional(),license:t.string().min(1),dependencies:t.array(t.string()).default([]),registryDependencies:t.array(e).default([]),files:t.array(RegistryFileSchema).min(1),assets:t.array(RegistryAssetSchema).default([]),bakes:t.array(RegistryBakeSchema).default([]),categories:t.array(t.string()).default([]),preview:t.string().optional(),version:t.string().optional(),card:SkillCardSchema.optional()}),RegistryIndexSchema=t.strictObject({$schema:t.string().optional(),name:t.string().min(1),homepage:t.url().optional(),items:t.array(RegistryItemSchema.pick({name:!0,type:!0,title:!0,description:!0,categories:!0,preview:!0,version:!0,card:!0}))});
|
|
2
|
+
import{z as t}from"zod";export const REGISTRY_TYPES=["allyhub:component","allyhub:template","allyhub:scenery","allyhub:model","allyhub:skill","allyhub:lib"];const e=t.string().regex(/^[a-z0-9][a-z0-9-]*$/u);export const RegistryFileSchema=t.strictObject({path:t.string().min(1),target:t.string().min(1),sha256:t.string().regex(/^[0-9a-f]{64}$/u),content:t.string().optional()}),RegistryAssetSchema=t.strictObject({source:t.literal("polyhaven"),id:t.string().min(1),resolution:t.string().min(1).optional(),maps:t.array(t.string().min(1)).optional()}),RegistryBakeSchema=t.strictObject({scenery:t.string().min(1),digest:t.string().regex(/^[0-9a-f]+$/u),renderer:t.string().min(1),sha256:t.string().regex(/^[0-9a-f]{64}$/u),size:t.number().int().positive(),url:t.url()}),SkillCardWordsSchema=t.strictObject({title:t.string().min(1),description:t.string().min(1),prompt:t.string().min(1).optional()}),SkillCardSchema=t.strictObject({category:t.enum(["video","writing","research"]),order:t.number().int().positive(),cover:t.string().optional(),words:SkillCardWordsSchema,languages:t.record(t.string(),SkillCardWordsSchema.partial()).default({})}),RegistryItemSchema=t.strictObject({$schema:t.string().optional(),name:e,type:t.enum(REGISTRY_TYPES),title:t.string().min(1),description:t.string().min(1),author:t.string().optional(),license:t.string().min(1),dependencies:t.array(t.string()).default([]),registryDependencies:t.array(e).default([]),files:t.array(RegistryFileSchema).min(1),assets:t.array(RegistryAssetSchema).default([]),bakes:t.array(RegistryBakeSchema).default([]),categories:t.array(t.string()).default([]),preview:t.string().optional(),version:t.string().optional(),card:SkillCardSchema.optional()}),RegistryIndexSchema=t.strictObject({$schema:t.string().optional(),name:t.string().min(1),homepage:t.url().optional(),items:t.array(RegistryItemSchema.pick({name:!0,type:!0,title:!0,description:!0,categories:!0,preview:!0,version:!0,card:!0}))});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{ACCOUNT_PATH as
|
|
2
|
+
import{ACCOUNT_DELETE_PATH as d,ACCOUNT_EXPORT_PATH as m,ACCOUNT_PATH as _,BROWSER_LINK_PATH as O,DEVICES_PATH as o,METADATA_PATH as r}from"./auth.js";import{AUTO_TOP_UP_PATH as e,BILLING_CHECKOUT_PATH as L,BILLING_PLANS_PATH as S,BILLING_PORTAL_PATH as G,BILLING_SUMMARY_PATH as H,BILLING_USAGE_PATH as I,CATALOG_PATH as i,FILES_PATH as T,LLM_MESSAGES_PATH as N,LLM_MODELS_PATH as n}from"./cloud.js";import{MEMBERS_PATH as E,ORGANIZATIONS_PATH as p,ORGANIZATION_PATH as U,STUDIO_OPEN_PATH as s,STUDIO_PATH as a,STUDIO_WAKE_PATH as C}from"./teams.js";export const CLIENT_ROUTES=[{method:"GET",path:r},{method:"GET",path:_},{method:"GET",path:m},{method:"POST",path:d},{method:"GET",path:o},{method:"DELETE",path:`${o}/:id`},{method:"POST",path:O},{method:"GET",path:S},{method:"GET",path:H},{method:"GET",path:I},{method:"POST",path:L},{method:"POST",path:G},{method:"PUT",path:e},{method:"DELETE",path:e},{method:"GET",path:n},{method:"POST",path:N},{method:"GET",path:i},{method:"POST",path:"/api/tools/:name/calls"},{method:"GET",path:"/api/calls/:id"},{method:"POST",path:T},{method:"POST",path:`${T}/:id/done`},{method:"GET",path:`${T}/:id/content`},{method:"GET",path:p},{method:"POST",path:`${p}/:id/restore`},{method:"DELETE",path:U},{method:"GET",path:E},{method:"PUT",path:`${E}/:userId/limit`},{method:"GET",path:a},{method:"DELETE",path:a},{method:"POST",path:s},{method:"PUT",path:C}],probePath=t=>t.path.replace(/:[A-Za-z]+/gu,"probe");export function routeMissing(t,A,P){if(A!==404)return!1;const h=P.error;return h?.code==="not_found"&&h.message===`There is no ${t.method} ${probePath(t)}.`}
|
|
@@ -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}
|