@stigmer/protos 0.0.36 → 0.0.39
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/ai/stigmer/agentic/agent/v1/io_pb.d.ts +19 -0
- package/ai/stigmer/agentic/agent/v1/io_pb.js +6 -1
- package/ai/stigmer/agentic/agent/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/agent/v1/query_connect.d.ts +21 -0
- package/ai/stigmer/agentic/agent/v1/query_connect.js +21 -0
- package/ai/stigmer/agentic/agent/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/agent/v1/query_pb.d.ts +21 -1
- package/ai/stigmer/agentic/agent/v1/query_pb.js +1 -1
- package/ai/stigmer/agentic/agent/v1/query_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/artifact_pb.d.ts +17 -0
- package/ai/stigmer/agentic/agentexecution/v1/artifact_pb.js +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/artifact_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +178 -0
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.js +21 -11
- package/ai/stigmer/agentic/agentexecution/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.d.ts +45 -0
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.js +45 -0
- package/ai/stigmer/agentic/agentexecution/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.d.ts +45 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.js +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/query_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.d.ts +14 -4
- package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentinstance/v1/io_pb.d.ts +33 -0
- package/ai/stigmer/agentic/agentinstance/v1/io_pb.js +6 -1
- package/ai/stigmer/agentic/agentinstance/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/agentinstance/v1/query_connect.d.ts +13 -0
- package/ai/stigmer/agentic/agentinstance/v1/query_connect.js +13 -0
- package/ai/stigmer/agentic/agentinstance/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/agentinstance/v1/query_pb.d.ts +13 -1
- package/ai/stigmer/agentic/agentinstance/v1/query_pb.js +1 -1
- package/ai/stigmer/agentic/agentinstance/v1/query_pb.js.map +1 -1
- package/ai/stigmer/agentic/environment/v1/command_connect.d.ts +24 -0
- package/ai/stigmer/agentic/environment/v1/command_connect.js +24 -0
- package/ai/stigmer/agentic/environment/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/environment/v1/command_pb.d.ts +23 -0
- package/ai/stigmer/agentic/environment/v1/command_pb.js +2 -1
- package/ai/stigmer/agentic/environment/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/environment/v1/io_pb.d.ts +140 -0
- package/ai/stigmer/agentic/environment/v1/io_pb.js +29 -1
- package/ai/stigmer/agentic/environment/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/environment/v1/query_connect.d.ts +26 -0
- package/ai/stigmer/agentic/environment/v1/query_connect.js +26 -0
- package/ai/stigmer/agentic/environment/v1/query_connect.js.map +1 -1
- package/ai/stigmer/agentic/environment/v1/query_pb.d.ts +26 -0
- package/ai/stigmer/agentic/environment/v1/query_pb.js +3 -1
- package/ai/stigmer/agentic/environment/v1/query_pb.js.map +1 -1
- package/ai/stigmer/agentic/session/v1/spec_pb.d.ts +36 -3
- package/ai/stigmer/agentic/session/v1/spec_pb.js +4 -1
- package/ai/stigmer/agentic/session/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/agentic/skill/v1/command_connect.d.ts +22 -0
- package/ai/stigmer/agentic/skill/v1/command_connect.js +22 -0
- package/ai/stigmer/agentic/skill/v1/command_connect.js.map +1 -1
- package/ai/stigmer/agentic/skill/v1/command_pb.d.ts +22 -1
- package/ai/stigmer/agentic/skill/v1/command_pb.js +1 -1
- package/ai/stigmer/agentic/skill/v1/command_pb.js.map +1 -1
- package/ai/stigmer/agentic/skill/v1/io_pb.d.ts +66 -0
- package/ai/stigmer/agentic/skill/v1/io_pb.js +8 -3
- package/ai/stigmer/agentic/skill/v1/io_pb.js.map +1 -1
- package/ai/stigmer/agentic/workflowinstance/v1/command_connect.d.ts +4 -4
- package/ai/stigmer/agentic/workflowinstance/v1/command_connect.js +4 -4
- package/ai/stigmer/agentic/workflowinstance/v1/command_pb.d.ts +4 -4
- package/ai/stigmer/agentic/workflowinstance/v1/command_pb.js +1 -1
- package/ai/stigmer/agentic/workflowinstance/v1/io_pb.d.ts +1 -1
- package/ai/stigmer/agentic/workflowinstance/v1/query_connect.d.ts +1 -1
- package/ai/stigmer/agentic/workflowinstance/v1/query_connect.js +1 -1
- package/ai/stigmer/agentic/workflowinstance/v1/query_pb.d.ts +1 -1
- package/ai/stigmer/agentic/workflowinstance/v1/spec_pb.d.ts +2 -2
- package/ai/stigmer/agentic/workflowinstance/v1/spec_pb.js +1 -1
- package/ai/stigmer/agentic/workflowinstance/v1/spec_pb.js.map +1 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +1 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/authorization_config_pb.d.ts +20 -0
- package/ai/stigmer/commons/apiresource/apiresourcekind/authorization_config_pb.js +1 -1
- package/ai/stigmer/commons/apiresource/apiresourcekind/authorization_config_pb.js.map +1 -1
- package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/iam_permission_pb.d.ts +9 -1
- package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/iam_permission_pb.js +9 -1
- package/ai/stigmer/iam/iampolicy/v1/rpcauthorization/iam_permission_pb.js.map +1 -1
- package/ai/stigmer/platform/github/v1/service_connect.d.ts +58 -0
- package/ai/stigmer/platform/github/v1/service_connect.js +64 -0
- package/ai/stigmer/platform/github/v1/service_connect.js.map +1 -0
- package/ai/stigmer/platform/github/v1/service_pb.d.ts +164 -0
- package/ai/stigmer/platform/github/v1/service_pb.js +49 -0
- package/ai/stigmer/platform/github/v1/service_pb.js.map +1 -0
- package/package.json +1 -1
|
@@ -20,3 +20,22 @@ export type AgentId = Message<"ai.stigmer.agentic.agent.v1.AgentId"> & {
|
|
|
20
20
|
* Use `create(AgentIdSchema)` to create a new message.
|
|
21
21
|
*/
|
|
22
22
|
export declare const AgentIdSchema: GenMessage<AgentId>;
|
|
23
|
+
/**
|
|
24
|
+
* GetDefaultAgentRequest provides org context for fetching the platform default agent.
|
|
25
|
+
*
|
|
26
|
+
* The handler resolves the default agent globally (by label stigmer.ai/default-agent: "true"
|
|
27
|
+
* with visibility_public), but the org is needed for authorization scoping.
|
|
28
|
+
*
|
|
29
|
+
* @generated from message ai.stigmer.agentic.agent.v1.GetDefaultAgentRequest
|
|
30
|
+
*/
|
|
31
|
+
export type GetDefaultAgentRequest = Message<"ai.stigmer.agentic.agent.v1.GetDefaultAgentRequest"> & {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from field: string org = 1;
|
|
34
|
+
*/
|
|
35
|
+
org: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Describes the message ai.stigmer.agentic.agent.v1.GetDefaultAgentRequest.
|
|
39
|
+
* Use `create(GetDefaultAgentRequestSchema)` to create a new message.
|
|
40
|
+
*/
|
|
41
|
+
export declare const GetDefaultAgentRequestSchema: GenMessage<GetDefaultAgentRequest>;
|
|
@@ -6,10 +6,15 @@ import { file_buf_validate_validate } from "../../../../../buf/validate/validate
|
|
|
6
6
|
/**
|
|
7
7
|
* Describes the file ai/stigmer/agentic/agent/v1/io.proto.
|
|
8
8
|
*/
|
|
9
|
-
export const file_ai_stigmer_agentic_agent_v1_io = /*@__PURE__*/ fileDesc("
|
|
9
|
+
export const file_ai_stigmer_agentic_agent_v1_io = /*@__PURE__*/ fileDesc("CiRhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnQvdjEvaW8ucHJvdG8SG2FpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudC52MSIgCgdBZ2VudElkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEiLgoWR2V0RGVmYXVsdEFnZW50UmVxdWVzdBIUCgNvcmcYASABKAlCB7pIBHICEAFiBnByb3RvMw", [file_buf_validate_validate]);
|
|
10
10
|
/**
|
|
11
11
|
* Describes the message ai.stigmer.agentic.agent.v1.AgentId.
|
|
12
12
|
* Use `create(AgentIdSchema)` to create a new message.
|
|
13
13
|
*/
|
|
14
14
|
export const AgentIdSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_io, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message ai.stigmer.agentic.agent.v1.GetDefaultAgentRequest.
|
|
17
|
+
* Use `create(GetDefaultAgentRequestSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const GetDefaultAgentRequestSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agent_v1_io, 1);
|
|
15
20
|
//# sourceMappingURL=io_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agent/v1/io_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,iHAAiH;AACjH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAGrF;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAY,aAAa,CACvE,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"io_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agent/v1/io_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,iHAAiH;AACjH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAGrF;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAY,aAAa,CACvE,QAAQ,CAAC,oNAAoN,EAAE,CAAC,0BAA0B,CAAC,CAAC,CAAC;AAc/P;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAwB,aAAa,CAC7D,WAAW,CAAC,mCAAmC,EAAE,CAAC,CAAC,CAAC;AAiBtD;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAuC,aAAa,CAC3F,WAAW,CAAC,mCAAmC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -28,5 +28,26 @@ export declare const AgentQueryController: {
|
|
|
28
28
|
readonly O: any;
|
|
29
29
|
readonly kind: any;
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* Get the platform default agent.
|
|
33
|
+
*
|
|
34
|
+
* Resolves the agent labeled stigmer.ai/default-agent: "true" with
|
|
35
|
+
* visibility_public. Returns the full Agent resource including
|
|
36
|
+
* status.default_instance_id for session creation.
|
|
37
|
+
*
|
|
38
|
+
* Used by frontends to enable session-first UX where users start
|
|
39
|
+
* a conversation without explicitly selecting an agent.
|
|
40
|
+
*
|
|
41
|
+
* Error: NOT_FOUND if no default agent is configured.
|
|
42
|
+
* Custom authorization in handler.
|
|
43
|
+
*
|
|
44
|
+
* @generated from rpc ai.stigmer.agentic.agent.v1.AgentQueryController.getDefault
|
|
45
|
+
*/
|
|
46
|
+
readonly getDefault: {
|
|
47
|
+
readonly name: "getDefault";
|
|
48
|
+
readonly I: any;
|
|
49
|
+
readonly O: any;
|
|
50
|
+
readonly kind: any;
|
|
51
|
+
};
|
|
31
52
|
};
|
|
32
53
|
};
|
|
@@ -33,6 +33,27 @@ export const AgentQueryController = {
|
|
|
33
33
|
O: Agent,
|
|
34
34
|
kind: MethodKind.Unary,
|
|
35
35
|
},
|
|
36
|
+
/**
|
|
37
|
+
* Get the platform default agent.
|
|
38
|
+
*
|
|
39
|
+
* Resolves the agent labeled stigmer.ai/default-agent: "true" with
|
|
40
|
+
* visibility_public. Returns the full Agent resource including
|
|
41
|
+
* status.default_instance_id for session creation.
|
|
42
|
+
*
|
|
43
|
+
* Used by frontends to enable session-first UX where users start
|
|
44
|
+
* a conversation without explicitly selecting an agent.
|
|
45
|
+
*
|
|
46
|
+
* Error: NOT_FOUND if no default agent is configured.
|
|
47
|
+
* Custom authorization in handler.
|
|
48
|
+
*
|
|
49
|
+
* @generated from rpc ai.stigmer.agentic.agent.v1.AgentQueryController.getDefault
|
|
50
|
+
*/
|
|
51
|
+
getDefault: {
|
|
52
|
+
name: "getDefault",
|
|
53
|
+
I: GetDefaultAgentRequest,
|
|
54
|
+
O: Agent,
|
|
55
|
+
kind: MethodKind.Unary,
|
|
56
|
+
},
|
|
36
57
|
}
|
|
37
58
|
};
|
|
38
59
|
//# sourceMappingURL=query_connect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agent/v1/query_connect.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,oHAAoH;AACpH,oBAAoB;AACpB,cAAc;AAId,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,QAAQ,EAAE,kDAAkD;IAC5D,OAAO,EAAE;QACP;;;;WAIG;QACH,GAAG,EAAE;YACH,IAAI,EAAE,KAAK;YACX,CAAC,EAAE,OAAO;YACV,CAAC,EAAE,KAAK;YACR,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,cAAc,EAAE;YACd,IAAI,EAAE,gBAAgB;YACtB,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,KAAK;YACR,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
1
|
+
{"version":3,"file":"query_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agent/v1/query_connect.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,oHAAoH;AACpH,oBAAoB;AACpB,cAAc;AAId,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,QAAQ,EAAE,kDAAkD;IAC5D,OAAO,EAAE;QACP;;;;WAIG;QACH,GAAG,EAAE;YACH,IAAI,EAAE,KAAK;YACX,CAAC,EAAE,OAAO;YACV,CAAC,EAAE,KAAK;YACR,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,cAAc,EAAE;YACd,IAAI,EAAE,gBAAgB;YACtB,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,KAAK;YACR,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;WAcG;QACH,UAAU,EAAE;YACV,IAAI,EAAE,YAAY;YAClB,CAAC,EAAE,sBAAsB;YACzB,CAAC,EAAE,KAAK;YACR,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
2
|
import type { AgentSchema } from "./api_pb";
|
|
3
|
-
import type { AgentIdSchema } from "./io_pb";
|
|
3
|
+
import type { AgentIdSchema, GetDefaultAgentRequestSchema } from "./io_pb";
|
|
4
4
|
import type { ApiResourceReferenceSchema } from "../../../commons/apiresource/io_pb";
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file ai/stigmer/agentic/agent/v1/query.proto.
|
|
@@ -32,4 +32,24 @@ export declare const AgentQueryController: GenService<{
|
|
|
32
32
|
input: typeof ApiResourceReferenceSchema;
|
|
33
33
|
output: typeof AgentSchema;
|
|
34
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Get the platform default agent.
|
|
37
|
+
*
|
|
38
|
+
* Resolves the agent labeled stigmer.ai/default-agent: "true" with
|
|
39
|
+
* visibility_public. Returns the full Agent resource including
|
|
40
|
+
* status.default_instance_id for session creation.
|
|
41
|
+
*
|
|
42
|
+
* Used by frontends to enable session-first UX where users start
|
|
43
|
+
* a conversation without explicitly selecting an agent.
|
|
44
|
+
*
|
|
45
|
+
* Error: NOT_FOUND if no default agent is configured.
|
|
46
|
+
* Custom authorization in handler.
|
|
47
|
+
*
|
|
48
|
+
* @generated from rpc ai.stigmer.agentic.agent.v1.AgentQueryController.getDefault
|
|
49
|
+
*/
|
|
50
|
+
getDefault: {
|
|
51
|
+
methodKind: "unary";
|
|
52
|
+
input: typeof GetDefaultAgentRequestSchema;
|
|
53
|
+
output: typeof AgentSchema;
|
|
54
|
+
};
|
|
35
55
|
}>;
|
|
@@ -10,7 +10,7 @@ import { file_ai_stigmer_iam_iampolicy_v1_rpcauthorization_method_options } from
|
|
|
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("
|
|
13
|
+
export const file_ai_stigmer_agentic_agent_v1_query = /*@__PURE__*/ fileDesc("CidhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnQvdjEvcXVlcnkucHJvdG8SG2FpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudC52MTLsAgoUQWdlbnRRdWVyeUNvbnRyb2xsZXISewoDZ2V0EiQuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50LnYxLkFnZW50SWQaIi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnQudjEuQWdlbnQiKsK4GCYIAxAoIgV2YWx1ZSoZdW5hdXRob3JpemVkIHRvIGdldCBhZ2VudBJqCg5nZXRCeVJlZmVyZW5jZRI0LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZRoiLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudC52MS5BZ2VudBJlCgpnZXREZWZhdWx0EjMuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50LnYxLkdldERlZmF1bHRBZ2VudFJlcXVlc3QaIi5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnQudjEuQWdlbnQaBKD/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_iam_iampolicy_v1_rpcauthorization_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,gEAAgE;AAChE,oHAAoH;AACpH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,oCAAoC,EAAE,MAAM,UAAU,CAAC;AAEhE,OAAO,EAAE,mCAAmC,EAAE,MAAM,SAAS,CAAC;AAE9D,OAAO,EAAE,sCAAsC,EAAE,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAE,uDAAuD,EAAE,MAAM,qDAAqD,CAAC;AAC9H,OAAO,EAAE,gEAAgE,EAAE,MAAM,8DAA8D,CAAC;AAEhJ;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAY,aAAa,CAC1E,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"query_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agent/v1/query_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,oHAAoH;AACpH,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,oCAAoC,EAAE,MAAM,UAAU,CAAC;AAEhE,OAAO,EAAE,mCAAmC,EAAE,MAAM,SAAS,CAAC;AAE9D,OAAO,EAAE,sCAAsC,EAAE,MAAM,oCAAoC,CAAC;AAC5F,OAAO,EAAE,uDAAuD,EAAE,MAAM,qDAAqD,CAAC;AAC9H,OAAO,EAAE,gEAAgE,EAAE,MAAM,8DAA8D,CAAC;AAEhJ;;GAEG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAY,aAAa,CAC1E,QAAQ,CAAC,olBAAolB,EAAE,CAAC,oCAAoC,EAAE,mCAAmC,EAAE,sCAAsC,EAAE,uDAAuD,EAAE,gEAAgE,CAAC,CAAC,CAAC;AAEj1B;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAyC5B,aAAa,CAChB,WAAW,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -83,6 +83,23 @@ export type ExecutionArtifact = Message<"ai.stigmer.agentic.agentexecution.v1.Ex
|
|
|
83
83
|
* @generated from field: string expires_at = 8;
|
|
84
84
|
*/
|
|
85
85
|
expiresAt: string;
|
|
86
|
+
/**
|
|
87
|
+
* Relative file paths within a directory artifact's archive.
|
|
88
|
+
*
|
|
89
|
+
* Populated at creation time by the agent runner when archiving a
|
|
90
|
+
* directory. Empty for FILE artifacts and for older DIRECTORY
|
|
91
|
+
* artifacts created before this field was added.
|
|
92
|
+
*
|
|
93
|
+
* Clients use this for instant skill package detection (check for
|
|
94
|
+
* "SKILL.md") and for rendering file listings without additional RPCs.
|
|
95
|
+
*
|
|
96
|
+
* Paths use forward slashes and are relative to the archive root.
|
|
97
|
+
* Directory entries are excluded — only regular files are listed.
|
|
98
|
+
* Examples: ["SKILL.md", "scripts/init_skill.py", "references/workflows.md"]
|
|
99
|
+
*
|
|
100
|
+
* @generated from field: repeated string entries = 9;
|
|
101
|
+
*/
|
|
102
|
+
entries: string[];
|
|
86
103
|
};
|
|
87
104
|
/**
|
|
88
105
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.ExecutionArtifact.
|
|
@@ -7,7 +7,7 @@ import { file_buf_validate_validate } from "../../../../../buf/validate/validate
|
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file ai/stigmer/agentic/agentexecution/v1/artifact.proto.
|
|
9
9
|
*/
|
|
10
|
-
export const file_ai_stigmer_agentic_agentexecution_v1_artifact = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_ai_stigmer_agentic_agentexecution_v1_artifact = /*@__PURE__*/ fileDesc("CjNhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRleGVjdXRpb24vdjEvYXJ0aWZhY3QucHJvdG8SJGFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MSKEAgoRRXhlY3V0aW9uQXJ0aWZhY3QSDAoEbmFtZRgBIAEoCRIUCgxzYW5kYm94X3BhdGgYAiABKAkSUwoEa2luZBgDIAEoDjI7LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MS5FeGVjdXRpb25BcnRpZmFjdEtpbmRCCLpIBYIBAhABEhIKCnNpemVfYnl0ZXMYBCABKAMSEwoLc3RvcmFnZV9rZXkYBSABKAkSFAoMZG93bmxvYWRfdXJsGAYgASgJEhIKCmNyZWF0ZWRfYXQYByABKAkSEgoKZXhwaXJlc19hdBgIIAEoCRIPCgdlbnRyaWVzGAkgAygJYgZwcm90bzM", [file_ai_stigmer_agentic_agentexecution_v1_enum, file_buf_validate_validate]);
|
|
11
11
|
/**
|
|
12
12
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.ExecutionArtifact.
|
|
13
13
|
* Use `create(ExecutionArtifactSchema)` to create a new message.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/artifact_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,yIAAyI;AACzI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,8CAA8C,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAGrF;;GAEG;AACH,MAAM,CAAC,MAAM,kDAAkD,GAAY,aAAa,CACtF,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"artifact_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/artifact_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,yIAAyI;AACzI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,8CAA8C,EAAE,MAAM,WAAW,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAGrF;;GAEG;AACH,MAAM,CAAC,MAAM,kDAAkD,GAAY,aAAa,CACtF,QAAQ,CAAC,qeAAqe,EAAE,CAAC,8CAA8C,EAAE,0BAA0B,CAAC,CAAC,CAAC;AA2GhkB;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAkC,aAAa,CACjF,WAAW,CAAC,kDAAkD,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -835,6 +835,184 @@ export type GetArtifactDownloadUrlResponse = Message<"ai.stigmer.agentic.agentex
|
|
|
835
835
|
* Use `create(GetArtifactDownloadUrlResponseSchema)` to create a new message.
|
|
836
836
|
*/
|
|
837
837
|
export declare const GetArtifactDownloadUrlResponseSchema: GenMessage<GetArtifactDownloadUrlResponse>;
|
|
838
|
+
/**
|
|
839
|
+
* GetArtifactContentRequest reads the raw content of an execution artifact.
|
|
840
|
+
*
|
|
841
|
+
* Unlike getArtifactDownloadUrl (which returns a presigned URL for direct
|
|
842
|
+
* browser download), this endpoint returns the artifact bytes through the
|
|
843
|
+
* Stigmer API. This eliminates CORS concerns for SDK consumers who need to
|
|
844
|
+
* read artifact content programmatically — e.g., for YAML parsing, resource
|
|
845
|
+
* detection, or in-app preview rendering.
|
|
846
|
+
*
|
|
847
|
+
* ## Authorization
|
|
848
|
+
*
|
|
849
|
+
* Requires can_view permission on the execution. This ensures users can only
|
|
850
|
+
* read artifacts from executions they have access to.
|
|
851
|
+
*
|
|
852
|
+
* ## Security
|
|
853
|
+
*
|
|
854
|
+
* The storage_key is validated to ensure it belongs to the specified execution.
|
|
855
|
+
* Storage keys must start with "artifacts/{execution_id}/" to prevent path
|
|
856
|
+
* traversal attacks where a user could request content from other executions'
|
|
857
|
+
* artifacts.
|
|
858
|
+
*
|
|
859
|
+
* ## Size Limit
|
|
860
|
+
*
|
|
861
|
+
* The server enforces a maximum content size (default: 512 KB). If the
|
|
862
|
+
* artifact exceeds max_bytes, the response contains the first max_bytes of
|
|
863
|
+
* content with truncated=true. Callers can use total_size_bytes to decide
|
|
864
|
+
* whether to offer a full download via getArtifactDownloadUrl instead.
|
|
865
|
+
*
|
|
866
|
+
* ## Use Cases
|
|
867
|
+
*
|
|
868
|
+
* - Web UI reading YAML artifacts for Stigmer resource detection
|
|
869
|
+
* - SDK consumers rendering artifact previews in embedded components
|
|
870
|
+
* - CLI inspecting artifact content without a separate HTTP download
|
|
871
|
+
*
|
|
872
|
+
* ## Example
|
|
873
|
+
*
|
|
874
|
+
* Request:
|
|
875
|
+
* {
|
|
876
|
+
* "execution_id": "aex_abc123xyz456",
|
|
877
|
+
* "storage_key": "artifacts/aex_abc123xyz456/pr-review-agent.yaml"
|
|
878
|
+
* }
|
|
879
|
+
*
|
|
880
|
+
* Response:
|
|
881
|
+
* {
|
|
882
|
+
* "content": <bytes>,
|
|
883
|
+
* "content_type": "text/yaml",
|
|
884
|
+
* "total_size_bytes": 1842,
|
|
885
|
+
* "truncated": false
|
|
886
|
+
* }
|
|
887
|
+
*
|
|
888
|
+
* @since Artifact Lifecycle (Attachments & Artifacts)
|
|
889
|
+
*
|
|
890
|
+
* @generated from message ai.stigmer.agentic.agentexecution.v1.GetArtifactContentRequest
|
|
891
|
+
*/
|
|
892
|
+
export type GetArtifactContentRequest = Message<"ai.stigmer.agentic.agentexecution.v1.GetArtifactContentRequest"> & {
|
|
893
|
+
/**
|
|
894
|
+
* ID of the agent execution that produced the artifact.
|
|
895
|
+
*
|
|
896
|
+
* Used for authorization (can_view check) and storage_key validation.
|
|
897
|
+
*
|
|
898
|
+
* Format: "aex_{ulid}"
|
|
899
|
+
* Example: "aex_abc123xyz456"
|
|
900
|
+
*
|
|
901
|
+
* Validation: Required, minimum 1 character
|
|
902
|
+
*
|
|
903
|
+
* @generated from field: string execution_id = 1;
|
|
904
|
+
*/
|
|
905
|
+
executionId: string;
|
|
906
|
+
/**
|
|
907
|
+
* Storage key of the artifact to read.
|
|
908
|
+
*
|
|
909
|
+
* Must be an artifact from the specified execution. The storage_key
|
|
910
|
+
* is validated to start with "artifacts/{execution_id}/" to prevent
|
|
911
|
+
* access to other executions' artifacts.
|
|
912
|
+
*
|
|
913
|
+
* Obtain this value from ExecutionArtifact.storage_key in the execution status.
|
|
914
|
+
*
|
|
915
|
+
* Format: "artifacts/{execution_id}/{filename}"
|
|
916
|
+
* Example: "artifacts/aex_abc123xyz456/pr-review-agent.yaml"
|
|
917
|
+
*
|
|
918
|
+
* Validation: Required, minimum 1 character
|
|
919
|
+
*
|
|
920
|
+
* @generated from field: string storage_key = 2;
|
|
921
|
+
*/
|
|
922
|
+
storageKey: string;
|
|
923
|
+
/**
|
|
924
|
+
* Maximum number of bytes to return.
|
|
925
|
+
*
|
|
926
|
+
* If the artifact is larger than this limit, the response will contain
|
|
927
|
+
* the first max_bytes of content with truncated=true.
|
|
928
|
+
*
|
|
929
|
+
* When 0 or unset, the server applies a default limit (512 KB).
|
|
930
|
+
* The server may also enforce a hard upper bound regardless of this value.
|
|
931
|
+
*
|
|
932
|
+
* Example: 524288 (512 KB)
|
|
933
|
+
*
|
|
934
|
+
* @generated from field: int64 max_bytes = 3;
|
|
935
|
+
*/
|
|
936
|
+
maxBytes: bigint;
|
|
937
|
+
/**
|
|
938
|
+
* For directory artifacts (ZIPs): extract a specific file by its
|
|
939
|
+
* path within the archive instead of returning the raw ZIP bytes.
|
|
940
|
+
*
|
|
941
|
+
* When empty, returns the full artifact content (existing behavior).
|
|
942
|
+
* When set for a FILE artifact, this field is ignored.
|
|
943
|
+
*
|
|
944
|
+
* The path must match an entry in the archive exactly (case-sensitive).
|
|
945
|
+
* Use the paths from ExecutionArtifact.entries to discover valid values.
|
|
946
|
+
*
|
|
947
|
+
* Example: "SKILL.md", "scripts/init_skill.py"
|
|
948
|
+
*
|
|
949
|
+
* @generated from field: string entry_path = 4;
|
|
950
|
+
*/
|
|
951
|
+
entryPath: string;
|
|
952
|
+
};
|
|
953
|
+
/**
|
|
954
|
+
* Describes the message ai.stigmer.agentic.agentexecution.v1.GetArtifactContentRequest.
|
|
955
|
+
* Use `create(GetArtifactContentRequestSchema)` to create a new message.
|
|
956
|
+
*/
|
|
957
|
+
export declare const GetArtifactContentRequestSchema: GenMessage<GetArtifactContentRequest>;
|
|
958
|
+
/**
|
|
959
|
+
* GetArtifactContentResponse returns the raw content of an execution artifact.
|
|
960
|
+
*
|
|
961
|
+
* The content field contains the artifact bytes (up to max_bytes). For text
|
|
962
|
+
* artifacts, clients decode via TextDecoder or equivalent. The content_type
|
|
963
|
+
* field provides a hint for rendering (detected by file extension).
|
|
964
|
+
*
|
|
965
|
+
* @since Artifact Lifecycle (Attachments & Artifacts)
|
|
966
|
+
*
|
|
967
|
+
* @generated from message ai.stigmer.agentic.agentexecution.v1.GetArtifactContentResponse
|
|
968
|
+
*/
|
|
969
|
+
export type GetArtifactContentResponse = Message<"ai.stigmer.agentic.agentexecution.v1.GetArtifactContentResponse"> & {
|
|
970
|
+
/**
|
|
971
|
+
* Raw artifact content (up to max_bytes).
|
|
972
|
+
*
|
|
973
|
+
* For text artifacts (YAML, JSON, Markdown, etc.), decode as UTF-8.
|
|
974
|
+
* For binary artifacts, this contains raw bytes — but callers should
|
|
975
|
+
* generally use getArtifactDownloadUrl for binary downloads instead.
|
|
976
|
+
*
|
|
977
|
+
* @generated from field: bytes content = 1;
|
|
978
|
+
*/
|
|
979
|
+
content: Uint8Array;
|
|
980
|
+
/**
|
|
981
|
+
* Detected content type based on file extension.
|
|
982
|
+
*
|
|
983
|
+
* Examples: "text/yaml", "text/plain", "application/json",
|
|
984
|
+
* "application/zip" (for directory artifacts).
|
|
985
|
+
*
|
|
986
|
+
* This is a best-effort detection — not based on content inspection.
|
|
987
|
+
*
|
|
988
|
+
* @generated from field: string content_type = 2;
|
|
989
|
+
*/
|
|
990
|
+
contentType: string;
|
|
991
|
+
/**
|
|
992
|
+
* Actual total size of the artifact in bytes.
|
|
993
|
+
*
|
|
994
|
+
* May be larger than len(content) when truncated=true.
|
|
995
|
+
* Callers can use this to show "showing 512 KB of 2.1 MB" messages
|
|
996
|
+
* or to decide whether to offer a full download link.
|
|
997
|
+
*
|
|
998
|
+
* @generated from field: int64 total_size_bytes = 3;
|
|
999
|
+
*/
|
|
1000
|
+
totalSizeBytes: bigint;
|
|
1001
|
+
/**
|
|
1002
|
+
* Whether the content was truncated to fit within max_bytes.
|
|
1003
|
+
*
|
|
1004
|
+
* When true, content contains only the first max_bytes of the artifact.
|
|
1005
|
+
* The full artifact can be downloaded via getArtifactDownloadUrl.
|
|
1006
|
+
*
|
|
1007
|
+
* @generated from field: bool truncated = 4;
|
|
1008
|
+
*/
|
|
1009
|
+
truncated: boolean;
|
|
1010
|
+
};
|
|
1011
|
+
/**
|
|
1012
|
+
* Describes the message ai.stigmer.agentic.agentexecution.v1.GetArtifactContentResponse.
|
|
1013
|
+
* Use `create(GetArtifactContentResponseSchema)` to create a new message.
|
|
1014
|
+
*/
|
|
1015
|
+
export declare const GetArtifactContentResponseSchema: GenMessage<GetArtifactContentResponse>;
|
|
838
1016
|
/**
|
|
839
1017
|
* GetSessionUsageReportInput requests a usage report for a single session.
|
|
840
1018
|
* Aggregates cost and token data across all executions in the session.
|
|
@@ -9,7 +9,7 @@ import { file_buf_validate_validate } from "../../../../../buf/validate/validate
|
|
|
9
9
|
/**
|
|
10
10
|
* Describes the file ai/stigmer/agentic/agentexecution/v1/io.proto.
|
|
11
11
|
*/
|
|
12
|
-
export const file_ai_stigmer_agentic_agentexecution_v1_io = /*@__PURE__*/ fileDesc("
|
|
12
|
+
export const file_ai_stigmer_agentic_agentexecution_v1_io = /*@__PURE__*/ fileDesc("Ci1haS9zdGlnbWVyL2FnZW50aWMvYWdlbnRleGVjdXRpb24vdjEvaW8ucHJvdG8SJGFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGV4ZWN1dGlvbi52MSIpChBBZ2VudEV4ZWN1dGlvbklkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEiIgoJU2Vzc2lvbklkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEicAoSQWdlbnRFeGVjdXRpb25MaXN0EhMKC3RvdGFsX3BhZ2VzGAEgASgFEkUKB2VudHJpZXMYAiADKAsyNC5haS5zdGlnbWVyLmFnZW50aWMuYWdlbnRleGVjdXRpb24udjEuQWdlbnRFeGVjdXRpb24ilgEKGkxpc3RBZ2VudEV4ZWN1dGlvbnNSZXF1ZXN0EhEKCXBhZ2Vfc2l6ZRgBIAEoBRISCgpwYWdlX3Rva2VuGAIgASgJEkMKBXBoYXNlGAMgASgOMjQuYWkuc3RpZ21lci5hZ2VudGljLmFnZW50ZXhlY3V0aW9uLnYxLkV4ZWN1dGlvblBoYXNlEgwKBHRhZ3MYBCADKAkiaAojTGlzdEFnZW50RXhlY3V0aW9uc0J5U2Vzc2lvblJlcXVlc3QSGgoKc2Vzc2lvbl9pZBgBIAEoCUIGukgDyAEBEhEKCXBhZ2Vfc2l6ZRgCIAEoBRISC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GAYgASgJIoQBChFBZ2VudFVzYWdlU3VtbWFyeRIQCghhZ2VudF9pZBgBIAEoCRISCgphZ2VudF9uYW1lGAIgASgJEhcKD2V4ZWN1dGlvbl9jb3VudBgDIAEoBRIUCgx0b3RhbF90b2tlbnMYBCABKAUSGgoSZXN0aW1hdGVkX2Nvc3RfdXNkGAUgASgBImkKDkRhaWx5Q29zdEVudHJ5EgwKBGRhdGUYASABKAkSFwoPZXhlY3V0aW9uX2NvdW50GAIgASgFEhQKDHRvdGFsX3Rva2VucxgDIAEoBRIaChJlc3RpbWF0ZWRfY29zdF91c2QYBCABKAFiBnByb3RvMw", [file_ai_stigmer_agentic_agentexecution_v1_api, file_ai_stigmer_agentic_agentexecution_v1_enum, file_ai_stigmer_agentic_agentexecution_v1_usage, file_buf_validate_validate]);
|
|
13
13
|
/**
|
|
14
14
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.AgentExecutionId.
|
|
15
15
|
* Use `create(AgentExecutionIdSchema)` to create a new message.
|
|
@@ -95,54 +95,64 @@ export const GetArtifactDownloadUrlRequestSchema = /*@__PURE__*/ messageDesc(fil
|
|
|
95
95
|
* Use `create(GetArtifactDownloadUrlResponseSchema)` to create a new message.
|
|
96
96
|
*/
|
|
97
97
|
export const GetArtifactDownloadUrlResponseSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 16);
|
|
98
|
+
/**
|
|
99
|
+
* Describes the message ai.stigmer.agentic.agentexecution.v1.GetArtifactContentRequest.
|
|
100
|
+
* Use `create(GetArtifactContentRequestSchema)` to create a new message.
|
|
101
|
+
*/
|
|
102
|
+
export const GetArtifactContentRequestSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 17);
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message ai.stigmer.agentic.agentexecution.v1.GetArtifactContentResponse.
|
|
105
|
+
* Use `create(GetArtifactContentResponseSchema)` to create a new message.
|
|
106
|
+
*/
|
|
107
|
+
export const GetArtifactContentResponseSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 18);
|
|
98
108
|
/**
|
|
99
109
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.GetSessionUsageReportInput.
|
|
100
110
|
* Use `create(GetSessionUsageReportInputSchema)` to create a new message.
|
|
101
111
|
*/
|
|
102
|
-
export const GetSessionUsageReportInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io,
|
|
112
|
+
export const GetSessionUsageReportInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 19);
|
|
103
113
|
/**
|
|
104
114
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.GetSessionUsageReportOutput.
|
|
105
115
|
* Use `create(GetSessionUsageReportOutputSchema)` to create a new message.
|
|
106
116
|
*/
|
|
107
|
-
export const GetSessionUsageReportOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io,
|
|
117
|
+
export const GetSessionUsageReportOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 20);
|
|
108
118
|
/**
|
|
109
119
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.GetAgentUsageReportInput.
|
|
110
120
|
* Use `create(GetAgentUsageReportInputSchema)` to create a new message.
|
|
111
121
|
*/
|
|
112
|
-
export const GetAgentUsageReportInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io,
|
|
122
|
+
export const GetAgentUsageReportInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 21);
|
|
113
123
|
/**
|
|
114
124
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.GetAgentUsageReportOutput.
|
|
115
125
|
* Use `create(GetAgentUsageReportOutputSchema)` to create a new message.
|
|
116
126
|
*/
|
|
117
|
-
export const GetAgentUsageReportOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io,
|
|
127
|
+
export const GetAgentUsageReportOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 22);
|
|
118
128
|
/**
|
|
119
129
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.GetOrgUsageReportInput.
|
|
120
130
|
* Use `create(GetOrgUsageReportInputSchema)` to create a new message.
|
|
121
131
|
*/
|
|
122
|
-
export const GetOrgUsageReportInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io,
|
|
132
|
+
export const GetOrgUsageReportInputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 23);
|
|
123
133
|
/**
|
|
124
134
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.GetOrgUsageReportOutput.
|
|
125
135
|
* Use `create(GetOrgUsageReportOutputSchema)` to create a new message.
|
|
126
136
|
*/
|
|
127
|
-
export const GetOrgUsageReportOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io,
|
|
137
|
+
export const GetOrgUsageReportOutputSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 24);
|
|
128
138
|
/**
|
|
129
139
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.ExecutionUsageSummary.
|
|
130
140
|
* Use `create(ExecutionUsageSummarySchema)` to create a new message.
|
|
131
141
|
*/
|
|
132
|
-
export const ExecutionUsageSummarySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io,
|
|
142
|
+
export const ExecutionUsageSummarySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 25);
|
|
133
143
|
/**
|
|
134
144
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.SessionUsageSummary.
|
|
135
145
|
* Use `create(SessionUsageSummarySchema)` to create a new message.
|
|
136
146
|
*/
|
|
137
|
-
export const SessionUsageSummarySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io,
|
|
147
|
+
export const SessionUsageSummarySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 26);
|
|
138
148
|
/**
|
|
139
149
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.AgentUsageSummary.
|
|
140
150
|
* Use `create(AgentUsageSummarySchema)` to create a new message.
|
|
141
151
|
*/
|
|
142
|
-
export const AgentUsageSummarySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io,
|
|
152
|
+
export const AgentUsageSummarySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 27);
|
|
143
153
|
/**
|
|
144
154
|
* Describes the message ai.stigmer.agentic.agentexecution.v1.DailyCostEntry.
|
|
145
155
|
* Use `create(DailyCostEntrySchema)` to create a new message.
|
|
146
156
|
*/
|
|
147
|
-
export const DailyCostEntrySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io,
|
|
157
|
+
export const DailyCostEntrySchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_agentexecution_v1_io, 28);
|
|
148
158
|
//# sourceMappingURL=io_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/io_pb.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,mIAAmI;AACnI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,6CAA6C,EAAE,MAAM,UAAU,CAAC;AAEzE,OAAO,EAAE,8CAA8C,EAAE,MAAM,WAAW,CAAC;AAE3E,OAAO,EAAE,+CAA+C,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAGrF;;GAEG;AACH,MAAM,C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AAC,MAAM,uBAAuB,GAAkC,aAAa,CACjF,WAAW,CAAC,4CAA4C,EAAE,EAAE,CAAC,CAAC;AAsChE;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA+B,aAAa,CAC3E,WAAW,CAAC,4CAA4C,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -99,6 +99,51 @@ export declare const AgentExecutionQueryController: {
|
|
|
99
99
|
readonly O: any;
|
|
100
100
|
readonly kind: any;
|
|
101
101
|
};
|
|
102
|
+
/**
|
|
103
|
+
* Read the raw content of an execution artifact.
|
|
104
|
+
*
|
|
105
|
+
* Returns artifact bytes through the Stigmer API, eliminating CORS
|
|
106
|
+
* concerns for SDK consumers who need to read content programmatically
|
|
107
|
+
* (e.g., YAML parsing for resource detection, in-app preview rendering).
|
|
108
|
+
*
|
|
109
|
+
* For direct file downloads, use getArtifactDownloadUrl instead — it
|
|
110
|
+
* returns a presigned R2 URL that avoids proxying bytes through the server.
|
|
111
|
+
*
|
|
112
|
+
* ## Authorization
|
|
113
|
+
*
|
|
114
|
+
* Requires can_view permission on the execution. This ensures users can
|
|
115
|
+
* only read artifacts from executions they have access to.
|
|
116
|
+
*
|
|
117
|
+
* ## Security
|
|
118
|
+
*
|
|
119
|
+
* The storage_key is validated to ensure it belongs to the specified
|
|
120
|
+
* execution. Keys must start with "artifacts/{execution_id}/" to prevent
|
|
121
|
+
* path traversal attacks.
|
|
122
|
+
*
|
|
123
|
+
* ## Size Limit
|
|
124
|
+
*
|
|
125
|
+
* Content is truncated to max_bytes (default: 512 KB). The response
|
|
126
|
+
* includes total_size_bytes and a truncated flag so callers can decide
|
|
127
|
+
* whether to offer a full download via getArtifactDownloadUrl.
|
|
128
|
+
*
|
|
129
|
+
* ## Example Flow
|
|
130
|
+
*
|
|
131
|
+
* 1. Get execution via AgentExecutionQueryController.get
|
|
132
|
+
* 2. Find artifact in status.artifacts[]
|
|
133
|
+
* 3. Call getArtifactContent with execution_id and storage_key
|
|
134
|
+
* 4. Decode content bytes as UTF-8 for text artifacts
|
|
135
|
+
* 5. Parse YAML to detect Stigmer resource kind (Agent, McpServer, etc.)
|
|
136
|
+
*
|
|
137
|
+
* @since Artifact Lifecycle (Attachments & Artifacts)
|
|
138
|
+
*
|
|
139
|
+
* @generated from rpc ai.stigmer.agentic.agentexecution.v1.AgentExecutionQueryController.getArtifactContent
|
|
140
|
+
*/
|
|
141
|
+
readonly getArtifactContent: {
|
|
142
|
+
readonly name: "getArtifactContent";
|
|
143
|
+
readonly I: any;
|
|
144
|
+
readonly O: any;
|
|
145
|
+
readonly kind: any;
|
|
146
|
+
};
|
|
102
147
|
/**
|
|
103
148
|
* Get usage report for a session (all executions in a session).
|
|
104
149
|
* Returns aggregated tokens, cost, cache hit rate, and per-execution breakdown.
|
|
@@ -104,6 +104,51 @@ export const AgentExecutionQueryController = {
|
|
|
104
104
|
O: GetArtifactDownloadUrlResponse,
|
|
105
105
|
kind: MethodKind.Unary,
|
|
106
106
|
},
|
|
107
|
+
/**
|
|
108
|
+
* Read the raw content of an execution artifact.
|
|
109
|
+
*
|
|
110
|
+
* Returns artifact bytes through the Stigmer API, eliminating CORS
|
|
111
|
+
* concerns for SDK consumers who need to read content programmatically
|
|
112
|
+
* (e.g., YAML parsing for resource detection, in-app preview rendering).
|
|
113
|
+
*
|
|
114
|
+
* For direct file downloads, use getArtifactDownloadUrl instead — it
|
|
115
|
+
* returns a presigned R2 URL that avoids proxying bytes through the server.
|
|
116
|
+
*
|
|
117
|
+
* ## Authorization
|
|
118
|
+
*
|
|
119
|
+
* Requires can_view permission on the execution. This ensures users can
|
|
120
|
+
* only read artifacts from executions they have access to.
|
|
121
|
+
*
|
|
122
|
+
* ## Security
|
|
123
|
+
*
|
|
124
|
+
* The storage_key is validated to ensure it belongs to the specified
|
|
125
|
+
* execution. Keys must start with "artifacts/{execution_id}/" to prevent
|
|
126
|
+
* path traversal attacks.
|
|
127
|
+
*
|
|
128
|
+
* ## Size Limit
|
|
129
|
+
*
|
|
130
|
+
* Content is truncated to max_bytes (default: 512 KB). The response
|
|
131
|
+
* includes total_size_bytes and a truncated flag so callers can decide
|
|
132
|
+
* whether to offer a full download via getArtifactDownloadUrl.
|
|
133
|
+
*
|
|
134
|
+
* ## Example Flow
|
|
135
|
+
*
|
|
136
|
+
* 1. Get execution via AgentExecutionQueryController.get
|
|
137
|
+
* 2. Find artifact in status.artifacts[]
|
|
138
|
+
* 3. Call getArtifactContent with execution_id and storage_key
|
|
139
|
+
* 4. Decode content bytes as UTF-8 for text artifacts
|
|
140
|
+
* 5. Parse YAML to detect Stigmer resource kind (Agent, McpServer, etc.)
|
|
141
|
+
*
|
|
142
|
+
* @since Artifact Lifecycle (Attachments & Artifacts)
|
|
143
|
+
*
|
|
144
|
+
* @generated from rpc ai.stigmer.agentic.agentexecution.v1.AgentExecutionQueryController.getArtifactContent
|
|
145
|
+
*/
|
|
146
|
+
getArtifactContent: {
|
|
147
|
+
name: "getArtifactContent",
|
|
148
|
+
I: GetArtifactContentRequest,
|
|
149
|
+
O: GetArtifactContentResponse,
|
|
150
|
+
kind: MethodKind.Unary,
|
|
151
|
+
},
|
|
107
152
|
/**
|
|
108
153
|
* Get usage report for a session (all executions in a session).
|
|
109
154
|
* Returns aggregated tokens, cost, cache hit rate, and per-execution breakdown.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/query_connect.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,sIAAsI;AACtI,oBAAoB;AACpB,cAAc;AAId,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,QAAQ,EAAE,oEAAoE;IAC9E,OAAO,EAAE;QACP;;;;WAIG;QACH,GAAG,EAAE;YACH,IAAI,EAAE,KAAK;YACX,CAAC,EAAE,gBAAgB;YACnB,CAAC,EAAE,cA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","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/agentexecution/v1/query_connect.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,sIAAsI;AACtI,oBAAoB;AACpB,cAAc;AAId,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,QAAQ,EAAE,oEAAoE;IAC9E,OAAO,EAAE;QACP;;;;WAIG;QACH,GAAG,EAAE;YACH,IAAI,EAAE,KAAK;YACX,CAAC,EAAE,gBAAgB;YACnB,CAAC,EAAE,cAAc;YACjB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;WAIG;QACH,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,CAAC,EAAE,0BAA0B;YAC7B,CAAC,EAAE,kBAAkB;YACrB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;WAMG;QACH,aAAa,EAAE;YACb,IAAI,EAAE,eAAe;YACrB,CAAC,EAAE,mCAAmC;YACtC,CAAC,EAAE,kBAAkB;YACrB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;WAKG;QACH,SAAS,EAAE;YACT,IAAI,EAAE,WAAW;YACjB,CAAC,EAAE,gBAAgB;YACnB,CAAC,EAAE,cAAc;YACjB,IAAI,EAAE,UAAU,CAAC,eAAe;SACjC;QACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAuCG;QACH,sBAAsB,EAAE;YACtB,IAAI,EAAE,wBAAwB;YAC9B,CAAC,EAAE,6BAA6B;YAChC,CAAC,EAAE,8BAA8B;YACjC,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAsCG;QACH,kBAAkB,EAAE;YAClB,IAAI,EAAE,oBAAoB;YAC1B,CAAC,EAAE,yBAAyB;YAC5B,CAAC,EAAE,0BAA0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