@stigmer/protos 0.5.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/ai/stigmer/agentic/agentexecution/v1/api_pb.d.ts +7 -0
  2. package/ai/stigmer/agentic/agentexecution/v1/api_pb.js +2 -1
  3. package/ai/stigmer/agentic/agentexecution/v1/api_pb.js.map +1 -1
  4. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +54 -0
  5. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +56 -1
  6. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
  7. package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +149 -1
  8. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js +50 -2
  9. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js.map +1 -1
  10. package/ai/stigmer/agentic/agentexecution/v1/query_connect.d.ts +31 -0
  11. package/ai/stigmer/agentic/agentexecution/v1/query_connect.js +32 -1
  12. package/ai/stigmer/agentic/agentexecution/v1/query_connect.js.map +1 -1
  13. package/ai/stigmer/agentic/agentexecution/v1/query_pb.d.ts +31 -1
  14. package/ai/stigmer/agentic/agentexecution/v1/query_pb.js +1 -1
  15. package/ai/stigmer/agentic/agentexecution/v1/query_pb.js.map +1 -1
  16. package/ai/stigmer/agentic/agentexecution/v1/spec_pb.d.ts +16 -0
  17. package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js +2 -1
  18. package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js.map +1 -1
  19. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.d.ts +68 -0
  20. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js +6 -1
  21. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js.map +1 -1
  22. package/ai/stigmer/agentic/artifact/v1/api_pb.d.ts +152 -0
  23. package/ai/stigmer/agentic/artifact/v1/api_pb.js +24 -0
  24. package/ai/stigmer/agentic/artifact/v1/api_pb.js.map +1 -0
  25. package/ai/stigmer/agentic/artifact/v1/command_connect.d.ts +83 -0
  26. package/ai/stigmer/agentic/artifact/v1/command_connect.js +92 -0
  27. package/ai/stigmer/agentic/artifact/v1/command_connect.js.map +1 -0
  28. package/ai/stigmer/agentic/artifact/v1/command_pb.d.ts +86 -0
  29. package/ai/stigmer/agentic/artifact/v1/command_pb.js +36 -0
  30. package/ai/stigmer/agentic/artifact/v1/command_pb.js.map +1 -0
  31. package/ai/stigmer/agentic/artifact/v1/enum_pb.d.ts +49 -0
  32. package/ai/stigmer/agentic/artifact/v1/enum_pb.js +54 -0
  33. package/ai/stigmer/agentic/artifact/v1/enum_pb.js.map +1 -0
  34. package/ai/stigmer/agentic/artifact/v1/io_pb.d.ts +205 -0
  35. package/ai/stigmer/agentic/artifact/v1/io_pb.js +37 -0
  36. package/ai/stigmer/agentic/artifact/v1/io_pb.js.map +1 -0
  37. package/ai/stigmer/agentic/artifact/v1/query_connect.d.ts +127 -0
  38. package/ai/stigmer/agentic/artifact/v1/query_connect.js +135 -0
  39. package/ai/stigmer/agentic/artifact/v1/query_connect.js.map +1 -0
  40. package/ai/stigmer/agentic/artifact/v1/query_pb.d.ts +128 -0
  41. package/ai/stigmer/agentic/artifact/v1/query_pb.js +32 -0
  42. package/ai/stigmer/agentic/artifact/v1/query_pb.js.map +1 -0
  43. package/ai/stigmer/agentic/artifact/v1/spec_pb.d.ts +161 -0
  44. package/ai/stigmer/agentic/artifact/v1/spec_pb.js +25 -0
  45. package/ai/stigmer/agentic/artifact/v1/spec_pb.js.map +1 -0
  46. package/ai/stigmer/agentic/runner/v1/api_pb.d.ts +33 -0
  47. package/ai/stigmer/agentic/runner/v1/api_pb.js +1 -1
  48. package/ai/stigmer/agentic/runner/v1/api_pb.js.map +1 -1
  49. package/ai/stigmer/agentic/runner/v1/io_pb.d.ts +15 -1
  50. package/ai/stigmer/agentic/runner/v1/io_pb.js +1 -1
  51. package/ai/stigmer/agentic/runner/v1/io_pb.js.map +1 -1
  52. package/ai/stigmer/agentic/workflow/v1/command_connect.d.ts +30 -0
  53. package/ai/stigmer/agentic/workflow/v1/command_connect.js +31 -0
  54. package/ai/stigmer/agentic/workflow/v1/command_connect.js.map +1 -1
  55. package/ai/stigmer/agentic/workflow/v1/command_pb.d.ts +30 -0
  56. package/ai/stigmer/agentic/workflow/v1/command_pb.js +2 -1
  57. package/ai/stigmer/agentic/workflow/v1/command_pb.js.map +1 -1
  58. package/ai/stigmer/agentic/workflow/v1/enum_pb.d.ts +141 -1
  59. package/ai/stigmer/agentic/workflow/v1/enum_pb.js +142 -1
  60. package/ai/stigmer/agentic/workflow/v1/enum_pb.js.map +1 -1
  61. package/ai/stigmer/agentic/workflow/v1/spec_pb.d.ts +132 -1
  62. package/ai/stigmer/agentic/workflow/v1/spec_pb.js +10 -5
  63. package/ai/stigmer/agentic/workflow/v1/spec_pb.js.map +1 -1
  64. package/ai/stigmer/agentic/workflow/v1/task_kind_descriptor_pb.d.ts +430 -0
  65. package/ai/stigmer/agentic/workflow/v1/task_kind_descriptor_pb.js +172 -0
  66. package/ai/stigmer/agentic/workflow/v1/task_kind_descriptor_pb.js.map +1 -0
  67. package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_connect.d.ts +39 -0
  68. package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_connect.js +46 -0
  69. package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_connect.js.map +1 -0
  70. package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_pb.d.ts +41 -0
  71. package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_pb.js +28 -0
  72. package/ai/stigmer/agentic/workflow/v1/task_kind_registry_query_pb.js.map +1 -0
  73. package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.d.ts +186 -4
  74. package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.js +10 -2
  75. package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.js.map +1 -1
  76. package/ai/stigmer/agentic/workflow/v1/tasks/common_pb.d.ts +67 -0
  77. package/ai/stigmer/agentic/workflow/v1/tasks/common_pb.js +72 -0
  78. package/ai/stigmer/agentic/workflow/v1/tasks/common_pb.js.map +1 -0
  79. package/ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.d.ts +147 -0
  80. package/ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.js +22 -0
  81. package/ai/stigmer/agentic/workflow/v1/tasks/emit_event_pb.js.map +1 -0
  82. package/ai/stigmer/agentic/workflow/v1/tasks/eval_pb.d.ts +341 -0
  83. package/ai/stigmer/agentic/workflow/v1/tasks/eval_pb.js +128 -0
  84. package/ai/stigmer/agentic/workflow/v1/tasks/eval_pb.js.map +1 -0
  85. package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.d.ts +129 -2
  86. package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.js +56 -2
  87. package/ai/stigmer/agentic/workflow/v1/tasks/for_pb.js.map +1 -1
  88. package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.d.ts +284 -0
  89. package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.js +80 -0
  90. package/ai/stigmer/agentic/workflow/v1/tasks/human_input_pb.js.map +1 -0
  91. package/ai/stigmer/agentic/workflow/v1/tasks/llm_call_pb.d.ts +186 -0
  92. package/ai/stigmer/agentic/workflow/v1/tasks/llm_call_pb.js +18 -0
  93. package/ai/stigmer/agentic/workflow/v1/tasks/llm_call_pb.js.map +1 -0
  94. package/ai/stigmer/agentic/workflow/v1/tasks/notification_pb.d.ts +160 -0
  95. package/ai/stigmer/agentic/workflow/v1/tasks/notification_pb.js +16 -0
  96. package/ai/stigmer/agentic/workflow/v1/tasks/notification_pb.js.map +1 -0
  97. package/ai/stigmer/agentic/workflow/v1/tasks/transform_pb.d.ts +124 -0
  98. package/ai/stigmer/agentic/workflow/v1/tasks/transform_pb.js +65 -0
  99. package/ai/stigmer/agentic/workflow/v1/tasks/transform_pb.js.map +1 -0
  100. package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.d.ts +19 -0
  101. package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.js +1 -1
  102. package/ai/stigmer/agentic/workflow/v1/tasks/try_pb.js.map +1 -1
  103. package/ai/stigmer/agentic/workflow/v1/tasks/validate_pb.d.ts +257 -0
  104. package/ai/stigmer/agentic/workflow/v1/tasks/validate_pb.js +79 -0
  105. package/ai/stigmer/agentic/workflow/v1/tasks/validate_pb.js.map +1 -0
  106. package/ai/stigmer/agentic/workflowexecution/v1/api_pb.d.ts +96 -0
  107. package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js +1 -1
  108. package/ai/stigmer/agentic/workflowexecution/v1/api_pb.js.map +1 -1
  109. package/ai/stigmer/agentic/workflowexecution/v1/command_connect.d.ts +47 -0
  110. package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js +48 -1
  111. package/ai/stigmer/agentic/workflowexecution/v1/command_connect.js.map +1 -1
  112. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.d.ts +47 -1
  113. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js +1 -1
  114. package/ai/stigmer/agentic/workflowexecution/v1/command_pb.js.map +1 -1
  115. package/ai/stigmer/agentic/workflowexecution/v1/event_pb.d.ts +1287 -0
  116. package/ai/stigmer/agentic/workflowexecution/v1/event_pb.js +303 -0
  117. package/ai/stigmer/agentic/workflowexecution/v1/event_pb.js.map +1 -0
  118. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.d.ts +578 -72
  119. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js +82 -70
  120. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js.map +1 -1
  121. package/ai/stigmer/agentic/workflowexecution/v1/query_connect.d.ts +182 -0
  122. package/ai/stigmer/agentic/workflowexecution/v1/query_connect.js +184 -1
  123. package/ai/stigmer/agentic/workflowexecution/v1/query_connect.js.map +1 -1
  124. package/ai/stigmer/agentic/workflowexecution/v1/query_pb.d.ts +180 -1
  125. package/ai/stigmer/agentic/workflowexecution/v1/query_pb.js +2 -1
  126. package/ai/stigmer/agentic/workflowexecution/v1/query_pb.js.map +1 -1
  127. package/ai/stigmer/billing/v1/io_pb.d.ts +8 -0
  128. package/ai/stigmer/billing/v1/io_pb.js +1 -1
  129. package/ai/stigmer/billing/v1/io_pb.js.map +1 -1
  130. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +6 -0
  131. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +7 -1
  132. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
  133. package/ai/stigmer/platform/v1/server_info_connect.d.ts +29 -0
  134. package/ai/stigmer/platform/v1/server_info_connect.js +36 -0
  135. package/ai/stigmer/platform/v1/server_info_connect.js.map +1 -0
  136. package/ai/stigmer/platform/v1/server_info_pb.d.ts +100 -0
  137. package/ai/stigmer/platform/v1/server_info_pb.js +65 -0
  138. package/ai/stigmer/platform/v1/server_info_pb.js.map +1 -0
  139. package/package.json +1 -1
@@ -0,0 +1,128 @@
1
+ // @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
2
+ // @generated from file ai/stigmer/agentic/workflow/v1/tasks/eval.proto (package ai.stigmer.agentic.workflow.v1.tasks, syntax proto3)
3
+ /* eslint-disable */
4
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
5
+ import { file_ai_stigmer_commons_apiresource_field_options } from "../../../../commons/apiresource/field_options_pb.js";
6
+ import { file_buf_validate_validate } from "../../../../../../buf/validate/validate_pb.js";
7
+ /**
8
+ * Describes the file ai/stigmer/agentic/workflow/v1/tasks/eval.proto.
9
+ */
10
+ export const file_ai_stigmer_agentic_workflow_v1_tasks_eval = /*@__PURE__*/ fileDesc("Ci9haS9zdGlnbWVyL2FnZW50aWMvd29ya2Zsb3cvdjEvdGFza3MvZXZhbC5wcm90bxIkYWkuc3RpZ21lci5hZ2VudGljLndvcmtmbG93LnYxLnRhc2tzIlwKDUV2YWxDcml0ZXJpb24SGgoEbmFtZRgBIAEoCUIMukgJyAEBcgQQARh/Eh8KC2Rlc2NyaXB0aW9uGAIgASgJQgq6SAfIAQFyAhABEg4KBndlaWdodBgDIAEoASLIAwoORXZhbFRhc2tDb25maWcSGwoFbW9kZWwYASABKAlCDLpICcgBAXIEEAEYfxIfCgdzdWJqZWN0GAIgASgJQg66SAfIAQFyAhAB2IUsARIaCgZydWJyaWMYAyABKAlCCrpIB8gBAXICEAESSwoMc2NvcmluZ19tb2RlGAQgASgOMjUuYWkuc3RpZ21lci5hZ2VudGljLndvcmtmbG93LnYxLnRhc2tzLkV2YWxTY29yaW5nTW9kZRIqCgl0aHJlc2hvbGQYBSABKAFCF7pIFBISGQAAAAAAAPA/KQAAAAAAAAAAEkUKB29uX2ZhaWwYBiABKA4yNC5haS5zdGlnbWVyLmFnZW50aWMud29ya2Zsb3cudjEudGFza3MuRXZhbEZhaWxQb2xpY3kSFQoNZmFsbGJhY2tfdGFzaxgHIAEoCRIbCg1zeXN0ZW1fcHJvbXB0GAggASgJQgTYhSwBEkUKCGNyaXRlcmlhGAkgAygLMjMuYWkuc3RpZ21lci5hZ2VudGljLndvcmtmbG93LnYxLnRhc2tzLkV2YWxDcml0ZXJpb24SFwoPbWF4X2Nvc3RfbWljcm9zGAogASgDOgjqiywEZXZhbCpxCg5FdmFsRmFpbFBvbGljeRIgChxFVkFMX0ZBSUxfUE9MSUNZX1VOU1BFQ0lGSUVEEAASEwoPRVZBTF9GQUlMX1JBSVNFEAESFAoQRVZBTF9GQUlMX0JSQU5DSBACEhIKDkVWQUxfRkFJTF9XQVJOEAMqeQoPRXZhbFNjb3JpbmdNb2RlEiEKHUVWQUxfU0NPUklOR19NT0RFX1VOU1BFQ0lGSUVEEAASEgoORVZBTF9QQVNTX0ZBSUwQARIWChJFVkFMX05VTUVSSUNfU0NPUkUQAhIXChNFVkFMX01VTFRJX0NSSVRFUklBEANiBnByb3RvMw", [file_ai_stigmer_commons_apiresource_field_options, file_buf_validate_validate]);
11
+ /**
12
+ * Describes the message ai.stigmer.agentic.workflow.v1.tasks.EvalCriterion.
13
+ * Use `create(EvalCriterionSchema)` to create a new message.
14
+ */
15
+ export const EvalCriterionSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_workflow_v1_tasks_eval, 0);
16
+ /**
17
+ * Describes the message ai.stigmer.agentic.workflow.v1.tasks.EvalTaskConfig.
18
+ * Use `create(EvalTaskConfigSchema)` to create a new message.
19
+ */
20
+ export const EvalTaskConfigSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_workflow_v1_tasks_eval, 1);
21
+ /**
22
+ * EvalFailPolicy defines what happens when an eval task determines that
23
+ * the evaluated subject does not meet the quality threshold.
24
+ *
25
+ * @internal
26
+ * Mirrors ValidationFailPolicy from validate tasks, since evaluation
27
+ * failure is semantically analogous to validation failure — the subject
28
+ * did not pass a quality gate. The only difference is that eval uses an
29
+ * LLM judge to assess semantic quality rather than deterministic schema
30
+ * checks.
31
+ *
32
+ * @since T17 (Advanced Agentic Orchestration)
33
+ *
34
+ * @generated from enum ai.stigmer.agentic.workflow.v1.tasks.EvalFailPolicy
35
+ */
36
+ export var EvalFailPolicy;
37
+ (function (EvalFailPolicy) {
38
+ /**
39
+ * Unspecified: defaults to EVAL_FAIL_RAISE behavior.
40
+ *
41
+ * @generated from enum value: EVAL_FAIL_POLICY_UNSPECIFIED = 0;
42
+ */
43
+ EvalFailPolicy[EvalFailPolicy["EVAL_FAIL_POLICY_UNSPECIFIED"] = 0] = "EVAL_FAIL_POLICY_UNSPECIFIED";
44
+ /**
45
+ * Task fails with an evaluation error.
46
+ * The workflow transitions to error handling (try_catch or EXECUTION_FAILED).
47
+ * The error includes the judge's reasoning and score for diagnostics.
48
+ *
49
+ * @generated from enum value: EVAL_FAIL_RAISE = 1;
50
+ */
51
+ EvalFailPolicy[EvalFailPolicy["EVAL_FAIL_RAISE"] = 1] = "EVAL_FAIL_RAISE";
52
+ /**
53
+ * Branch to fallback_task instead of failing.
54
+ * Requires fallback_task to be set on the EvalTaskConfig.
55
+ * Use when evaluation failure should trigger an alternative workflow
56
+ * path (e.g., re-generation with stricter prompt, human review, retry
57
+ * with a different model).
58
+ *
59
+ * @generated from enum value: EVAL_FAIL_BRANCH = 2;
60
+ */
61
+ EvalFailPolicy[EvalFailPolicy["EVAL_FAIL_BRANCH"] = 2] = "EVAL_FAIL_BRANCH";
62
+ /**
63
+ * Log warnings but continue to the next task.
64
+ * Evaluation results (score, reasoning, criteria breakdown) are included
65
+ * in the task output, allowing downstream tasks to inspect quality
66
+ * without stopping the workflow.
67
+ * Use for advisory evaluation or when downstream logic can gracefully
68
+ * handle low-quality inputs.
69
+ *
70
+ * @generated from enum value: EVAL_FAIL_WARN = 3;
71
+ */
72
+ EvalFailPolicy[EvalFailPolicy["EVAL_FAIL_WARN"] = 3] = "EVAL_FAIL_WARN";
73
+ })(EvalFailPolicy || (EvalFailPolicy = {}));
74
+ /**
75
+ * Describes the enum ai.stigmer.agentic.workflow.v1.tasks.EvalFailPolicy.
76
+ */
77
+ export const EvalFailPolicySchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_workflow_v1_tasks_eval, 0);
78
+ /**
79
+ * EvalScoringMode defines how the LLM judge scores the subject.
80
+ *
81
+ * @internal
82
+ * The scoring mode determines the response schema enforced on the judge
83
+ * LLM and how the threshold is applied.
84
+ *
85
+ * @since T17 (Advanced Agentic Orchestration)
86
+ *
87
+ * @generated from enum ai.stigmer.agentic.workflow.v1.tasks.EvalScoringMode
88
+ */
89
+ export var EvalScoringMode;
90
+ (function (EvalScoringMode) {
91
+ /**
92
+ * Unspecified: defaults to EVAL_PASS_FAIL.
93
+ *
94
+ * @generated from enum value: EVAL_SCORING_MODE_UNSPECIFIED = 0;
95
+ */
96
+ EvalScoringMode[EvalScoringMode["EVAL_SCORING_MODE_UNSPECIFIED"] = 0] = "EVAL_SCORING_MODE_UNSPECIFIED";
97
+ /**
98
+ * Binary pass/fail judgment.
99
+ * The judge returns {pass: bool, reasoning: string}.
100
+ * Threshold is ignored — the judge's pass/fail decision is authoritative.
101
+ *
102
+ * @generated from enum value: EVAL_PASS_FAIL = 1;
103
+ */
104
+ EvalScoringMode[EvalScoringMode["EVAL_PASS_FAIL"] = 1] = "EVAL_PASS_FAIL";
105
+ /**
106
+ * Numeric score from 0.0 to 1.0.
107
+ * The judge returns {score: float, reasoning: string}.
108
+ * The subject passes if score >= threshold.
109
+ *
110
+ * @generated from enum value: EVAL_NUMERIC_SCORE = 2;
111
+ */
112
+ EvalScoringMode[EvalScoringMode["EVAL_NUMERIC_SCORE"] = 2] = "EVAL_NUMERIC_SCORE";
113
+ /**
114
+ * Multiple named criteria, each scored 0.0 to 1.0.
115
+ * The judge returns {criteria: [{name, score, reasoning}], overall_score, pass}.
116
+ * Overall score is the weighted average of criteria scores.
117
+ * The subject passes if overall_score >= threshold.
118
+ * Requires the criteria field to be populated on EvalTaskConfig.
119
+ *
120
+ * @generated from enum value: EVAL_MULTI_CRITERIA = 3;
121
+ */
122
+ EvalScoringMode[EvalScoringMode["EVAL_MULTI_CRITERIA"] = 3] = "EVAL_MULTI_CRITERIA";
123
+ })(EvalScoringMode || (EvalScoringMode = {}));
124
+ /**
125
+ * Describes the enum ai.stigmer.agentic.workflow.v1.tasks.EvalScoringMode.
126
+ */
127
+ export const EvalScoringModeSchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_workflow_v1_tasks_eval, 1);
128
+ //# sourceMappingURL=eval_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eval_pb.js","sourceRoot":"","sources":["../../../../../../../ai/stigmer/agentic/workflow/v1/tasks/eval_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,qIAAqI;AACrI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,iDAAiD,EAAE,MAAM,qDAAqD,CAAC;AACxH,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAG3F;;GAEG;AACH,MAAM,CAAC,MAAM,8CAA8C,GAAY,aAAa,CAClF,QAAQ,CAAC,gqCAAgqC,EAAE,CAAC,iDAAiD,EAAE,0BAA0B,CAAC,CAAC,CAAC;AA2C9vC;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,8CAA8C,EAAE,CAAC,CAAC,CAAC;AAkMjE;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA+B,aAAa,CAC3E,WAAW,CAAC,8CAA8C,EAAE,CAAC,CAAC,CAAC;AAEjE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAN,IAAY,cAuCX;AAvCD,WAAY,cAAc;IACxB;;;;OAIG;IACH,mGAAgC,CAAA;IAEhC;;;;;;OAMG;IACH,yEAAmB,CAAA;IAEnB;;;;;;;;OAQG;IACH,2EAAoB,CAAA;IAEpB;;;;;;;;;OASG;IACH,uEAAkB,CAAA;AACpB,CAAC,EAvCW,cAAc,KAAd,cAAc,QAuCzB;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA4B,aAAa,CACxE,QAAQ,CAAC,8CAA8C,EAAE,CAAC,CAAC,CAAC;AAE9D;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,eAoCX;AApCD,WAAY,eAAe;IACzB;;;;OAIG;IACH,uGAAiC,CAAA;IAEjC;;;;;;OAMG;IACH,yEAAkB,CAAA;IAElB;;;;;;OAMG;IACH,iFAAsB,CAAA;IAEtB;;;;;;;;OAQG;IACH,mFAAuB,CAAA;AACzB,CAAC,EApCW,eAAe,KAAf,eAAe,QAoC1B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA6B,aAAa,CAC1E,QAAQ,CAAC,8CAA8C,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 { WorkflowTask } from "../spec_pb.js";
3
3
  import type { Message } from "@bufbuild/protobuf";
4
4
  /**
@@ -9,7 +9,14 @@ export declare const file_ai_stigmer_agentic_workflow_v1_tasks_for: GenFile;
9
9
  * ForTaskConfig defines the configuration for for_each tasks that iterate over collections.
10
10
  *
11
11
  * @internal
12
- * YAML Example:
12
+ * Supports both sequential (default) and parallel execution modes. When
13
+ * max_parallelism is set, iterations run concurrently using Temporal
14
+ * workflow goroutines with bounded concurrency.
15
+ *
16
+ * Backward compatibility: all new fields default to values that preserve
17
+ * the pre-T17 sequential behavior. Existing workflows require no changes.
18
+ *
19
+ * YAML Example (sequential, unchanged from pre-T17):
13
20
  * - taskName:
14
21
  * for:
15
22
  * each: item
@@ -23,8 +30,27 @@ export declare const file_ai_stigmer_agentic_workflow_v1_tasks_for: GenFile;
23
30
  * item: ${ $data.item }
24
31
  * index: ${ $data.index }
25
32
  *
33
+ * YAML Example (parallel with bounded concurrency):
34
+ * - batchProcess:
35
+ * for:
36
+ * each: item
37
+ * in: ${ $data.items }
38
+ * max_parallelism: 5
39
+ * on_error: FOR_EACH_CONTINUE
40
+ * do:
41
+ * - callApi:
42
+ * call: http
43
+ * with:
44
+ * method: POST
45
+ * endpoint:
46
+ * uri: "https://api.example.com/process"
47
+ * body:
48
+ * item: ${ $data.item }
49
+ *
26
50
  * Reference: zigflow-dsl-pattern-catalog.md - Task Type 4
27
51
  *
52
+ * @since max_parallelism, batch_size, on_error: T17 (Advanced Agentic Orchestration)
53
+ *
28
54
  * @generated from message ai.stigmer.agentic.workflow.v1.tasks.ForTaskConfig
29
55
  */
30
56
  export type ForTaskConfig = Message<"ai.stigmer.agentic.workflow.v1.tasks.ForTaskConfig"> & {
@@ -49,9 +75,110 @@ export type ForTaskConfig = Message<"ai.stigmer.agentic.workflow.v1.tasks.ForTas
49
75
  * @generated from field: repeated ai.stigmer.agentic.workflow.v1.WorkflowTask do = 3;
50
76
  */
51
77
  do: WorkflowTask[];
78
+ /**
79
+ * Maximum number of iterations to execute concurrently.
80
+ *
81
+ * 0 (default): sequential execution — iterations run one at a time
82
+ * in input order. This preserves pre-T17 behavior.
83
+ *
84
+ * 1: effectively sequential (one at a time, but uses the parallel
85
+ * execution path — useful for testing).
86
+ *
87
+ * N > 1: up to N iterations run concurrently using Temporal workflow
88
+ * goroutines with a semaphore-based concurrency limiter. Results are
89
+ * always reassembled in original input order regardless of completion
90
+ * order.
91
+ *
92
+ * @since T17 (Advanced Agentic Orchestration)
93
+ *
94
+ * @generated from field: int32 max_parallelism = 4;
95
+ */
96
+ maxParallelism: number;
97
+ /**
98
+ * Number of items to process in each batch before moving to the next.
99
+ *
100
+ * 0 (default): no batching — all items are available for parallel
101
+ * execution (up to max_parallelism concurrent).
102
+ *
103
+ * N > 0: items are chunked into groups of N. Each chunk is fully
104
+ * processed before the next chunk begins. Within each chunk, up to
105
+ * max_parallelism iterations run concurrently.
106
+ *
107
+ * Only meaningful when max_parallelism > 0; ignored in sequential mode.
108
+ *
109
+ * @since T17 (Advanced Agentic Orchestration)
110
+ *
111
+ * @generated from field: int32 batch_size = 5;
112
+ */
113
+ batchSize: number;
114
+ /**
115
+ * Policy for handling individual iteration failures.
116
+ *
117
+ * Default: FOR_EACH_FAIL_FAST (stop on first error).
118
+ * Only meaningful when max_parallelism > 0; in sequential mode, any
119
+ * failure stops the loop regardless of this setting (pre-T17 behavior).
120
+ *
121
+ * @since T17 (Advanced Agentic Orchestration)
122
+ *
123
+ * @generated from field: ai.stigmer.agentic.workflow.v1.tasks.ForEachErrorPolicy on_error = 6;
124
+ */
125
+ onError: ForEachErrorPolicy;
52
126
  };
53
127
  /**
54
128
  * Describes the message ai.stigmer.agentic.workflow.v1.tasks.ForTaskConfig.
55
129
  * Use `create(ForTaskConfigSchema)` to create a new message.
56
130
  */
57
131
  export declare const ForTaskConfigSchema: GenMessage<ForTaskConfig>;
132
+ /**
133
+ * ForEachErrorPolicy defines what happens when an individual iteration fails
134
+ * during parallel or sequential for_each execution.
135
+ *
136
+ * @internal
137
+ * When max_parallelism > 0 (parallel mode), error handling becomes critical
138
+ * because multiple iterations are in-flight simultaneously. This policy
139
+ * governs whether the entire loop fails fast or continues processing.
140
+ *
141
+ * @since T17 (Advanced Agentic Orchestration)
142
+ *
143
+ * @generated from enum ai.stigmer.agentic.workflow.v1.tasks.ForEachErrorPolicy
144
+ */
145
+ export declare enum ForEachErrorPolicy {
146
+ /**
147
+ * Unspecified: defaults to FOR_EACH_FAIL_FAST behavior (current behavior).
148
+ *
149
+ * @generated from enum value: FOR_EACH_ERROR_POLICY_UNSPECIFIED = 0;
150
+ */
151
+ FOR_EACH_ERROR_POLICY_UNSPECIFIED = 0,
152
+ /**
153
+ * Stop on first error, cancel in-flight iterations.
154
+ * This is the default and preserves backward compatibility with the
155
+ * pre-T17 sequential behavior.
156
+ *
157
+ * @generated from enum value: FOR_EACH_FAIL_FAST = 1;
158
+ */
159
+ FOR_EACH_FAIL_FAST = 1,
160
+ /**
161
+ * Continue remaining iterations after a failure.
162
+ * Failed items are recorded in the output with their errors.
163
+ * The task output includes a summary of successes and failures.
164
+ * Use when partial results are valuable (e.g., batch API calls where
165
+ * some may fail but others should proceed).
166
+ *
167
+ * @generated from enum value: FOR_EACH_CONTINUE = 2;
168
+ */
169
+ FOR_EACH_CONTINUE = 2,
170
+ /**
171
+ * Skip failed items silently and continue.
172
+ * Failed items are excluded from the output array.
173
+ * No error details are preserved.
174
+ * Use when failures are expected and ignorable (e.g., best-effort
175
+ * enrichment of optional data).
176
+ *
177
+ * @generated from enum value: FOR_EACH_SKIP = 3;
178
+ */
179
+ FOR_EACH_SKIP = 3
180
+ }
181
+ /**
182
+ * Describes the enum ai.stigmer.agentic.workflow.v1.tasks.ForEachErrorPolicy.
183
+ */
184
+ export declare const ForEachErrorPolicySchema: GenEnum<ForEachErrorPolicy>;
@@ -1,17 +1,71 @@
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/workflow/v1/tasks/for.proto (package ai.stigmer.agentic.workflow.v1.tasks, 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_workflow_v1_spec } from "../spec_pb.js";
6
6
  import { file_ai_stigmer_commons_apiresource_field_options } from "../../../../commons/apiresource/field_options_pb.js";
7
7
  import { file_buf_validate_validate } from "../../../../../../buf/validate/validate_pb.js";
8
8
  /**
9
9
  * Describes the file ai/stigmer/agentic/workflow/v1/tasks/for.proto.
10
10
  */
11
- export const file_ai_stigmer_agentic_workflow_v1_tasks_for = /*@__PURE__*/ fileDesc("Ci5haS9zdGlnbWVyL2FnZW50aWMvd29ya2Zsb3cvdjEvdGFza3MvZm9yLnByb3RvEiRhaS5zdGlnbWVyLmFnZW50aWMud29ya2Zsb3cudjEudGFza3MilwEKDUZvclRhc2tDb25maWcSGAoEZWFjaBgBIAEoCUIKukgHyAEBcgIQARIaCgJpbhgCIAEoCUIOukgHyAEBcgIQAdiFLAESQgoCZG8YAyADKAsyLC5haS5zdGlnbWVyLmFnZW50aWMud29ya2Zsb3cudjEuV29ya2Zsb3dUYXNrQgi6SAWSAQIIAToM6ossCGZvcl9lYWNoYgZwcm90bzM", [file_ai_stigmer_agentic_workflow_v1_spec, file_ai_stigmer_commons_apiresource_field_options, file_buf_validate_validate]);
11
+ export const file_ai_stigmer_agentic_workflow_v1_tasks_for = /*@__PURE__*/ fileDesc("Ci5haS9zdGlnbWVyL2FnZW50aWMvd29ya2Zsb3cvdjEvdGFza3MvZm9yLnByb3RvEiRhaS5zdGlnbWVyLmFnZW50aWMud29ya2Zsb3cudjEudGFza3MiogIKDUZvclRhc2tDb25maWcSGAoEZWFjaBgBIAEoCUIKukgHyAEBcgIQARIaCgJpbhgCIAEoCUIOukgHyAEBcgIQAdiFLAESQgoCZG8YAyADKAsyLC5haS5zdGlnbWVyLmFnZW50aWMud29ya2Zsb3cudjEuV29ya2Zsb3dUYXNrQgi6SAWSAQIIARIgCg9tYXhfcGFyYWxsZWxpc20YBCABKAVCB7pIBBoCKAASGwoKYmF0Y2hfc2l6ZRgFIAEoBUIHukgEGgIoABJKCghvbl9lcnJvchgGIAEoDjI4LmFpLnN0aWdtZXIuYWdlbnRpYy53b3JrZmxvdy52MS50YXNrcy5Gb3JFYWNoRXJyb3JQb2xpY3k6DOqLLAhmb3JfZWFjaCp9ChJGb3JFYWNoRXJyb3JQb2xpY3kSJQohRk9SX0VBQ0hfRVJST1JfUE9MSUNZX1VOU1BFQ0lGSUVEEAASFgoSRk9SX0VBQ0hfRkFJTF9GQVNUEAESFQoRRk9SX0VBQ0hfQ09OVElOVUUQAhIRCg1GT1JfRUFDSF9TS0lQEANiBnByb3RvMw", [file_ai_stigmer_agentic_workflow_v1_spec, file_ai_stigmer_commons_apiresource_field_options, file_buf_validate_validate]);
12
12
  /**
13
13
  * Describes the message ai.stigmer.agentic.workflow.v1.tasks.ForTaskConfig.
14
14
  * Use `create(ForTaskConfigSchema)` to create a new message.
15
15
  */
16
16
  export const ForTaskConfigSchema = /*@__PURE__*/ messageDesc(file_ai_stigmer_agentic_workflow_v1_tasks_for, 0);
17
+ /**
18
+ * ForEachErrorPolicy defines what happens when an individual iteration fails
19
+ * during parallel or sequential for_each execution.
20
+ *
21
+ * @internal
22
+ * When max_parallelism > 0 (parallel mode), error handling becomes critical
23
+ * because multiple iterations are in-flight simultaneously. This policy
24
+ * governs whether the entire loop fails fast or continues processing.
25
+ *
26
+ * @since T17 (Advanced Agentic Orchestration)
27
+ *
28
+ * @generated from enum ai.stigmer.agentic.workflow.v1.tasks.ForEachErrorPolicy
29
+ */
30
+ export var ForEachErrorPolicy;
31
+ (function (ForEachErrorPolicy) {
32
+ /**
33
+ * Unspecified: defaults to FOR_EACH_FAIL_FAST behavior (current behavior).
34
+ *
35
+ * @generated from enum value: FOR_EACH_ERROR_POLICY_UNSPECIFIED = 0;
36
+ */
37
+ ForEachErrorPolicy[ForEachErrorPolicy["FOR_EACH_ERROR_POLICY_UNSPECIFIED"] = 0] = "FOR_EACH_ERROR_POLICY_UNSPECIFIED";
38
+ /**
39
+ * Stop on first error, cancel in-flight iterations.
40
+ * This is the default and preserves backward compatibility with the
41
+ * pre-T17 sequential behavior.
42
+ *
43
+ * @generated from enum value: FOR_EACH_FAIL_FAST = 1;
44
+ */
45
+ ForEachErrorPolicy[ForEachErrorPolicy["FOR_EACH_FAIL_FAST"] = 1] = "FOR_EACH_FAIL_FAST";
46
+ /**
47
+ * Continue remaining iterations after a failure.
48
+ * Failed items are recorded in the output with their errors.
49
+ * The task output includes a summary of successes and failures.
50
+ * Use when partial results are valuable (e.g., batch API calls where
51
+ * some may fail but others should proceed).
52
+ *
53
+ * @generated from enum value: FOR_EACH_CONTINUE = 2;
54
+ */
55
+ ForEachErrorPolicy[ForEachErrorPolicy["FOR_EACH_CONTINUE"] = 2] = "FOR_EACH_CONTINUE";
56
+ /**
57
+ * Skip failed items silently and continue.
58
+ * Failed items are excluded from the output array.
59
+ * No error details are preserved.
60
+ * Use when failures are expected and ignorable (e.g., best-effort
61
+ * enrichment of optional data).
62
+ *
63
+ * @generated from enum value: FOR_EACH_SKIP = 3;
64
+ */
65
+ ForEachErrorPolicy[ForEachErrorPolicy["FOR_EACH_SKIP"] = 3] = "FOR_EACH_SKIP";
66
+ })(ForEachErrorPolicy || (ForEachErrorPolicy = {}));
67
+ /**
68
+ * Describes the enum ai.stigmer.agentic.workflow.v1.tasks.ForEachErrorPolicy.
69
+ */
70
+ export const ForEachErrorPolicySchema = /*@__PURE__*/ enumDesc(file_ai_stigmer_agentic_workflow_v1_tasks_for, 0);
17
71
  //# sourceMappingURL=for_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"for_pb.js","sourceRoot":"","sources":["../../../../../../../ai/stigmer/agentic/workflow/v1/tasks/for_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,oIAAoI;AACpI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,wCAAwC,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,iDAAiD,EAAE,MAAM,qDAAqD,CAAC;AACxH,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAG3F;;GAEG;AACH,MAAM,CAAC,MAAM,6CAA6C,GAAY,aAAa,CACjF,QAAQ,CAAC,6UAA6U,EAAE,CAAC,wCAAwC,EAAE,iDAAiD,EAAE,0BAA0B,CAAC,CAAC,CAAC;AAkDrd;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"for_pb.js","sourceRoot":"","sources":["../../../../../../../ai/stigmer/agentic/workflow/v1/tasks/for_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,oIAAoI;AACpI,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAE,wCAAwC,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,iDAAiD,EAAE,MAAM,qDAAqD,CAAC;AACxH,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAG3F;;GAEG;AACH,MAAM,CAAC,MAAM,6CAA6C,GAAY,aAAa,CACjF,QAAQ,CAAC,grBAAgrB,EAAE,CAAC,wCAAwC,EAAE,iDAAiD,EAAE,0BAA0B,CAAC,CAAC,CAAC;AA+HxzB;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CACzE,WAAW,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAC;AAEhE;;;;;;;;;;;;GAYG;AACH,MAAM,CAAN,IAAY,kBAsCX;AAtCD,WAAY,kBAAkB;IAC5B;;;;OAIG;IACH,qHAAqC,CAAA;IAErC;;;;;;OAMG;IACH,uFAAsB,CAAA;IAEtB;;;;;;;;OAQG;IACH,qFAAqB,CAAA;IAErB;;;;;;;;OAQG;IACH,6EAAiB,CAAA;AACnB,CAAC,EAtCW,kBAAkB,KAAlB,kBAAkB,QAsC7B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAgC,aAAa,CAChF,QAAQ,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,284 @@
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
3
+ /**
4
+ * Describes the file ai/stigmer/agentic/workflow/v1/tasks/human_input.proto.
5
+ */
6
+ export declare const file_ai_stigmer_agentic_workflow_v1_tasks_human_input: GenFile;
7
+ /**
8
+ * HumanInputOutcome defines a named outcome that a reviewer can select
9
+ * when responding to a human_input task.
10
+ *
11
+ * @internal
12
+ * Outcomes enable rich branching beyond binary approve/deny. Each outcome
13
+ * can route to a different downstream task via the `then` field, enabling
14
+ * patterns like "approve → continue", "deny → re_classify", "needs_revision
15
+ * → gather_more_context".
16
+ *
17
+ * When no outcomes are defined, the task defaults to binary approve/deny
18
+ * behavior: approve continues to the next task, deny fails the task.
19
+ *
20
+ * @since T03 (P0 New Task Types)
21
+ *
22
+ * @generated from message ai.stigmer.agentic.workflow.v1.tasks.HumanInputOutcome
23
+ */
24
+ export type HumanInputOutcome = Message<"ai.stigmer.agentic.workflow.v1.tasks.HumanInputOutcome"> & {
25
+ /**
26
+ * Outcome identifier used in task output and routing.
27
+ * Examples: "approve", "deny", "needs_revision", "escalate", "defer"
28
+ * Must be unique within the outcomes list.
29
+ *
30
+ * @generated from field: string name = 1;
31
+ */
32
+ name: string;
33
+ /**
34
+ * Human-readable label for the button/action in the approval UI.
35
+ * When empty, the UI displays the capitalized name.
36
+ * Examples: "Approve Escalation", "Reject — Not Customer-Impacting"
37
+ *
38
+ * @generated from field: string label = 2;
39
+ */
40
+ label: string;
41
+ /**
42
+ * Task to branch to when this outcome is selected.
43
+ * Must reference a valid task name in the same workflow.
44
+ * When empty, the workflow continues to the next task in sequence.
45
+ *
46
+ * @generated from field: string then = 3;
47
+ */
48
+ then: string;
49
+ };
50
+ /**
51
+ * Describes the message ai.stigmer.agentic.workflow.v1.tasks.HumanInputOutcome.
52
+ * Use `create(HumanInputOutcomeSchema)` to create a new message.
53
+ */
54
+ export declare const HumanInputOutcomeSchema: GenMessage<HumanInputOutcome>;
55
+ /**
56
+ * HumanInputTaskConfig defines the configuration for human_input tasks that
57
+ * pause workflow execution to collect typed input or approval from a human
58
+ * reviewer, then resume based on the reviewer's response.
59
+ *
60
+ * @internal
61
+ * Use human_input when a workflow needs human judgment before proceeding:
62
+ * approvals before API calls, sign-off before publishing, confirmation
63
+ * before customer-impacting actions, or structured data collection from
64
+ * a human operator.
65
+ *
66
+ * This is a workflow-level approval gate — distinct from agent-level HITL
67
+ * (tool approval inside an agent session). Workflow-level gates are visible
68
+ * in the execution viewer as explicit tasks with input/output/timing, and
69
+ * they can route to different branches based on the reviewer's decision.
70
+ *
71
+ * Runtime implementation (T13) will use Temporal signals for workflow
72
+ * resumption. The proto definition is intentionally runtime-agnostic.
73
+ *
74
+ * The reviewer's response (selected outcome + form data) becomes the task
75
+ * output, accessible via export:
76
+ * {
77
+ * "outcome": "approve",
78
+ * "form_data": { <validated form response if form_schema is set> },
79
+ * "reviewer": "<user who responded>",
80
+ * "responded_at": "<ISO 8601 timestamp>"
81
+ * }
82
+ *
83
+ * YAML Example (approval gate with custom outcomes):
84
+ * - manager_approval:
85
+ * human_input:
86
+ * prompt: "Customer-impacting incident classified as ${ $context.triage.severity }. Approve escalation?"
87
+ * form_schema:
88
+ * type: object
89
+ * properties:
90
+ * notes:
91
+ * type: string
92
+ * description: "Optional notes for the engineering team"
93
+ * priority_override:
94
+ * type: string
95
+ * enum: [P1, P2, P3]
96
+ * outcomes:
97
+ * - name: approve
98
+ * label: "Approve Escalation"
99
+ * - name: deny
100
+ * label: "Reject — Not Customer-Impacting"
101
+ * then: re_classify
102
+ * - name: needs_revision
103
+ * label: "Needs More Info"
104
+ * then: gather_more_context
105
+ * approvers:
106
+ * - "team:engineering-leads"
107
+ * timeout: 86400
108
+ * on_timeout: HUMAN_INPUT_TIMEOUT_ESCALATE
109
+ * notification_channels:
110
+ * - "slack:#incident-approvals"
111
+ * export:
112
+ * as: "${ . }"
113
+ *
114
+ * YAML Example (simple binary approval, no form):
115
+ * - confirm_publish:
116
+ * human_input:
117
+ * prompt: "Ready to publish ${ $context.document.title } to production?"
118
+ * approvers:
119
+ * - "role:content-admin"
120
+ * timeout: 3600
121
+ * on_timeout: HUMAN_INPUT_TIMEOUT_FAIL
122
+ * export:
123
+ * as: "${ . }"
124
+ *
125
+ * @generated from message ai.stigmer.agentic.workflow.v1.tasks.HumanInputTaskConfig
126
+ */
127
+ export type HumanInputTaskConfig = Message<"ai.stigmer.agentic.workflow.v1.tasks.HumanInputTaskConfig"> & {
128
+ /**
129
+ * Message shown to the reviewer explaining what needs approval or input.
130
+ * Supports ${ } expression interpolation for injecting workflow context.
131
+ * Example: "Approve escalation for ticket ${ $context.ticket.id }?"
132
+ *
133
+ * @generated from field: string prompt = 1;
134
+ */
135
+ prompt: string;
136
+ /**
137
+ * JSON Schema defining the input form rendered to the reviewer.
138
+ *
139
+ * When set, the approval UI renders a typed form based on this schema.
140
+ * The reviewer's form response is validated against the schema before
141
+ * the task completes, and the validated data appears in the task output
142
+ * under the "form_data" key.
143
+ *
144
+ * When not set, the reviewer sees only the outcome buttons (approve/deny
145
+ * or custom outcomes) without a data entry form.
146
+ *
147
+ * Uses the same google.protobuf.Struct + JSON Schema pattern as
148
+ * AgentCallOutputContract.schema and LlmCallTaskConfig.response_schema.
149
+ *
150
+ * @generated from field: google.protobuf.Struct form_schema = 2;
151
+ */
152
+ formSchema?: JsonObject;
153
+ /**
154
+ * Named outcomes that the reviewer can select.
155
+ *
156
+ * Each outcome represents a decision the reviewer can make, with optional
157
+ * routing to a different downstream task. This enables rich branching
158
+ * beyond binary approve/deny.
159
+ *
160
+ * When empty, the task defaults to binary behavior:
161
+ * - "approve": task completes, workflow continues to next task
162
+ * - "deny": task fails (enters try_catch or EXECUTION_FAILED)
163
+ *
164
+ * When custom outcomes are defined, the first outcome is used as the
165
+ * default for HUMAN_INPUT_TIMEOUT_APPROVE, and the last outcome is used
166
+ * as the default for HUMAN_INPUT_TIMEOUT_DENY.
167
+ *
168
+ * @generated from field: repeated ai.stigmer.agentic.workflow.v1.tasks.HumanInputOutcome outcomes = 3;
169
+ */
170
+ outcomes: HumanInputOutcome[];
171
+ /**
172
+ * Approver identifiers — who is allowed to respond to this task.
173
+ *
174
+ * Supports user IDs, team slugs, and role names. Format examples:
175
+ * - "user:jane@acme.com" — specific user
176
+ * - "team:engineering-leads" — any member of the team
177
+ * - "role:content-admin" — any user with the role
178
+ *
179
+ * When empty, any authenticated user can respond.
180
+ * Resolution of these identifiers is a runtime concern (T13).
181
+ *
182
+ * @generated from field: repeated string approvers = 4;
183
+ */
184
+ approvers: string[];
185
+ /**
186
+ * Timeout in seconds before the on_timeout policy applies.
187
+ * Default: 0 (no timeout — the task waits indefinitely).
188
+ * Max: 2592000 (30 days).
189
+ *
190
+ * A timeout of 0 means the workflow will wait until a human responds.
191
+ * For production workflows, setting a timeout with an appropriate
192
+ * on_timeout policy is strongly recommended.
193
+ *
194
+ * @generated from field: int32 timeout = 5;
195
+ */
196
+ timeout: number;
197
+ /**
198
+ * Policy applied when the timeout expires without a response.
199
+ * Only meaningful when timeout > 0; ignored when timeout is 0.
200
+ * Default: HUMAN_INPUT_TIMEOUT_FAIL (task fails with timeout error).
201
+ *
202
+ * @generated from field: ai.stigmer.agentic.workflow.v1.tasks.HumanInputTimeoutPolicy on_timeout = 6;
203
+ */
204
+ onTimeout: HumanInputTimeoutPolicy;
205
+ /**
206
+ * Channel identifiers for sending approval request notifications.
207
+ *
208
+ * When the task starts, the runtime sends notifications through these
209
+ * channels to alert potential approvers. Format examples:
210
+ * - "slack:#approvals" — Slack channel
211
+ * - "email:ops@acme.com" — email address
212
+ * - "teams:#incident-response" — Microsoft Teams channel
213
+ *
214
+ * The format and routing of notifications is a runtime concern (T13).
215
+ * The proto carries the identifiers; the runtime resolves them to
216
+ * actual notification providers configured in the workflow instance's
217
+ * environment.
218
+ *
219
+ * @generated from field: repeated string notification_channels = 7;
220
+ */
221
+ notificationChannels: string[];
222
+ };
223
+ /**
224
+ * Describes the message ai.stigmer.agentic.workflow.v1.tasks.HumanInputTaskConfig.
225
+ * Use `create(HumanInputTaskConfigSchema)` to create a new message.
226
+ */
227
+ export declare const HumanInputTaskConfigSchema: GenMessage<HumanInputTaskConfig>;
228
+ /**
229
+ * HumanInputTimeoutPolicy defines what happens when a human_input task's
230
+ * timeout expires without a response from any approver.
231
+ *
232
+ * @internal
233
+ * Timeout behavior is a workflow design decision: should the workflow fail
234
+ * (safest), auto-approve (for non-critical gates), auto-deny (for opt-in
235
+ * flows), or escalate to a different handler?
236
+ *
237
+ * @since T03 (P0 New Task Types)
238
+ *
239
+ * @generated from enum ai.stigmer.agentic.workflow.v1.tasks.HumanInputTimeoutPolicy
240
+ */
241
+ export declare enum HumanInputTimeoutPolicy {
242
+ /**
243
+ * Unspecified: defaults to HUMAN_INPUT_TIMEOUT_FAIL behavior.
244
+ *
245
+ * @generated from enum value: HUMAN_INPUT_TIMEOUT_POLICY_UNSPECIFIED = 0;
246
+ */
247
+ HUMAN_INPUT_TIMEOUT_POLICY_UNSPECIFIED = 0,
248
+ /**
249
+ * Task fails with a timeout error.
250
+ * The workflow transitions to error handling (try_catch or EXECUTION_FAILED).
251
+ *
252
+ * @generated from enum value: HUMAN_INPUT_TIMEOUT_FAIL = 1;
253
+ */
254
+ HUMAN_INPUT_TIMEOUT_FAIL = 1,
255
+ /**
256
+ * Auto-approve: the task completes as if the reviewer selected the first
257
+ * outcome (or "approve" if no outcomes are defined).
258
+ * Task output: {"outcome": "approve", "auto_resolved": true, "reason": "timeout"}
259
+ *
260
+ * @generated from enum value: HUMAN_INPUT_TIMEOUT_APPROVE = 2;
261
+ */
262
+ HUMAN_INPUT_TIMEOUT_APPROVE = 2,
263
+ /**
264
+ * Auto-deny: the task completes as if the reviewer selected "deny"
265
+ * (or the last outcome if custom outcomes are defined).
266
+ * Task output: {"outcome": "deny", "auto_resolved": true, "reason": "timeout"}
267
+ *
268
+ * @generated from enum value: HUMAN_INPUT_TIMEOUT_DENY = 3;
269
+ */
270
+ HUMAN_INPUT_TIMEOUT_DENY = 3,
271
+ /**
272
+ * Escalate: branch to a named escalation task.
273
+ * Requires a corresponding outcome with then set, or a try_catch handler.
274
+ * Use when timeout should trigger a different workflow path rather than
275
+ * a simple approve/deny decision.
276
+ *
277
+ * @generated from enum value: HUMAN_INPUT_TIMEOUT_ESCALATE = 4;
278
+ */
279
+ HUMAN_INPUT_TIMEOUT_ESCALATE = 4
280
+ }
281
+ /**
282
+ * Describes the enum ai.stigmer.agentic.workflow.v1.tasks.HumanInputTimeoutPolicy.
283
+ */
284
+ export declare const HumanInputTimeoutPolicySchema: GenEnum<HumanInputTimeoutPolicy>;