@stigmer/protos 3.1.7 → 3.1.8

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.
Files changed (91) hide show
  1. package/ai/stigmer/agentic/agent/v1/command_connect.d.ts +54 -0
  2. package/ai/stigmer/agentic/agent/v1/command_connect.js +55 -1
  3. package/ai/stigmer/agentic/agent/v1/command_connect.js.map +1 -1
  4. package/ai/stigmer/agentic/agent/v1/command_pb.d.ts +53 -1
  5. package/ai/stigmer/agentic/agent/v1/command_pb.js +1 -1
  6. package/ai/stigmer/agentic/agent/v1/command_pb.js.map +1 -1
  7. package/ai/stigmer/agentic/agent/v1/io_pb.d.ts +155 -0
  8. package/ai/stigmer/agentic/agent/v1/io_pb.js +23 -2
  9. package/ai/stigmer/agentic/agent/v1/io_pb.js.map +1 -1
  10. package/ai/stigmer/agentic/agent/v1/query_connect.d.ts +67 -0
  11. package/ai/stigmer/agentic/agent/v1/query_connect.js +68 -1
  12. package/ai/stigmer/agentic/agent/v1/query_connect.js.map +1 -1
  13. package/ai/stigmer/agentic/agent/v1/query_pb.d.ts +66 -1
  14. package/ai/stigmer/agentic/agent/v1/query_pb.js +1 -1
  15. package/ai/stigmer/agentic/agent/v1/query_pb.js.map +1 -1
  16. package/ai/stigmer/agentic/agent/v1/spec_pb.d.ts +182 -1
  17. package/ai/stigmer/agentic/agent/v1/spec_pb.js +55 -6
  18. package/ai/stigmer/agentic/agent/v1/spec_pb.js.map +1 -1
  19. package/ai/stigmer/agentic/agent/v1/status_pb.d.ts +25 -0
  20. package/ai/stigmer/agentic/agent/v1/status_pb.js +1 -1
  21. package/ai/stigmer/agentic/agent/v1/status_pb.js.map +1 -1
  22. package/ai/stigmer/agentic/agentexecution/v1/command_connect.d.ts +11 -8
  23. package/ai/stigmer/agentic/agentexecution/v1/command_connect.js +11 -8
  24. package/ai/stigmer/agentic/agentexecution/v1/command_connect.js.map +1 -1
  25. package/ai/stigmer/agentic/agentexecution/v1/command_pb.d.ts +11 -8
  26. package/ai/stigmer/agentic/agentexecution/v1/command_pb.js.map +1 -1
  27. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +82 -11
  28. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +82 -11
  29. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
  30. package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +6 -6
  31. package/ai/stigmer/agentic/environment/v1/command_connect.d.ts +28 -0
  32. package/ai/stigmer/agentic/environment/v1/command_connect.js +29 -1
  33. package/ai/stigmer/agentic/environment/v1/command_connect.js.map +1 -1
  34. package/ai/stigmer/agentic/environment/v1/command_pb.d.ts +28 -1
  35. package/ai/stigmer/agentic/environment/v1/command_pb.js +1 -1
  36. package/ai/stigmer/agentic/environment/v1/command_pb.js.map +1 -1
  37. package/ai/stigmer/agentic/executioncontext/v1/query_connect.d.ts +22 -12
  38. package/ai/stigmer/agentic/executioncontext/v1/query_connect.js +22 -12
  39. package/ai/stigmer/agentic/executioncontext/v1/query_connect.js.map +1 -1
  40. package/ai/stigmer/agentic/executioncontext/v1/query_pb.d.ts +22 -12
  41. package/ai/stigmer/agentic/executioncontext/v1/query_pb.js +8 -7
  42. package/ai/stigmer/agentic/executioncontext/v1/query_pb.js.map +1 -1
  43. package/ai/stigmer/agentic/session/v1/command_connect.d.ts +10 -2
  44. package/ai/stigmer/agentic/session/v1/command_connect.js +10 -2
  45. package/ai/stigmer/agentic/session/v1/command_connect.js.map +1 -1
  46. package/ai/stigmer/agentic/session/v1/command_pb.d.ts +10 -2
  47. package/ai/stigmer/agentic/session/v1/command_pb.js +1 -1
  48. package/ai/stigmer/agentic/session/v1/command_pb.js.map +1 -1
  49. package/ai/stigmer/agentic/session/v1/io_pb.d.ts +9 -9
  50. package/ai/stigmer/agentic/session/v1/io_pb.js +4 -4
  51. package/ai/stigmer/agentic/session/v1/io_pb.js.map +1 -1
  52. package/ai/stigmer/agentic/session/v1/query_connect.d.ts +6 -5
  53. package/ai/stigmer/agentic/session/v1/query_connect.js +8 -7
  54. package/ai/stigmer/agentic/session/v1/query_connect.js.map +1 -1
  55. package/ai/stigmer/agentic/session/v1/query_pb.d.ts +7 -6
  56. package/ai/stigmer/agentic/session/v1/query_pb.js +1 -1
  57. package/ai/stigmer/agentic/session/v1/query_pb.js.map +1 -1
  58. package/ai/stigmer/agentic/workflow/v1/command_connect.d.ts +16 -12
  59. package/ai/stigmer/agentic/workflow/v1/command_connect.js +16 -12
  60. package/ai/stigmer/agentic/workflow/v1/command_connect.js.map +1 -1
  61. package/ai/stigmer/agentic/workflow/v1/command_pb.d.ts +16 -12
  62. package/ai/stigmer/agentic/workflow/v1/command_pb.js.map +1 -1
  63. package/ai/stigmer/agentic/workflow/v1/serverless/validation_pb.d.ts +10 -5
  64. package/ai/stigmer/agentic/workflow/v1/serverless/validation_pb.js +3 -1
  65. package/ai/stigmer/agentic/workflow/v1/serverless/validation_pb.js.map +1 -1
  66. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +7 -0
  67. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +8 -1
  68. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
  69. package/ai/stigmer/commons/apiresource/enum_pb.d.ts +3 -1
  70. package/ai/stigmer/commons/apiresource/enum_pb.js +3 -1
  71. package/ai/stigmer/commons/apiresource/enum_pb.js.map +1 -1
  72. package/ai/stigmer/commons/apiresource/metadata_pb.d.ts +6 -1
  73. package/ai/stigmer/commons/apiresource/metadata_pb.js.map +1 -1
  74. package/ai/stigmer/iam/platformclient/v1/token_connect.d.ts +23 -0
  75. package/ai/stigmer/iam/platformclient/v1/token_connect.js +24 -1
  76. package/ai/stigmer/iam/platformclient/v1/token_connect.js.map +1 -1
  77. package/ai/stigmer/iam/platformclient/v1/token_pb.d.ts +137 -0
  78. package/ai/stigmer/iam/platformclient/v1/token_pb.js +15 -1
  79. package/ai/stigmer/iam/platformclient/v1/token_pb.js.map +1 -1
  80. package/ai/stigmer/iam/v1/enum_pb.d.ts +6 -3
  81. package/ai/stigmer/iam/v1/enum_pb.js +7 -4
  82. package/ai/stigmer/iam/v1/enum_pb.js.map +1 -1
  83. package/ai/stigmer/platform/v1/server_info_connect.d.ts +40 -0
  84. package/ai/stigmer/platform/v1/server_info_connect.js +41 -1
  85. package/ai/stigmer/platform/v1/server_info_connect.js.map +1 -1
  86. package/ai/stigmer/platform/v1/server_info_pb.d.ts +123 -0
  87. package/ai/stigmer/platform/v1/server_info_pb.js +11 -1
  88. package/ai/stigmer/platform/v1/server_info_pb.js.map +1 -1
  89. package/ai/stigmer/tenancy/organization/v1/api_pb.d.ts +7 -1
  90. package/ai/stigmer/tenancy/organization/v1/api_pb.js.map +1 -1
  91. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
2
2
  import type { AgentSchema } from "./api_pb.js";
3
- import type { AgentIdSchema, GetDefaultAgentRequestSchema } from "./io_pb.js";
3
+ import type { AgentIdSchema, GetDefaultAgentRequestSchema, GetSharedProfileRequestSchema, SharedAgentProfileSchema } from "./io_pb.js";
4
4
  import type { ApiResourceReferenceSchema } from "../../../commons/apiresource/io_pb.js";
5
5
  /**
6
6
  * Describes the file ai/stigmer/agentic/agent/v1/query.proto.
@@ -57,4 +57,69 @@ export declare const AgentQueryController: GenService<{
57
57
  input: typeof GetDefaultAgentRequestSchema;
58
58
  output: typeof AgentSchema;
59
59
  };
60
+ /**
61
+ * Get the public profile of a shared agent by its org/slug reference.
62
+ *
63
+ * This is the resolution path for the hosted chat page: anonymous
64
+ * visitors (no Stigmer account, no token) resolve a shared link to the
65
+ * trimmed SharedAgentProfile — never the full Agent, whose spec carries
66
+ * the system prompt, environment declarations, and MCP wiring.
67
+ *
68
+ * Returns NOT_FOUND when the agent does not exist, is not shared
69
+ * (spec.sharing.enabled is false/unset), is shared with the org
70
+ * audience (spec.sharing.audience is org — anonymous callers must not be
71
+ * able to distinguish an org-internal share from a nonexistent agent; use
72
+ * getSharedProfileForMember instead), or the share link is locked and
73
+ * link_token does not match the agent's current
74
+ * status.share_link_token. The cases are deliberately
75
+ * indistinguishable so an unshared, revoked, or rotated agent URL leaks
76
+ * nothing — unlike getByReference, which returns PERMISSION_DENIED for
77
+ * an existing but unauthorized agent. Returns INVALID_ARGUMENT when org
78
+ * is empty: org+slug is the shared URL's identity, and cross-org slug
79
+ * matching on a public endpoint would enable enumeration.
80
+ *
81
+ * @internal
82
+ * Public by design (no authentication): enforcement is the app-level
83
+ * sharing gate in the handler, not FGA — see AgentSharing in spec.proto
84
+ * for why sharing writes no visibility tuples.
85
+ *
86
+ * @generated from rpc ai.stigmer.agentic.agent.v1.AgentQueryController.getSharedProfile
87
+ */
88
+ getSharedProfile: {
89
+ methodKind: "unary";
90
+ input: typeof GetSharedProfileRequestSchema;
91
+ output: typeof SharedAgentProfileSchema;
92
+ };
93
+ /**
94
+ * Get the profile of a shared agent as a signed-in organization member.
95
+ *
96
+ * This is the resolution path for the hosted chat page when an agent is
97
+ * shared with the org audience (spec.sharing.audience is org): the public
98
+ * getSharedProfile deliberately returns NOT_FOUND for such agents, so a
99
+ * signed-in member resolves the same trimmed SharedAgentProfile through
100
+ * this authenticated RPC instead. Also resolves public-audience shares,
101
+ * so an authenticated caller can use one resolution path for any share.
102
+ *
103
+ * Returns NOT_FOUND when the agent does not exist, is not shared, the
104
+ * caller is not a member of the owning organization, or the share is a
105
+ * public-audience share locked with a link token (this tokenless path
106
+ * must not reveal a killed link's profile) — the cases are deliberately
107
+ * indistinguishable so a share URL leaks nothing to non-members.
108
+ * Returns INVALID_ARGUMENT when org is empty.
109
+ *
110
+ * @internal
111
+ * Custom authorization in handler — requires authentication (not
112
+ * is_public), then an app-level organization#member FGA check for org
113
+ * shares. No standard resource_kind/permission config: the sharing gate
114
+ * is app-level by design (see AgentSharing in spec.proto), and membership
115
+ * is checked live on every call so revoked members lose access
116
+ * immediately.
117
+ *
118
+ * @generated from rpc ai.stigmer.agentic.agent.v1.AgentQueryController.getSharedProfileForMember
119
+ */
120
+ getSharedProfileForMember: {
121
+ methodKind: "unary";
122
+ input: typeof ApiResourceReferenceSchema;
123
+ output: typeof SharedAgentProfileSchema;
124
+ };
60
125
  }>;
@@ -10,7 +10,7 @@ import { file_ai_stigmer_commons_rpc_method_options } from "../../../commons/rpc
10
10
  /**
11
11
  * Describes the file ai/stigmer/agentic/agent/v1/query.proto.
12
12
  */
13
- export const file_ai_stigmer_agentic_agent_v1_query = /*@__PURE__*/ fileDesc("CidhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnQvdjEvcXVlcnkucHJvdG8SG2FpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudC52MTL4AgoUQWdlbnRRdWVyeUNvbnRyb2xsZXISewoDZ2V0EiQuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50LnYxLkFnZW50SWQaIi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnQudjEuQWdlbnQiKsK4GCYIARAoIgV2YWx1ZSoZdW5hdXRob3JpemVkIHRvIGdldCBhZ2VudBJwCg5nZXRCeVJlZmVyZW5jZRI0LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZRoiLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudC52MS5BZ2VudCIE0LgYARJrCgpnZXREZWZhdWx0EjMuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50LnYxLkdldERlZmF1bHRBZ2VudFJlcXVlc3QaIi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnQudjEuQWdlbnQiBNC4GAEaBKD/KyhiBnByb3RvMw", [file_ai_stigmer_agentic_agent_v1_api, file_ai_stigmer_agentic_agent_v1_io, file_ai_stigmer_commons_apiresource_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
13
+ export const file_ai_stigmer_agentic_agent_v1_query = /*@__PURE__*/ fileDesc("CidhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnQvdjEvcXVlcnkucHJvdG8SG2FpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudC52MTKEBQoUQWdlbnRRdWVyeUNvbnRyb2xsZXISewoDZ2V0EiQuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50LnYxLkFnZW50SWQaIi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnQudjEuQWdlbnQiKsK4GCYIARAoIgV2YWx1ZSoZdW5hdXRob3JpemVkIHRvIGdldCBhZ2VudBJwCg5nZXRCeVJlZmVyZW5jZRI0LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZRoiLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudC52MS5BZ2VudCIE0LgYARJrCgpnZXREZWZhdWx0EjMuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50LnYxLkdldERlZmF1bHRBZ2VudFJlcXVlc3QaIi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnQudjEuQWdlbnQiBNC4GAESfwoQZ2V0U2hhcmVkUHJvZmlsZRI0LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudC52MS5HZXRTaGFyZWRQcm9maWxlUmVxdWVzdBovLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudC52MS5TaGFyZWRBZ2VudFByb2ZpbGUiBMi4GAESiAEKGWdldFNoYXJlZFByb2ZpbGVGb3JNZW1iZXISNC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VSZWZlcmVuY2UaLy5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnQudjEuU2hhcmVkQWdlbnRQcm9maWxlIgTQuBgBGgSg/ysoYgZwcm90bzM", [file_ai_stigmer_agentic_agent_v1_api, file_ai_stigmer_agentic_agent_v1_io, file_ai_stigmer_commons_apiresource_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
14
14
  /**
15
15
  * AgentQueryController handles read operations for AI agents.
16
16
  *
@@ -1 +1 @@
1
- {"version":3,"file":"query_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agent/v1/query_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,oHAAoH;AACpH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAC;AAEnE,OAAO,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,EAAE,sCAAsC,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,uDAAuD,EAAE,MAAM,wDAAwD,CAAC;AACjI,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAY,aAAa,CAC1E,QAAQ,CAAC,omBAAomB,EAAE,CAAC,oCAAoC,EAAE,mCAAmC,EAAE,sCAAsC,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAE30B;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GA8C5B,aAAa,CAChB,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"query_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agent/v1/query_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,oHAAoH;AACpH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,oCAAoC,EAAE,MAAM,aAAa,CAAC;AAEnE,OAAO,EAAE,mCAAmC,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,EAAE,sCAAsC,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,uDAAuD,EAAE,MAAM,wDAAwD,CAAC;AACjI,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAY,aAAa,CAC1E,QAAQ,CAAC,y8BAAy8B,EAAE,CAAC,oCAAoC,EAAE,mCAAmC,EAAE,sCAAsC,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAEhrC;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GA+G5B,aAAa,CAChB,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
2
  import type { EnvVarDeclaration } from "../../environment/v1/spec_pb.js";
3
3
  import type { ApiResourceReference } from "../../../commons/apiresource/io_pb.js";
4
4
  import type { Message } from "@bufbuild/protobuf";
@@ -64,12 +64,155 @@ export type AgentSpec = Message<"ai.stigmer.agentic.agent.v1.AgentSpec"> & {
64
64
  env: {
65
65
  [key: string]: EnvVarDeclaration;
66
66
  };
67
+ /**
68
+ * Sharing configuration for the agent's hosted chat experience.
69
+ *
70
+ * Controls who can chat with the running agent over its hosted link: anyone
71
+ * with the link (public audience) or signed-in members of the owning
72
+ * organization (org audience). This is a distinct consent from
73
+ * metadata.visibility: visibility governs who can READ the agent blueprint
74
+ * (marketplace), while sharing governs who can CHAT with the agent runtime.
75
+ * Conversations over a shared link consume the owning organization's
76
+ * credits, so enabling sharing is an explicit, billing-affecting decision.
77
+ *
78
+ * Unset is equivalent to sharing disabled.
79
+ *
80
+ * @internal
81
+ * Declarative spec semantics apply: update/apply replace this field like
82
+ * any other spec field, so a manifest that omits sharing revokes an active
83
+ * share (fails closed). Console and CLI toggle it via the targeted
84
+ * updateSharing RPC instead of a full-resource write. Enforcement is
85
+ * app-level in the getSharedProfile handler — sharing deliberately writes
86
+ * NO FGA visibility tuples, because a public wildcard viewer tuple would
87
+ * expose the full blueprint (instructions included) to any authenticated
88
+ * account via getByReference, conflating the two consents.
89
+ *
90
+ * @generated from field: ai.stigmer.agentic.agent.v1.AgentSharing sharing = 8;
91
+ */
92
+ sharing?: AgentSharing;
67
93
  };
68
94
  /**
69
95
  * Describes the message ai.stigmer.agentic.agent.v1.AgentSpec.
70
96
  * Use `create(AgentSpecSchema)` to create a new message.
71
97
  */
72
98
  export declare const AgentSpecSchema: GenMessage<AgentSpec>;
99
+ /**
100
+ * AgentSharing controls access to an agent's hosted chat experience —
101
+ * anyone with the link (public audience) or org members only (org audience).
102
+ *
103
+ * When enabled with the public audience, the agent's trimmed profile becomes
104
+ * resolvable through the public getSharedProfile RPC and the hosted chat
105
+ * page can serve visitors without Stigmer accounts. When enabled with the
106
+ * org audience, only signed-in members of the owning organization can
107
+ * resolve the profile (getSharedProfileForMember) and chat. When disabled
108
+ * (or unset), the shared link behaves as if the agent does not exist
109
+ * (NOT_FOUND).
110
+ *
111
+ * This message is intentionally a wrapper so later phases can add fields
112
+ * (usage caps, expiry) without a breaking change.
113
+ *
114
+ * @generated from message ai.stigmer.agentic.agent.v1.AgentSharing
115
+ */
116
+ export type AgentSharing = Message<"ai.stigmer.agentic.agent.v1.AgentSharing"> & {
117
+ /**
118
+ * Whether hosted-chat access for the configured audience is enabled.
119
+ *
120
+ * @generated from field: bool enabled = 1;
121
+ */
122
+ enabled: boolean;
123
+ /**
124
+ * Origins permitted to embed this agent's chat widget.
125
+ *
126
+ * Each entry is an exact web origin (scheme://host[:port]) with no path,
127
+ * for example "https://docs.example.com". An empty list allows embedding
128
+ * from any site; listing origins restricts embedding to those sites. The
129
+ * first-party hosted chat page is always exempt.
130
+ *
131
+ * @internal
132
+ * Enforced since T04 against the embed_origin the widget reports at
133
+ * mintGuestToken time (stamped into the guest JWT as a claim) and
134
+ * re-validated against this live list by the guest create-time gate
135
+ * (SharedSessionBlueprintAccess) on every session/execution create — the
136
+ * same gate that re-checks sharing.enabled, so revocation latency is
137
+ * identical (immediate). Unframed hosted-page visitors report no origin
138
+ * and are exempt by construction. Exact origins only — loosening to
139
+ * wildcards later is a non-breaking change, tightening would not be.
140
+ *
141
+ * @generated from field: repeated string allowed_origins = 2;
142
+ */
143
+ allowedOrigins: string[];
144
+ /**
145
+ * Owner-customizable copy shown to visitors when a launch-gate limit
146
+ * refuses their message. Unset fields fall back to platform defaults.
147
+ *
148
+ * @internal
149
+ * Resolved server-side at the refusal point and carried in the gRPC
150
+ * status description — deliberately NOT surfaced on SharedAgentProfile
151
+ * and NOT mapped client-side, so the copy reaches every client (web,
152
+ * embed, CLI) through the existing error-message path.
153
+ *
154
+ * @generated from field: ai.stigmer.agentic.agent.v1.AgentSharingMessages messages = 3;
155
+ */
156
+ messages?: AgentSharingMessages;
157
+ /**
158
+ * Who can chat with the shared agent. Unspecified means public
159
+ * (anyone with the link), so pre-existing shares keep their behavior.
160
+ *
161
+ * To keep an agent org-only, audience must be present in every apply:
162
+ * update/apply replace spec.sharing wholesale, so a manifest that sets
163
+ * enabled without audience resets the share to public.
164
+ *
165
+ * @internal
166
+ * Org audience is enforced cloud-side only (org membership is a
167
+ * multi-tenant IAM concept): the guest mint and public profile handlers
168
+ * treat audience=org as NOT_FOUND, and the create-time blueprint gate
169
+ * admits authenticated org members via an app-level FGA member check
170
+ * (no visibility tuples written — same posture as the sharing flag).
171
+ * The OSS single-user server stores and echoes the field.
172
+ *
173
+ * @generated from field: ai.stigmer.agentic.agent.v1.AgentSharingAudience audience = 4;
174
+ */
175
+ audience: AgentSharingAudience;
176
+ };
177
+ /**
178
+ * Describes the message ai.stigmer.agentic.agent.v1.AgentSharing.
179
+ * Use `create(AgentSharingSchema)` to create a new message.
180
+ */
181
+ export declare const AgentSharingSchema: GenMessage<AgentSharing>;
182
+ /**
183
+ * AgentSharingMessages holds owner-customizable visitor-facing copy for
184
+ * shared-agent limit refusals.
185
+ *
186
+ * Empty fields mean "use the platform default". Plain text only; rendered
187
+ * verbatim in the visitor's chat surface.
188
+ *
189
+ * @generated from message ai.stigmer.agentic.agent.v1.AgentSharingMessages
190
+ */
191
+ export type AgentSharingMessages = Message<"ai.stigmer.agentic.agent.v1.AgentSharingMessages"> & {
192
+ /**
193
+ * Shown when a visitor or the org exceeds the message rate limit.
194
+ *
195
+ * @generated from field: string rate_limited = 1;
196
+ */
197
+ rateLimited: string;
198
+ /**
199
+ * Shown when the org's credits are exhausted (sharing fails closed).
200
+ *
201
+ * @generated from field: string unavailable = 2;
202
+ */
203
+ unavailable: string;
204
+ /**
205
+ * Shown when a conversation hits its turn limit or inactivity timeout.
206
+ *
207
+ * @generated from field: string conversation_ended = 3;
208
+ */
209
+ conversationEnded: string;
210
+ };
211
+ /**
212
+ * Describes the message ai.stigmer.agentic.agent.v1.AgentSharingMessages.
213
+ * Use `create(AgentSharingMessagesSchema)` to create a new message.
214
+ */
215
+ export declare const AgentSharingMessagesSchema: GenMessage<AgentSharingMessages>;
73
216
  /**
74
217
  * SubAgent defines a specialized agent that the parent can delegate to.
75
218
  *
@@ -258,3 +401,41 @@ export type ToolApprovalOverride = Message<"ai.stigmer.agentic.agent.v1.ToolAppr
258
401
  * Use `create(ToolApprovalOverrideSchema)` to create a new message.
259
402
  */
260
403
  export declare const ToolApprovalOverrideSchema: GenMessage<ToolApprovalOverride>;
404
+ /**
405
+ * AgentSharingAudience selects who can chat with a shared agent over its
406
+ * hosted link.
407
+ *
408
+ * Unspecified is treated as public for backward compatibility: every share
409
+ * created before the audience field existed is an anyone-with-link share.
410
+ *
411
+ * @generated from enum ai.stigmer.agentic.agent.v1.AgentSharingAudience
412
+ */
413
+ export declare enum AgentSharingAudience {
414
+ /**
415
+ * Treated as public (backward compatibility with pre-audience shares).
416
+ *
417
+ * @generated from enum value: agent_sharing_audience_unspecified = 0;
418
+ */
419
+ unspecified = 0,
420
+ /**
421
+ * Anyone with the link can chat — no Stigmer account required.
422
+ * Visitors are anonymous guests; suitable only for knowledge that is
423
+ * safe to expose to the entire internet.
424
+ *
425
+ * @generated from enum value: agent_sharing_audience_public = 1;
426
+ */
427
+ public = 1,
428
+ /**
429
+ * Only signed-in members of the owning organization can chat.
430
+ * Membership is checked on every conversation turn, so access ends the
431
+ * moment a member leaves the organization. The right mode for
432
+ * org-internal knowledge agents.
433
+ *
434
+ * @generated from enum value: agent_sharing_audience_org = 2;
435
+ */
436
+ org = 2
437
+ }
438
+ /**
439
+ * Describes the enum ai.stigmer.agentic.agent.v1.AgentSharingAudience.
440
+ */
441
+ export declare const AgentSharingAudienceSchema: GenEnum<AgentSharingAudience>;
@@ -1,7 +1,7 @@
1
1
  // @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
2
2
  // @generated from file ai/stigmer/agentic/agent/v1/spec.proto (package ai.stigmer.agentic.agent.v1, syntax proto3)
3
3
  /* eslint-disable */
4
- import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
4
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
5
5
  import { file_ai_stigmer_agentic_environment_v1_spec } from "../../environment/v1/spec_pb.js";
6
6
  import { file_ai_stigmer_commons_apiresource_field_options } from "../../../commons/apiresource/field_options_pb.js";
7
7
  import { file_ai_stigmer_commons_apiresource_io } from "../../../commons/apiresource/io_pb.js";
@@ -9,30 +9,79 @@ import { file_buf_validate_validate } from "../../../../../buf/validate/validate
9
9
  /**
10
10
  * Describes the file ai/stigmer/agentic/agent/v1/spec.proto.
11
11
  */
12
- export const file_ai_stigmer_agentic_agent_v1_spec = /*@__PURE__*/ fileDesc("CiZhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnQvdjEvc3BlYy5wcm90bxIbYWkuc3RpZ21lci5hZ2VudGljLmFnZW50LnYxIrAFCglBZ2VudFNwZWMSEwoLZGVzY3JpcHRpb24YASABKAkSEAoIaWNvbl91cmwYAiABKAkSHQoMaW5z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N0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZUJmukhfkgFcIlq6AVcKD3NraWxsX3JlZnMua2luZBIzc2tpbGxfcmVmcyBtdXN0IHJlZmVyZW5jZSByZXNvdXJjZXMgd2l0aCBraW5kPXNraWxsGg90aGlzLmtpbmQgPT0gNDPghSwrEhYKDm1vZGVsX292ZXJyaWRlGAYgASgJItUBCg5NY3BTZXJ2ZXJVc2FnZRJYCg5tY3Bfc2VydmVyX3JlZhgBIAEoCzI0LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZUIKukgDyAEB4IUsLBIVCg1lbmFibGVkX3Rvb2xzGAIgAygJElIKF3Rvb2xfYXBwcm92YWxfb3ZlcnJpZGVzGAMgAygLMjEuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50LnYxLlRvb2xBcHByb3ZhbE92ZXJyaWRlIj4KCU1jcEFjY2VzcxIaCgptY3Bfc2VydmVyGAEgASgJQga6SAPIAQESFQoNZW5hYmxlZF90b29scxgCIAMoCSJeChRUb29sQXBwcm92YWxPdmVycmlkZRIaCgl0b29sX25hbWUYASABKAlCB7pIBHICEAESGQoRcmVxdWlyZXNfYXBwcm92YWwYAiABKAgSDwoHbWVzc2FnZRgDIAEoCWIGcHJvdG8z", [file_ai_stigmer_agentic_environment_v1_spec, file_ai_stigmer_commons_apiresource_field_options, file_ai_stigmer_commons_apiresource_io, file_buf_validate_validate]);
12
+ export const file_ai_stigmer_agentic_agent_v1_spec = /*@__PURE__*/ fileDesc("CiZhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnQvdjEvc3BlYy5wcm90bxIbYWkuc3RpZ21lci5hZ2VudGljLmFnZW50LnYxIuwFCglBZ2VudFNwZWMSEwoLZGVzY3JpcHRpb24YASABKAkSEAoIaWNvbl91cmwYAiABKAkSHQoMaW5zdHJ1Y3Rpb25zGAMgASgJQge6SARyA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mlkZRgGIAEoCSLVAQoOTWNwU2VydmVyVXNhZ2USWAoObWNwX3NlcnZlcl9yZWYYASABKAsyNC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VSZWZlcmVuY2VCCrpIA8gBAeCFLCwSFQoNZW5hYmxlZF90b29scxgCIAMoCRJSChd0b29sX2FwcHJvdmFsX292ZXJyaWRlcxgDIAMoCzIxLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudC52MS5Ub29sQXBwcm92YWxPdmVycmlkZSI+CglNY3BBY2Nlc3MSGgoKbWNwX3NlcnZlchgBIAEoCUIGukgDyAEBEhUKDWVuYWJsZWRfdG9vbHMYAiADKAkiXgoUVG9vbEFwcHJvdmFsT3ZlcnJpZGUSGgoJdG9vbF9uYW1lGAEgASgJQge6SARyAhABEhkKEXJlcXVpcmVzX2FwcHJvdmFsGAIgASgIEg8KB21lc3NhZ2UYAyABKAkqgQEKFEFnZW50U2hhcmluZ0F1ZGllbmNlEiYKImFnZW50X3NoYXJpbmdfYXVkaWVuY2VfdW5zcGVjaWZpZWQQABIhCh1hZ2VudF9zaGFyaW5nX2F1ZGllbmNlX3B1YmxpYxABEh4KGmFnZW50X3NoYXJpbmdfYXVkaWVuY2Vfb3JnEAJiBnByb3RvMw", [file_ai_stigmer_agentic_environment_v1_spec, file_ai_stigmer_commons_apiresource_field_options, file_ai_stigmer_commons_apiresource_io, file_buf_validate_validate]);
13
13
  /**
14
14
  * Describes the message ai.stigmer.agentic.agent.v1.AgentSpec.
15
15
  * Use `create(AgentSpecSchema)` to create a new message.
16
16
  */
17
17
  export const AgentSpecSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_spec, 0);
18
+ /**
19
+ * Describes the message ai.stigmer.agentic.agent.v1.AgentSharing.
20
+ * Use `create(AgentSharingSchema)` to create a new message.
21
+ */
22
+ export const AgentSharingSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_spec, 1);
23
+ /**
24
+ * Describes the message ai.stigmer.agentic.agent.v1.AgentSharingMessages.
25
+ * Use `create(AgentSharingMessagesSchema)` to create a new message.
26
+ */
27
+ export const AgentSharingMessagesSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_spec, 2);
18
28
  /**
19
29
  * Describes the message ai.stigmer.agentic.agent.v1.SubAgent.
20
30
  * Use `create(SubAgentSchema)` to create a new message.
21
31
  */
22
- export const SubAgentSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_spec, 1);
32
+ export const SubAgentSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_spec, 3);
23
33
  /**
24
34
  * Describes the message ai.stigmer.agentic.agent.v1.McpServerUsage.
25
35
  * Use `create(McpServerUsageSchema)` to create a new message.
26
36
  */
27
- export const McpServerUsageSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_spec, 2);
37
+ export const McpServerUsageSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_spec, 4);
28
38
  /**
29
39
  * Describes the message ai.stigmer.agentic.agent.v1.McpAccess.
30
40
  * Use `create(McpAccessSchema)` to create a new message.
31
41
  */
32
- export const McpAccessSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_spec, 3);
42
+ export const McpAccessSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_spec, 5);
33
43
  /**
34
44
  * Describes the message ai.stigmer.agentic.agent.v1.ToolApprovalOverride.
35
45
  * Use `create(ToolApprovalOverrideSchema)` to create a new message.
36
46
  */
37
- export const ToolApprovalOverrideSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_spec, 4);
47
+ export const ToolApprovalOverrideSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_spec, 6);
48
+ /**
49
+ * AgentSharingAudience selects who can chat with a shared agent over its
50
+ * hosted link.
51
+ *
52
+ * Unspecified is treated as public for backward compatibility: every share
53
+ * created before the audience field existed is an anyone-with-link share.
54
+ *
55
+ * @generated from enum ai.stigmer.agentic.agent.v1.AgentSharingAudience
56
+ */
57
+ export var AgentSharingAudience;
58
+ (function (AgentSharingAudience) {
59
+ /**
60
+ * Treated as public (backward compatibility with pre-audience shares).
61
+ *
62
+ * @generated from enum value: agent_sharing_audience_unspecified = 0;
63
+ */
64
+ AgentSharingAudience[AgentSharingAudience["unspecified"] = 0] = "unspecified";
65
+ /**
66
+ * Anyone with the link can chat — no Stigmer account required.
67
+ * Visitors are anonymous guests; suitable only for knowledge that is
68
+ * safe to expose to the entire internet.
69
+ *
70
+ * @generated from enum value: agent_sharing_audience_public = 1;
71
+ */
72
+ AgentSharingAudience[AgentSharingAudience["public"] = 1] = "public";
73
+ /**
74
+ * Only signed-in members of the owning organization can chat.
75
+ * Membership is checked on every conversation turn, so access ends the
76
+ * moment a member leaves the organization. The right mode for
77
+ * org-internal knowledge agents.
78
+ *
79
+ * @generated from enum value: agent_sharing_audience_org = 2;
80
+ */
81
+ AgentSharingAudience[AgentSharingAudience["org"] = 2] = "org";
82
+ })(AgentSharingAudience || (AgentSharingAudience = {}));
83
+ /**
84
+ * Describes the enum ai.stigmer.agentic.agent.v1.AgentSharingAudience.
85
+ */
86
+ export const AgentSharingAudienceSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_agent_v1_spec, 0);
38
87
  //# sourceMappingURL=spec_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spec_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agent/v1/spec_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,mHAAmH;AACnH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,2CAA2C,EAAE,MAAM,iCAAiC,CAAC;AAC9F,OAAO,EAAE,iDAAiD,EAAE,MAAM,kDAAkD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;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAkC,aAAa,CACpF,QAAQ,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAC"}
@@ -26,6 +26,31 @@ export type AgentStatus = Message<"ai.stigmer.agentic.agent.v1.AgentStatus"> & {
26
26
  * @generated from field: string default_instance_id = 1;
27
27
  */
28
28
  defaultInstanceId: string;
29
+ /**
30
+ * Rotatable token protecting the agent's public share link.
31
+ *
32
+ * Empty means the hosted chat link is the plain `/chat/<org>/<slug>` —
33
+ * the behavior of every share created before this field existed. When
34
+ * set, the link only resolves with the matching `?k=<token>` query
35
+ * parameter; the rotateShareLink RPC generates a fresh value, killing
36
+ * the old link immediately. Applies to public-audience shares only
37
+ * (org-audience access is governed by live membership instead).
38
+ *
39
+ * @internal
40
+ * Server-generated (rotateShareLink is the sole writer) and deliberately
41
+ * in status, not spec.sharing: status survives every apply/update
42
+ * verbatim in both editions, so a routine manifest apply can never wipe
43
+ * the token and silently fail open to the guessable URL. Enforced with
44
+ * the allowed_origins pattern — validated at guest mint, stamped into
45
+ * the guest JWT, and re-validated against this live value on every
46
+ * session/execution create, so rotation revokes live guest tokens on
47
+ * their next message. Not a security boundary: rate limits and the org
48
+ * credit cap remain the abuse controls; this is a traffic lever for
49
+ * over-shared links.
50
+ *
51
+ * @generated from field: string share_link_token = 2;
52
+ */
53
+ shareLinkToken: string;
29
54
  };
30
55
  /**
31
56
  * Describes the message ai.stigmer.agentic.agent.v1.AgentStatus.
@@ -6,7 +6,7 @@ import { file_ai_stigmer_commons_apiresource_status } from "../../../commons/api
6
6
  /**
7
7
  * Describes the file ai/stigmer/agentic/agent/v1/status.proto.
8
8
  */
9
- export const file_ai_stigmer_agentic_agent_v1_status = /*@__PURE__*/ fileDesc("CihhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnQvdjEvc3RhdHVzLnByb3RvEhthaS5zdGlnbWVyLmFnZW50aWMuYWdlbnQudjEiawoLQWdlbnRTdGF0dXMSPwoFYXVkaXQYYyABKAsyMC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VBdWRpdBIbChNkZWZhdWx0X2luc3RhbmNlX2lkGAEgASgJYgZwcm90bzM", [file_ai_stigmer_commons_apiresource_status]);
9
+ export const file_ai_stigmer_agentic_agent_v1_status = /*@__PURE__*/ fileDesc("CihhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnQvdjEvc3RhdHVzLnByb3RvEhthaS5zdGlnbWVyLmFnZW50aWMuYWdlbnQudjEihQEKC0FnZW50U3RhdHVzEj8KBWF1ZGl0GGMgASgLMjAuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlQXVkaXQSGwoTZGVmYXVsdF9pbnN0YW5jZV9pZBgBIAEoCRIYChBzaGFyZV9saW5rX3Rva2VuGAIgASgJYgZwcm90bzM", [file_ai_stigmer_commons_apiresource_status]);
10
10
  /**
11
11
  * Describes the message ai.stigmer.agentic.agent.v1.AgentStatus.
12
12
  * Use `create(AgentStatusSchema)` to create a new message.
@@ -1 +1 @@
1
- {"version":3,"file":"status_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agent/v1/status_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,qHAAqH;AACrH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAGvG;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAY,aAAa,CAC3E,QAAQ,CAAC,6PAA6P,EAAE,CAAC,0CAA0C,CAAC,CAAC,CAAC;AA0BxT;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA4B,aAAa,CACrE,WAAW,CAAC,uCAAuC,EAAE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"status_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agent/v1/status_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,qHAAqH;AACrH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAGvG;;GAEG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAY,aAAa,CAC3E,QAAQ,CAAC,iSAAiS,EAAE,CAAC,0CAA0C,CAAC,CAAC,CAAC;AAoD5V;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA4B,aAAa,CACrE,WAAW,CAAC,uCAAuC,EAAE,CAAC,CAAC,CAAC"}
@@ -264,23 +264,26 @@ export declare const AgentExecutionCommandController: {
264
264
  readonly kind: any;
265
265
  };
266
266
  /**
267
- * Recover a failed agent execution from the last checkpoint.
267
+ * Recover a failed agent execution.
268
268
  *
269
- * Resumes execution from the last checkpoint. Completed work is preserved -
270
- * successful tool calls are NOT re-executed.
269
+ * Retries the failed run. Completed work is preserved - successful tool
270
+ * calls are NOT re-executed.
271
271
  *
272
272
  * @internal
273
- * Temporal Equivalent: `temporal workflow reset --workflow-id <id> --type LastWorkflowTask`
274
- * Uses LangGraph checkpoint for state restoration.
273
+ * Terminates the previous Temporal workflow (NOT_FOUND tolerated) and starts
274
+ * a fresh one; continuity comes from the session's harness state (LangGraph
275
+ * thread checkpoint / harness_state_id), not from Temporal history. A
276
+ * Temporal reset cannot work here: the runner activity RETURNS its FAILED
277
+ * result, so a reset replays the preserved failure instead of re-dispatching.
275
278
  *
276
279
  * ## Behavior
277
280
  *
278
281
  * 1. Validates execution is in FAILED phase (recoverable)
279
- * 2. Uses Temporal ResetWorkflow to resume from last checkpoint
280
- * 3. Activity re-invoked with same thread_id
282
+ * 2. Terminates the previous workflow and recreates the execution environment
283
+ * 3. Starts a fresh workflow; the activity is re-invoked with the same thread_id
281
284
  * 4. LangGraph loads from checkpoint automatically
282
285
  * 5. Execution transitions from FAILED to IN_PROGRESS phase
283
- * 6. Agent continues from where it failed
286
+ * 6. Agent retries from where it failed
284
287
  *
285
288
  * ## Preconditions
286
289
  *
@@ -272,23 +272,26 @@ export const AgentExecutionCommandController = {
272
272
  kind: MethodKind.Unary,
273
273
  },
274
274
  /**
275
- * Recover a failed agent execution from the last checkpoint.
275
+ * Recover a failed agent execution.
276
276
  *
277
- * Resumes execution from the last checkpoint. Completed work is preserved -
278
- * successful tool calls are NOT re-executed.
277
+ * Retries the failed run. Completed work is preserved - successful tool
278
+ * calls are NOT re-executed.
279
279
  *
280
280
  * @internal
281
- * Temporal Equivalent: `temporal workflow reset --workflow-id <id> --type LastWorkflowTask`
282
- * Uses LangGraph checkpoint for state restoration.
281
+ * Terminates the previous Temporal workflow (NOT_FOUND tolerated) and starts
282
+ * a fresh one; continuity comes from the session's harness state (LangGraph
283
+ * thread checkpoint / harness_state_id), not from Temporal history. A
284
+ * Temporal reset cannot work here: the runner activity RETURNS its FAILED
285
+ * result, so a reset replays the preserved failure instead of re-dispatching.
283
286
  *
284
287
  * ## Behavior
285
288
  *
286
289
  * 1. Validates execution is in FAILED phase (recoverable)
287
- * 2. Uses Temporal ResetWorkflow to resume from last checkpoint
288
- * 3. Activity re-invoked with same thread_id
290
+ * 2. Terminates the previous workflow and recreates the execution environment
291
+ * 3. Starts a fresh workflow; the activity is re-invoked with the same thread_id
289
292
  * 4. LangGraph loads from checkpoint automatically
290
293
  * 5. Execution transitions from FAILED to IN_PROGRESS phase
291
- * 6. Agent continues from where it failed
294
+ * 6. Agent retries from where it failed
292
295
  *
293
296
  * ## Preconditions
294
297
  *
@@ -1 +1 @@
1
- {"version":3,"file":"command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/command_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,wIAAwI;AACxI,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO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EAAE,kBAAkB;YACxB,CAAC,EAAE,uBAAuB;YAC1B,CAAC,EAAE,wBAAwB;YAC3B,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
1
+ {"version":3,"file":"command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/command_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,wIAAwI;AACxI,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,+BAA+B,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAC7T,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,QAAQ,EAAE,sEAAsE;IAChF,OAAO,EAAE;QACP;;;;;;;;;;WAUG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,cAAc;YACjB,CAAC,EAAE,cAAc;YACjB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;WAQG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,cAAc;YACjB,CAAC,EAAE,cAAc;YACjB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;WAWG;QACH,YAAY,EAAE;YACZ,IAAI,EAAE,cAAc;YACpB,CAAC,EAAE,+BAA+B;YAClC,CAAC,EAAE,oBAAoB;YACvB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,MAAM,EAAE;YACN,IAAI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AC3B,CAAC,EAAE,cAAc;YACjB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA2CG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,yBAAyB;YAC5B,CAAC,EAAE,cAAc;YACjB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,uBAAuB;YAC1B,CAAC,EAAE,wBAAwB;YAC3B,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
@@ -262,23 +262,26 @@ export declare const AgentExecutionCommandController: GenService<{
262
262
  output: typeof AgentExecutionSchema;
263
263
  };
264
264
  /**
265
- * Recover a failed agent execution from the last checkpoint.
265
+ * Recover a failed agent execution.
266
266
  *
267
- * Resumes execution from the last checkpoint. Completed work is preserved -
268
- * successful tool calls are NOT re-executed.
267
+ * Retries the failed run. Completed work is preserved - successful tool
268
+ * calls are NOT re-executed.
269
269
  *
270
270
  * @internal
271
- * Temporal Equivalent: `temporal workflow reset --workflow-id <id> --type LastWorkflowTask`
272
- * Uses LangGraph checkpoint for state restoration.
271
+ * Terminates the previous Temporal workflow (NOT_FOUND tolerated) and starts
272
+ * a fresh one; continuity comes from the session's harness state (LangGraph
273
+ * thread checkpoint / harness_state_id), not from Temporal history. A
274
+ * Temporal reset cannot work here: the runner activity RETURNS its FAILED
275
+ * result, so a reset replays the preserved failure instead of re-dispatching.
273
276
  *
274
277
  * ## Behavior
275
278
  *
276
279
  * 1. Validates execution is in FAILED phase (recoverable)
277
- * 2. Uses Temporal ResetWorkflow to resume from last checkpoint
278
- * 3. Activity re-invoked with same thread_id
280
+ * 2. Terminates the previous workflow and recreates the execution environment
281
+ * 3. Starts a fresh workflow; the activity is re-invoked with the same thread_id
279
282
  * 4. LangGraph loads from checkpoint automatically
280
283
  * 5. Execution transitions from FAILED to IN_PROGRESS phase
281
- * 6. Agent continues from where it failed
284
+ * 6. Agent retries from where it failed
282
285
  *
283
286
  * ## Preconditions
284
287
  *
@@ -1 +1 @@
1
- {"version":3,"file":"command_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/command_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,wIAAwI;AACxI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,6CAA6C,EAAE,MAAM,aAAa,CAAC;AAE5E,OAAO,EAAE,4CAA4C,EAAE,MAAM,YAAY,CAAC;AAE1E,OAAO,EAAE,sCAAsC,EAAE,MAAM,uCAAuC,CAAC;AAC/F,OAAO,EAAE,uDAAuD,EAAE,MAAM,wDAAwD,CAAC;AACjI,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,iDAAiD,GAAY,aAAa,CACrF,QAAQ,CAAC,6kGAA6kG,EAAE,CAAC,6CAA6C,EAAE,4CAA4C,EAAE,sCAAsC,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAEt0G;;;;;GAKG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAkcvC,aAAa,CAChB,WAAW,CAAC,iDAAiD,EAAE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"command_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/command_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,wIAAwI;AACxI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,6CAA6C,EAAE,MAAM,aAAa,CAAC;AAE5E,OAAO,EAAE,4CAA4C,EA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