@agentshouse/panel-contract 0.1.0-alpha.159757594113478

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.
Files changed (6) hide show
  1. package/README.md +34 -0
  2. package/contract.json +49889 -0
  3. package/day.json +2997 -0
  4. package/index.d.ts +49890 -0
  5. package/index.js +49890 -0
  6. package/package.json +26 -0
package/README.md ADDED
@@ -0,0 +1,34 @@
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 and recorded days 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`, where it has them, its `sections`, and, where House
18
+ writes one, its Markdown `body`. A list entry's
19
+ word grammar is a `pattern` whose named groups are its words; a field that
20
+ holds JSON names `contentMediaType` and its `contentSchema`.
21
+ - `notifications` - every Human Notification kind with the value fields its
22
+ `house-notification` document carries.
23
+ - `served` - the exact `@agentshouse/mdruntime`, `@agentshouse/mdruntime-adapter`
24
+ and `@agentshouse/app-bridge` versions this release serves.
25
+
26
+ `index.d.ts` types `contract` as its literal value, so a schema can be turned
27
+ into a TypeScript type at build time. `contract.json` holds the same value.
28
+
29
+ `day.json` (`@agentshouse/panel-contract/day.json`) is the recorded day: what
30
+ House produced for a scripted day of real acts by several Users. `users` holds
31
+ each User's House documents by path, `acts` each door answer with its act,
32
+ User, request and status, and `frames` each conversation frame a User's House
33
+ stream received, with its User. Identities are numbered from the day's start and
34
+ no credential is kept.