@polycore/protocol 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/messages.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polycore/protocol",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
5
  "description": "Polycore control-plane and runner wire contract: message schemas and signed-envelope helpers. Pure (zod + node:crypto), no transport.",
6
6
  "type": "module",
package/src/messages.ts CHANGED
@@ -35,6 +35,14 @@ export const projectAdvertisementSchema = z.object({
35
35
  slug: z.string().min(1),
36
36
  /** The environments this project can target (e.g. `["dev","prod"]`). */
37
37
  environments: z.array(z.string().min(1)).min(1),
38
+ /**
39
+ * The environment an unqualified ask targets. Advertised from the runner's
40
+ * committed config (`defaultEnvironment`) so it is the single source of truth
41
+ * for the project's default; the control plane uses it as the front-door
42
+ * default (a per-front-door override still wins). Ignored when it is not one
43
+ * of `environments`; absent falls back to the first advertised environment.
44
+ */
45
+ defaultEnvironment: z.string().min(1).optional(),
38
46
  /** The capabilities callable on this project. */
39
47
  connectors: z.array(connectorDescriptorSchema),
40
48
  /** Optional agent grounding for this project (markdown/plain text). */