@opengeni/contracts 0.5.0 → 0.6.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 +13 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +13 -0
package/dist/index.d.ts
CHANGED
|
@@ -2680,6 +2680,7 @@ declare const Session: z.ZodObject<{
|
|
|
2680
2680
|
user: "user";
|
|
2681
2681
|
agent: "agent";
|
|
2682
2682
|
}>>;
|
|
2683
|
+
instructions: z.ZodNullable<z.ZodString>;
|
|
2683
2684
|
resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2684
2685
|
kind: z.ZodLiteral<"repository">;
|
|
2685
2686
|
uri: z.ZodString;
|
|
@@ -3587,6 +3588,7 @@ declare const SessionEvent: z.ZodObject<{
|
|
|
3587
3588
|
type SessionEvent = z.infer<typeof SessionEvent>;
|
|
3588
3589
|
declare const CreateSessionRequest: z.ZodObject<{
|
|
3589
3590
|
initialMessage: z.ZodString;
|
|
3591
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
3590
3592
|
resources: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3591
3593
|
kind: z.ZodLiteral<"repository">;
|
|
3592
3594
|
uri: z.ZodString;
|
package/dist/index.js
CHANGED
|
@@ -1564,6 +1564,10 @@ var Session = z.object({
|
|
|
1564
1564
|
initialMessage: z.string(),
|
|
1565
1565
|
title: z.string().nullable(),
|
|
1566
1566
|
titleSource: z.enum(["user", "agent"]).nullable(),
|
|
1567
|
+
// Per-session agent persona/system instructions supplied at create. Org-visible
|
|
1568
|
+
// metadata (exposed like title/goal), never a secret and never a timeline event.
|
|
1569
|
+
// null when the session carried none.
|
|
1570
|
+
instructions: z.string().nullable(),
|
|
1567
1571
|
resources: z.array(ResourceRef),
|
|
1568
1572
|
tools: z.array(ToolRef),
|
|
1569
1573
|
metadata: z.record(z.string(), z.unknown()),
|
|
@@ -2090,6 +2094,15 @@ var SessionEvent = z.object({
|
|
|
2090
2094
|
});
|
|
2091
2095
|
var CreateSessionRequest = z.object({
|
|
2092
2096
|
initialMessage: z.string().min(1),
|
|
2097
|
+
// Per-session agent persona/system instructions (org-visible metadata, NOT a
|
|
2098
|
+
// secret). Rides the SAME system-level instructions channel the per-workspace
|
|
2099
|
+
// agentInstructions rides, composed AFTER the workspace persona so it refines
|
|
2100
|
+
// it for this one session — how a host delivers per-agent-type prompts without
|
|
2101
|
+
// leaking them into the user-visible timeline (it is NEVER emitted as an
|
|
2102
|
+
// event, unlike goal/initialMessage). Trimmed, non-empty. The 32768-char cap
|
|
2103
|
+
// matches the codebase's largest free-form string convention (workspace
|
|
2104
|
+
// environment variable values). Absent ⇒ byte-identical to today.
|
|
2105
|
+
instructions: z.string().trim().min(1).max(32768).optional(),
|
|
2093
2106
|
resources: z.array(ResourceRef).default([]),
|
|
2094
2107
|
tools: z.array(ToolRef).default([]),
|
|
2095
2108
|
metadata: z.record(z.string(), z.unknown()).default({}),
|