@cadenza.io/core 3.25.0 → 3.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -2495,6 +2495,7 @@ var GraphNode = class _GraphNode extends SignalEmitter {
|
|
|
2495
2495
|
uuid: this.id,
|
|
2496
2496
|
routineExecutionId: this.routineExecId,
|
|
2497
2497
|
executionTraceId: this.executionTraceId,
|
|
2498
|
+
inquiryId: context.__inquiryId ?? null,
|
|
2498
2499
|
context: this.context.getContext(),
|
|
2499
2500
|
metaContext: this.context.getMetadata(),
|
|
2500
2501
|
taskName: this.task.name,
|
|
@@ -2772,7 +2773,14 @@ var GraphNode = class _GraphNode extends SignalEmitter {
|
|
|
2772
2773
|
inquire(inquiry, context, options) {
|
|
2773
2774
|
return Cadenza.resolveRuntimeInquiryDelegate()(
|
|
2774
2775
|
inquiry,
|
|
2775
|
-
{
|
|
2776
|
+
{
|
|
2777
|
+
...context,
|
|
2778
|
+
__executionTraceId: context.__executionTraceId ?? context.__metadata?.__executionTraceId ?? this.executionTraceId,
|
|
2779
|
+
__inquirySourceTaskName: this.task.name,
|
|
2780
|
+
__inquirySourceTaskVersion: this.task.version,
|
|
2781
|
+
__inquirySourceTaskExecutionId: this.id,
|
|
2782
|
+
__inquirySourceRoutineExecutionId: this.routineExecId
|
|
2783
|
+
},
|
|
2776
2784
|
options
|
|
2777
2785
|
);
|
|
2778
2786
|
}
|
|
@@ -4412,6 +4420,7 @@ var Task = class _Task extends SignalEmitter {
|
|
|
4412
4420
|
"meta.task.output_schema_missing",
|
|
4413
4421
|
"meta.task.relationship_added",
|
|
4414
4422
|
"meta.task.relationship_removed",
|
|
4423
|
+
"meta.task.intent_associated",
|
|
4415
4424
|
"meta.task.layer_index_changed",
|
|
4416
4425
|
"meta.node.scheduled",
|
|
4417
4426
|
"meta.node.mapped",
|
|
@@ -5286,8 +5295,20 @@ var Task = class _Task extends SignalEmitter {
|
|
|
5286
5295
|
}
|
|
5287
5296
|
respondsTo(...inquires) {
|
|
5288
5297
|
for (const intentName of inquires) {
|
|
5298
|
+
if (this.handlesIntents.has(intentName)) {
|
|
5299
|
+
continue;
|
|
5300
|
+
}
|
|
5289
5301
|
this.handlesIntents.add(intentName);
|
|
5290
5302
|
Cadenza.inquiryBroker.observe(intentName, this);
|
|
5303
|
+
if (this.register) {
|
|
5304
|
+
this.emitWithMetadata("meta.task.intent_associated", {
|
|
5305
|
+
data: {
|
|
5306
|
+
intentName,
|
|
5307
|
+
taskName: this.name,
|
|
5308
|
+
taskVersion: this.version
|
|
5309
|
+
}
|
|
5310
|
+
});
|
|
5311
|
+
}
|
|
5291
5312
|
const intent = Cadenza.inquiryBroker.intents.get(intentName);
|
|
5292
5313
|
if (intent?.input) {
|
|
5293
5314
|
this.inputContextSchema = this.mergeSchemaVariant(
|