@stigmer/sdk 3.11.1-dev.20260812192248 → 3.12.1
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/__tests__/errors.test.js +1 -44
- package/__tests__/errors.test.js.map +1 -1
- package/__tests__/manifest.test.js +13 -0
- package/__tests__/manifest.test.js.map +1 -1
- package/errors.d.ts +0 -14
- package/errors.d.ts.map +1 -1
- package/errors.js +0 -26
- package/errors.js.map +1 -1
- package/gen/agent.d.ts +0 -5
- package/gen/agent.d.ts.map +1 -1
- package/gen/agent.js +1 -9
- package/gen/agent.js.map +1 -1
- package/gen/agentinstance.d.ts +0 -1
- package/gen/agentinstance.d.ts.map +1 -1
- package/gen/agentinstance.js +0 -1
- package/gen/agentinstance.js.map +1 -1
- package/gen/authorization-config.d.ts.map +1 -1
- package/gen/authorization-config.js +0 -1
- package/gen/authorization-config.js.map +1 -1
- package/gen/client.d.ts +2 -6
- package/gen/client.d.ts.map +1 -1
- package/gen/client.js +0 -4
- package/gen/client.js.map +1 -1
- package/guest-auth.d.ts +6 -0
- package/guest-auth.d.ts.map +1 -1
- package/guest-auth.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/manifest/registry.d.ts +12 -1
- package/manifest/registry.d.ts.map +1 -1
- package/manifest/registry.js +5 -15
- package/manifest/registry.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/errors.test.ts +0 -57
- package/src/__tests__/manifest.test.ts +14 -0
- package/src/errors.ts +0 -27
- package/src/gen/agent.ts +1 -15
- package/src/gen/agentinstance.ts +0 -2
- package/src/gen/authorization-config.ts +0 -1
- package/src/gen/client.ts +2 -7
- package/src/guest-auth.ts +6 -0
- package/src/index.ts +0 -2
- package/src/manifest/registry.ts +17 -16
- package/gen/datastore.d.ts +0 -129
- package/gen/datastore.d.ts.map +0 -1
- package/gen/datastore.js +0 -303
- package/gen/datastore.js.map +0 -1
- package/src/gen/datastore.ts +0 -381
package/guest-auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guest-auth.d.ts","sourceRoot":"","sources":["../src/guest-auth.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,eAAe;IAC9B,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,4CAA4C;IAC5C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC;IAElC
|
|
1
|
+
{"version":3,"file":"guest-auth.d.ts","sourceRoot":"","sources":["../src/guest-auth.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,eAAe;IAC9B,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,4CAA4C;IAC5C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC;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,IAAI;QACzC,OAAO,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YACtB,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACzB,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,WAAW,CAAC,OAAuB,EAAE,GAAW;IACvD,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,WAAW,CAAC,OAAuB,EAAE,GAAW,EAAE,KAAa;IACtE,IAAI,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC9B,CAAC;IAAC,MAAM,CAAC;QACP,qDAAqD;IACvD,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,eAAe,CAAC,MAAuB;IACrD,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CACb,6EAA6E,CAC9E,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CACb,uEAAuE,CACxE,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { type RunnerAdapter, type RunnerWorkerHost, createRunnerAdapter, } from
|
|
|
3
3
|
export { type StigmerConfig, type TokenProvider } from "./config.js";
|
|
4
4
|
export { createGuestAuth, GuestAuth, type GuestAuthConfig, type GuestIdStorage, } from "./guest-auth.js";
|
|
5
5
|
export { MAX_ALLOWED_ORIGINS, LINK_TOKEN_PARAM, validateOrigin, chatPath, buildChatUrl, appendLinkToken, buildEmbedLoaderUrl, buildEmbedSnippet, } from "./sharing.js";
|
|
6
|
-
export { StigmerError, type ErrorCode, isNotFound, isUnauthenticated, isPermissionDenied, isRetryable, type ErrorCategory, isConnectError, classifyError, isRetryableError, isTransientStreamError, getUserMessage, type ErrorReason, getErrorReason,
|
|
6
|
+
export { StigmerError, type ErrorCode, isNotFound, isUnauthenticated, isPermissionDenied, isRetryable, type ErrorCategory, isConnectError, classifyError, isRetryableError, isTransientStreamError, getUserMessage, type ErrorReason, getErrorReason, type RpcErrorMetadata, annotateRpcError, getRpcMetadata, } from "./errors.js";
|
|
7
7
|
export { type DeploymentMode, isResourceAvailable, } from "./resource-availability.js";
|
|
8
8
|
export { getGrantableRoles, hasGrantableRoles, isRoleGrantable, } from "./authorization-config.js";
|
|
9
9
|
export { iamRoleToString, iamRoleFromString, iamRoleDisplayName, iamRoleDescription, } from "./iam-role.js";
|
|
@@ -17,7 +17,7 @@ export { GitHubClient, type GetOAuthAuthorizeUrlParams, type OAuthAuthorizeUrlRe
|
|
|
17
17
|
export { PlatformClient, type ServerInfo, } from "./platform.js";
|
|
18
18
|
export { ManifestClient, parseManifest, serializeManifest, manifestDocumentForResource, manifestKinds, manifestHandlerForYamlKind, manifestHandlerForTypeName, metadataOf, REDACTED_SECRET_MARKER, containsRedactedSecrets, type AppliedManifest, type ManifestDocument, type ManifestKindHandler, type ParseManifestOptions, } from "./manifest/index.js";
|
|
19
19
|
export { type DeleteResourceInput, type ResourceRef, type Page, type ListParams, type ListResult, type EnvSpecInput, type EnvVarInput, } from "./gen/types.js";
|
|
20
|
-
export { AgentClient, buildAgentProto, type AgentInput, type McpServerUsageInput, type ToolApprovalOverrideInput, type SubAgentInput, type McpAccessInput, type EnvVarDeclarationInput,
|
|
20
|
+
export { AgentClient, buildAgentProto, type AgentInput, type McpServerUsageInput, type ToolApprovalOverrideInput, type SubAgentInput, type McpAccessInput, type EnvVarDeclarationInput, } from "./gen/agent.js";
|
|
21
21
|
export { AgentChannelClient, type AgentChannelInput, type SlackChannelConfigInput, } from "./gen/agentchannel.js";
|
|
22
22
|
export { AgentExecutionClient, type AgentExecutionInput, type ExecutionConfigInput, type ContextManagementConfigInput, type AttachmentInput, } from "./gen/agentexecution.js";
|
|
23
23
|
export { AgentInstanceClient, type AgentInstanceInput, } from "./gen/agentinstance.js";
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAGrE,OAAO,EACL,eAAe,EACf,SAAS,EACT,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,YAAY,EACZ,KAAK,SAAS,EACd,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,KAAK,aAAa,EAClB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,EACd,KAAK,WAAW,EAChB,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,gBA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th.js";
|
|
|
8
8
|
// Agent sharing (hosted link + embed snippet; framework-free)
|
|
9
9
|
export { MAX_ALLOWED_ORIGINS, LINK_TOKEN_PARAM, validateOrigin, chatPath, buildChatUrl, appendLinkToken, buildEmbedLoaderUrl, buildEmbedSnippet, } from "./sharing.js";
|
|
10
10
|
// Error handling
|
|
11
|
-
export { StigmerError, isNotFound, isUnauthenticated, isPermissionDenied, isRetryable, isConnectError, classifyError, isRetryableError, isTransientStreamError, getUserMessage, getErrorReason,
|
|
11
|
+
export { StigmerError, isNotFound, isUnauthenticated, isPermissionDenied, isRetryable, isConnectError, classifyError, isRetryableError, isTransientStreamError, getUserMessage, getErrorReason, annotateRpcError, getRpcMetadata, } from "./errors.js";
|
|
12
12
|
// Resource availability
|
|
13
13
|
export { isResourceAvailable, } from "./resource-availability.js";
|
|
14
14
|
// Authorization config and IAM role utilities
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAE9B,mBAAmB;AACnB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,iBAAiB;AACjB,OAAO,EAGL,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAK7B,4EAA4E;AAC5E,OAAO,EACL,eAAe,EACf,SAAS,GAGV,MAAM,iBAAiB,CAAC;AAEzB,8DAA8D;AAC9D,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAEtB,iBAAiB;AACjB,OAAO,EACL,YAAY,EAEZ,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EAEX,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,EAEd,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"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a,EAAqB,MAAM,kBAAkB,CAAC;AACpE,OAAO,EACL,cAAc,EACd,kBAAkB,GAInB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,aAAa,GAMd,MAAM,kBAAkB,CAAC;AAE1B,mCAAmC;AACnC,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,mBAAmB,EACnB,eAAe,GAChB,MAAM,cAAc,CAAC;AAEtB,uFAAuF;AACvF,OAAO,EACL,QAAQ,EACR,sBAAsB,EACtB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,GAIpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,yBAAyB,GAC1B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EACL,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAmB,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EACL,cAAc,GAMf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,uBAAuB,GAExB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,sBAAsB,GAEvB,MAAM,2BAA2B,CAAC"}
|
package/manifest/registry.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DescMessage, DescService, Message } from "@bufbuild/protobuf";
|
|
2
2
|
import type { Client } from "@connectrpc/connect";
|
|
3
3
|
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
4
|
-
import type { ApiResourceReference } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
|
|
4
|
+
import type { ApiResourceReference, UpdateVisibilityInput } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
|
|
5
5
|
/**
|
|
6
6
|
* Accessor for a raw Connect client over a generated service controller.
|
|
7
7
|
* Implementations cache clients per service (see `ManifestClient`).
|
|
@@ -34,6 +34,17 @@ export interface ManifestKindHandler {
|
|
|
34
34
|
apply(clientFor: ServiceClientFn, message: Message): Promise<Message>;
|
|
35
35
|
/** Load the current server state by org/slug reference. */
|
|
36
36
|
getByReference(clientFor: ServiceClientFn, ref: ApiResourceReference): Promise<Message>;
|
|
37
|
+
/**
|
|
38
|
+
* Drive the command controller's `updateVisibility` RPC — the ONLY door
|
|
39
|
+
* for visibility changes (both editions preserve stored visibility on
|
|
40
|
+
* plain updates, oss#573). Declared only on kinds whose controller has
|
|
41
|
+
* the RPC (exactly the kinds supporting non-private levels); a manifest
|
|
42
|
+
* engine that finds a visibility diff after apply follows up through
|
|
43
|
+
* this binding so the server-side guards (level support, default-instance
|
|
44
|
+
* rejection) run. Absent on private-only kinds — a visibility diff there
|
|
45
|
+
* is unactionable and should be surfaced to the user, not swallowed.
|
|
46
|
+
*/
|
|
47
|
+
updateVisibility?(clientFor: ServiceClientFn, input: UpdateVisibilityInput): Promise<Message>;
|
|
37
48
|
}
|
|
38
49
|
/** All kinds the manifest engine supports, in dependency apply order. */
|
|
39
50
|
export declare function manifestKinds(): readonly ManifestKindHandler[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/manifest/registry.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AACtH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/manifest/registry.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,WAAW,E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,QAAQ,EAAE,MAAM,GACf,mBAAmB,GAAG,SAAS,CAEjC;AAED,0EAA0E;AAC1E,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,GACf,mBAAmB,GAAG,SAAS,CAEjC"}
|
package/manifest/registry.js
CHANGED
|
@@ -26,9 +26,6 @@ import { AgentShareQueryController } from "@stigmer/protos/ai/stigmer/agentic/ag
|
|
|
26
26
|
import { ChannelAppSchema } from "@stigmer/protos/ai/stigmer/agentic/channelapp/v1/api_pb";
|
|
27
27
|
import { ChannelAppCommandController } from "@stigmer/protos/ai/stigmer/agentic/channelapp/v1/command_pb";
|
|
28
28
|
import { ChannelAppQueryController } from "@stigmer/protos/ai/stigmer/agentic/channelapp/v1/query_pb";
|
|
29
|
-
import { DatastoreSchema } from "@stigmer/protos/ai/stigmer/agentic/datastore/v1/api_pb";
|
|
30
|
-
import { DatastoreCommandController } from "@stigmer/protos/ai/stigmer/agentic/datastore/v1/command_pb";
|
|
31
|
-
import { DatastoreQueryController } from "@stigmer/protos/ai/stigmer/agentic/datastore/v1/query_pb";
|
|
32
29
|
import { EnvironmentSchema } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/api_pb";
|
|
33
30
|
import { EnvironmentCommandController } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/command_pb";
|
|
34
31
|
import { EnvironmentQueryController } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/query_pb";
|
|
@@ -59,18 +56,7 @@ const HANDLERS = [
|
|
|
59
56
|
applyOrder: 1,
|
|
60
57
|
apply: (c, m) => c(McpServerCommandController).apply(m),
|
|
61
58
|
getByReference: (c, ref) => c(McpServerQueryController).getByReference(ref),
|
|
62
|
-
|
|
63
|
-
// A Datastore applies before the Agents that reference it via
|
|
64
|
-
// datastore_usages (the McpServer-before-Agent pattern).
|
|
65
|
-
{
|
|
66
|
-
kind: ApiResourceKind.datastore,
|
|
67
|
-
yamlKind: "Datastore",
|
|
68
|
-
displayName: "Datastore",
|
|
69
|
-
apiVersion: AGENTIC_V1,
|
|
70
|
-
schema: DatastoreSchema,
|
|
71
|
-
applyOrder: 2,
|
|
72
|
-
apply: (c, m) => c(DatastoreCommandController).apply(m),
|
|
73
|
-
getByReference: (c, ref) => c(DatastoreQueryController).getByReference(ref),
|
|
59
|
+
updateVisibility: (c, i) => c(McpServerCommandController).updateVisibility(i),
|
|
74
60
|
},
|
|
75
61
|
{
|
|
76
62
|
kind: ApiResourceKind.agent,
|
|
@@ -81,6 +67,7 @@ const HANDLERS = [
|
|
|
81
67
|
applyOrder: 3,
|
|
82
68
|
apply: (c, m) => c(AgentCommandController).apply(m),
|
|
83
69
|
getByReference: (c, ref) => c(AgentQueryController).getByReference(ref),
|
|
70
|
+
updateVisibility: (c, i) => c(AgentCommandController).updateVisibility(i),
|
|
84
71
|
},
|
|
85
72
|
{
|
|
86
73
|
kind: ApiResourceKind.workflow,
|
|
@@ -91,6 +78,7 @@ const HANDLERS = [
|
|
|
91
78
|
applyOrder: 4,
|
|
92
79
|
apply: (c, m) => c(WorkflowCommandController).apply(m),
|
|
93
80
|
getByReference: (c, ref) => c(WorkflowQueryController).getByReference(ref),
|
|
81
|
+
updateVisibility: (c, i) => c(WorkflowCommandController).updateVisibility(i),
|
|
94
82
|
},
|
|
95
83
|
{
|
|
96
84
|
kind: ApiResourceKind.environment,
|
|
@@ -101,6 +89,7 @@ const HANDLERS = [
|
|
|
101
89
|
applyOrder: 5,
|
|
102
90
|
apply: (c, m) => c(EnvironmentCommandController).apply(m),
|
|
103
91
|
getByReference: (c, ref) => c(EnvironmentQueryController).getByReference(ref),
|
|
92
|
+
updateVisibility: (c, i) => c(EnvironmentCommandController).updateVisibility(i),
|
|
104
93
|
},
|
|
105
94
|
{
|
|
106
95
|
kind: ApiResourceKind.identity_provider,
|
|
@@ -141,6 +130,7 @@ const HANDLERS = [
|
|
|
141
130
|
applyOrder: 9,
|
|
142
131
|
apply: (c, m) => c(AgentInstanceCommandController).apply(m),
|
|
143
132
|
getByReference: (c, ref) => c(AgentInstanceQueryController).getByReference(ref),
|
|
133
|
+
updateVisibility: (c, i) => c(AgentInstanceCommandController).updateVisibility(i),
|
|
144
134
|
},
|
|
145
135
|
{
|
|
146
136
|
kind: ApiResourceKind.agent_share,
|
package/manifest/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/manifest/registry.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,2CAA2C;AAC3C,EAAE;AACF,wEAAwE;AACxE,uEAAuE;AACvE,wEAAwE;AACxE,oEAAoE;AACpE,2EAA2E;AAC3E,2EAA2E;AAC3E,kEAAkE;AAClE,EAAE;AACF,wEAAwE;AAIxE,OAAO,EAAE,eAAe,EAAE,MAAM,qFAAqF,CAAC;AAGtH,OAAO,EAAc,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,wDAAwD,CAAC;AAChG,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAqB,kBAAkB,EAAE,MAAM,2DAA2D,CAAC;AAClH,OAAO,EAAE,6BAA6B,EAAE,MAAM,+DAA+D,CAAC;AAC9G,OAAO,EAAE,2BAA2B,EAAE,MAAM,6DAA6D,CAAC;AAC1G,OAAO,EAAsB,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AACrH,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,4BAA4B,EAAE,MAAM,8DAA8D,CAAC;AAC5G,OAAO,EAAmB,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,2BAA2B,EAAE,MAAM,6DAA6D,CAAC;AAC1G,OAAO,EAAE,yBAAyB,EAAE,MAAM,2DAA2D,CAAC;AACtG,OAAO,EAAmB,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAC5G,OAAO,EAAE,2BAA2B,EAAE,MA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,YAAY,GAA6C,IAAI,GAAG,CACpE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CACrC,CAAC;AAEF,MAAM,YAAY,GAA6C,IAAI,GAAG,CACpE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAC5C,CAAC;AAEF,yEAAyE;AACzE,MAAM,UAAU,aAAa;IAC3B,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,0BAA0B,CACxC,QAAgB;IAEhB,OAAO,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACpC,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,0BAA0B,CACxC,QAAgB;IAEhB,OAAO,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACpC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigmer/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.1",
|
|
4
4
|
"description": "Stigmer TypeScript SDK — typed API client for all Stigmer platform resources",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@bufbuild/protobuf": "^2.0.0",
|
|
47
47
|
"@connectrpc/connect-node": "^2.0.0",
|
|
48
|
-
"@stigmer/protos": "3.
|
|
48
|
+
"@stigmer/protos": "3.12.1"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
isTransientStreamError,
|
|
9
9
|
getUserMessage,
|
|
10
10
|
getErrorReason,
|
|
11
|
-
getRecordConstraint,
|
|
12
11
|
annotateRpcError,
|
|
13
12
|
getRpcMetadata,
|
|
14
13
|
type ErrorCategory,
|
|
@@ -329,62 +328,6 @@ describe("getErrorReason", () => {
|
|
|
329
328
|
});
|
|
330
329
|
});
|
|
331
330
|
|
|
332
|
-
describe("getRecordConstraint", () => {
|
|
333
|
-
const recordViolation = (metadata: Record<string, string>) =>
|
|
334
|
-
new ConnectError("that slot is already booked", Code.AlreadyExists, undefined, [
|
|
335
|
-
{
|
|
336
|
-
desc: ErrorInfoSchema,
|
|
337
|
-
value: {
|
|
338
|
-
domain: "datastore.stigmer.ai",
|
|
339
|
-
reason: "CONSTRAINT_VIOLATION",
|
|
340
|
-
metadata,
|
|
341
|
-
},
|
|
342
|
-
},
|
|
343
|
-
]);
|
|
344
|
-
|
|
345
|
-
it("extracts the constraint name from a record-RPC violation", () => {
|
|
346
|
-
expect(getRecordConstraint(recordViolation({ constraint: "one_confirmed_per_slot" })))
|
|
347
|
-
.toBe("one_confirmed_per_slot");
|
|
348
|
-
});
|
|
349
|
-
|
|
350
|
-
it("walks the cause chain of an SDK-wrapped StigmerError", () => {
|
|
351
|
-
const connectError = recordViolation({ constraint: "one_confirmed_per_slot" });
|
|
352
|
-
const wrapped = new StigmerError(
|
|
353
|
-
"already-exists",
|
|
354
|
-
connectError.rawMessage,
|
|
355
|
-
Code.AlreadyExists,
|
|
356
|
-
{ cause: connectError },
|
|
357
|
-
);
|
|
358
|
-
expect(getRecordConstraint(wrapped)).toBe("one_confirmed_per_slot");
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
it("returns null when the ErrorInfo domain is not the records domain", () => {
|
|
362
|
-
const foreign = new ConnectError("workspace taken", Code.FailedPrecondition, undefined, [
|
|
363
|
-
{
|
|
364
|
-
desc: ErrorInfoSchema,
|
|
365
|
-
value: {
|
|
366
|
-
domain: "stigmer.ai",
|
|
367
|
-
reason: "SLACK_WORKSPACE_ALREADY_CONNECTED",
|
|
368
|
-
metadata: { constraint: "should_not_leak" },
|
|
369
|
-
},
|
|
370
|
-
},
|
|
371
|
-
]);
|
|
372
|
-
expect(getRecordConstraint(foreign)).toBeNull();
|
|
373
|
-
});
|
|
374
|
-
|
|
375
|
-
it("returns null when the violation carries no constraint metadata", () => {
|
|
376
|
-
expect(getRecordConstraint(recordViolation({}))).toBeNull();
|
|
377
|
-
expect(getRecordConstraint(recordViolation({ constraint: "" }))).toBeNull();
|
|
378
|
-
});
|
|
379
|
-
|
|
380
|
-
it("returns null for errors without ErrorInfo", () => {
|
|
381
|
-
expect(
|
|
382
|
-
getRecordConstraint(new ConnectError("bare", Code.AlreadyExists)),
|
|
383
|
-
).toBeNull();
|
|
384
|
-
expect(getRecordConstraint(new Error("plain"))).toBeNull();
|
|
385
|
-
expect(getRecordConstraint(null)).toBeNull();
|
|
386
|
-
});
|
|
387
|
-
});
|
|
388
331
|
|
|
389
332
|
describe("annotateRpcError / getRpcMetadata", () => {
|
|
390
333
|
it("roundtrips metadata on an error object", () => {
|
|
@@ -345,4 +345,18 @@ describe("manifest registry", () => {
|
|
|
345
345
|
expect(manifestHandlerForYamlKind(kind), `missing handler for ${kind}`).toBeDefined();
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
+
|
|
349
|
+
it("declares the updateVisibility binding on exactly the guarded-RPC kinds (oss#573)", () => {
|
|
350
|
+
// Visibility changes go through the updateVisibility RPC only (plain
|
|
351
|
+
// updates preserve stored visibility on both editions). The binding set
|
|
352
|
+
// mirrors the kinds whose proto VisibilityConfig grants non-private
|
|
353
|
+
// levels, minus Skill (push flow, not a manifest kind) — a kind added
|
|
354
|
+
// here without the RPC fails at compile time, one dropped from here
|
|
355
|
+
// silently strands manifest-declared visibility, which this pins.
|
|
356
|
+
const withBinding = manifestKinds()
|
|
357
|
+
.filter((h) => h.updateVisibility !== undefined)
|
|
358
|
+
.map((h) => h.yamlKind)
|
|
359
|
+
.sort();
|
|
360
|
+
expect(withBinding).toEqual(["Agent", "AgentInstance", "Environment", "McpServer", "Workflow"]);
|
|
361
|
+
});
|
|
348
362
|
});
|
package/src/errors.ts
CHANGED
|
@@ -303,33 +303,6 @@ export function getErrorReason(error: unknown): ErrorReason | null {
|
|
|
303
303
|
return null;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
/**
|
|
307
|
-
* The `google.rpc.ErrorInfo` domain attached by datastore record-RPC
|
|
308
|
-
* errors in both editions (a cross-edition contract; see the OSS
|
|
309
|
-
* `dserrors` package and its Java mirror).
|
|
310
|
-
*/
|
|
311
|
-
const RECORDS_ERROR_DOMAIN = "datastore.stigmer.ai";
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Extract the violated constraint's declared name from a datastore
|
|
315
|
-
* record-RPC error, or `null` when the error carries none.
|
|
316
|
-
*
|
|
317
|
-
* Record writes rejected by a declared constraint (`ALREADY_EXISTS` for
|
|
318
|
-
* uniques, `FAILED_PRECONDITION` for check/exists/not_exists) attach a
|
|
319
|
-
* `google.rpc.ErrorInfo` with reason `CONSTRAINT_VIOLATION` and the
|
|
320
|
-
* constraint's name in `metadata["constraint"]` — the same companion
|
|
321
|
-
* the MCP bridge's record tools surface to agents. Consumers map the
|
|
322
|
-
* name through the datastore spec to place the (verbatim) message next
|
|
323
|
-
* to the fields the constraint covers; `null` falls back to a
|
|
324
|
-
* form-level rendering of {@link getUserMessage}.
|
|
325
|
-
*/
|
|
326
|
-
export function getRecordConstraint(error: unknown): string | null {
|
|
327
|
-
const reason = getErrorReason(error);
|
|
328
|
-
if (!reason || reason.domain !== RECORDS_ERROR_DOMAIN) return null;
|
|
329
|
-
const constraint = reason.metadata["constraint"];
|
|
330
|
-
return constraint !== undefined && constraint !== "" ? constraint : null;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
306
|
/**
|
|
334
307
|
* Metadata about the RPC call that produced an error. Attached by the
|
|
335
308
|
* SDK's metadata interceptor and readable via {@link getRpcMetadata}.
|
package/src/gen/agent.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { AgentSchema, type Agent } from "@stigmer/protos/ai/stigmer/agentic/agen
|
|
|
9
9
|
import { AgentCommandController } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/command_pb";
|
|
10
10
|
import { AgentIdSchema, GetDefaultAgentRequestSchema, type GetDefaultAgentRequest } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/io_pb";
|
|
11
11
|
import { AgentQueryController } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/query_pb";
|
|
12
|
-
import { AgentSpecSchema, ToolApprovalOverrideSchema, McpServerUsageSchema, McpAccessSchema, SubAgentSchema
|
|
12
|
+
import { AgentSpecSchema, ToolApprovalOverrideSchema, McpServerUsageSchema, McpAccessSchema, SubAgentSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/spec_pb";
|
|
13
13
|
import { EnvVarDeclarationSchema } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/spec_pb";
|
|
14
14
|
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
15
15
|
import { ApiResourceVisibility } from "@stigmer/protos/ai/stigmer/commons/apiresource/enum_pb";
|
|
@@ -112,7 +112,6 @@ export interface AgentInput {
|
|
|
112
112
|
skillRefs?: ResourceRef[];
|
|
113
113
|
subAgents?: SubAgentInput[];
|
|
114
114
|
env?: Record<string, EnvVarDeclarationInput>;
|
|
115
|
-
datastoreUsages?: DatastoreUsageInput[];
|
|
116
115
|
}
|
|
117
116
|
|
|
118
117
|
/** SDK input type for McpServerUsage. */
|
|
@@ -152,11 +151,6 @@ export interface EnvVarDeclarationInput {
|
|
|
152
151
|
optional?: boolean;
|
|
153
152
|
}
|
|
154
153
|
|
|
155
|
-
/** SDK input type for DatastoreUsage. */
|
|
156
|
-
export interface DatastoreUsageInput {
|
|
157
|
-
datastoreRef: ResourceRef;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
154
|
function buildToolApprovalOverrideProto(input: ToolApprovalOverrideInput) {
|
|
161
155
|
return Object.assign(create(ToolApprovalOverrideSchema), stripUndefined({
|
|
162
156
|
toolName: input.toolName,
|
|
@@ -199,12 +193,6 @@ function buildEnvVarDeclarationProto(input: EnvVarDeclarationInput) {
|
|
|
199
193
|
}));
|
|
200
194
|
}
|
|
201
195
|
|
|
202
|
-
function buildDatastoreUsageProto(input: DatastoreUsageInput) {
|
|
203
|
-
const msg = create(DatastoreUsageSchema);
|
|
204
|
-
if (input.datastoreRef?.slug || input.datastoreRef?.org) msg.datastoreRef = create(ApiResourceReferenceSchema, { ...input.datastoreRef, kind: 49 });
|
|
205
|
-
return msg;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
196
|
export function buildAgentProto(input: AgentInput): Agent {
|
|
209
197
|
const mcpServerUsages = input.mcpServerUsages?.map(buildMcpServerUsageProto);
|
|
210
198
|
const skillRefs = input.skillRefs?.map(r => create(ApiResourceReferenceSchema, { ...r, kind: 43 }));
|
|
@@ -213,7 +201,6 @@ export function buildAgentProto(input: AgentInput): Agent {
|
|
|
213
201
|
if (input.env) {
|
|
214
202
|
env = Object.fromEntries(Object.entries(input.env).map(([k, v]) => [k, buildEnvVarDeclarationProto(v)]));
|
|
215
203
|
}
|
|
216
|
-
const datastoreUsages = input.datastoreUsages?.map(buildDatastoreUsageProto);
|
|
217
204
|
return Object.assign(create(AgentSchema), {
|
|
218
205
|
apiVersion: "agentic.stigmer.ai/v1",
|
|
219
206
|
kind: "Agent",
|
|
@@ -232,7 +219,6 @@ export function buildAgentProto(input: AgentInput): Agent {
|
|
|
232
219
|
skillRefs,
|
|
233
220
|
subAgents,
|
|
234
221
|
env,
|
|
235
|
-
datastoreUsages,
|
|
236
222
|
})),
|
|
237
223
|
}) as Agent;
|
|
238
224
|
}
|
package/src/gen/agentinstance.ts
CHANGED
|
@@ -90,7 +90,6 @@ export interface AgentInstanceInput {
|
|
|
90
90
|
agentId?: string;
|
|
91
91
|
description?: string;
|
|
92
92
|
environmentRefs?: ResourceRef[];
|
|
93
|
-
datastorePartition?: string;
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
export function buildAgentInstanceProto(input: AgentInstanceInput): AgentInstance {
|
|
@@ -109,7 +108,6 @@ export function buildAgentInstanceProto(input: AgentInstanceInput): AgentInstanc
|
|
|
109
108
|
agentId: input.agentId,
|
|
110
109
|
description: input.description,
|
|
111
110
|
environmentRefs,
|
|
112
|
-
datastorePartition: input.datastorePartition,
|
|
113
111
|
})),
|
|
114
112
|
}) as AgentInstance;
|
|
115
113
|
}
|
|
@@ -26,7 +26,6 @@ export const GRANTABLE_ROLES: ReadonlyMap<ApiResourceKind, readonly IamRole[]> =
|
|
|
26
26
|
[ApiResourceKind.agent_share, [IamRole.owner, IamRole.viewer]],
|
|
27
27
|
[ApiResourceKind.agent_channel, [IamRole.owner, IamRole.viewer, IamRole.participant]],
|
|
28
28
|
[ApiResourceKind.channel_app, [IamRole.owner, IamRole.viewer]],
|
|
29
|
-
[ApiResourceKind.datastore, [IamRole.owner, IamRole.viewer]],
|
|
30
29
|
[ApiResourceKind.workflow, [IamRole.owner, IamRole.viewer]],
|
|
31
30
|
[ApiResourceKind.workflow_instance, [IamRole.owner, IamRole.viewer]],
|
|
32
31
|
[ApiResourceKind.workflow_execution, [IamRole.owner, IamRole.viewer]],
|
package/src/gen/client.ts
CHANGED
|
@@ -9,7 +9,6 @@ import { AgentShareClient } from "./agentshare.js";
|
|
|
9
9
|
import { ApiKeyClient } from "./apikey.js";
|
|
10
10
|
import { ArtifactClient } from "./artifact.js";
|
|
11
11
|
import { ChannelAppClient } from "./channelapp.js";
|
|
12
|
-
import { DatastoreClient } from "./datastore.js";
|
|
13
12
|
import { EnvironmentClient } from "./environment.js";
|
|
14
13
|
import { ExecutionContextClient } from "./executioncontext.js";
|
|
15
14
|
import { IamPolicyClient } from "./iampolicy.js";
|
|
@@ -38,7 +37,6 @@ export class GeneratedClient {
|
|
|
38
37
|
readonly apiKey: ApiKeyClient;
|
|
39
38
|
readonly artifact: ArtifactClient;
|
|
40
39
|
readonly channelapp: ChannelAppClient;
|
|
41
|
-
readonly datastore: DatastoreClient;
|
|
42
40
|
readonly environment: EnvironmentClient;
|
|
43
41
|
readonly executionContext: ExecutionContextClient;
|
|
44
42
|
readonly iamPolicy: IamPolicyClient;
|
|
@@ -66,7 +64,6 @@ export class GeneratedClient {
|
|
|
66
64
|
this.apiKey = new ApiKeyClient(transport);
|
|
67
65
|
this.artifact = new ArtifactClient(transport);
|
|
68
66
|
this.channelapp = new ChannelAppClient(transport);
|
|
69
|
-
this.datastore = new DatastoreClient(transport);
|
|
70
67
|
this.environment = new EnvironmentClient(transport);
|
|
71
68
|
this.executionContext = new ExecutionContextClient(transport);
|
|
72
69
|
this.iamPolicy = new IamPolicyClient(transport);
|
|
@@ -89,7 +86,7 @@ export class GeneratedClient {
|
|
|
89
86
|
|
|
90
87
|
// Re-export all resource client types and input types.
|
|
91
88
|
export { AgentClient } from "./agent.js";
|
|
92
|
-
export { type AgentInput, type McpServerUsageInput, type ToolApprovalOverrideInput, type SubAgentInput, type McpAccessInput, type EnvVarDeclarationInput
|
|
89
|
+
export { type AgentInput, type McpServerUsageInput, type ToolApprovalOverrideInput, type SubAgentInput, type McpAccessInput, type EnvVarDeclarationInput } from "./agent.js";
|
|
93
90
|
export { AgentChannelClient } from "./agentchannel.js";
|
|
94
91
|
export { type AgentChannelInput, type SlackChannelConfigInput, type WhatsAppChannelConfigInput, type RunConfigInput } from "./agentchannel.js";
|
|
95
92
|
export { AgentExecutionClient } from "./agentexecution.js";
|
|
@@ -104,14 +101,12 @@ export { ArtifactClient } from "./artifact.js";
|
|
|
104
101
|
export { type ArtifactInput, type ArtifactSourceInput, type RetentionPolicyInput } from "./artifact.js";
|
|
105
102
|
export { ChannelAppClient } from "./channelapp.js";
|
|
106
103
|
export { type ChannelAppInput, type SlackChannelAppConfigInput, type WhatsAppChannelAppConfigInput } from "./channelapp.js";
|
|
107
|
-
export { DatastoreClient } from "./datastore.js";
|
|
108
|
-
export { type DatastoreInput, type DatastoreAuthorizationInput, type DatastoreRoleInput, type DatastoreRoleBindingInput, type DatastoreSubjectInput, type ChannelSenderSubjectInput, type ApiResourceRefInput, type CollectionDeclarationInput, type FieldDeclarationInput, type UniqueConstraintInput, type UniqueWhereInput, type CheckConstraintInput, type ExistsConstraintInput, type DatastoreGrantInput } from "./datastore.js";
|
|
109
104
|
export { EnvironmentClient } from "./environment.js";
|
|
110
105
|
export { type EnvironmentInput } from "./environment.js";
|
|
111
106
|
export { ExecutionContextClient } from "./executioncontext.js";
|
|
112
107
|
export { type ExecutionContextInput } from "./executioncontext.js";
|
|
113
108
|
export { IamPolicyClient } from "./iampolicy.js";
|
|
114
|
-
export { type IamPolicyInput } from "./iampolicy.js";
|
|
109
|
+
export { type IamPolicyInput, type ApiResourceRefInput } from "./iampolicy.js";
|
|
115
110
|
export { IdentityAccountClient } from "./identityaccount.js";
|
|
116
111
|
export { type IdentityAccountInput } from "./identityaccount.js";
|
|
117
112
|
export { IdentityProviderClient } from "./identityprovider.js";
|
package/src/guest-auth.ts
CHANGED
|
@@ -74,6 +74,12 @@ export interface GuestAuthConfig {
|
|
|
74
74
|
* page. The server validates it against the share's
|
|
75
75
|
* `allowed_origins` at mint (an empty list admits any origin) and
|
|
76
76
|
* refuses with `"permission-denied"` when the origin is not allowed.
|
|
77
|
+
*
|
|
78
|
+
* For direct embeds the hosted server also cross-checks this value
|
|
79
|
+
* against the request's browser-enforced `Origin` header, which is
|
|
80
|
+
* authoritative: pass your page's own `window.location.origin` (or
|
|
81
|
+
* leave it unset — the header is used either way). Any other value
|
|
82
|
+
* is refused at mint.
|
|
77
83
|
*/
|
|
78
84
|
readonly embedOrigin?: string;
|
|
79
85
|
|
package/src/index.ts
CHANGED
|
@@ -49,7 +49,6 @@ export {
|
|
|
49
49
|
getUserMessage,
|
|
50
50
|
type ErrorReason,
|
|
51
51
|
getErrorReason,
|
|
52
|
-
getRecordConstraint,
|
|
53
52
|
type RpcErrorMetadata,
|
|
54
53
|
annotateRpcError,
|
|
55
54
|
getRpcMetadata,
|
|
@@ -166,7 +165,6 @@ export {
|
|
|
166
165
|
type SubAgentInput,
|
|
167
166
|
type McpAccessInput,
|
|
168
167
|
type EnvVarDeclarationInput,
|
|
169
|
-
type DatastoreUsageInput,
|
|
170
168
|
} from "./gen/agent.js";
|
|
171
169
|
export {
|
|
172
170
|
AgentChannelClient,
|
package/src/manifest/registry.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
import type { DescMessage, DescService, Message } from "@bufbuild/protobuf";
|
|
15
15
|
import type { Client } from "@connectrpc/connect";
|
|
16
16
|
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
17
|
-
import type { ApiResourceReference } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
|
|
17
|
+
import type { ApiResourceReference, UpdateVisibilityInput } from "@stigmer/protos/ai/stigmer/commons/apiresource/io_pb";
|
|
18
18
|
|
|
19
19
|
import { type Agent, AgentSchema } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/api_pb";
|
|
20
20
|
import { AgentCommandController } from "@stigmer/protos/ai/stigmer/agentic/agent/v1/command_pb";
|
|
@@ -31,9 +31,6 @@ import { AgentShareQueryController } from "@stigmer/protos/ai/stigmer/agentic/ag
|
|
|
31
31
|
import { type ChannelApp, ChannelAppSchema } from "@stigmer/protos/ai/stigmer/agentic/channelapp/v1/api_pb";
|
|
32
32
|
import { ChannelAppCommandController } from "@stigmer/protos/ai/stigmer/agentic/channelapp/v1/command_pb";
|
|
33
33
|
import { ChannelAppQueryController } from "@stigmer/protos/ai/stigmer/agentic/channelapp/v1/query_pb";
|
|
34
|
-
import { type Datastore, DatastoreSchema } from "@stigmer/protos/ai/stigmer/agentic/datastore/v1/api_pb";
|
|
35
|
-
import { DatastoreCommandController } from "@stigmer/protos/ai/stigmer/agentic/datastore/v1/command_pb";
|
|
36
|
-
import { DatastoreQueryController } from "@stigmer/protos/ai/stigmer/agentic/datastore/v1/query_pb";
|
|
37
34
|
import { type Environment, EnvironmentSchema } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/api_pb";
|
|
38
35
|
import { EnvironmentCommandController } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/command_pb";
|
|
39
36
|
import { EnvironmentQueryController } from "@stigmer/protos/ai/stigmer/agentic/environment/v1/query_pb";
|
|
@@ -86,6 +83,17 @@ export interface ManifestKindHandler {
|
|
|
86
83
|
apply(clientFor: ServiceClientFn, message: Message): Promise<Message>;
|
|
87
84
|
/** Load the current server state by org/slug reference. */
|
|
88
85
|
getByReference(clientFor: ServiceClientFn, ref: ApiResourceReference): Promise<Message>;
|
|
86
|
+
/**
|
|
87
|
+
* Drive the command controller's `updateVisibility` RPC — the ONLY door
|
|
88
|
+
* for visibility changes (both editions preserve stored visibility on
|
|
89
|
+
* plain updates, oss#573). Declared only on kinds whose controller has
|
|
90
|
+
* the RPC (exactly the kinds supporting non-private levels); a manifest
|
|
91
|
+
* engine that finds a visibility diff after apply follows up through
|
|
92
|
+
* this binding so the server-side guards (level support, default-instance
|
|
93
|
+
* rejection) run. Absent on private-only kinds — a visibility diff there
|
|
94
|
+
* is unactionable and should be surfaced to the user, not swallowed.
|
|
95
|
+
*/
|
|
96
|
+
updateVisibility?(clientFor: ServiceClientFn, input: UpdateVisibilityInput): Promise<Message>;
|
|
89
97
|
}
|
|
90
98
|
|
|
91
99
|
const AGENTIC_V1 = "agentic.stigmer.ai/v1";
|
|
@@ -101,18 +109,7 @@ const HANDLERS: readonly ManifestKindHandler[] = [
|
|
|
101
109
|
applyOrder: 1,
|
|
102
110
|
apply: (c, m) => c(McpServerCommandController).apply(m as McpServer),
|
|
103
111
|
getByReference: (c, ref) => c(McpServerQueryController).getByReference(ref),
|
|
104
|
-
|
|
105
|
-
// A Datastore applies before the Agents that reference it via
|
|
106
|
-
// datastore_usages (the McpServer-before-Agent pattern).
|
|
107
|
-
{
|
|
108
|
-
kind: ApiResourceKind.datastore,
|
|
109
|
-
yamlKind: "Datastore",
|
|
110
|
-
displayName: "Datastore",
|
|
111
|
-
apiVersion: AGENTIC_V1,
|
|
112
|
-
schema: DatastoreSchema,
|
|
113
|
-
applyOrder: 2,
|
|
114
|
-
apply: (c, m) => c(DatastoreCommandController).apply(m as Datastore),
|
|
115
|
-
getByReference: (c, ref) => c(DatastoreQueryController).getByReference(ref),
|
|
112
|
+
updateVisibility: (c, i) => c(McpServerCommandController).updateVisibility(i),
|
|
116
113
|
},
|
|
117
114
|
{
|
|
118
115
|
kind: ApiResourceKind.agent,
|
|
@@ -123,6 +120,7 @@ const HANDLERS: readonly ManifestKindHandler[] = [
|
|
|
123
120
|
applyOrder: 3,
|
|
124
121
|
apply: (c, m) => c(AgentCommandController).apply(m as Agent),
|
|
125
122
|
getByReference: (c, ref) => c(AgentQueryController).getByReference(ref),
|
|
123
|
+
updateVisibility: (c, i) => c(AgentCommandController).updateVisibility(i),
|
|
126
124
|
},
|
|
127
125
|
{
|
|
128
126
|
kind: ApiResourceKind.workflow,
|
|
@@ -133,6 +131,7 @@ const HANDLERS: readonly ManifestKindHandler[] = [
|
|
|
133
131
|
applyOrder: 4,
|
|
134
132
|
apply: (c, m) => c(WorkflowCommandController).apply(m as Workflow),
|
|
135
133
|
getByReference: (c, ref) => c(WorkflowQueryController).getByReference(ref),
|
|
134
|
+
updateVisibility: (c, i) => c(WorkflowCommandController).updateVisibility(i),
|
|
136
135
|
},
|
|
137
136
|
{
|
|
138
137
|
kind: ApiResourceKind.environment,
|
|
@@ -143,6 +142,7 @@ const HANDLERS: readonly ManifestKindHandler[] = [
|
|
|
143
142
|
applyOrder: 5,
|
|
144
143
|
apply: (c, m) => c(EnvironmentCommandController).apply(m as Environment),
|
|
145
144
|
getByReference: (c, ref) => c(EnvironmentQueryController).getByReference(ref),
|
|
145
|
+
updateVisibility: (c, i) => c(EnvironmentCommandController).updateVisibility(i),
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
kind: ApiResourceKind.identity_provider,
|
|
@@ -183,6 +183,7 @@ const HANDLERS: readonly ManifestKindHandler[] = [
|
|
|
183
183
|
applyOrder: 9,
|
|
184
184
|
apply: (c, m) => c(AgentInstanceCommandController).apply(m as AgentInstance),
|
|
185
185
|
getByReference: (c, ref) => c(AgentInstanceQueryController).getByReference(ref),
|
|
186
|
+
updateVisibility: (c, i) => c(AgentInstanceCommandController).updateVisibility(i),
|
|
186
187
|
},
|
|
187
188
|
{
|
|
188
189
|
kind: ApiResourceKind.agent_share,
|