@arcforge/types 2.0.108 → 2.0.109
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/package.json +1 -1
- package/src/config.ts +21 -0
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -32,6 +32,27 @@ export type AxonConfig<EventMap extends Record<string, unknown> = Record<string,
|
|
|
32
32
|
/** Short human-readable summary shown in registries, docs, and generated manifests. */
|
|
33
33
|
// description?: string // deprected. use package.json instead
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Paths on this agent's own HTTP surface worth surfacing to whoever boots
|
|
37
|
+
* it — printed in the `axon dev` banner alongside the agent's URL.
|
|
38
|
+
*
|
|
39
|
+
* ```ts
|
|
40
|
+
* links: { viewer: "/api/sim", docs: "/api/help" }
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* Values are PATHS, never absolute URLs: the runtime binds a port at boot
|
|
44
|
+
* (walking forward if the requested one is taken), so an agent that wrote
|
|
45
|
+
* `http://localhost:3010/...` here would advertise the wrong address the
|
|
46
|
+
* first time two agents ran side by side.
|
|
47
|
+
*
|
|
48
|
+
* The runtime attaches no meaning to a name. It does not know what a
|
|
49
|
+
* viewer is, only that the author wants this path shown — which is why
|
|
50
|
+
* this is a flat label→path map rather than a typed `ui:` field with a
|
|
51
|
+
* title and an icon. A shape that describes what the thing IS would be
|
|
52
|
+
* the runtime learning about kinds of page; this shape only says where.
|
|
53
|
+
*/
|
|
54
|
+
links?: Record<string, string>
|
|
55
|
+
|
|
35
56
|
/** Sandbox permissions enforced at the capsule boundary. */
|
|
36
57
|
policy?: CapsulePartialConfig["policy"]
|
|
37
58
|
|