@appport/runtime 0.2.0 → 0.3.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/README.md +2 -2
- package/index.d.ts +12 -0
- package/index.js +5 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ npm install @appport/runtime
|
|
|
7
7
|
npx @appport/runtime init
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
`init` interactively selects capabilities and generates both `appport.toml` and the authoritative `feltdb.flow`. Use `--use api,jobs,webhooks` only for non-interactive automation.
|
|
10
|
+
`init` interactively selects capabilities and generates both a complete `appport.toml` application contract and the authoritative `feltdb.flow`. Use `--use api,jobs,webhooks` only for non-interactive automation.
|
|
11
11
|
|
|
12
12
|
```js
|
|
13
13
|
import { appport } from '@appport/runtime';
|
|
@@ -16,4 +16,4 @@ const app = await appport();
|
|
|
16
16
|
await app.api.keys.createApiKey(/* ... */);
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
`appport()`
|
|
19
|
+
`appport()` compiles the contract once and materializes HTTP, state, tenancy, events, API keys, webhooks, jobs, observability, and lifecycle. The runtime installs its CLI and capability implementation transitively.
|
package/index.d.ts
CHANGED
|
@@ -3,9 +3,21 @@ export {
|
|
|
3
3
|
CapabilityNotDeclaredError,
|
|
4
4
|
capabilityRegistry,
|
|
5
5
|
createCapabilityPlan,
|
|
6
|
+
parseAppPortConfig,
|
|
7
|
+
parseAppPortConfigText,
|
|
8
|
+
AppPortConfigError,
|
|
9
|
+
AppPortEvents,
|
|
10
|
+
AppPortTenantContext,
|
|
6
11
|
type AppPortApplication,
|
|
7
12
|
type AppPortApiCapability,
|
|
8
13
|
type AppPortCapabilityName,
|
|
9
14
|
type AppPortOptions,
|
|
15
|
+
type AppPortRouteContext,
|
|
16
|
+
type AppPortRouteHandler,
|
|
17
|
+
type AppPortState,
|
|
18
|
+
type AppPortTenantServices,
|
|
19
|
+
type AppPortContractSnapshot,
|
|
20
|
+
type AppPortEvent,
|
|
21
|
+
type AppPortHttpRuntime,
|
|
10
22
|
type CapabilityPlan,
|
|
11
23
|
} from '@appport/services';
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appport/runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Contract-driven AppPort application runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"bin": {
|
|
13
|
-
"appport-runtime": "
|
|
13
|
+
"appport-runtime": "cli.js"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"cli.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"README.md"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@appport/services": "^0.
|
|
22
|
+
"@appport/services": "^0.3.0"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
25
25
|
"appport",
|