@ankhorage/runtime 0.1.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/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +38 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/readme-usage.d.ts +2 -0
- package/dist/readme-usage.d.ts.map +1 -0
- package/dist/readme-usage.js +17 -0
- package/dist/readme-usage.js.map +1 -0
- package/package.json +76 -0
- package/paradox/badges/build.svg +7 -0
- package/paradox/badges/docs.svg +7 -0
- package/paradox/badges/eslint.svg +7 -0
- package/paradox/badges/license.svg +7 -0
- package/paradox/badges/npm.svg +7 -0
- package/paradox/badges/prettier.svg +7 -0
- package/paradox/badges/runtime.svg +7 -0
- package/paradox/badges/tests.svg +7 -0
- package/paradox/badges/typescript.svg +7 -0
- package/paradox/components.md +1 -0
- package/paradox/diagrams/architecture-overview.mmd +10 -0
- package/paradox/diagrams/export-graph.mmd +49 -0
- package/paradox/diagrams/module-relationships.mmd +5 -0
- package/paradox/exports.json +564 -0
- package/paradox/exports.md +185 -0
- package/paradox/index.html +1146 -0
- package/paradox/paradox.json +952 -0
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ankhorage
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<!-- markdownlint-disable MD013 MD033 -->
|
|
2
|
+
<!-- This file is generated by Paradox. Do not edit manually. -->
|
|
3
|
+
|
|
4
|
+
# @ankhorage/runtime
|
|
5
|
+
|
|
6
|
+
        
|
|
7
|
+
|
|
8
|
+
Platform-neutral runtime contracts and helpers for Ankhorage generated apps.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### Generic runtime boundary
|
|
13
|
+
|
|
14
|
+
`@ankhorage/runtime` owns platform-neutral runtime contracts for generated apps.
|
|
15
|
+
|
|
16
|
+
This first package slice is intentionally metadata-only plus public contracts so
|
|
17
|
+
`ankhorage4#430` can move real runtime implementation into a stable target.
|
|
18
|
+
|
|
19
|
+
Source: `src/readme-usage.ts`
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import { createRuntimeManifest } from './index.js';
|
|
23
|
+
|
|
24
|
+
createRuntimeManifest({
|
|
25
|
+
config: {
|
|
26
|
+
appId: 'demo',
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Generated documentation
|
|
32
|
+
|
|
33
|
+
- [Interactive documentation app](./paradox/index.html)
|
|
34
|
+
- [Public API reference](./paradox/exports.md)
|
|
35
|
+
- [Component registry](./paradox/components.md)
|
|
36
|
+
- [Architecture overview](./paradox/diagrams/architecture-overview.mmd)
|
|
37
|
+
- [Module relationships](./paradox/diagrams/module-relationships.mmd)
|
|
38
|
+
- [Export graph](./paradox/diagrams/export-graph.mmd)
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const RUNTIME_CAPABILITIES: readonly ["runtime.render", "runtime.actions", "runtime.bindings", "runtime.adapters"];
|
|
2
|
+
export declare const RUNTIME_MANIFEST_KIND = "ankhorage-runtime-manifest";
|
|
3
|
+
export type RuntimeCapability = (typeof RUNTIME_CAPABILITIES)[number];
|
|
4
|
+
export interface RuntimeDiagnostic {
|
|
5
|
+
readonly code: string;
|
|
6
|
+
readonly message: string;
|
|
7
|
+
readonly severity: 'error' | 'info' | 'warning';
|
|
8
|
+
}
|
|
9
|
+
export interface RuntimeConfig {
|
|
10
|
+
readonly appId: string;
|
|
11
|
+
readonly environment?: string;
|
|
12
|
+
readonly values?: Readonly<Record<string, unknown>>;
|
|
13
|
+
}
|
|
14
|
+
export interface RuntimeActionDescriptor<Data = unknown> {
|
|
15
|
+
readonly capability?: RuntimeCapability;
|
|
16
|
+
readonly description?: string;
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly data?: Data;
|
|
19
|
+
}
|
|
20
|
+
export interface RuntimeBindingDescriptor<Value = unknown> {
|
|
21
|
+
readonly actionId?: string;
|
|
22
|
+
readonly id: string;
|
|
23
|
+
readonly source: string;
|
|
24
|
+
readonly target: string;
|
|
25
|
+
readonly value?: Value;
|
|
26
|
+
}
|
|
27
|
+
export interface RuntimeAdapterDescriptor<Options = unknown> {
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly kind: string;
|
|
30
|
+
readonly options?: Options;
|
|
31
|
+
}
|
|
32
|
+
export interface RuntimeManifest {
|
|
33
|
+
readonly actions: readonly RuntimeActionDescriptor[];
|
|
34
|
+
readonly adapters: readonly RuntimeAdapterDescriptor[];
|
|
35
|
+
readonly bindings: readonly RuntimeBindingDescriptor[];
|
|
36
|
+
readonly config: RuntimeConfig;
|
|
37
|
+
readonly diagnostics: readonly RuntimeDiagnostic[];
|
|
38
|
+
readonly kind: typeof RUNTIME_MANIFEST_KIND;
|
|
39
|
+
readonly version: 1;
|
|
40
|
+
}
|
|
41
|
+
export interface RuntimeManifestInput {
|
|
42
|
+
readonly actions?: readonly RuntimeActionDescriptor[];
|
|
43
|
+
readonly adapters?: readonly RuntimeAdapterDescriptor[];
|
|
44
|
+
readonly bindings?: readonly RuntimeBindingDescriptor[];
|
|
45
|
+
readonly config: RuntimeConfig;
|
|
46
|
+
readonly diagnostics?: readonly RuntimeDiagnostic[];
|
|
47
|
+
}
|
|
48
|
+
export declare function defineRuntimeAction<Data = unknown>(action: RuntimeActionDescriptor<Data>): RuntimeActionDescriptor<Data>;
|
|
49
|
+
export declare function defineRuntimeAdapter<Options = unknown>(adapter: RuntimeAdapterDescriptor<Options>): RuntimeAdapterDescriptor<Options>;
|
|
50
|
+
export declare function defineRuntimeBinding<Value = unknown>(binding: RuntimeBindingDescriptor<Value>): RuntimeBindingDescriptor<Value>;
|
|
51
|
+
export declare function createRuntimeManifest(input: RuntimeManifestInput): RuntimeManifest;
|
|
52
|
+
export declare function listRuntimeCapabilities(): readonly RuntimeCapability[];
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,wFAKvB,CAAC;AAEX,eAAO,MAAM,qBAAqB,+BAA+B,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,MAAM,WAAW,iBAAiB;IAChC,QAAQ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
+
'runtime.actions',
|
|
4
|
+
'runtime.bindings',
|
|
5
|
+
'runtime.adapters',
|
|
6
|
+
];
|
|
7
|
+
export const RUNTIME_MANIFEST_KIND = 'ankhorage-runtime-manifest';
|
|
8
|
+
export function defineRuntimeAction(action) {
|
|
9
|
+
return action;
|
|
10
|
+
}
|
|
11
|
+
export function defineRuntimeAdapter(adapter) {
|
|
12
|
+
return adapter;
|
|
13
|
+
}
|
|
14
|
+
export function defineRuntimeBinding(binding) {
|
|
15
|
+
return binding;
|
|
16
|
+
}
|
|
17
|
+
export function createRuntimeManifest(input) {
|
|
18
|
+
return {
|
|
19
|
+
actions: input.actions ?? [],
|
|
20
|
+
adapters: input.adapters ?? [],
|
|
21
|
+
bindings: input.bindings ?? [],
|
|
22
|
+
config: input.config,
|
|
23
|
+
diagnostics: input.diagnostics ?? [],
|
|
24
|
+
kind: RUNTIME_MANIFEST_KIND,
|
|
25
|
+
version: 1,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function listRuntimeCapabilities() {
|
|
29
|
+
return RUNTIME_CAPABILITIES;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,gBAAgB;IAChB,iBAAiB;IACjB,kBAAkB;IAClB,kBAAkB;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,qBAAqB,GAAG,4BAA4B,CAAC;AAuDlE,MAAM,UAAU,mBAAmB,CACjC,MAAqC;IAErC,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,OAA0C;IAE1C,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,OAAwC;IAExC,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,KAA2B;IAC/D,OAAO;QACL,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,EAAE;QAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,EAAE;QAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,EAAE;QAC9B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,WAAW,EAAE,KAAK,CAAC,WAAW,IAAI,EAAE;QACpC,IAAI,EAAE,qBAAqB;QAC3B,OAAO,EAAE,CAAC;KACX,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,uBAAuB;IACrC,OAAO,oBAAoB,CAAC;AAC9B,CAAC","sourcesContent":["export const RUNTIME_CAPABILITIES = [\n 'runtime.render',\n 'runtime.actions',\n 'runtime.bindings',\n 'runtime.adapters',\n] as const;\n\nexport const RUNTIME_MANIFEST_KIND = 'ankhorage-runtime-manifest';\n\nexport type RuntimeCapability = (typeof RUNTIME_CAPABILITIES)[number];\n\nexport interface RuntimeDiagnostic {\n readonly code: string;\n readonly message: string;\n readonly severity: 'error' | 'info' | 'warning';\n}\n\nexport interface RuntimeConfig {\n readonly appId: string;\n readonly environment?: string;\n readonly values?: Readonly<Record<string, unknown>>;\n}\n\nexport interface RuntimeActionDescriptor<Data = unknown> {\n readonly capability?: RuntimeCapability;\n readonly description?: string;\n readonly id: string;\n readonly data?: Data;\n}\n\nexport interface RuntimeBindingDescriptor<Value = unknown> {\n readonly actionId?: string;\n readonly id: string;\n readonly source: string;\n readonly target: string;\n readonly value?: Value;\n}\n\nexport interface RuntimeAdapterDescriptor<Options = unknown> {\n readonly id: string;\n readonly kind: string;\n readonly options?: Options;\n}\n\nexport interface RuntimeManifest {\n readonly actions: readonly RuntimeActionDescriptor[];\n readonly adapters: readonly RuntimeAdapterDescriptor[];\n readonly bindings: readonly RuntimeBindingDescriptor[];\n readonly config: RuntimeConfig;\n readonly diagnostics: readonly RuntimeDiagnostic[];\n readonly kind: typeof RUNTIME_MANIFEST_KIND;\n readonly version: 1;\n}\n\nexport interface RuntimeManifestInput {\n readonly actions?: readonly RuntimeActionDescriptor[];\n readonly adapters?: readonly RuntimeAdapterDescriptor[];\n readonly bindings?: readonly RuntimeBindingDescriptor[];\n readonly config: RuntimeConfig;\n readonly diagnostics?: readonly RuntimeDiagnostic[];\n}\n\nexport function defineRuntimeAction<Data = unknown>(\n action: RuntimeActionDescriptor<Data>,\n): RuntimeActionDescriptor<Data> {\n return action;\n}\n\nexport function defineRuntimeAdapter<Options = unknown>(\n adapter: RuntimeAdapterDescriptor<Options>,\n): RuntimeAdapterDescriptor<Options> {\n return adapter;\n}\n\nexport function defineRuntimeBinding<Value = unknown>(\n binding: RuntimeBindingDescriptor<Value>,\n): RuntimeBindingDescriptor<Value> {\n return binding;\n}\n\nexport function createRuntimeManifest(input: RuntimeManifestInput): RuntimeManifest {\n return {\n actions: input.actions ?? [],\n adapters: input.adapters ?? [],\n bindings: input.bindings ?? [],\n config: input.config,\n diagnostics: input.diagnostics ?? [],\n kind: RUNTIME_MANIFEST_KIND,\n version: 1,\n };\n}\n\nexport function listRuntimeCapabilities(): readonly RuntimeCapability[] {\n return RUNTIME_CAPABILITIES;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readme-usage.d.ts","sourceRoot":"","sources":["../src/readme-usage.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createRuntimeManifest } from './index.js';
|
|
2
|
+
/***
|
|
3
|
+
* Generic runtime boundary
|
|
4
|
+
*
|
|
5
|
+
* `@ankhorage/runtime` owns platform-neutral runtime contracts for generated apps.
|
|
6
|
+
*
|
|
7
|
+
* This first package slice is intentionally metadata-only plus public contracts so
|
|
8
|
+
* `ankhorage4#430` can move real runtime implementation into a stable target.
|
|
9
|
+
*
|
|
10
|
+
* @usage
|
|
11
|
+
*/
|
|
12
|
+
createRuntimeManifest({
|
|
13
|
+
config: {
|
|
14
|
+
appId: 'demo',
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=readme-usage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readme-usage.js","sourceRoot":"","sources":["../src/readme-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD;;;;;;;;;GASG;AACH,qBAAqB,CAAC;IACpB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM;KACd;CACF,CAAC,CAAC","sourcesContent":["import { createRuntimeManifest } from './index.js';\n\n/***\n * Generic runtime boundary\n *\n * `@ankhorage/runtime` owns platform-neutral runtime contracts for generated apps.\n *\n * This first package slice is intentionally metadata-only plus public contracts so\n * `ankhorage4#430` can move real runtime implementation into a stable target.\n *\n * @usage\n */\ncreateRuntimeManifest({\n config: {\n appId: 'demo',\n },\n});\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ankhorage/runtime",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Platform-neutral runtime contracts and helpers for Ankhorage generated apps.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/ankhorage/runtime#readme",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/ankhorage/runtime/issues"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/ankhorage/runtime.git"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"ankhorage",
|
|
19
|
+
"runtime",
|
|
20
|
+
"manifest",
|
|
21
|
+
"bindings",
|
|
22
|
+
"adapters",
|
|
23
|
+
"typescript"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"main": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./package.json": "./package.json"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"README.md",
|
|
38
|
+
"CHANGELOG.md",
|
|
39
|
+
"LICENSE",
|
|
40
|
+
"paradox"
|
|
41
|
+
],
|
|
42
|
+
"ankh": {
|
|
43
|
+
"category": "runtime",
|
|
44
|
+
"provider": null,
|
|
45
|
+
"capabilities": [
|
|
46
|
+
"runtime.render",
|
|
47
|
+
"runtime.actions",
|
|
48
|
+
"runtime.bindings",
|
|
49
|
+
"runtime.adapters"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "rm -rf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo && bun x tsc -p tsconfig.build.json",
|
|
54
|
+
"typecheck": "bun x tsc --noEmit -p tsconfig.json",
|
|
55
|
+
"lint": "ankhorage-eslint . --max-warnings=0",
|
|
56
|
+
"lint:fix": "ankhorage-eslint . --fix --max-warnings=0",
|
|
57
|
+
"format": "ankhorage-prettier --write .",
|
|
58
|
+
"format:check": "ankhorage-prettier --check .",
|
|
59
|
+
"test": "bun test",
|
|
60
|
+
"knip": "ankhorage-knip",
|
|
61
|
+
"docs": "bunx @ankhorage/paradox && ankhorage-prettier --write README.md paradox",
|
|
62
|
+
"changeset": "changeset",
|
|
63
|
+
"changeset:status": "changeset status --since=origin/main",
|
|
64
|
+
"version-packages": "changeset version"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@ankhorage/devtools": "^1.0.6",
|
|
68
|
+
"@ankhorage/paradox": "^0.1.10",
|
|
69
|
+
"@changesets/cli": "^2.31.0",
|
|
70
|
+
"@types/bun": "^1.3.13",
|
|
71
|
+
"@types/node": "^25.6.0",
|
|
72
|
+
"typescript": "^5.9.3"
|
|
73
|
+
},
|
|
74
|
+
"sideEffects": false,
|
|
75
|
+
"packageManager": "bun@1.3.13"
|
|
76
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="104" height="20" role="img" aria-label="build: checked">
|
|
2
|
+
<title>build: checked</title>
|
|
3
|
+
<rect width="45" height="20" fill="#374151"/>
|
|
4
|
+
<rect x="45" width="59" height="20" fill="#0a7f3f"/>
|
|
5
|
+
<text x="22.5" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">build</text>
|
|
6
|
+
<text x="74.5" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">checked</text>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="97" height="20" role="img" aria-label="docs: paradox">
|
|
2
|
+
<title>docs: paradox</title>
|
|
3
|
+
<rect width="38" height="20" fill="#374151"/>
|
|
4
|
+
<rect x="38" width="59" height="20" fill="#0f766e"/>
|
|
5
|
+
<text x="19" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">docs</text>
|
|
6
|
+
<text x="67.5" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">paradox</text>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="111" height="20" role="img" aria-label="eslint: checked">
|
|
2
|
+
<title>eslint: checked</title>
|
|
3
|
+
<rect width="52" height="20" fill="#374151"/>
|
|
4
|
+
<rect x="52" width="59" height="20" fill="#0a7f3f"/>
|
|
5
|
+
<text x="26" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">eslint</text>
|
|
6
|
+
<text x="81.5" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">checked</text>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="97" height="20" role="img" aria-label="license: MIT">
|
|
2
|
+
<title>license: MIT</title>
|
|
3
|
+
<rect width="59" height="20" fill="#374151"/>
|
|
4
|
+
<rect x="59" width="38" height="20" fill="#2563eb"/>
|
|
5
|
+
<text x="29.5" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">license</text>
|
|
6
|
+
<text x="78" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">MIT</text>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="90" height="20" role="img" aria-label="npm: v0.0.0">
|
|
2
|
+
<title>npm: v0.0.0</title>
|
|
3
|
+
<rect width="38" height="20" fill="#374151"/>
|
|
4
|
+
<rect x="38" width="52" height="20" fill="#cb3837"/>
|
|
5
|
+
<text x="19" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">npm</text>
|
|
6
|
+
<text x="64" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">v0.0.0</text>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="125" height="20" role="img" aria-label="prettier: checked">
|
|
2
|
+
<title>prettier: checked</title>
|
|
3
|
+
<rect width="66" height="20" fill="#374151"/>
|
|
4
|
+
<rect x="66" width="59" height="20" fill="#0a7f3f"/>
|
|
5
|
+
<text x="33" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">prettier</text>
|
|
6
|
+
<text x="95.5" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">checked</text>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="97" height="20" role="img" aria-label="runtime: bun">
|
|
2
|
+
<title>runtime: bun</title>
|
|
3
|
+
<rect width="59" height="20" fill="#374151"/>
|
|
4
|
+
<rect x="59" width="38" height="20" fill="#f59e0b"/>
|
|
5
|
+
<text x="29.5" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">runtime</text>
|
|
6
|
+
<text x="78" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">bun</text>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="104" height="20" role="img" aria-label="tests: checked">
|
|
2
|
+
<title>tests: checked</title>
|
|
3
|
+
<rect width="45" height="20" fill="#374151"/>
|
|
4
|
+
<rect x="45" width="59" height="20" fill="#0a7f3f"/>
|
|
5
|
+
<text x="22.5" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">tests</text>
|
|
6
|
+
<text x="74.5" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">checked</text>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="132" height="20" role="img" aria-label="typescript: strict">
|
|
2
|
+
<title>typescript: strict</title>
|
|
3
|
+
<rect width="80" height="20" fill="#374151"/>
|
|
4
|
+
<rect x="80" width="52" height="20" fill="#2563eb"/>
|
|
5
|
+
<text x="40" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">typescript</text>
|
|
6
|
+
<text x="106" y="14" fill="#ffffff" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11" text-anchor="middle">strict</text>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Components
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
graph TD
|
|
2
|
+
package__ankhorage_runtime["@ankhorage/runtime"]
|
|
3
|
+
entrypoint_src_index_ts["src/index.ts"]
|
|
4
|
+
package__ankhorage_runtime --> entrypoint_src_index_ts
|
|
5
|
+
module_paradox_config_ts["paradox.config.ts"]
|
|
6
|
+
package__ankhorage_runtime -.-> module_paradox_config_ts
|
|
7
|
+
module_src_index_ts["src/index.ts"]
|
|
8
|
+
module_tests_runtime_test_ts["tests/runtime.test.ts"]
|
|
9
|
+
package__ankhorage_runtime -.-> module_tests_runtime_test_ts
|
|
10
|
+
module_tests_runtime_test_ts --> module_src_index_ts
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
graph LR
|
|
2
|
+
module_paradox_config_ts["paradox.config.ts"]
|
|
3
|
+
module_src_index_ts["src/index.ts"]
|
|
4
|
+
module_tests_runtime_test_ts["tests/runtime.test.ts"]
|
|
5
|
+
export_createRuntimeManifest["createRuntimeManifest"]
|
|
6
|
+
module_src_index_ts --> export_createRuntimeManifest
|
|
7
|
+
export_createRuntimeManifest -.-> export_RuntimeManifest
|
|
8
|
+
export_createRuntimeManifest -.-> export_RuntimeManifestInput
|
|
9
|
+
export_defineRuntimeAction["defineRuntimeAction"]
|
|
10
|
+
module_src_index_ts --> export_defineRuntimeAction
|
|
11
|
+
export_defineRuntimeAction -.-> export_RuntimeActionDescriptor
|
|
12
|
+
export_defineRuntimeAdapter["defineRuntimeAdapter"]
|
|
13
|
+
module_src_index_ts --> export_defineRuntimeAdapter
|
|
14
|
+
export_defineRuntimeAdapter -.-> export_RuntimeAdapterDescriptor
|
|
15
|
+
export_defineRuntimeBinding["defineRuntimeBinding"]
|
|
16
|
+
module_src_index_ts --> export_defineRuntimeBinding
|
|
17
|
+
export_defineRuntimeBinding -.-> export_RuntimeBindingDescriptor
|
|
18
|
+
export_listRuntimeCapabilities["listRuntimeCapabilities"]
|
|
19
|
+
module_src_index_ts --> export_listRuntimeCapabilities
|
|
20
|
+
export_RUNTIME_CAPABILITIES["RUNTIME_CAPABILITIES"]
|
|
21
|
+
module_src_index_ts --> export_RUNTIME_CAPABILITIES
|
|
22
|
+
export_RUNTIME_MANIFEST_KIND["RUNTIME_MANIFEST_KIND"]
|
|
23
|
+
module_src_index_ts --> export_RUNTIME_MANIFEST_KIND
|
|
24
|
+
export_RuntimeActionDescriptor["RuntimeActionDescriptor"]
|
|
25
|
+
module_src_index_ts --> export_RuntimeActionDescriptor
|
|
26
|
+
export_RuntimeAdapterDescriptor["RuntimeAdapterDescriptor"]
|
|
27
|
+
module_src_index_ts --> export_RuntimeAdapterDescriptor
|
|
28
|
+
export_RuntimeBindingDescriptor["RuntimeBindingDescriptor"]
|
|
29
|
+
module_src_index_ts --> export_RuntimeBindingDescriptor
|
|
30
|
+
export_RuntimeCapability["RuntimeCapability"]
|
|
31
|
+
module_src_index_ts --> export_RuntimeCapability
|
|
32
|
+
export_RuntimeConfig["RuntimeConfig"]
|
|
33
|
+
module_src_index_ts --> export_RuntimeConfig
|
|
34
|
+
export_RuntimeDiagnostic["RuntimeDiagnostic"]
|
|
35
|
+
module_src_index_ts --> export_RuntimeDiagnostic
|
|
36
|
+
export_RuntimeManifest["RuntimeManifest"]
|
|
37
|
+
module_src_index_ts --> export_RuntimeManifest
|
|
38
|
+
export_RuntimeManifest -.-> export_RuntimeActionDescriptor
|
|
39
|
+
export_RuntimeManifest -.-> export_RuntimeAdapterDescriptor
|
|
40
|
+
export_RuntimeManifest -.-> export_RuntimeBindingDescriptor
|
|
41
|
+
export_RuntimeManifest -.-> export_RuntimeConfig
|
|
42
|
+
export_RuntimeManifest -.-> export_RuntimeDiagnostic
|
|
43
|
+
export_RuntimeManifestInput["RuntimeManifestInput"]
|
|
44
|
+
module_src_index_ts --> export_RuntimeManifestInput
|
|
45
|
+
export_RuntimeManifestInput -.-> export_RuntimeActionDescriptor
|
|
46
|
+
export_RuntimeManifestInput -.-> export_RuntimeAdapterDescriptor
|
|
47
|
+
export_RuntimeManifestInput -.-> export_RuntimeBindingDescriptor
|
|
48
|
+
export_RuntimeManifestInput -.-> export_RuntimeConfig
|
|
49
|
+
export_RuntimeManifestInput -.-> export_RuntimeDiagnostic
|