@stigmer/mcp-server 3.1.8 → 3.1.10
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/cli/mcp-server-stigmer.js +1 -1
- package/gen/agent.d.ts +0 -92
- package/gen/agent.d.ts.map +1 -1
- package/gen/agent.js +2 -37
- package/gen/agent.js.map +1 -1
- package/package.json +3 -3
- package/src/gen/agent.ts +2 -36
package/gen/agent.d.ts
CHANGED
|
@@ -142,42 +142,6 @@ export declare const AgentInputShape: {
|
|
|
142
142
|
optional?: boolean | undefined;
|
|
143
143
|
is_secret?: boolean | undefined;
|
|
144
144
|
}>>>>;
|
|
145
|
-
readonly sharing: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
146
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
-
allowed_origins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
148
|
-
messages: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
149
|
-
rate_limited: z.ZodOptional<z.ZodString>;
|
|
150
|
-
unavailable: z.ZodOptional<z.ZodString>;
|
|
151
|
-
conversation_ended: z.ZodOptional<z.ZodString>;
|
|
152
|
-
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
unavailable?: string | undefined;
|
|
154
|
-
rate_limited?: string | undefined;
|
|
155
|
-
conversation_ended?: string | undefined;
|
|
156
|
-
}, {
|
|
157
|
-
unavailable?: string | undefined;
|
|
158
|
-
rate_limited?: string | undefined;
|
|
159
|
-
conversation_ended?: string | undefined;
|
|
160
|
-
}>>>;
|
|
161
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
162
|
-
}, "strip", z.ZodTypeAny, {
|
|
163
|
-
enabled?: boolean | undefined;
|
|
164
|
-
messages?: {
|
|
165
|
-
unavailable?: string | undefined;
|
|
166
|
-
rate_limited?: string | undefined;
|
|
167
|
-
conversation_ended?: string | undefined;
|
|
168
|
-
} | undefined;
|
|
169
|
-
audience?: string | undefined;
|
|
170
|
-
allowed_origins?: string[] | undefined;
|
|
171
|
-
}, {
|
|
172
|
-
enabled?: boolean | undefined;
|
|
173
|
-
messages?: {
|
|
174
|
-
unavailable?: string | undefined;
|
|
175
|
-
rate_limited?: string | undefined;
|
|
176
|
-
conversation_ended?: string | undefined;
|
|
177
|
-
} | undefined;
|
|
178
|
-
audience?: string | undefined;
|
|
179
|
-
allowed_origins?: string[] | undefined;
|
|
180
|
-
}>>>;
|
|
181
145
|
};
|
|
182
146
|
export declare const AgentInputSchema: z.ZodObject<{
|
|
183
147
|
readonly name: z.ZodString;
|
|
@@ -320,56 +284,10 @@ export declare const AgentInputSchema: z.ZodObject<{
|
|
|
320
284
|
optional?: boolean | undefined;
|
|
321
285
|
is_secret?: boolean | undefined;
|
|
322
286
|
}>>>>;
|
|
323
|
-
readonly sharing: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
324
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
325
|
-
allowed_origins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
326
|
-
messages: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
327
|
-
rate_limited: z.ZodOptional<z.ZodString>;
|
|
328
|
-
unavailable: z.ZodOptional<z.ZodString>;
|
|
329
|
-
conversation_ended: z.ZodOptional<z.ZodString>;
|
|
330
|
-
}, "strip", z.ZodTypeAny, {
|
|
331
|
-
unavailable?: string | undefined;
|
|
332
|
-
rate_limited?: string | undefined;
|
|
333
|
-
conversation_ended?: string | undefined;
|
|
334
|
-
}, {
|
|
335
|
-
unavailable?: string | undefined;
|
|
336
|
-
rate_limited?: string | undefined;
|
|
337
|
-
conversation_ended?: string | undefined;
|
|
338
|
-
}>>>;
|
|
339
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
340
|
-
}, "strip", z.ZodTypeAny, {
|
|
341
|
-
enabled?: boolean | undefined;
|
|
342
|
-
messages?: {
|
|
343
|
-
unavailable?: string | undefined;
|
|
344
|
-
rate_limited?: string | undefined;
|
|
345
|
-
conversation_ended?: string | undefined;
|
|
346
|
-
} | undefined;
|
|
347
|
-
audience?: string | undefined;
|
|
348
|
-
allowed_origins?: string[] | undefined;
|
|
349
|
-
}, {
|
|
350
|
-
enabled?: boolean | undefined;
|
|
351
|
-
messages?: {
|
|
352
|
-
unavailable?: string | undefined;
|
|
353
|
-
rate_limited?: string | undefined;
|
|
354
|
-
conversation_ended?: string | undefined;
|
|
355
|
-
} | undefined;
|
|
356
|
-
audience?: string | undefined;
|
|
357
|
-
allowed_origins?: string[] | undefined;
|
|
358
|
-
}>>>;
|
|
359
287
|
}, "strip", z.ZodTypeAny, {
|
|
360
288
|
name: string;
|
|
361
289
|
org: string;
|
|
362
290
|
visibility?: string | undefined;
|
|
363
|
-
sharing?: {
|
|
364
|
-
enabled?: boolean | undefined;
|
|
365
|
-
messages?: {
|
|
366
|
-
unavailable?: string | undefined;
|
|
367
|
-
rate_limited?: string | undefined;
|
|
368
|
-
conversation_ended?: string | undefined;
|
|
369
|
-
} | undefined;
|
|
370
|
-
audience?: string | undefined;
|
|
371
|
-
allowed_origins?: string[] | undefined;
|
|
372
|
-
} | undefined;
|
|
373
291
|
slug?: string | undefined;
|
|
374
292
|
description?: string | undefined;
|
|
375
293
|
instructions?: string | undefined;
|
|
@@ -417,16 +335,6 @@ export declare const AgentInputSchema: z.ZodObject<{
|
|
|
417
335
|
name: string;
|
|
418
336
|
org: string;
|
|
419
337
|
visibility?: string | undefined;
|
|
420
|
-
sharing?: {
|
|
421
|
-
enabled?: boolean | undefined;
|
|
422
|
-
messages?: {
|
|
423
|
-
unavailable?: string | undefined;
|
|
424
|
-
rate_limited?: string | undefined;
|
|
425
|
-
conversation_ended?: string | undefined;
|
|
426
|
-
} | undefined;
|
|
427
|
-
audience?: string | undefined;
|
|
428
|
-
allowed_origins?: string[] | undefined;
|
|
429
|
-
} | undefined;
|
|
430
338
|
slug?: string | undefined;
|
|
431
339
|
description?: string | undefined;
|
|
432
340
|
instructions?: string | undefined;
|
package/gen/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/gen/agent.ts"],"names":[],"mappings":"AAOA,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,oDAAoD,CAAC;AAM7F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,6NAA6N;AAC7N,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/gen/agent.ts"],"names":[],"mappings":"AAOA,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,oDAAoD,CAAC;AAM7F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,6NAA6N;AAC7N,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAclB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAqD1D,wEAAwE;AACxE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,CAyB1D"}
|
package/gen/agent.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
//
|
|
3
3
|
// Flattened apply-input zod schema + toProto bridge for the Agent resource.
|
|
4
4
|
// Source proto package: ai.stigmer.agentic.agent.v1
|
|
5
|
-
import { generateSlug, visibilityFromString
|
|
5
|
+
import { generateSlug, visibilityFromString } from "./apply-runtime.js";
|
|
6
6
|
import { create } from "@bufbuild/protobuf";
|
|
7
7
|
import { AgentSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/api_pb";
|
|
8
|
-
import { AgentSpecSchema, ToolApprovalOverrideSchema, McpServerUsageSchema, McpAccessSchema, SubAgentSchema
|
|
8
|
+
import { AgentSpecSchema, ToolApprovalOverrideSchema, McpServerUsageSchema, McpAccessSchema, SubAgentSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/spec_pb";
|
|
9
9
|
import { EnvVarDeclarationSchema } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/spec_pb";
|
|
10
10
|
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
11
11
|
import { ApiResourceReferenceSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
|
|
@@ -26,7 +26,6 @@ export const AgentInputShape = {
|
|
|
26
26
|
skill_refs: z.array(z.lazy(() => SkillRefInputSchema)).optional().describe("Skill resources providing additional knowledge to the agent."),
|
|
27
27
|
sub_agents: z.array(z.lazy(() => SubAgentInputSchema)).optional().describe("Sub-agents that can be delegated to. Sub-agents can access a subset of the parent's MCP servers and tools."),
|
|
28
28
|
env: z.record(z.lazy(() => EnvVarDeclarationInputSchema)).optional().describe("Environment variable declarations for this agent. Keys are variable names; values describe their metadata and optionality."),
|
|
29
|
-
sharing: z.lazy(() => AgentSharingInputSchema).optional().describe("Sharing configuration for the agent's hosted chat experience. Controls who can chat with the running agent over its hosted link: anyone with the link (public audience) or signed-in members of the owning organization (org audience). This is a distinct consent from metadata.visibility: visibility governs who can READ the agent blueprint (marketplace), while sharing governs who can CHAT with the agent runtime. Conversations over a shared link consume the owning organization's credits, so enabling sharing is an explicit, billing-affecting decision. Unset is equivalent to sharing disabled. @internal Declarative spec semantics apply: update/apply replace this field like any other spec field, so a manifest that omits sharing revokes an active share (fails closed). Console and CLI toggle it via the targeted updateSharing RPC instead of a full-resource write. Enforcement is app-level in the getSharedProfile handler — sharing deliberately writes NO FGA visibility tuples, because a public wildcard viewer tuple would expose the full blueprint (instructions included) to any authenticated account via getByReference, conflating the two consents."),
|
|
30
29
|
};
|
|
31
30
|
export const AgentInputSchema = z.object(AgentInputShape);
|
|
32
31
|
const McpServerRefInputSchema = z.object({
|
|
@@ -65,17 +64,6 @@ const EnvVarDeclarationInputSchema = z.object({
|
|
|
65
64
|
description: z.string().optional().describe("Human-readable description shown in the UI credential form. Should explain what the variable is used for and where to obtain it."),
|
|
66
65
|
optional: z.boolean().optional().describe("Whether this variable is optional. @internal When false (default): the execution pipeline rejects a run if this variable is missing from the user's environment. When true: a missing value is acceptable (the MCP server or agent degrades gracefully without it)."),
|
|
67
66
|
});
|
|
68
|
-
const AgentSharingMessagesInputSchema = z.object({
|
|
69
|
-
rate_limited: z.string().optional().describe("Shown when a visitor or the org exceeds the message rate limit."),
|
|
70
|
-
unavailable: z.string().optional().describe("Shown when the org's credits are exhausted (sharing fails closed)."),
|
|
71
|
-
conversation_ended: z.string().optional().describe("Shown when a conversation hits its turn limit or inactivity timeout."),
|
|
72
|
-
});
|
|
73
|
-
const AgentSharingInputSchema = z.object({
|
|
74
|
-
enabled: z.boolean().optional().describe("Whether hosted-chat access for the configured audience is enabled."),
|
|
75
|
-
allowed_origins: z.array(z.string()).optional().describe("Origins permitted to embed this agent's chat widget. Each entry is an exact web origin (scheme://host[:port]) with no path, for example 'https://docs.example.com'. An empty list allows embedding from any site; listing origins restricts embedding to those sites. The first-party hosted chat page is always exempt. @internal Enforced since T04 against the embed_origin the widget reports at mintGuestToken time (stamped into the guest JWT as a claim) and re-validated against this live list by the guest create-time gate (SharedSessionBlueprintAccess) on every session/execution create — the same gate that re-checks sharing.enabled, so revocation latency is identical (immediate). Unframed hosted-page visitors report no origin and are exempt by construction. Exact origins only — loosening to wildcards later is a non-breaking change, tightening would not be."),
|
|
76
|
-
messages: z.lazy(() => AgentSharingMessagesInputSchema).optional().describe("Owner-customizable copy shown to visitors when a launch-gate limit refuses their message. Unset fields fall back to platform defaults. @internal Resolved server-side at the refusal point and carried in the gRPC status description — deliberately NOT surfaced on SharedAgentProfile and NOT mapped client-side, so the copy reaches every client (web, embed, CLI) through the existing error-message path."),
|
|
77
|
-
audience: z.string().optional().describe("Who can chat with the shared agent. Unspecified means public (anyone with the link), so pre-existing shares keep their behavior. To keep an agent org-only, audience must be present in every apply: update/apply replace spec.sharing wholesale, so a manifest that sets enabled without audience resets the share to public. @internal Org audience is enforced cloud-side only (org membership is a multi-tenant IAM concept): the guest mint and public profile handlers treat audience=org as NOT_FOUND, and the create-time blueprint gate admits authenticated org members via an app-level FGA member check (no visibility tuples written — same posture as the sharing flag). The OSS single-user server stores and echoes the field. Allowed values: agent_sharing_audience_public, agent_sharing_audience_org."),
|
|
78
|
-
});
|
|
79
67
|
/** Build the fully-formed Agent proto from the flat MCP apply input. */
|
|
80
68
|
export function agentInputToProto(input) {
|
|
81
69
|
const slug = input.slug && input.slug.length > 0 ? input.slug : generateSlug(input.name);
|
|
@@ -96,8 +84,6 @@ export function agentInputToProto(input) {
|
|
|
96
84
|
for (const [k, v] of Object.entries(input.env))
|
|
97
85
|
spec.env[k] = envVarDeclarationInputToProto(v);
|
|
98
86
|
}
|
|
99
|
-
if (input.sharing !== undefined)
|
|
100
|
-
spec.sharing = agentSharingInputToProto(input.sharing);
|
|
101
87
|
return Object.assign(create(AgentSchema), {
|
|
102
88
|
apiVersion: "agentic.stigmer.ai/v1",
|
|
103
89
|
kind: "Agent",
|
|
@@ -181,25 +167,4 @@ function envVarDeclarationInputToProto(input) {
|
|
|
181
167
|
result.optional = input.optional;
|
|
182
168
|
return result;
|
|
183
169
|
}
|
|
184
|
-
function agentSharingMessagesInputToProto(input) {
|
|
185
|
-
const result = create(AgentSharingMessagesSchema);
|
|
186
|
-
if (input.rate_limited !== undefined)
|
|
187
|
-
result.rateLimited = input.rate_limited;
|
|
188
|
-
if (input.unavailable !== undefined)
|
|
189
|
-
result.unavailable = input.unavailable;
|
|
190
|
-
if (input.conversation_ended !== undefined)
|
|
191
|
-
result.conversationEnded = input.conversation_ended;
|
|
192
|
-
return result;
|
|
193
|
-
}
|
|
194
|
-
function agentSharingInputToProto(input) {
|
|
195
|
-
const result = create(AgentSharingSchema);
|
|
196
|
-
if (input.enabled !== undefined)
|
|
197
|
-
result.enabled = input.enabled;
|
|
198
|
-
if (input.allowed_origins !== undefined)
|
|
199
|
-
result.allowedOrigins = input.allowed_origins;
|
|
200
|
-
if (input.messages !== undefined)
|
|
201
|
-
result.messages = agentSharingMessagesInputToProto(input.messages);
|
|
202
|
-
result.audience = enumFromString(AgentSharingAudience, input.audience);
|
|
203
|
-
return result;
|
|
204
|
-
}
|
|
205
170
|
//# sourceMappingURL=agent.js.map
|
package/gen/agent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/gen/agent.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,4EAA4E;AAC5E,oDAAoD;AAEpD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAc,MAAM,oDAAoD,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,eAAe,EAAE,cAAc,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAC/O,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AACpG,OAAO,EAAE,eAAe,EA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AAM,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC;IAC/C,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS;QAAE,MAAM,CAAC,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC;IACrE,IAAI,KAAK,CAAC,WAAW,KAAK,SAAS;QAAE,MAAM,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;IAC5E,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS;QAAE,MAAM,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IACnE,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigmer/mcp-server",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.10",
|
|
4
4
|
"description": "Model Context Protocol server for the Stigmer platform — exposes Stigmer agents, skills, MCP servers, and workflows as MCP tools and resources",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@connectrpc/connect": "^2.0.0",
|
|
36
36
|
"@connectrpc/connect-node": "^2.1.1",
|
|
37
37
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
38
|
-
"@stigmer/protos": "3.1.
|
|
39
|
-
"@stigmer/sdk": "3.1.
|
|
38
|
+
"@stigmer/protos": "3.1.10",
|
|
39
|
+
"@stigmer/sdk": "3.1.10",
|
|
40
40
|
"yaml": "^2.8.2",
|
|
41
41
|
"zod": "^3.25.0"
|
|
42
42
|
}
|
package/src/gen/agent.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
// Flattened apply-input zod schema + toProto bridge for the Agent resource.
|
|
4
4
|
// Source proto package: ai.stigmer.agentic.agent.v1
|
|
5
5
|
|
|
6
|
-
import { generateSlug, visibilityFromString
|
|
6
|
+
import { generateSlug, visibilityFromString } from "./apply-runtime.js";
|
|
7
7
|
import { create } from "@bufbuild/protobuf";
|
|
8
8
|
import { AgentSchema, type Agent } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/api_pb";
|
|
9
|
-
import { AgentSpecSchema, ToolApprovalOverrideSchema, McpServerUsageSchema, McpAccessSchema, SubAgentSchema
|
|
9
|
+
import { AgentSpecSchema, ToolApprovalOverrideSchema, McpServerUsageSchema, McpAccessSchema, SubAgentSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/spec_pb";
|
|
10
10
|
import { EnvVarDeclarationSchema } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/spec_pb";
|
|
11
11
|
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
12
12
|
import { ApiResourceReferenceSchema } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
|
|
@@ -28,7 +28,6 @@ export const AgentInputShape = {
|
|
|
28
28
|
skill_refs: z.array(z.lazy(() => SkillRefInputSchema)).optional().describe("Skill resources providing additional knowledge to the agent."),
|
|
29
29
|
sub_agents: z.array(z.lazy(() => SubAgentInputSchema)).optional().describe("Sub-agents that can be delegated to. Sub-agents can access a subset of the parent's MCP servers and tools."),
|
|
30
30
|
env: z.record(z.lazy(() => EnvVarDeclarationInputSchema)).optional().describe("Environment variable declarations for this agent. Keys are variable names; values describe their metadata and optionality."),
|
|
31
|
-
sharing: z.lazy(() => AgentSharingInputSchema).optional().describe("Sharing configuration for the agent's hosted chat experience. Controls who can chat with the running agent over its hosted link: anyone with the link (public audience) or signed-in members of the owning organization (org audience). This is a distinct consent from metadata.visibility: visibility governs who can READ the agent blueprint (marketplace), while sharing governs who can CHAT with the agent runtime. Conversations over a shared link consume the owning organization's credits, so enabling sharing is an explicit, billing-affecting decision. Unset is equivalent to sharing disabled. @internal Declarative spec semantics apply: update/apply replace this field like any other spec field, so a manifest that omits sharing revokes an active share (fails closed). Console and CLI toggle it via the targeted updateSharing RPC instead of a full-resource write. Enforcement is app-level in the getSharedProfile handler — sharing deliberately writes NO FGA visibility tuples, because a public wildcard viewer tuple would expose the full blueprint (instructions included) to any authenticated account via getByReference, conflating the two consents."),
|
|
32
31
|
} as const;
|
|
33
32
|
|
|
34
33
|
export const AgentInputSchema = z.object(AgentInputShape);
|
|
@@ -84,21 +83,6 @@ const EnvVarDeclarationInputSchema = z.object({
|
|
|
84
83
|
});
|
|
85
84
|
type EnvVarDeclarationInput = z.infer<typeof EnvVarDeclarationInputSchema>;
|
|
86
85
|
|
|
87
|
-
const AgentSharingMessagesInputSchema = z.object({
|
|
88
|
-
rate_limited: z.string().optional().describe("Shown when a visitor or the org exceeds the message rate limit."),
|
|
89
|
-
unavailable: z.string().optional().describe("Shown when the org's credits are exhausted (sharing fails closed)."),
|
|
90
|
-
conversation_ended: z.string().optional().describe("Shown when a conversation hits its turn limit or inactivity timeout."),
|
|
91
|
-
});
|
|
92
|
-
type AgentSharingMessagesInput = z.infer<typeof AgentSharingMessagesInputSchema>;
|
|
93
|
-
|
|
94
|
-
const AgentSharingInputSchema = z.object({
|
|
95
|
-
enabled: z.boolean().optional().describe("Whether hosted-chat access for the configured audience is enabled."),
|
|
96
|
-
allowed_origins: z.array(z.string()).optional().describe("Origins permitted to embed this agent's chat widget. Each entry is an exact web origin (scheme://host[:port]) with no path, for example 'https://docs.example.com'. An empty list allows embedding from any site; listing origins restricts embedding to those sites. The first-party hosted chat page is always exempt. @internal Enforced since T04 against the embed_origin the widget reports at mintGuestToken time (stamped into the guest JWT as a claim) and re-validated against this live list by the guest create-time gate (SharedSessionBlueprintAccess) on every session/execution create — the same gate that re-checks sharing.enabled, so revocation latency is identical (immediate). Unframed hosted-page visitors report no origin and are exempt by construction. Exact origins only — loosening to wildcards later is a non-breaking change, tightening would not be."),
|
|
97
|
-
messages: z.lazy(() => AgentSharingMessagesInputSchema).optional().describe("Owner-customizable copy shown to visitors when a launch-gate limit refuses their message. Unset fields fall back to platform defaults. @internal Resolved server-side at the refusal point and carried in the gRPC status description — deliberately NOT surfaced on SharedAgentProfile and NOT mapped client-side, so the copy reaches every client (web, embed, CLI) through the existing error-message path."),
|
|
98
|
-
audience: z.string().optional().describe("Who can chat with the shared agent. Unspecified means public (anyone with the link), so pre-existing shares keep their behavior. To keep an agent org-only, audience must be present in every apply: update/apply replace spec.sharing wholesale, so a manifest that sets enabled without audience resets the share to public. @internal Org audience is enforced cloud-side only (org membership is a multi-tenant IAM concept): the guest mint and public profile handlers treat audience=org as NOT_FOUND, and the create-time blueprint gate admits authenticated org members via an app-level FGA member check (no visibility tuples written — same posture as the sharing flag). The OSS single-user server stores and echoes the field. Allowed values: agent_sharing_audience_public, agent_sharing_audience_org."),
|
|
99
|
-
});
|
|
100
|
-
type AgentSharingInput = z.infer<typeof AgentSharingInputSchema>;
|
|
101
|
-
|
|
102
86
|
|
|
103
87
|
/** Build the fully-formed Agent proto from the flat MCP apply input. */
|
|
104
88
|
export function agentInputToProto(input: AgentInput): Agent {
|
|
@@ -113,7 +97,6 @@ export function agentInputToProto(input: AgentInput): Agent {
|
|
|
113
97
|
if (input.env !== undefined) {
|
|
114
98
|
for (const [k, v] of Object.entries(input.env)) spec.env[k] = envVarDeclarationInputToProto(v);
|
|
115
99
|
}
|
|
116
|
-
if (input.sharing !== undefined) spec.sharing = agentSharingInputToProto(input.sharing);
|
|
117
100
|
return Object.assign(create(AgentSchema), {
|
|
118
101
|
apiVersion: "agentic.stigmer.ai/v1",
|
|
119
102
|
kind: "Agent",
|
|
@@ -188,20 +171,3 @@ function envVarDeclarationInputToProto(input: EnvVarDeclarationInput) {
|
|
|
188
171
|
return result;
|
|
189
172
|
}
|
|
190
173
|
|
|
191
|
-
function agentSharingMessagesInputToProto(input: AgentSharingMessagesInput) {
|
|
192
|
-
const result = create(AgentSharingMessagesSchema);
|
|
193
|
-
if (input.rate_limited !== undefined) result.rateLimited = input.rate_limited;
|
|
194
|
-
if (input.unavailable !== undefined) result.unavailable = input.unavailable;
|
|
195
|
-
if (input.conversation_ended !== undefined) result.conversationEnded = input.conversation_ended;
|
|
196
|
-
return result;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
function agentSharingInputToProto(input: AgentSharingInput) {
|
|
200
|
-
const result = create(AgentSharingSchema);
|
|
201
|
-
if (input.enabled !== undefined) result.enabled = input.enabled;
|
|
202
|
-
if (input.allowed_origins !== undefined) result.allowedOrigins = input.allowed_origins;
|
|
203
|
-
if (input.messages !== undefined) result.messages = agentSharingMessagesInputToProto(input.messages);
|
|
204
|
-
result.audience = enumFromString(AgentSharingAudience, input.audience) as AgentSharingAudience;
|
|
205
|
-
return result;
|
|
206
|
-
}
|
|
207
|
-
|