@ketvietlab/ketjs 0.1.2 → 0.1.3
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/LICENSE +1 -1
- package/README.md +8 -2
- package/dist/agent/capabilities.d.ts +1 -3
- package/dist/agent/capabilities.d.ts.map +1 -1
- package/dist/agent/capabilities.js +10 -1
- package/dist/agent/capabilities.js.map +1 -1
- package/dist/agent/permissions.d.ts +43 -1
- package/dist/agent/permissions.d.ts.map +1 -1
- package/dist/agent/permissions.js +50 -2
- package/dist/agent/permissions.js.map +1 -1
- package/dist/cli.js +246 -97
- package/dist/cli.js.map +1 -1
- package/dist/codegen/dts.d.ts.map +1 -1
- package/dist/codegen/dts.js +1 -0
- package/dist/codegen/dts.js.map +1 -1
- package/dist/data/changeset.d.ts +12 -0
- package/dist/data/changeset.d.ts.map +1 -1
- package/dist/data/changeset.js +73 -17
- package/dist/data/changeset.js.map +1 -1
- package/dist/data/expr.d.ts +16 -0
- package/dist/data/expr.d.ts.map +1 -1
- package/dist/data/expr.js +33 -5
- package/dist/data/expr.js.map +1 -1
- package/dist/data/fleet.d.ts +41 -1
- package/dist/data/fleet.d.ts.map +1 -1
- package/dist/data/fleet.js +100 -11
- package/dist/data/fleet.js.map +1 -1
- package/dist/data/migrate.d.ts +20 -0
- package/dist/data/migrate.d.ts.map +1 -1
- package/dist/data/migrate.js +86 -3
- package/dist/data/migrate.js.map +1 -1
- package/dist/data/physical.d.ts +5 -0
- package/dist/data/physical.d.ts.map +1 -0
- package/dist/data/physical.js +196 -0
- package/dist/data/physical.js.map +1 -0
- package/dist/data/pool.d.ts +2 -1
- package/dist/data/pool.d.ts.map +1 -1
- package/dist/data/pool.js +159 -31
- package/dist/data/pool.js.map +1 -1
- package/dist/data/query.d.ts +10 -1
- package/dist/data/query.d.ts.map +1 -1
- package/dist/data/query.js +136 -27
- package/dist/data/query.js.map +1 -1
- package/dist/data/sqlite.d.ts.map +1 -1
- package/dist/data/sqlite.js +350 -52
- package/dist/data/sqlite.js.map +1 -1
- package/dist/data/time.d.ts +13 -0
- package/dist/data/time.d.ts.map +1 -1
- package/dist/data/time.js +61 -17
- package/dist/data/time.js.map +1 -1
- package/dist/index.d.ts +43 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -16
- package/dist/index.js.map +1 -1
- package/dist/kernel/audit.d.ts +27 -0
- package/dist/kernel/audit.d.ts.map +1 -0
- package/dist/kernel/audit.js +67 -0
- package/dist/kernel/audit.js.map +1 -0
- package/dist/kernel/classification.d.ts +26 -0
- package/dist/kernel/classification.d.ts.map +1 -0
- package/dist/kernel/classification.js +73 -0
- package/dist/kernel/classification.js.map +1 -0
- package/dist/kernel/compose.d.ts +6 -2
- package/dist/kernel/compose.d.ts.map +1 -1
- package/dist/kernel/compose.js +269 -15
- package/dist/kernel/compose.js.map +1 -1
- package/dist/kernel/define.d.ts +2 -3
- package/dist/kernel/define.d.ts.map +1 -1
- package/dist/kernel/define.js +22 -12
- package/dist/kernel/define.js.map +1 -1
- package/dist/kernel/diff.d.ts.map +1 -1
- package/dist/kernel/diff.js +28 -4
- package/dist/kernel/diff.js.map +1 -1
- package/dist/kernel/graph.js +1 -1
- package/dist/kernel/graph.js.map +1 -1
- package/dist/kernel/i18n.d.ts +10 -1
- package/dist/kernel/i18n.d.ts.map +1 -1
- package/dist/kernel/i18n.js +34 -1
- package/dist/kernel/i18n.js.map +1 -1
- package/dist/kernel/layout.d.ts +97 -0
- package/dist/kernel/layout.d.ts.map +1 -1
- package/dist/kernel/layout.js +294 -12
- package/dist/kernel/layout.js.map +1 -1
- package/dist/kernel/menu.d.ts +33 -2
- package/dist/kernel/menu.d.ts.map +1 -1
- package/dist/kernel/menu.js +99 -7
- package/dist/kernel/menu.js.map +1 -1
- package/dist/kernel/modules.d.ts +3 -3
- package/dist/kernel/modules.d.ts.map +1 -1
- package/dist/kernel/modules.js +21 -21
- package/dist/kernel/modules.js.map +1 -1
- package/dist/kernel/permissions.d.ts +10 -0
- package/dist/kernel/permissions.d.ts.map +1 -0
- package/dist/kernel/permissions.js +365 -0
- package/dist/kernel/permissions.js.map +1 -0
- package/dist/kernel/schedule.d.ts +23 -0
- package/dist/kernel/schedule.d.ts.map +1 -0
- package/dist/kernel/schedule.js +83 -0
- package/dist/kernel/schedule.js.map +1 -0
- package/dist/kernel/types.d.ts.map +1 -1
- package/dist/kernel/types.js +5 -4
- package/dist/kernel/types.js.map +1 -1
- package/dist/kernel/workspace.d.ts +92 -14
- package/dist/kernel/workspace.d.ts.map +1 -1
- package/dist/kernel/workspace.js +128 -49
- package/dist/kernel/workspace.js.map +1 -1
- package/dist/pdf/assets/Inter-Bold.ttf +0 -0
- package/dist/pdf/assets/Inter-Regular.ttf +0 -0
- package/dist/pdf/assets/Inter-SemiBold.ttf +0 -0
- package/dist/pdf/assets/LICENSE.txt +92 -0
- package/dist/pdf/font.d.ts +10 -0
- package/dist/pdf/font.d.ts.map +1 -0
- package/dist/pdf/font.js +83 -0
- package/dist/pdf/font.js.map +1 -0
- package/dist/pdf/image.d.ts +8 -0
- package/dist/pdf/image.d.ts.map +1 -0
- package/dist/pdf/image.js +94 -0
- package/dist/pdf/image.js.map +1 -0
- package/dist/pdf/index.d.ts +15 -0
- package/dist/pdf/index.d.ts.map +1 -0
- package/dist/pdf/index.js +17 -0
- package/dist/pdf/index.js.map +1 -0
- package/dist/pdf/markup.d.ts +19 -0
- package/dist/pdf/markup.d.ts.map +1 -0
- package/dist/pdf/markup.js +146 -0
- package/dist/pdf/markup.js.map +1 -0
- package/dist/pdf/render.d.ts +14 -0
- package/dist/pdf/render.d.ts.map +1 -0
- package/dist/pdf/render.js +387 -0
- package/dist/pdf/render.js.map +1 -0
- package/dist/scaffold/index.js +6 -6
- package/dist/scaffold/index.js.map +1 -1
- package/dist/scaffold/templates/{app.test.ts.tmpl → deployment.test.ts.tmpl} +3 -3
- package/dist/scaffold/templates/ket.workspace.ts.tmpl +4 -6
- package/dist/scaffold/templates/module.ts.tmpl +1 -4
- package/dist/server/assets.d.ts +23 -0
- package/dist/server/assets.d.ts.map +1 -0
- package/dist/server/assets.js +97 -0
- package/dist/server/assets.js.map +1 -0
- package/dist/server/boot.d.ts +157 -38
- package/dist/server/boot.d.ts.map +1 -1
- package/dist/server/boot.js +360 -138
- package/dist/server/boot.js.map +1 -1
- package/dist/server/config.d.ts +30 -10
- package/dist/server/config.d.ts.map +1 -1
- package/dist/server/config.js +73 -17
- package/dist/server/config.js.map +1 -1
- package/dist/server/ctx.d.ts +10 -0
- package/dist/server/ctx.d.ts.map +1 -1
- package/dist/server/ctx.js +266 -48
- package/dist/server/ctx.js.map +1 -1
- package/dist/server/development.d.ts +10 -0
- package/dist/server/development.d.ts.map +1 -0
- package/dist/server/development.js +15 -0
- package/dist/server/development.js.map +1 -0
- package/dist/server/fn.d.ts +22 -3
- package/dist/server/fn.d.ts.map +1 -1
- package/dist/server/fn.js +116 -32
- package/dist/server/fn.js.map +1 -1
- package/dist/server/form.d.ts +33 -0
- package/dist/server/form.d.ts.map +1 -0
- package/dist/server/form.js +47 -0
- package/dist/server/form.js.map +1 -0
- package/dist/server/http.d.ts +55 -3
- package/dist/server/http.d.ts.map +1 -1
- package/dist/server/http.js +306 -22
- package/dist/server/http.js.map +1 -1
- package/dist/server/idem.d.ts +3 -2
- package/dist/server/idem.d.ts.map +1 -1
- package/dist/server/idem.js +12 -4
- package/dist/server/idem.js.map +1 -1
- package/dist/server/jobs.js +1 -1
- package/dist/server/jobs.js.map +1 -1
- package/dist/server/log/combinators.d.ts +42 -0
- package/dist/server/log/combinators.d.ts.map +1 -0
- package/dist/server/log/combinators.js +270 -0
- package/dist/server/log/combinators.js.map +1 -0
- package/dist/server/log/console.d.ts +12 -0
- package/dist/server/log/console.d.ts.map +1 -0
- package/dist/server/log/console.js +96 -0
- package/dist/server/log/console.js.map +1 -0
- package/dist/server/log/file.d.ts +11 -0
- package/dist/server/log/file.d.ts.map +1 -0
- package/dist/server/log/file.js +61 -0
- package/dist/server/log/file.js.map +1 -0
- package/dist/server/log/index.d.ts +23 -0
- package/dist/server/log/index.d.ts.map +1 -0
- package/dist/server/log/index.js +45 -0
- package/dist/server/log/index.js.map +1 -0
- package/dist/server/log/logger.d.ts +53 -0
- package/dist/server/log/logger.d.ts.map +1 -0
- package/dist/server/log/logger.js +94 -0
- package/dist/server/log/logger.js.map +1 -0
- package/dist/server/log/memory.d.ts +11 -0
- package/dist/server/log/memory.d.ts.map +1 -0
- package/dist/server/log/memory.js +25 -0
- package/dist/server/log/memory.js.map +1 -0
- package/dist/server/log/types.d.ts +112 -0
- package/dist/server/log/types.d.ts.map +1 -0
- package/dist/server/log/types.js +58 -0
- package/dist/server/log/types.js.map +1 -0
- package/dist/server/policy.d.ts +29 -0
- package/dist/server/policy.d.ts.map +1 -0
- package/dist/server/policy.js +29 -0
- package/dist/server/policy.js.map +1 -0
- package/dist/server/queue.d.ts +1 -1
- package/dist/server/queue.d.ts.map +1 -1
- package/dist/server/queue.js.map +1 -1
- package/dist/server/ratelimit.d.ts +48 -0
- package/dist/server/ratelimit.d.ts.map +1 -0
- package/dist/server/ratelimit.js +102 -0
- package/dist/server/ratelimit.js.map +1 -0
- package/dist/server/respond.d.ts.map +1 -1
- package/dist/server/respond.js +16 -1
- package/dist/server/respond.js.map +1 -1
- package/dist/server/runtime.d.ts +18 -3
- package/dist/server/runtime.d.ts.map +1 -1
- package/dist/server/runtime.js +32 -2
- package/dist/server/runtime.js.map +1 -1
- package/dist/server/schedule.d.ts +18 -0
- package/dist/server/schedule.d.ts.map +1 -0
- package/dist/server/schedule.js +70 -0
- package/dist/server/schedule.js.map +1 -0
- package/dist/server/sequence.d.ts +42 -0
- package/dist/server/sequence.d.ts.map +1 -0
- package/dist/server/sequence.js +97 -0
- package/dist/server/sequence.js.map +1 -0
- package/dist/server/session.d.ts +21 -0
- package/dist/server/session.d.ts.map +1 -1
- package/dist/server/session.js +84 -10
- package/dist/server/session.js.map +1 -1
- package/dist/server/sessionstore.d.ts +3 -1
- package/dist/server/sessionstore.d.ts.map +1 -1
- package/dist/server/sessionstore.js +7 -3
- package/dist/server/sessionstore.js.map +1 -1
- package/dist/server/storage/index.d.ts +1 -1
- package/dist/server/storage/index.d.ts.map +1 -1
- package/dist/server/storage/index.js +61 -1
- package/dist/server/storage/index.js.map +1 -1
- package/dist/server/storage/types.d.ts +8 -0
- package/dist/server/storage/types.d.ts.map +1 -1
- package/dist/server/storage/types.js +58 -0
- package/dist/server/storage/types.js.map +1 -1
- package/dist/server/tenants.d.ts +20 -18
- package/dist/server/tenants.d.ts.map +1 -1
- package/dist/server/tenants.js +133 -84
- package/dist/server/tenants.js.map +1 -1
- package/dist/server/transport/types.js +2 -2
- package/dist/server/transport/types.js.map +1 -1
- package/dist/server/worker.d.ts +19 -3
- package/dist/server/worker.d.ts.map +1 -1
- package/dist/server/worker.js +168 -21
- package/dist/server/worker.js.map +1 -1
- package/dist/testing.d.ts +26 -10
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +41 -14
- package/dist/testing.js.map +1 -1
- package/dist/theme/contracts.d.ts +14 -1
- package/dist/theme/contracts.d.ts.map +1 -1
- package/dist/theme/contracts.js +35 -6
- package/dist/theme/contracts.js.map +1 -1
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/joint-runtime.d.ts +33 -0
- package/dist/theme/joint-runtime.d.ts.map +1 -0
- package/dist/theme/joint-runtime.js +121 -0
- package/dist/theme/joint-runtime.js.map +1 -0
- package/dist/theme/joints.d.ts.map +1 -1
- package/dist/theme/joints.js +15 -97
- package/dist/theme/joints.js.map +1 -1
- package/dist/theme/ktl/compile.d.ts +4 -0
- package/dist/theme/ktl/compile.d.ts.map +1 -1
- package/dist/theme/ktl/compile.js +54 -1
- package/dist/theme/ktl/compile.js.map +1 -1
- package/dist/theme/ktl/parser.d.ts +4 -0
- package/dist/theme/ktl/parser.d.ts.map +1 -1
- package/dist/theme/ktl/parser.js +8 -0
- package/dist/theme/ktl/parser.js.map +1 -1
- package/dist/theme/render.d.ts +8 -0
- package/dist/theme/render.d.ts.map +1 -1
- package/dist/theme/render.js +88 -118
- package/dist/theme/render.js.map +1 -1
- package/dist/theme/tokens.d.ts +6 -0
- package/dist/theme/tokens.d.ts.map +1 -1
- package/dist/theme/tokens.js +6 -0
- package/dist/theme/tokens.js.map +1 -1
- package/dist/theme/viewmodel.d.ts +24 -0
- package/dist/theme/viewmodel.d.ts.map +1 -1
- package/dist/theme/viewmodel.js +75 -6
- package/dist/theme/viewmodel.js.map +1 -1
- package/dist/types.d.ts +304 -56
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -2
- package/dist/kernel/apps.d.ts +0 -43
- package/dist/kernel/apps.d.ts.map +0 -1
- package/dist/kernel/apps.js +0 -234
- package/dist/kernel/apps.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Schema } from '../data/migrate.ts';
|
|
2
|
-
import type { KetModule, Manifest } from '../types.ts';
|
|
2
|
+
import type { KetModule, Manifest, ModulePermissionsDef, RoleTemplateDef } from '../types.ts';
|
|
3
3
|
import type { ServeSpec } from '../server/boot.ts';
|
|
4
4
|
export type WorkerSpec = {
|
|
5
5
|
/** Local concurrency per queue. Several worker processes multiply it. */
|
|
@@ -9,8 +9,78 @@ export type WorkerSpec = {
|
|
|
9
9
|
tenantRefreshMs?: number;
|
|
10
10
|
leaseMs?: number;
|
|
11
11
|
shutdownGraceMs?: number;
|
|
12
|
+
/**
|
|
13
|
+
* How often to look for a due schedule, in every tenant database.
|
|
14
|
+
*
|
|
15
|
+
* The sweep is one small statement per scheduled job per tenant, so the cost is
|
|
16
|
+
* tenants times schedules divided by this. A deployment with many tenants and a
|
|
17
|
+
* minute of tolerance should raise it.
|
|
18
|
+
*/
|
|
19
|
+
scheduleSweepMs?: number;
|
|
12
20
|
};
|
|
13
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Where a deployment says what its navigation means, as opposed to what its
|
|
23
|
+
* modules happen to contain.
|
|
24
|
+
*
|
|
25
|
+
* `home` answers "what should this person see first". Entries are tried in
|
|
26
|
+
* order and the first the viewer may call wins, so the specific sits above the
|
|
27
|
+
* general. The condition is a function key rather than a role name because a
|
|
28
|
+
* role is a bundle of capabilities that the framework never sees at request
|
|
29
|
+
* time — the server knows what you may call, not what you are called.
|
|
30
|
+
*
|
|
31
|
+
* Without it `/admin` falls back to the first path in menu order, which is the
|
|
32
|
+
* entry with the smallest `sequence` the viewer is permitted to see. That is an
|
|
33
|
+
* accident of declaration order, not a decision about anyone's work.
|
|
34
|
+
*/
|
|
35
|
+
export type NavigationSpec = {
|
|
36
|
+
home?: ReadonlyArray<{
|
|
37
|
+
needs: string;
|
|
38
|
+
path: string;
|
|
39
|
+
}>;
|
|
40
|
+
/**
|
|
41
|
+
* Function keys that mark a viewer as inspecting rather than operating.
|
|
42
|
+
*
|
|
43
|
+
* `MenuDef.for` narrows a sidebar to the work a person does, which is exactly
|
|
44
|
+
* wrong for an auditor: their work is looking, and looking is what `for` does
|
|
45
|
+
* not describe. Anyone who may call one of these keeps the whole permitted
|
|
46
|
+
* tree. A function key again, for the same reason `home` uses one.
|
|
47
|
+
*/
|
|
48
|
+
audit?: readonly string[];
|
|
49
|
+
/**
|
|
50
|
+
* Regroup the menu the way this product's shifts actually run.
|
|
51
|
+
*
|
|
52
|
+
* A module groups its screens the way the module is built — hospitality puts
|
|
53
|
+
* folios and billing under "Operations" because both are hospitality code.
|
|
54
|
+
* A hotel does not run that way: the person holding the folio is a cashier and
|
|
55
|
+
* their shift is "Payments". Only the deployment knows this, and until now only
|
|
56
|
+
* the module could say it.
|
|
57
|
+
*
|
|
58
|
+
* Entries named here move under the declared heading; entries left out keep the
|
|
59
|
+
* heading their module gave them. Order is the order declared.
|
|
60
|
+
*/
|
|
61
|
+
groups?: ReadonlyArray<{
|
|
62
|
+
id: string;
|
|
63
|
+
label: string;
|
|
64
|
+
icon?: string;
|
|
65
|
+
items: readonly string[];
|
|
66
|
+
}>;
|
|
67
|
+
/**
|
|
68
|
+
* Menu ids to keep out of the main list regardless of `for`.
|
|
69
|
+
*
|
|
70
|
+
* `for` answers "is this your work". This answers "is this worth a permanent
|
|
71
|
+
* row", which is the question a manager who can do everything still has.
|
|
72
|
+
*/
|
|
73
|
+
demote?: readonly string[];
|
|
74
|
+
/**
|
|
75
|
+
* Whether the shell offers the list of root sections.
|
|
76
|
+
*
|
|
77
|
+
* `auto` shows it when this viewer has more than one root worth visiting, which
|
|
78
|
+
* is the honest default. A single-domain product like a hotel sets `never`: a
|
|
79
|
+
* chooser with one choice is furniture.
|
|
80
|
+
*/
|
|
81
|
+
rootList?: 'auto' | 'always' | 'never';
|
|
82
|
+
};
|
|
83
|
+
export type DeploymentSpec = {
|
|
14
84
|
name: string;
|
|
15
85
|
modules: KetModule[];
|
|
16
86
|
theme?: KetModule;
|
|
@@ -18,45 +88,53 @@ export type AppSpec = {
|
|
|
18
88
|
themes?: KetModule[];
|
|
19
89
|
datastore?: string;
|
|
20
90
|
requires?: string[];
|
|
21
|
-
/**
|
|
91
|
+
/** A deployment that exposes functions but renders no pages: no theme, no region contract. */
|
|
22
92
|
headless?: boolean;
|
|
23
|
-
/**
|
|
93
|
+
/** Require exact function coverage and compile product-owned managed role templates. */
|
|
94
|
+
permissions?: {
|
|
95
|
+
requireCoverage?: boolean;
|
|
96
|
+
modules?: Record<string, ModulePermissionsDef>;
|
|
97
|
+
roleTemplates?: Record<string, RoleTemplateDef>;
|
|
98
|
+
};
|
|
99
|
+
/** How the deployment runs: pages, routes, assets, datastore. Absent means it is never served. */
|
|
24
100
|
serve?: ServeSpec;
|
|
25
|
-
/** Same
|
|
101
|
+
/** Same deployment and manifest, a separate production process role. */
|
|
26
102
|
worker?: WorkerSpec;
|
|
103
|
+
/** What this deployment's navigation means, over and above what its modules contain. */
|
|
104
|
+
navigation?: NavigationSpec;
|
|
27
105
|
};
|
|
28
106
|
/**
|
|
29
107
|
* What an authored workspace may name before module paths have been resolved.
|
|
30
108
|
*
|
|
31
|
-
* Keeping this separate from
|
|
109
|
+
* Keeping this separate from DeploymentSpec is deliberate: composition, HTTP and workers
|
|
32
110
|
* continue to receive executable KetModule objects only. A string is allowed at
|
|
33
111
|
* the workspace boundary and nowhere deeper in the framework.
|
|
34
112
|
*/
|
|
35
113
|
export type ModuleRef = KetModule | string;
|
|
36
|
-
export type
|
|
114
|
+
export type DeploymentDeclaration = Omit<DeploymentSpec, 'modules' | 'theme' | 'themes'> & {
|
|
37
115
|
modules: ModuleRef[];
|
|
38
116
|
theme?: ModuleRef;
|
|
39
117
|
themes?: ModuleRef[];
|
|
40
118
|
};
|
|
41
119
|
export type ModulePath = string | URL;
|
|
42
120
|
export type WorkspaceDeclaration = {
|
|
43
|
-
|
|
44
|
-
/**
|
|
121
|
+
deployments: DeploymentDeclaration[];
|
|
122
|
+
/** the domain contract-like roots whose direct children may contain ket.module.json. */
|
|
45
123
|
modulePaths?: ModulePath[];
|
|
46
124
|
};
|
|
47
125
|
export type Workspace = {
|
|
48
|
-
|
|
126
|
+
deployments: Record<string, Manifest>;
|
|
49
127
|
datastores: Record<string, {
|
|
50
128
|
schema: Schema;
|
|
51
|
-
|
|
129
|
+
deployments: string[];
|
|
52
130
|
modules: string[];
|
|
53
131
|
}>;
|
|
54
132
|
shared: string[];
|
|
55
133
|
soloed: Record<string, string[]>;
|
|
56
134
|
};
|
|
57
|
-
export declare function
|
|
58
|
-
export declare function
|
|
135
|
+
export declare function defineDeployment(spec: DeploymentSpec): DeploymentSpec;
|
|
136
|
+
export declare function defineDeployment(spec: DeploymentDeclaration): DeploymentDeclaration;
|
|
59
137
|
export declare function defineWorkspace<T extends WorkspaceDeclaration>(spec: T): T;
|
|
60
|
-
export declare function composeWorkspace(
|
|
138
|
+
export declare function composeWorkspace(deployments: DeploymentSpec[]): Workspace;
|
|
61
139
|
export declare function explainWorkspace(ws: Workspace): string;
|
|
62
140
|
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../../../packages/ketjs/src/kernel/workspace.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../../../packages/ketjs/src/kernel/workspace.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAElD,MAAM,MAAM,UAAU,GAAG;IACvB,yEAAyE;IACzE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACrD;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACzB;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAA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AG,MAAM,GAAG,GAAG,CAAA;AACrC,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,qBAAqB,EAAE,CAAA;IACpC,wFAAwF;IACxF,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IACrC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAA;IACxF,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;CACjC,CAAA;AAQD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,cAAc,CAAA;AACtE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,CAAA;AA0CpF,wBAAgB,eAAe,CAAC,CAAC,SAAS,oBAAoB,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAM1E;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,cAAc,EAAE,GAAG,SAAS,CA2JzE;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,SAAS,GAAG,MAAM,CAkBtD"}
|
package/dist/kernel/workspace.js
CHANGED
|
@@ -1,97 +1,156 @@
|
|
|
1
|
-
// Umbrella layout: one repository, many
|
|
1
|
+
// Umbrella layout: one repository, many deployments, shared modules.
|
|
2
2
|
//
|
|
3
|
-
// Elixir's umbrella works because
|
|
3
|
+
// Elixir's umbrella works because applications declare their dependencies explicitly and
|
|
4
4
|
// share one build. Ket already has the first half — `depends` between modules is
|
|
5
|
-
// `in_umbrella` by another name. This adds the second: several
|
|
5
|
+
// `in_umbrella` by another name. This adds the second: several deployments composed from
|
|
6
6
|
// overlapping module sets, each with its own routes, theme and agent surface.
|
|
7
7
|
//
|
|
8
8
|
// The classic umbrella failure is the shared database becoming an invisible
|
|
9
|
-
// coupling. Here it is made visible:
|
|
9
|
+
// coupling. Here it is made visible: deployments bound to the same datastore get a single
|
|
10
10
|
// union schema, computed and checked at build time, and any disagreement between
|
|
11
|
-
// two
|
|
11
|
+
// two deployments about the same model is an error rather than a 3am surprise.
|
|
12
12
|
import { compose } from './compose.js';
|
|
13
13
|
import { Diagnostics } from './errors.js';
|
|
14
14
|
import { schemaFromManifest } from '../data/migrate.js';
|
|
15
|
-
|
|
15
|
+
const columnContract = (column) => `${column.base === 'ref' ? `ref:${column.target ?? '(missing target)'}` : column.base}${column.optional ? '?' : ''}`;
|
|
16
|
+
const indexContract = (index) => `${index.unique ? 'unique ' : ''}(${index.fields.join(', ')}) from ${index.by}`;
|
|
17
|
+
export function defineDeployment(spec) {
|
|
16
18
|
if (!/^[a-z][a-z0-9_]*$/.test(spec.name))
|
|
17
|
-
throw new Error(`invalid
|
|
19
|
+
throw new Error(`invalid deployment name "${spec.name}"`);
|
|
18
20
|
if (spec.headless && (spec.theme || spec.themes?.length))
|
|
19
|
-
throw new Error(`
|
|
21
|
+
throw new Error(`deployment "${spec.name}" is headless but selects a theme`);
|
|
20
22
|
const themeNames = [spec.theme, ...(spec.themes ?? [])]
|
|
21
23
|
.filter((theme) => theme !== undefined)
|
|
22
24
|
.map((theme) => (typeof theme === 'string' ? theme : theme.name));
|
|
23
25
|
if (new Set(themeNames).size !== themeNames.length)
|
|
24
|
-
throw new Error(`
|
|
26
|
+
throw new Error(`deployment "${spec.name}" selects the same theme more than once`);
|
|
25
27
|
if (spec.headless && spec.serve?.pages)
|
|
26
|
-
throw new Error(`
|
|
28
|
+
throw new Error(`deployment "${spec.name}" is headless but resolves pages`);
|
|
27
29
|
const pageRegion = spec.serve?.pages?.region;
|
|
28
30
|
if (pageRegion && !/^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$/.test(pageRegion))
|
|
29
|
-
throw new Error(`
|
|
31
|
+
throw new Error(`deployment "${spec.name}" declares invalid page region "${pageRegion}"`);
|
|
32
|
+
for (const group of spec.navigation?.groups ?? []) {
|
|
33
|
+
if (!/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/.test(group.id))
|
|
34
|
+
throw new Error(`deployment "${spec.name}" has invalid navigation.groups id "${group.id}"`);
|
|
35
|
+
if (!group.items.length)
|
|
36
|
+
throw new Error(`deployment "${spec.name}" declares navigation group "${group.id}" with no entries`);
|
|
37
|
+
}
|
|
38
|
+
for (const key of spec.navigation?.audit ?? []) {
|
|
39
|
+
if (!/^[a-z][a-z0-9_]*\.[A-Za-z][A-Za-z0-9_.]*$/.test(key))
|
|
40
|
+
throw new Error(`deployment "${spec.name}" has invalid navigation.audit condition "${key}"`);
|
|
41
|
+
}
|
|
42
|
+
for (const entry of spec.navigation?.home ?? []) {
|
|
43
|
+
if (!/^[a-z][a-z0-9_]*\.[A-Za-z][A-Za-z0-9_.]*$/.test(entry.needs))
|
|
44
|
+
throw new Error(`deployment "${spec.name}" has invalid navigation.home condition "${entry.needs}"`);
|
|
45
|
+
if (!entry.path.startsWith('/'))
|
|
46
|
+
throw new Error(`deployment "${spec.name}" has invalid navigation.home path "${entry.path}"`);
|
|
47
|
+
}
|
|
30
48
|
if (spec.worker && !Object.keys(spec.worker.queues).length)
|
|
31
|
-
throw new Error(`
|
|
49
|
+
throw new Error(`deployment "${spec.name}" declares a worker with no queues`);
|
|
32
50
|
for (const [queue, concurrency] of Object.entries(spec.worker?.queues ?? {})) {
|
|
33
51
|
if (!/^[a-z][a-z0-9_-]*$/.test(queue))
|
|
34
|
-
throw new Error(`
|
|
52
|
+
throw new Error(`deployment "${spec.name}" has invalid queue "${queue}"`);
|
|
35
53
|
if (!Number.isInteger(concurrency) || concurrency < 1)
|
|
36
|
-
throw new Error(`
|
|
54
|
+
throw new Error(`deployment "${spec.name}" queue "${queue}" needs concurrency >= 1`);
|
|
37
55
|
}
|
|
38
56
|
return spec;
|
|
39
57
|
}
|
|
40
58
|
export function defineWorkspace(spec) {
|
|
41
59
|
if (!spec || typeof spec !== 'object')
|
|
42
60
|
throw new Error('defineWorkspace() expects an object');
|
|
43
|
-
if (!Array.isArray(spec.
|
|
44
|
-
throw new Error('workspace
|
|
61
|
+
if (!Array.isArray(spec.deployments))
|
|
62
|
+
throw new Error('workspace deployments must be an array');
|
|
45
63
|
if (spec.modulePaths !== undefined && !Array.isArray(spec.modulePaths))
|
|
46
64
|
throw new Error('workspace modulePaths must be an array');
|
|
47
65
|
return spec;
|
|
48
66
|
}
|
|
49
|
-
export function composeWorkspace(
|
|
67
|
+
export function composeWorkspace(deployments) {
|
|
50
68
|
const diag = new Diagnostics();
|
|
51
69
|
const manifests = {};
|
|
52
70
|
const usedBy = new Map();
|
|
53
|
-
for (const
|
|
54
|
-
const mods = [
|
|
71
|
+
for (const deployment of deployments) {
|
|
72
|
+
const mods = [
|
|
73
|
+
...deployment.modules,
|
|
74
|
+
...(deployment.theme ? [deployment.theme] : []),
|
|
75
|
+
...(deployment.themes ?? []),
|
|
76
|
+
];
|
|
55
77
|
try {
|
|
56
|
-
manifests[
|
|
57
|
-
|
|
58
|
-
headless:
|
|
78
|
+
manifests[deployment.name] = compose(mods, {
|
|
79
|
+
requiredRegions: deployment.requires ?? [],
|
|
80
|
+
headless: deployment.headless ?? false,
|
|
81
|
+
requirePermissionCoverage: deployment.permissions?.requireCoverage,
|
|
82
|
+
modulePermissionDeclarations: deployment.permissions?.modules,
|
|
83
|
+
roleTemplates: deployment.permissions?.roleTemplates,
|
|
59
84
|
});
|
|
60
85
|
}
|
|
61
86
|
catch (e) {
|
|
62
87
|
diag.add({
|
|
63
|
-
code: '
|
|
64
|
-
module:
|
|
65
|
-
message: `
|
|
88
|
+
code: 'E_DEPLOYMENT_COMPOSE_FAILED',
|
|
89
|
+
module: deployment.name,
|
|
90
|
+
message: `deployment "${deployment.name}" failed to compose: ${e.message}`,
|
|
66
91
|
});
|
|
67
92
|
continue;
|
|
68
93
|
}
|
|
69
|
-
const configured =
|
|
70
|
-
for (const [job, meta] of Object.entries(manifests[
|
|
94
|
+
const configured = deployment.worker?.queues ?? {};
|
|
95
|
+
for (const [job, meta] of Object.entries(manifests[deployment.name].jobs)) {
|
|
71
96
|
if (configured[meta.queue])
|
|
72
97
|
continue;
|
|
73
98
|
diag.add({
|
|
74
|
-
code: '
|
|
75
|
-
module:
|
|
76
|
-
message: `
|
|
99
|
+
code: 'E_DEPLOYMENT_JOB_QUEUE_UNCONFIGURED',
|
|
100
|
+
module: deployment.name,
|
|
101
|
+
message: `deployment "${deployment.name}" ships job "${job}" on queue "${meta.queue}" but does not configure that worker queue`,
|
|
77
102
|
hint: `add worker.queues.${meta.queue}, or remove the module that contributes the job`,
|
|
78
103
|
});
|
|
79
104
|
}
|
|
105
|
+
// A landing page that names a function this build does not serve, or a path
|
|
106
|
+
// nothing routes, fails quietly at runtime: the viewer simply falls through to
|
|
107
|
+
// the old first-path behaviour and nobody is told why.
|
|
108
|
+
for (const key of deployment.navigation?.audit ?? []) {
|
|
109
|
+
const manifest = manifests[deployment.name];
|
|
110
|
+
if (!manifest.functions[key])
|
|
111
|
+
diag.add({
|
|
112
|
+
code: 'E_DEPLOYMENT_NAVIGATION_AUDIT_UNKNOWN_FUNCTION',
|
|
113
|
+
module: deployment.name,
|
|
114
|
+
message: `deployment "${deployment.name}" treats "${key}" as an inspection capability, but that function is not in this build`,
|
|
115
|
+
hint: 'name a function the composed modules serve, or drop the key',
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
for (const entry of deployment.navigation?.home ?? []) {
|
|
119
|
+
const manifest = manifests[deployment.name];
|
|
120
|
+
if (!manifest.functions[entry.needs])
|
|
121
|
+
diag.add({
|
|
122
|
+
code: 'E_DEPLOYMENT_NAVIGATION_HOME_UNKNOWN_FUNCTION',
|
|
123
|
+
module: deployment.name,
|
|
124
|
+
message: `deployment "${deployment.name}" lands on "${entry.path}" when "${entry.needs}" is permitted, but that function is not in this build`,
|
|
125
|
+
hint: 'name a function the composed modules serve, or drop the entry',
|
|
126
|
+
});
|
|
127
|
+
if (!Object.keys(manifest.routes).includes(entry.path))
|
|
128
|
+
diag.add({
|
|
129
|
+
code: 'E_DEPLOYMENT_NAVIGATION_HOME_UNROUTED',
|
|
130
|
+
module: deployment.name,
|
|
131
|
+
message: `deployment "${deployment.name}" lands on "${entry.path}", which no composed module routes`,
|
|
132
|
+
hint: 'point at a served path, or compose the module that serves it',
|
|
133
|
+
});
|
|
134
|
+
}
|
|
80
135
|
for (const m of mods) {
|
|
81
136
|
const list = usedBy.get(m.name) ?? [];
|
|
82
|
-
list.push(
|
|
137
|
+
list.push(deployment.name);
|
|
83
138
|
usedBy.set(m.name, list);
|
|
84
139
|
}
|
|
85
140
|
}
|
|
86
141
|
diag.throwIfAny();
|
|
87
142
|
// One union schema per datastore, so the coupling is explicit and checkable.
|
|
88
143
|
const datastores = {};
|
|
89
|
-
for (const
|
|
90
|
-
const store =
|
|
91
|
-
const manifest = manifests[
|
|
144
|
+
for (const deployment of deployments) {
|
|
145
|
+
const store = deployment.datastore ?? 'main';
|
|
146
|
+
const manifest = manifests[deployment.name];
|
|
92
147
|
const schema = schemaFromManifest(manifest);
|
|
93
|
-
const slot = (datastores[store] ??= {
|
|
94
|
-
|
|
148
|
+
const slot = (datastores[store] ??= {
|
|
149
|
+
schema: { version: 1, tables: {} },
|
|
150
|
+
deployments: [],
|
|
151
|
+
modules: [],
|
|
152
|
+
});
|
|
153
|
+
slot.deployments.push(deployment.name);
|
|
95
154
|
for (const m of manifest.order)
|
|
96
155
|
if (!slot.modules.includes(m))
|
|
97
156
|
slot.modules.push(m);
|
|
@@ -104,9 +163,9 @@ export function composeWorkspace(apps) {
|
|
|
104
163
|
if (existing.model !== table.model) {
|
|
105
164
|
diag.add({
|
|
106
165
|
code: 'E_DATASTORE_MODEL_CLASH',
|
|
107
|
-
module:
|
|
108
|
-
message: `datastore "${store}": table "${tname}" is "${existing.model}" in another
|
|
109
|
-
hint: 'rename one of the models, or bind the
|
|
166
|
+
module: deployment.name,
|
|
167
|
+
message: `datastore "${store}": table "${tname}" is "${existing.model}" in another deployment but "${table.model}" in "${deployment.name}"`,
|
|
168
|
+
hint: 'rename one of the models, or bind the deployments to different datastores',
|
|
110
169
|
});
|
|
111
170
|
continue;
|
|
112
171
|
}
|
|
@@ -116,12 +175,32 @@ export function composeWorkspace(apps) {
|
|
|
116
175
|
existing.columns[cname] = { ...col };
|
|
117
176
|
continue;
|
|
118
177
|
}
|
|
119
|
-
if (before.base !== col.base ||
|
|
178
|
+
if (before.base !== col.base ||
|
|
179
|
+
before.optional !== col.optional ||
|
|
180
|
+
before.target !== col.target ||
|
|
181
|
+
before.by !== col.by) {
|
|
120
182
|
diag.add({
|
|
121
183
|
code: 'E_DATASTORE_COLUMN_CLASH',
|
|
122
|
-
module:
|
|
123
|
-
message: `datastore "${store}": column "${tname}.${cname}" is ${before
|
|
124
|
-
hint: 'both
|
|
184
|
+
module: deployment.name,
|
|
185
|
+
message: `datastore "${store}": column "${tname}.${cname}" is ${columnContract(before)} (from ${before.by}) elsewhere but ${columnContract(col)} (from ${col.by}) in "${deployment.name}"`,
|
|
186
|
+
hint: 'both deployments must install the same version of the contributing module',
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
for (const [name, index] of Object.entries(table.indexes)) {
|
|
191
|
+
const before = existing.indexes[name];
|
|
192
|
+
if (!before) {
|
|
193
|
+
existing.indexes[name] = { ...index, fields: [...index.fields] };
|
|
194
|
+
continue;
|
|
195
|
+
}
|
|
196
|
+
if (before.unique !== index.unique ||
|
|
197
|
+
before.by !== index.by ||
|
|
198
|
+
before.fields.join('\0') !== index.fields.join('\0')) {
|
|
199
|
+
diag.add({
|
|
200
|
+
code: 'E_DATASTORE_INDEX_CLASH',
|
|
201
|
+
module: deployment.name,
|
|
202
|
+
message: `datastore "${store}": index "${tname}.${name}" is ${indexContract(before)} elsewhere but ${indexContract(index)} in "${deployment.name}"`,
|
|
203
|
+
hint: 'rename one index, or make both deployments declare the same fields and uniqueness',
|
|
125
204
|
});
|
|
126
205
|
}
|
|
127
206
|
}
|
|
@@ -136,21 +215,21 @@ export function composeWorkspace(apps) {
|
|
|
136
215
|
else
|
|
137
216
|
(soloed[list[0]] ??= []).push(mod);
|
|
138
217
|
}
|
|
139
|
-
return {
|
|
218
|
+
return { deployments: manifests, datastores, shared: shared.sort(), soloed };
|
|
140
219
|
}
|
|
141
220
|
export function explainWorkspace(ws) {
|
|
142
221
|
const lines = [];
|
|
143
|
-
lines.push('
|
|
144
|
-
for (const [name, m] of Object.entries(ws.
|
|
222
|
+
lines.push('deployments:');
|
|
223
|
+
for (const [name, m] of Object.entries(ws.deployments)) {
|
|
145
224
|
lines.push(` ${name.padEnd(14)} modules=${m.order.length} fns=${Object.keys(m.functions).length} jobs=${Object.keys(m.jobs).length} regions=${m.regions.required.length}`);
|
|
146
225
|
}
|
|
147
226
|
lines.push('datastores:');
|
|
148
227
|
for (const [name, ds] of Object.entries(ws.datastores)) {
|
|
149
|
-
lines.push(` ${name.padEnd(14)} tables=${Object.keys(ds.schema.tables).length} shared by: ${ds.
|
|
228
|
+
lines.push(` ${name.padEnd(14)} tables=${Object.keys(ds.schema.tables).length} shared by: ${ds.deployments.join(', ')}`);
|
|
150
229
|
}
|
|
151
230
|
lines.push(`shared modules: ${ws.shared.join(', ') || '(none)'}`);
|
|
152
|
-
for (const [
|
|
153
|
-
lines.push(` only in ${
|
|
231
|
+
for (const [deployment, mods] of Object.entries(ws.soloed))
|
|
232
|
+
lines.push(` only in ${deployment}: ${mods.join(', ')}`);
|
|
154
233
|
return lines.join('\n');
|
|
155
234
|
}
|
|
156
235
|
//# sourceMappingURL=workspace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../../../packages/ketjs/src/kernel/workspace.ts"],"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AA;IACH,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAA;IACjE,KAAK,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,CAAC;QACxD,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC3D,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
-----------------------------------------------------------
|
|
8
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
9
|
+
-----------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
PREAMBLE
|
|
12
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
13
|
+
development of collaborative font projects, to support the font creation
|
|
14
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
15
|
+
open framework in which fonts may be shared and improved in partnership
|
|
16
|
+
with others.
|
|
17
|
+
|
|
18
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
19
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
20
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
21
|
+
redistributed and/or sold with any software provided that any reserved
|
|
22
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
23
|
+
however, cannot be released under any other type of license. The
|
|
24
|
+
requirement for fonts to remain under this license does not apply
|
|
25
|
+
to any document created using the fonts or their derivatives.
|
|
26
|
+
|
|
27
|
+
DEFINITIONS
|
|
28
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
29
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
30
|
+
include source files, build scripts and documentation.
|
|
31
|
+
|
|
32
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
33
|
+
copyright statement(s).
|
|
34
|
+
|
|
35
|
+
"Original Version" refers to the collection of Font Software components as
|
|
36
|
+
distributed by the Copyright Holder(s).
|
|
37
|
+
|
|
38
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
39
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
40
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
41
|
+
new environment.
|
|
42
|
+
|
|
43
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
44
|
+
writer or other person who contributed to the Font Software.
|
|
45
|
+
|
|
46
|
+
PERMISSION AND CONDITIONS
|
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
48
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
49
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
50
|
+
Software, subject to the following conditions:
|
|
51
|
+
|
|
52
|
+
1) Neither the Font Software nor any of its individual components,
|
|
53
|
+
in Original or Modified Versions, may be sold by itself.
|
|
54
|
+
|
|
55
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
56
|
+
redistributed and/or sold with any software, provided that each copy
|
|
57
|
+
contains the above copyright notice and this license. These can be
|
|
58
|
+
included either as stand-alone text files, human-readable headers or
|
|
59
|
+
in the appropriate machine-readable metadata fields within text or
|
|
60
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
61
|
+
|
|
62
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
63
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
64
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
65
|
+
presented to the users.
|
|
66
|
+
|
|
67
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
68
|
+
Software shall not be used to promote, endorse or advertise any
|
|
69
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
70
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
71
|
+
permission.
|
|
72
|
+
|
|
73
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
74
|
+
must be distributed entirely under this license, and must not be
|
|
75
|
+
distributed under any other license. The requirement for fonts to
|
|
76
|
+
remain under this license does not apply to any document created
|
|
77
|
+
using the Font Software.
|
|
78
|
+
|
|
79
|
+
TERMINATION
|
|
80
|
+
This license becomes null and void if any of the above conditions are
|
|
81
|
+
not met.
|
|
82
|
+
|
|
83
|
+
DISCLAIMER
|
|
84
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
85
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
86
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
87
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
88
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
89
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
90
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
91
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
92
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type TrueTypeFont = {
|
|
2
|
+
bytes: Uint8Array;
|
|
3
|
+
unitsPerEm: number;
|
|
4
|
+
ascent: number;
|
|
5
|
+
descent: number;
|
|
6
|
+
glyphOf(point: number): number;
|
|
7
|
+
widthOf(glyph: number): number;
|
|
8
|
+
};
|
|
9
|
+
export declare function parseTrueType(bytes: Uint8Array): TrueTypeFont;
|
|
10
|
+
//# sourceMappingURL=font.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../../../../packages/ketjs/src/pdf/font.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,UAAU,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAC/B,CAAA;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY,CAyE7D"}
|