Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 9
Document dispatcher protocol in PROTOCOL_MAP#549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -155,6 +155,8 @@ This document serves as the **Grand Map** of the ObjectStack specification. It l | ||
| | File | Status | Description | | ||
| | :--- | :--- | :--- | | ||
| | [`protocol.zod.ts`](src/api/protocol.zod.ts) | ⭐ | **Stack Protocol**. valid requests and responses for the platform. | | ||
| | [`dispatcher.zod.ts`](src/api/dispatcher.zod.ts) | ⭐ | **HttpDispatcher**. Route-to-service mapping for API routing. | | ||
| | [`discovery.zod.ts`](src/api/discovery.zod.ts) | ⭐ | **Service Discovery**. Service registration and API routes discovery. | | ||
Comment on lines
157
to
+159
CopilotAI | ||
| | [`endpoint.zod.ts`](src/api/endpoint.zod.ts) | | **API Endpoints**. REST API route definitions. | | ||
| | [`graphql.zod.ts`](src/api/graphql.zod.ts) | | **GraphQL**. Schema and resolver configuration. | | ||
| | [`rest-server.zod.ts`](src/api/rest-server.zod.ts) | | **REST Server**. REST-specific server settings. | | ||
| @@ -166,7 +168,6 @@ This document serves as the **Grand Map** of the ObjectStack specification. It l | ||
| | [`router.zod.ts`](src/api/router.zod.ts) | | **Routing**. API Gateway routing rules. | | ||
| | [`http-cache.zod.ts`](src/api/http-cache.zod.ts) | | **HTTP Cache**. Cache-Control headers and CDNs. | | ||
| | [`errors.zod.ts`](src/api/errors.zod.ts) | | **Error Handling**. Standard error response formats. | | ||
| | [`discovery.zod.ts`](src/api/discovery.zod.ts) | | **Service Discovery**. Service registration for microservices. | | ||
| | [`metadata.zod.ts`](src/api/metadata.zod.ts) | | **Metadata API**. Endpoints for schema retrieval. | | ||
| | [`odata.zod.ts`](src/api/odata.zod.ts) | | **OData**. OData protocol support. | | ||
| | [`batch.zod.ts`](src/api/batch.zod.ts) | | **Batch API**. Bulk request processing. | | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -412,6 +412,36 @@ | ||||||
| "additionalProperties": false | ||||||
| }, | ||||||
| "description": "Query Function contributions" | ||||||
| }, | ||||||
| "routes": { | ||||||
| "type": "array", | ||||||
| "items": { | ||||||
| "type": "object", | ||||||
| "properties": { | ||||||
| "prefix": { | ||||||
| "type": "string", | ||||||
| "pattern": "^\\/", | ||||||
| "description": "API path prefix" | ||||||
| }, | ||||||
| "service": { | ||||||
| "type": "string", | ||||||
CopilotAI | ||||||
| "type": "string", | |
| "$ref": "#/definitions/CoreServiceName", |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| { | ||
| "$ref": "#/definitions/DispatcherConfig", | ||
| "definitions": { | ||
| "DispatcherConfig": { | ||
| "type": "object", | ||
| "properties": { | ||
| "routes": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object", | ||
| "properties": { | ||
| "prefix": { | ||
| "type": "string", | ||
| "pattern": "^\\/", | ||
| "description": "URL path prefix for routing (e.g. /api/v1/data)" | ||
| }, | ||
| "service": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "metadata", | ||
| "data", | ||
| "auth", | ||
| "file-storage", | ||
| "search", | ||
| "cache", | ||
| "queue", | ||
| "automation", | ||
| "graphql", | ||
| "analytics", | ||
| "hub", | ||
| "realtime", | ||
| "job", | ||
| "notification", | ||
| "ai", | ||
| "i18n", | ||
| "ui", | ||
| "workflow" | ||
| ], | ||
| "description": "Target core service name" | ||
| }, | ||
| "authRequired": { | ||
| "type": "boolean", | ||
| "default": true, | ||
| "description": "Whether authentication is required" | ||
| }, | ||
| "criticality": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "required", | ||
| "core", | ||
| "optional" | ||
| ], | ||
| "default": "optional", | ||
| "description": "Service criticality level for unavailability handling" | ||
| }, | ||
| "permissions": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| }, | ||
| "description": "Required permissions for this route namespace" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "prefix", | ||
| "service" | ||
| ], | ||
| "additionalProperties": false | ||
| }, | ||
| "description": "Route-to-service mappings" | ||
| }, | ||
| "fallback": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "404", | ||
| "proxy", | ||
| "custom" | ||
| ], | ||
| "default": "404", | ||
| "description": "Behavior when no route matches" | ||
| }, | ||
| "proxyTarget": { | ||
| "type": "string", | ||
| "format": "uri", | ||
| "description": "Proxy target URL when fallback is \"proxy\"" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "routes" | ||
| ], | ||
| "additionalProperties": false | ||
| } | ||
| }, | ||
| "$schema": "http://json-schema.org/draft-07/schema#" | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.
CopilotAIFeb 8, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PROTOCOL_MAP marks
discovery.zod.tsas “Service registration and API routes discovery”, butsrc/api/discovery.zod.tsonly defines a discovery response (routes + feature flags + locale). Consider rewording this row to avoid implying an unmodeled “service registration” protocol (or link that concept tokernel/service-registry.zod.tsif that’s what you mean).