@opengeni/core 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.d.ts +2 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/domain/sessions.ts +11 -0
package/dist/index.d.ts
CHANGED
|
@@ -554,6 +554,7 @@ declare function createAndStartSession(input: {
|
|
|
554
554
|
name: string;
|
|
555
555
|
} | null;
|
|
556
556
|
goal?: GoalSpec | null;
|
|
557
|
+
instructions?: string | null;
|
|
557
558
|
firstPartyMcpPermissions?: Permission[] | null;
|
|
558
559
|
mcpServers?: CreateSessionMcpServerInput[];
|
|
559
560
|
sessionMcpServers?: SessionMcpServerMetadata[];
|
|
@@ -574,6 +575,7 @@ declare function createAndStartSession(input: {
|
|
|
574
575
|
initialMessage: string;
|
|
575
576
|
title: string | null;
|
|
576
577
|
titleSource: "user" | "agent" | null;
|
|
578
|
+
instructions: string | null;
|
|
577
579
|
resources: ({
|
|
578
580
|
kind: "repository";
|
|
579
581
|
uri: string;
|
package/dist/index.js
CHANGED
|
@@ -2034,6 +2034,7 @@ async function createAndStartSession(input) {
|
|
|
2034
2034
|
sandboxBackend: input.sandboxBackend,
|
|
2035
2035
|
environmentId: input.environment?.id ?? null,
|
|
2036
2036
|
firstPartyMcpPermissions: input.firstPartyMcpPermissions ?? null,
|
|
2037
|
+
instructions: input.instructions ?? null,
|
|
2037
2038
|
parentSessionId: input.parentSessionId ?? null,
|
|
2038
2039
|
createIdempotencyKey: input.createIdempotencyKey,
|
|
2039
2040
|
sandboxGroupId: input.sandboxGroupId ?? null,
|
|
@@ -2056,6 +2057,7 @@ async function createAndStartSession(input) {
|
|
|
2056
2057
|
sandboxBackend: input.sandboxBackend,
|
|
2057
2058
|
environmentId: input.environment?.id ?? null,
|
|
2058
2059
|
firstPartyMcpPermissions: input.firstPartyMcpPermissions ?? null,
|
|
2060
|
+
instructions: input.instructions ?? null,
|
|
2059
2061
|
parentSessionId: input.parentSessionId ?? null,
|
|
2060
2062
|
sandboxGroupId: input.sandboxGroupId ?? null,
|
|
2061
2063
|
...input.sandboxOs ? { sandboxOs: input.sandboxOs } : {},
|
|
@@ -2371,6 +2373,10 @@ async function createSessionForRequest(deps, grant, workspaceId, rawPayload) {
|
|
|
2371
2373
|
metadata: payload.metadata,
|
|
2372
2374
|
environment: environment ? { id: environment.id, name: environment.name } : null,
|
|
2373
2375
|
goal: payload.goal ?? null,
|
|
2376
|
+
// Per-session persona instructions (already trimmed/validated by the
|
|
2377
|
+
// contracts schema). Persisted on the row; composed system-level at turn
|
|
2378
|
+
// time. Not surfaced as an event.
|
|
2379
|
+
instructions: payload.instructions ?? null,
|
|
2374
2380
|
firstPartyMcpPermissions,
|
|
2375
2381
|
mcpServers: sessionMcpServers.dbServers,
|
|
2376
2382
|
sessionMcpServers: sessionMcpServers.metadata,
|