@grepr/cli 1.14.13-15e1f25 → 1.15.0-c0f7761
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/build/dist/commands/job-draft-command.d.ts.map +1 -1
- package/build/dist/commands/job-draft-command.js +6 -71
- package/build/dist/commands/job-draft-command.js.map +1 -1
- package/build/dist/docs-index/index.json +1 -1
- package/build/dist/grepr.d.ts.map +1 -1
- package/build/dist/grepr.js +0 -2
- package/build/dist/grepr.js.map +1 -1
- package/build/dist/lib/backfill.js +4 -8
- package/build/dist/lib/backfill.js.map +1 -1
- package/build/dist/lib/job-patch.d.ts +15 -31
- package/build/dist/lib/job-patch.d.ts.map +1 -1
- package/build/dist/lib/job-patch.js +39 -709
- package/build/dist/lib/job-patch.js.map +1 -1
- package/build/dist/lib/job-plan.d.ts +3 -6
- package/build/dist/lib/job-plan.d.ts.map +1 -1
- package/build/dist/lib/job-plan.js +5 -55
- package/build/dist/lib/job-plan.js.map +1 -1
- package/build/dist/lib/option-parsers.d.ts +0 -5
- package/build/dist/lib/option-parsers.d.ts.map +1 -1
- package/build/dist/lib/option-parsers.js +0 -7
- package/build/dist/lib/option-parsers.js.map +1 -1
- package/build/dist/lib/signal-source.d.ts +1 -1
- package/build/dist/lib/signal-source.d.ts.map +1 -1
- package/build/dist/lib/signal-source.js +10 -69
- package/build/dist/lib/signal-source.js.map +1 -1
- package/build/dist/openapi/openApiTypes.d.ts +44 -1
- package/build/dist/openapi/openApiTypes.d.ts.map +1 -1
- package/build/dist/openapi/openApiTypes.js +5 -0
- package/build/dist/openapi/openApiTypes.js.map +1 -1
- package/build/dist/openapi-docs/schemas/ChangeFinding.md +1 -1
- package/build/dist/openapi-docs/schemas/PipelineChangeRequest.md +4 -0
- package/build/dist/types.d.ts +8 -37
- package/build/dist/types.d.ts.map +1 -1
- package/build/dist/types.js +0 -69
- package/build/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/build/dist/commands/job-to-test-command.d.ts +0 -74
- package/build/dist/commands/job-to-test-command.d.ts.map +0 -1
- package/build/dist/commands/job-to-test-command.js +0 -161
- package/build/dist/commands/job-to-test-command.js.map +0 -1
- package/build/dist/lib/job-graph-log-pipeline-constants.d.ts +0 -12
- package/build/dist/lib/job-graph-log-pipeline-constants.d.ts.map +0 -1
- package/build/dist/lib/job-graph-log-pipeline-constants.js +0 -16
- package/build/dist/lib/job-graph-log-pipeline-constants.js.map +0 -1
- package/build/dist/lib/job-graph-transformer.d.ts +0 -119
- package/build/dist/lib/job-graph-transformer.d.ts.map +0 -1
- package/build/dist/lib/job-graph-transformer.js +0 -767
- package/build/dist/lib/job-graph-transformer.js.map +0 -1
- package/build/dist/lib/job-graph-utils.d.ts +0 -50
- package/build/dist/lib/job-graph-utils.d.ts.map +0 -1
- package/build/dist/lib/job-graph-utils.js +0 -90
- package/build/dist/lib/job-graph-utils.js.map +0 -1
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { CreateLogsBackfillJobDataType, CreateSpansBackfillJobDataType,
|
|
2
|
-
import { parseEdge } from './job-graph-utils.js';
|
|
1
|
+
import { CreateLogsBackfillJobDataType, CreateSpansBackfillJobDataType, TemplateOperationType } from '../openapi/openApiTypes.js';
|
|
3
2
|
const LOG_REDUCER_TEMPLATE_NAME = 'log-reducer-job-graph-template';
|
|
4
3
|
const TRACE_REDUCER_TEMPLATE_NAME = 'trace-reducer-job-graph-template';
|
|
5
|
-
const RAW_LOGS_SINK_NAME_PREFIX = 'raw_data_sink';
|
|
6
4
|
export function parseSignalDataType(value) {
|
|
7
5
|
switch (value) {
|
|
8
6
|
case CreateLogsBackfillJobDataType.logs:
|
|
@@ -35,8 +33,7 @@ export async function resolveSignalSource(options, apiClient, resolutionOptions
|
|
|
35
33
|
dataType: options.dataType ?? CreateLogsBackfillJobDataType.logs,
|
|
36
34
|
datasetId: options.datasetId,
|
|
37
35
|
teamIds: [],
|
|
38
|
-
sinkOperations: []
|
|
39
|
-
postReducerSqlOperations: []
|
|
36
|
+
sinkOperations: []
|
|
40
37
|
};
|
|
41
38
|
}
|
|
42
39
|
const dataset = await resolveDatasetFromOptions(options, apiClient);
|
|
@@ -44,8 +41,7 @@ export async function resolveSignalSource(options, apiClient, resolutionOptions
|
|
|
44
41
|
dataType: options.dataType ?? CreateLogsBackfillJobDataType.logs,
|
|
45
42
|
datasetId: dataset.id,
|
|
46
43
|
teamIds: includeTeamIds ? dataset.teamIds ?? [] : [],
|
|
47
|
-
sinkOperations: []
|
|
48
|
-
postReducerSqlOperations: []
|
|
44
|
+
sinkOperations: []
|
|
49
45
|
};
|
|
50
46
|
}
|
|
51
47
|
const job = await apiClient.getJob(options.jobId);
|
|
@@ -74,10 +70,12 @@ async function inferJobSource(job, apiClient) {
|
|
|
74
70
|
throw new Error(`Source job ${job.id ?? job.name} has an ambiguous pipeline definition`);
|
|
75
71
|
}
|
|
76
72
|
const templateOperation = templateOperations[0];
|
|
77
|
-
if (templateOperation) {
|
|
78
|
-
|
|
73
|
+
if (!templateOperation) {
|
|
74
|
+
throw new Error(`Source job ${job.id ?? job.name} uses a raw job graph (no template-operation vertex). ` +
|
|
75
|
+
'--job-id supports only template-backed pipelines. ' +
|
|
76
|
+
'Pass --dataset-id or --dataset-name instead. For a trace pipeline, also pass --data-type spans.');
|
|
79
77
|
}
|
|
80
|
-
return
|
|
78
|
+
return inferTemplateJobSource(templateOperation, apiClient);
|
|
81
79
|
}
|
|
82
80
|
async function inferTemplateJobSource(operation, apiClient) {
|
|
83
81
|
const template = await apiClient.getTemplate(operation.templateId, operation.templateVersion);
|
|
@@ -95,8 +93,7 @@ async function inferTemplateJobSource(operation, apiClient) {
|
|
|
95
93
|
datasetId,
|
|
96
94
|
sinkOperations: sinks
|
|
97
95
|
.map(wrapper => wrapper.sink)
|
|
98
|
-
.filter(isOperation)
|
|
99
|
-
postReducerSqlOperations: []
|
|
96
|
+
.filter(isOperation)
|
|
100
97
|
};
|
|
101
98
|
}
|
|
102
99
|
case TRACE_REDUCER_TEMPLATE_NAME: {
|
|
@@ -110,57 +107,13 @@ async function inferTemplateJobSource(operation, apiClient) {
|
|
|
110
107
|
sinkOperations: (spansInput.sinks ?? [])
|
|
111
108
|
.map(wrapper => wrapper.sink)
|
|
112
109
|
.filter(isOperation),
|
|
113
|
-
|
|
114
|
-
? [spansInput.sqlOperations.postReducer.sqlOperation]
|
|
115
|
-
: []
|
|
110
|
+
postReducerSqlOperation: spansInput.sqlOperations?.postReducer?.sqlOperation
|
|
116
111
|
};
|
|
117
112
|
}
|
|
118
113
|
default:
|
|
119
114
|
throw new Error(`Source job uses unsupported pipeline template ${template.name} (${operation.templateId})`);
|
|
120
115
|
}
|
|
121
116
|
}
|
|
122
|
-
function inferRawJobSource(job) {
|
|
123
|
-
const operations = job.jobGraph.vertices;
|
|
124
|
-
const rawLogSinks = operations.filter(isRawLogsSink);
|
|
125
|
-
const traceReducers = operations.filter(isTraceReducerWithDataset);
|
|
126
|
-
if (rawLogSinks.length > 0 && traceReducers.length > 0) {
|
|
127
|
-
throw new Error(`Source job ${job.id ?? job.name} contains both logs and spans datasets`);
|
|
128
|
-
}
|
|
129
|
-
if (rawLogSinks.length > 1) {
|
|
130
|
-
throw new Error(`Source job ${job.id ?? job.name} has multiple raw logs datasets; ` +
|
|
131
|
-
'use --dataset-id to select one explicitly');
|
|
132
|
-
}
|
|
133
|
-
if (traceReducers.length > 1) {
|
|
134
|
-
throw new Error(`Source job ${job.id ?? job.name} has multiple spans datasets; ` +
|
|
135
|
-
'use --dataset-id to select one explicitly');
|
|
136
|
-
}
|
|
137
|
-
const rawLogSink = rawLogSinks[0];
|
|
138
|
-
if (rawLogSinks.length === 1 && rawLogSink) {
|
|
139
|
-
return {
|
|
140
|
-
dataType: CreateLogsBackfillJobDataType.logs,
|
|
141
|
-
datasetId: rawLogSink.datasetId,
|
|
142
|
-
sinkOperations: operations,
|
|
143
|
-
postReducerSqlOperations: []
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
const traceReducer = traceReducers[0];
|
|
147
|
-
if (traceReducers.length === 1 && traceReducer) {
|
|
148
|
-
const postReducerSqlOperations = job.jobGraph.vertices
|
|
149
|
-
.filter(isSqlOperation)
|
|
150
|
-
.filter(operation => job.jobGraph.edges.some(edge => {
|
|
151
|
-
const parsed = parseEdge(edge);
|
|
152
|
-
return parsed.sourceVertex === traceReducer.name &&
|
|
153
|
-
parsed.targetVertex === operation.name;
|
|
154
|
-
}));
|
|
155
|
-
return {
|
|
156
|
-
dataType: CreateSpansBackfillJobDataType.spans,
|
|
157
|
-
datasetId: traceReducer.datasetId,
|
|
158
|
-
sinkOperations: operations,
|
|
159
|
-
postReducerSqlOperations
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
throw new Error(`Source job ${job.id ?? job.name} has no supported raw logs or spans dataset`);
|
|
163
|
-
}
|
|
164
117
|
async function resolveDatasetFromOptions(options, apiClient) {
|
|
165
118
|
if (options.datasetId) {
|
|
166
119
|
return resolveDataset(options.datasetId, 'id', apiClient);
|
|
@@ -186,18 +139,6 @@ function requireDatasetName(datasetName) {
|
|
|
186
139
|
function isTemplateOperation(operation) {
|
|
187
140
|
return operation.type === TemplateOperationType.template_operation;
|
|
188
141
|
}
|
|
189
|
-
function isSqlOperation(operation) {
|
|
190
|
-
return operation.type === SqlOperationType.sql_operation;
|
|
191
|
-
}
|
|
192
|
-
function isRawLogsSink(operation) {
|
|
193
|
-
return operation.type === LogsIcebergTableSinkType.logs_iceberg_table_sink &&
|
|
194
|
-
operation.name.startsWith(RAW_LOGS_SINK_NAME_PREFIX);
|
|
195
|
-
}
|
|
196
|
-
function isTraceReducerWithDataset(operation) {
|
|
197
|
-
return operation.type === TraceReducerType.trace_reducer &&
|
|
198
|
-
typeof operation.datasetId === 'string' &&
|
|
199
|
-
operation.datasetId.length > 0;
|
|
200
|
-
}
|
|
201
142
|
function isOperation(operation) {
|
|
202
143
|
return operation !== undefined;
|
|
203
144
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signal-source.js","sourceRoot":"","sources":["../../../src/main/typescript/lib/signal-source.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,
|
|
1
|
+
{"version":3,"file":"signal-source.js","sourceRoot":"","sources":["../../../src/main/typescript/lib/signal-source.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,qBAAqB,EAUtB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,yBAAyB,GAAG,gCAAgC,CAAC;AACnE,MAAM,2BAA2B,GAAG,kCAAkC,CAAC;AAiCvE,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,6BAA6B,CAAC,IAAI;YACrC,OAAO,6BAA6B,CAAC,IAAI,CAAC;QAC5C,KAAK,8BAA8B,CAAC,KAAK;YACvC,OAAO,8BAA8B,CAAC,KAAK,CAAC;QAC9C;YACE,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC/D,CAAC;AACH,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,OAA2B;IACpE,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IAErE,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;QAC7C,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IACzE,CAAC;IACD,IAAI,MAAM,IAAI,UAAU,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IACzE,CAAC;IACD,IAAI,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,CAAC;AACH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?: number;
|
|
4897
|
+
/**
|
|
4898
|
+
* Format: int32
|
|
4899
|
+
* @description How many of the agent's signal-triggered investigations may wait in the queue; past it, intake drops the agent's new signals without recording an investigation. Scheduled and manual runs do not count. Null falls back to 1000, and an update that leaves it out keeps it.
|
|
4900
|
+
* @default 1000
|
|
4901
|
+
*/
|
|
4902
|
+
maxQueuedInvestigations?: number;
|
|
4897
4903
|
/**
|
|
4898
4904
|
* Format: int32
|
|
4899
4905
|
* @default 3000000
|
|
@@ -4913,6 +4919,11 @@ export interface components {
|
|
|
4913
4919
|
AgentConfigPayload: {
|
|
4914
4920
|
/** Format: int64 */
|
|
4915
4921
|
agentMaxTokens?: number;
|
|
4922
|
+
/**
|
|
4923
|
+
* @description What the agent is for; null for a triage agent.
|
|
4924
|
+
* @enum {string}
|
|
4925
|
+
*/
|
|
4926
|
+
agentType?: AgentConfigPayloadAgentType;
|
|
4916
4927
|
/** Format: int32 */
|
|
4917
4928
|
automaticSignalMaxQueueAgeMinutes?: number;
|
|
4918
4929
|
/** @enum {string} */
|
|
@@ -4935,12 +4946,19 @@ export interface components {
|
|
|
4935
4946
|
issuePickup?: components["schemas"]["AgentIssuePickup"];
|
|
4936
4947
|
/** Format: int32 */
|
|
4937
4948
|
maxConcurrentInvestigations?: number;
|
|
4949
|
+
/**
|
|
4950
|
+
* Format: int32
|
|
4951
|
+
* @description How many of the agent's signal-triggered investigations may wait in the queue; past it, intake drops the agent's new signals without recording an investigation. Scheduled and manual runs do not count. Null falls back to 1000, and an update that leaves it out keeps it.
|
|
4952
|
+
*/
|
|
4953
|
+
maxQueuedInvestigations?: number;
|
|
4938
4954
|
/** Format: int32 */
|
|
4939
4955
|
maxTokens?: number;
|
|
4940
4956
|
/** Format: int32 */
|
|
4941
4957
|
maxTurns?: number;
|
|
4942
4958
|
memoryConfiguration?: components["schemas"]["AgentMemoryConfiguration"];
|
|
4943
4959
|
modelConfiguration: components["schemas"]["ModelConfiguration"];
|
|
4960
|
+
/** @description For the churn specialist only: whether it also runs on a pipeline that is not in churn mode. Grepr creates it with true, and unset means true; an update that leaves it out keeps it, and other agents have none. */
|
|
4961
|
+
runOutsideChurnMode?: boolean;
|
|
4944
4962
|
schedule?: components["schemas"]["AgentSchedule"];
|
|
4945
4963
|
serviceAccountId: string;
|
|
4946
4964
|
systemPrompt: string;
|
|
@@ -4972,6 +4990,11 @@ export interface components {
|
|
|
4972
4990
|
issuePickup: components["schemas"]["AgentIssuePickup"];
|
|
4973
4991
|
/** Format: int32 */
|
|
4974
4992
|
maxConcurrentInvestigations?: number;
|
|
4993
|
+
/**
|
|
4994
|
+
* Format: int32
|
|
4995
|
+
* @description How many of the agent's signal-triggered investigations may wait in the queue; past it, intake drops the agent's new signals without recording an investigation. Scheduled and manual runs do not count. Null falls back to 1000, and an update that leaves it out keeps it.
|
|
4996
|
+
*/
|
|
4997
|
+
maxQueuedInvestigations?: number;
|
|
4975
4998
|
/** Format: int32 */
|
|
4976
4999
|
maxTokens?: number;
|
|
4977
5000
|
/** Format: int32 */
|
|
@@ -4979,6 +5002,8 @@ export interface components {
|
|
|
4979
5002
|
memoryConfiguration?: components["schemas"]["AgentMemoryConfiguration"];
|
|
4980
5003
|
modelConfiguration: components["schemas"]["ModelConfiguration"];
|
|
4981
5004
|
name: string;
|
|
5005
|
+
/** @description For the churn specialist only: whether it also runs on a pipeline that is not in churn mode. Grepr creates it with true, and unset means true; an update that leaves it out keeps it, and other agents have none. */
|
|
5006
|
+
runOutsideChurnMode?: boolean;
|
|
4982
5007
|
schedule?: components["schemas"]["AgentSchedule"];
|
|
4983
5008
|
serviceAccountId: string;
|
|
4984
5009
|
systemPrompt: string;
|
|
@@ -5119,6 +5144,8 @@ export interface components {
|
|
|
5119
5144
|
recordPolicy?: AgentMemoryPolicyRecordPolicy;
|
|
5120
5145
|
};
|
|
5121
5146
|
AgentPipelineSubscription: {
|
|
5147
|
+
/** Format: date-time */
|
|
5148
|
+
churnModeSince?: string;
|
|
5122
5149
|
jobId: string;
|
|
5123
5150
|
/** Format: date-time */
|
|
5124
5151
|
pausedAt?: string;
|
|
@@ -6800,6 +6827,11 @@ export interface components {
|
|
|
6800
6827
|
*/
|
|
6801
6828
|
startDate: string;
|
|
6802
6829
|
};
|
|
6830
|
+
CoveredSignal: {
|
|
6831
|
+
fix?: string;
|
|
6832
|
+
maskedMessage?: string;
|
|
6833
|
+
message?: string;
|
|
6834
|
+
};
|
|
6803
6835
|
CreateAgentSessionAnalyticsJob: {
|
|
6804
6836
|
datasetId: string;
|
|
6805
6837
|
/** Format: date-time */
|
|
@@ -8684,6 +8716,7 @@ export interface components {
|
|
|
8684
8716
|
InvestigationTranscript: {
|
|
8685
8717
|
actions?: components["schemas"]["InvestigationAction"][];
|
|
8686
8718
|
agentId?: string;
|
|
8719
|
+
coveredSignals?: components["schemas"]["CoveredSignal"][];
|
|
8687
8720
|
/** Format: date-time */
|
|
8688
8721
|
createdAt?: string;
|
|
8689
8722
|
decision?: components["schemas"]["DecisionOutcome"];
|
|
@@ -11886,6 +11919,11 @@ export interface components {
|
|
|
11886
11919
|
PipelineChangeRequest: {
|
|
11887
11920
|
/** @description Whether to apply the change directly (true) or record it as a suggestion for a human to review (false). This expresses intent only: the server enforces the proposing agent's approval mode, so a suggest-only agent's change is always recorded as a suggestion no matter what is passed here. */
|
|
11888
11921
|
autoApply?: boolean;
|
|
11922
|
+
/**
|
|
11923
|
+
* Format: int64
|
|
11924
|
+
* @description The pipeline version the change was computed from, as get_pipeline returned it. A change that replaces a signal mask or drop rule another investigation's fix changed in a later version is refused. Without it, fixes applied since the proposing investigation started count as later.
|
|
11925
|
+
*/
|
|
11926
|
+
baseVersion?: number;
|
|
11889
11927
|
/** @description One or two sentences a human reviewer reads first: what the change does and why. Required when the change is recorded as a suggestion. */
|
|
11890
11928
|
changeDescription?: string;
|
|
11891
11929
|
/** @description A caller-chosen idempotency key for this change, unique within the investigation. Resending the same changeId records one suggestion rather than a duplicate, so a retried call is safe. Required when the change is recorded as a suggestion. */
|
|
@@ -17070,6 +17108,7 @@ export type SchemaConsoleSetupInfo = components["schemas"]["ConsoleSetupInfo"];
|
|
|
17070
17108
|
export type SchemaConstantSampling = components["schemas"]["ConstantSampling"];
|
|
17071
17109
|
export type SchemaContextPart = components["schemas"]["ContextPart"];
|
|
17072
17110
|
export type SchemaContract = components["schemas"]["Contract"];
|
|
17111
|
+
export type SchemaCoveredSignal = components["schemas"]["CoveredSignal"];
|
|
17073
17112
|
export type SchemaCreateAgentSessionAnalyticsJob = components["schemas"]["CreateAgentSessionAnalyticsJob"];
|
|
17074
17113
|
export type SchemaCreateBackfillJob = components["schemas"]["CreateBackfillJob"];
|
|
17075
17114
|
export type SchemaCreateChatRequest = components["schemas"]["CreateChatRequest"];
|
|
@@ -30396,6 +30435,9 @@ export declare enum AgentConfigCreateIssueHandoffMode {
|
|
|
30396
30435
|
REQUIRE_TRIAGE = "REQUIRE_TRIAGE",
|
|
30397
30436
|
ALLOW_READY = "ALLOW_READY"
|
|
30398
30437
|
}
|
|
30438
|
+
export declare enum AgentConfigPayloadAgentType {
|
|
30439
|
+
CHURN_SPECIALIST = "CHURN_SPECIALIST"
|
|
30440
|
+
}
|
|
30399
30441
|
export declare enum AgentLogProcessorType {
|
|
30400
30442
|
agent_log_processor = "agent-log-processor"
|
|
30401
30443
|
}
|
|
@@ -30597,7 +30639,8 @@ export declare enum ChangeFindingCode {
|
|
|
30597
30639
|
DISALLOWED_INPUT_CHANGE = "DISALLOWED_INPUT_CHANGE",
|
|
30598
30640
|
INVALID_SIGNAL_CONFIG = "INVALID_SIGNAL_CONFIG",
|
|
30599
30641
|
UNVERIFIABLE_CHANGE = "UNVERIFIABLE_CHANGE",
|
|
30600
|
-
NO_EFFECTIVE_CHANGE = "NO_EFFECTIVE_CHANGE"
|
|
30642
|
+
NO_EFFECTIVE_CHANGE = "NO_EFFECTIVE_CHANGE",
|
|
30643
|
+
STALE_SIGNAL_ENTRY = "STALE_SIGNAL_ENTRY"
|
|
30601
30644
|
}
|
|
30602
30645
|
export declare enum ChatActionCategory {
|
|
30603
30646
|
CHANGE_PIPELINES = "CHANGE_PIPELINES",
|