@agentshouse/panel-contract 0.1.0-alpha.185168187406274
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 +26 -0
- package/contract.json +29475 -0
- package/index.d.ts +29476 -0
- package/index.js +29476 -0
- package/package.json +24 -0
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @agentshouse/panel-contract
|
|
2
|
+
|
|
3
|
+
What one agents.house release serves to its panel. House generates it from its
|
|
4
|
+
own code, and its version is derived from its content: two releases with equal
|
|
5
|
+
contracts carry one version.
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
import { contract, version } from '@agentshouse/panel-contract';
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
`contract` holds four parts, each schema a JSON Schema (2020-12):
|
|
12
|
+
|
|
13
|
+
- `acts` - every application-door act by name, posted to `/door/<name>`, with
|
|
14
|
+
its `input` schema and, once the act states one, its `answer` schema, which
|
|
15
|
+
covers each refusal it answers by code.
|
|
16
|
+
- `documents` - every House document type House writes, with the schema of its
|
|
17
|
+
frontmatter `fields` and, where it has them, its `sections`. A list entry's
|
|
18
|
+
word grammar is a `pattern` whose named groups are its words; a field that
|
|
19
|
+
holds JSON names `contentMediaType` and its `contentSchema`.
|
|
20
|
+
- `notifications` - every Human Notification kind with the value fields its
|
|
21
|
+
`house-notification` document carries.
|
|
22
|
+
- `served` - the exact `@agentshouse/mdruntime`, `@agentshouse/mdruntime-adapter`
|
|
23
|
+
and `@agentshouse/app-bridge` versions this release serves.
|
|
24
|
+
|
|
25
|
+
`index.d.ts` types `contract` as its literal value, so a schema can be turned
|
|
26
|
+
into a TypeScript type at build time. `contract.json` holds the same value.
|