@opengeni/api-router 0.3.0 → 0.4.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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createApp
3
- } from "./chunk-SVBM6RM6.js";
3
+ } from "./chunk-I2EDWHVF.js";
4
4
 
5
5
  // src/index.ts
6
6
  import { dbSearchPath, getSettings, resolveNatsCalloutConfig, resolveNatsControlPlaneAuth, retryStartupDependency, startupRetryOptions } from "@opengeni/config";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeni/api-router",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "OpenGeni HTTP surface: the Hono adapter/router (createApp), routes, MCP HTTP transport, and HTTP access adapters over @opengeni/core. An engine-distribution surface — its runtime closure includes engine-internal packages.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -46,16 +46,16 @@
46
46
  "@modelcontextprotocol/sdk": "^1.29.0",
47
47
  "@opengeni/agent-proto": "^0.2.1",
48
48
  "@opengeni/codex": "^0.2.1",
49
- "@opengeni/config": "^0.2.3",
50
- "@opengeni/contracts": "^0.5.0",
51
- "@opengeni/core": "^0.3.0",
52
- "@opengeni/db": "^0.3.0",
53
- "@opengeni/documents": "^0.2.3",
54
- "@opengeni/events": "^0.2.3",
55
- "@opengeni/github": "^0.2.3",
49
+ "@opengeni/config": "^0.2.4",
50
+ "@opengeni/contracts": "^0.6.0",
51
+ "@opengeni/core": "^0.4.0",
52
+ "@opengeni/db": "^0.4.0",
53
+ "@opengeni/documents": "^0.2.4",
54
+ "@opengeni/events": "^0.2.4",
55
+ "@opengeni/github": "^0.2.4",
56
56
  "@opengeni/observability": "^0.2.1",
57
- "@opengeni/runtime": "^0.2.3",
58
- "@opengeni/storage": "^0.2.3",
57
+ "@opengeni/runtime": "^0.3.0",
58
+ "@opengeni/storage": "^0.2.4",
59
59
  "@temporalio/client": "^1.17.0",
60
60
  "better-auth": "^1.6.14",
61
61
  "hono": "^4.12.18",
package/src/mcp/server.ts CHANGED
@@ -629,6 +629,11 @@ function registerWorkspaceOrchestrationTools(
629
629
  description: "Spawn a new agent session (a worker) with an initial message and optional goal, resources (e.g. repositories from github_repositories_list), tools, and workspace environment attachment. Environment attachment happens at creation only — it cannot be added to a running session — and requires the environments:use permission. When targetSandboxId names a machine, workingDir sets the working directory (cwd) the spawned session runs under on that machine.",
630
630
  inputSchema: {
631
631
  initialMessage: z4.string().min(1),
632
+ // Per-session agent persona/system instructions for the spawned worker
633
+ // (a per-agent-type prompt). Delivered system-level, composed AFTER the
634
+ // workspace persona; never shown in the worker's timeline. Trimmed,
635
+ // non-empty, max 32768 chars (re-validated by the contracts schema).
636
+ instructions: z4.string().min(1).max(32768).optional(),
632
637
  goal: z4.unknown().optional(),
633
638
  resources: z4.array(z4.unknown()).optional(),
634
639
  tools: z4.array(z4.unknown()).optional(),