@exellix/ai-tasks 8.1.10 → 8.1.12
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/.metadata/log-diagnostics.json +76 -0
- package/CHANGELOG.md +4 -0
- package/README.md +4 -2
- package/dist/core/task-sdk.d.ts +7 -1
- package/dist/core/task-sdk.d.ts.map +1 -1
- package/dist/core/task-sdk.js +1177 -1165
- package/dist/core/task-sdk.js.map +1 -1
- package/dist/execution-strategies/resolveExecutionStrategies.d.ts.map +1 -1
- package/dist/execution-strategies/resolveExecutionStrategies.js +12 -3
- package/dist/execution-strategies/resolveExecutionStrategies.js.map +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/internal/runPostStepLlmCall.d.ts +3 -0
- package/dist/internal/runPostStepLlmCall.d.ts.map +1 -1
- package/dist/internal/runPostStepLlmCall.js +2 -0
- package/dist/internal/runPostStepLlmCall.js.map +1 -1
- package/dist/logxer/aiTasksDiagnosticCodes.d.ts +12 -0
- package/dist/logxer/aiTasksDiagnosticCodes.d.ts.map +1 -0
- package/dist/logxer/aiTasksDiagnosticCodes.js +11 -0
- package/dist/logxer/aiTasksDiagnosticCodes.js.map +1 -0
- package/dist/logxer/aiTasksLogContext.d.ts +16 -0
- package/dist/logxer/aiTasksLogContext.d.ts.map +1 -0
- package/dist/logxer/aiTasksLogContext.js +27 -0
- package/dist/logxer/aiTasksLogContext.js.map +1 -0
- package/dist/logxer/configureAiTasksLogging.d.ts +16 -0
- package/dist/logxer/configureAiTasksLogging.d.ts.map +1 -0
- package/dist/logxer/configureAiTasksLogging.js +19 -0
- package/dist/logxer/configureAiTasksLogging.js.map +1 -0
- package/dist/logxer/packageLogxers.d.ts +44 -2
- package/dist/logxer/packageLogxers.d.ts.map +1 -1
- package/dist/logxer/packageLogxers.js +95 -9
- package/dist/logxer/packageLogxers.js.map +1 -1
- package/dist/logxer/stackLoggingContext.d.ts +7 -0
- package/dist/logxer/stackLoggingContext.d.ts.map +1 -0
- package/dist/logxer/stackLoggingContext.js +20 -0
- package/dist/logxer/stackLoggingContext.js.map +1 -0
- package/dist/narrix/task.d.ts.map +1 -1
- package/dist/narrix/task.js +2 -1
- package/dist/narrix/task.js.map +1 -1
- package/dist/packaged-tasks-client.d.ts +4 -0
- package/dist/packaged-tasks-client.d.ts.map +1 -1
- package/dist/packaged-tasks-client.js +11 -3
- package/dist/packaged-tasks-client.js.map +1 -1
- package/dist/synthesis/runStructuredSynthesisRobust.d.ts +2 -0
- package/dist/synthesis/runStructuredSynthesisRobust.d.ts.map +1 -1
- package/dist/synthesis/runStructuredSynthesisRobust.js +5 -2
- package/dist/synthesis/runStructuredSynthesisRobust.js.map +1 -1
- package/dist/utilities/runUtility.d.ts.map +1 -1
- package/dist/utilities/runUtility.js +5 -1
- package/dist/utilities/runUtility.js.map +1 -1
- package/dist/utils/runTaskRequestShape.d.ts.map +1 -1
- package/dist/utils/runTaskRequestShape.js +40 -11
- package/dist/utils/runTaskRequestShape.js.map +1 -1
- package/package.json +7 -6
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"RUN_TASK_REQUEST_DUPLICATE_INPUT_BUCKETS": {
|
|
3
|
+
"defaultLevel": "warn",
|
|
4
|
+
"title": "RunTaskRequest sets both input and inputs",
|
|
5
|
+
"impact": "Smart-input resolution treats input.* and inputs.* as separate buckets; overlapping keys may confuse templates.",
|
|
6
|
+
"remediation": [
|
|
7
|
+
"Use only one top-level bucket unless both are intentional.",
|
|
8
|
+
"Review smartInput path bindings against input vs inputs."
|
|
9
|
+
],
|
|
10
|
+
"retryable": false,
|
|
11
|
+
"userActionRequired": true,
|
|
12
|
+
"confidence": "high"
|
|
13
|
+
},
|
|
14
|
+
"EXECUTION_PIPELINE_MULTIPLE_SYNTH_PRE": {
|
|
15
|
+
"defaultLevel": "warn",
|
|
16
|
+
"title": "Multiple PRE synthesized-context steps",
|
|
17
|
+
"impact": "Only the first PRE synthesized-context step runs; extra steps are ignored.",
|
|
18
|
+
"remediation": ["Consolidate PRE synthesized-context steps into one step."],
|
|
19
|
+
"retryable": false,
|
|
20
|
+
"userActionRequired": true,
|
|
21
|
+
"confidence": "high"
|
|
22
|
+
},
|
|
23
|
+
"EXECUTION_PIPELINE_UNSUPPORTED_PRE": {
|
|
24
|
+
"defaultLevel": "warn",
|
|
25
|
+
"title": "Unsupported PRE executionPipeline step",
|
|
26
|
+
"impact": "runTask throws when an unsupported PRE step is reached.",
|
|
27
|
+
"remediation": ["Use only synthesized-context for PRE steps, or remove unsupported PRE steps."],
|
|
28
|
+
"retryable": false,
|
|
29
|
+
"userActionRequired": true,
|
|
30
|
+
"confidence": "high"
|
|
31
|
+
},
|
|
32
|
+
"EXECUTION_PIPELINE_UNSUPPORTED_POST": {
|
|
33
|
+
"defaultLevel": "warn",
|
|
34
|
+
"title": "Unsupported POST executionPipeline step",
|
|
35
|
+
"impact": "Unsupported POST steps are ignored at runtime.",
|
|
36
|
+
"remediation": ["Use audit or polish for POST steps, or remove unsupported POST steps."],
|
|
37
|
+
"retryable": false,
|
|
38
|
+
"userActionRequired": true,
|
|
39
|
+
"confidence": "high"
|
|
40
|
+
},
|
|
41
|
+
"RUN_TASK_OBSERVABILITY_HINT": {
|
|
42
|
+
"defaultLevel": "warn",
|
|
43
|
+
"title": "RunTask observability hint",
|
|
44
|
+
"impact": "Detailed synthesis or scoping diagnostics are only surfaced in trace execution mode.",
|
|
45
|
+
"remediation": ["Set executionMode to trace when debugging PRE/POST xynthesis or aiScoping."],
|
|
46
|
+
"retryable": true,
|
|
47
|
+
"userActionRequired": false,
|
|
48
|
+
"confidence": "high"
|
|
49
|
+
},
|
|
50
|
+
"EXECUTION_STRATEGIES_MULTIPLE_OPTIMIZERS": {
|
|
51
|
+
"defaultLevel": "warn",
|
|
52
|
+
"title": "Multiple optimizer execution strategies",
|
|
53
|
+
"impact": "Only the first optimizer (after priority sort) drives the MAIN retry loop.",
|
|
54
|
+
"remediation": ["Supply a single optimizer or merge optimizer behavior into one entry."],
|
|
55
|
+
"retryable": false,
|
|
56
|
+
"userActionRequired": true,
|
|
57
|
+
"confidence": "high"
|
|
58
|
+
},
|
|
59
|
+
"NARRIX_WEB_SCOPE_MISS": {
|
|
60
|
+
"defaultLevel": "warn",
|
|
61
|
+
"title": "Narrix web scope unavailable",
|
|
62
|
+
"impact": "Web context evidence is omitted from Narrix PRE attachment for this run.",
|
|
63
|
+
"possibleCauses": [
|
|
64
|
+
"Web scoping query returned no usable evidence.",
|
|
65
|
+
"Narrix web scoper failed or timed out.",
|
|
66
|
+
"enableWebScope was set without sufficient scoping configuration."
|
|
67
|
+
],
|
|
68
|
+
"remediation": [
|
|
69
|
+
"Inspect NARRIX_DEBUG logs and trace-mode webContext metadata.",
|
|
70
|
+
"Verify web scoping configuration and upstream search availability."
|
|
71
|
+
],
|
|
72
|
+
"retryable": true,
|
|
73
|
+
"userActionRequired": false,
|
|
74
|
+
"confidence": "medium"
|
|
75
|
+
}
|
|
76
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ The published **npm version** always matches **`version`** in [`package.json`](p
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- **`@x12i/logxer` ^4.4.2:** Package diagnostics use **`createLogxer`** with diagnostic catalog (`.metadata/log-diagnostics.json`), **`warnCode`** / **`DebugLogAbstract`**, **`fieldEvidence`**, **`runWithLogContext`** during **`runTask()`**, and in-process **`getAiTasksJobLogs`** for debug UIs. Override pins transitive logxer to **4.4.2** (no nested **4.4.0** from `@x12i/optimixer`).
|
|
12
|
+
|
|
9
13
|
## [8.1.1] - 2026-05-28
|
|
10
14
|
|
|
11
15
|
### Changed
|
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ npm install @exellix/ai-tasks
|
|
|
80
80
|
npm install @exellix/ai-tasks @woroces/ai-skills
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
**Bundled x12i stack (direct dependencies of this package):** `@x12i/catalox` (catalog reads / publish script), `@x12i/env` (env conventions aligned with the Woreces stack), and `@x12i/logxer` **4.4+**
|
|
83
|
+
**Bundled x12i stack (direct dependencies of this package):** `@x12i/catalox` (catalog reads / publish script), `@x12i/env` (env conventions aligned with the Woreces stack), and `@x12i/logxer` **4.4.2+** — **`createLogxer`**, **`warnCode`/`errorCode`** with shipped diagnostic catalog (`.metadata/log-diagnostics.json`), **`DebugLogAbstract`**, **`fieldEvidence`**, **`runWithLogContext`** (wired in **`runTask()`** via **`runAiTasksWithLogContext`**), and in-process **`getAiTasksJobLogs`** for debug tooling. Per-package thresholds: **`AI_TASKS_LOGS_LEVEL`**, **`ACTIVIX_LOGS_LEVEL`**. Older names `logs-gateway` and `nx-config2` are not direct dependencies here.
|
|
84
84
|
|
|
85
85
|
### Narrix (v5+)
|
|
86
86
|
|
|
@@ -2411,7 +2411,9 @@ When `false` (the default), `runTask()` runs exactly as today with zero overhead
|
|
|
2411
2411
|
| `ACTIVIX_STALE_TTL_MS` | `300000` | TTL (ms) before a stuck `started` record is marked `timeout` |
|
|
2412
2412
|
| `ACTIVIX_LOGS_LEVEL` | _(see below)_ | Canonical internal log threshold for injected Activix logger (`@x12i/logxer` `createLogxer`, env prefix **`ACTIVIX`**). If unset, falls back to `ACTIVIX_LOG_LEVEL`, then default `warn`. Values: `verbose` \| `debug` \| `info` \| `warn` \| `error` \| `off` / `silent` / `none`. |
|
|
2413
2413
|
| `ACTIVIX_LOG_LEVEL` | `warn` | Legacy alias when `ACTIVIX_LOGS_LEVEL` is unset (same resolution rules as `@x12i/logxer`). |
|
|
2414
|
-
| `AI_TASKS_LOGS_LEVEL` | `warn` | Canonical threshold for `@exellix/ai-tasks` diagnostics (`AI_TASKS_REQUEST_WARNINGS`, execution-strategy warnings, optional `NARRIX_DEBUG` paths). Legacy alias: `AI_TASKS_LOG_LEVEL`. |
|
|
2414
|
+
| `AI_TASKS_LOGS_LEVEL` | `warn` | Canonical threshold for `@exellix/ai-tasks` diagnostics (`AI_TASKS_REQUEST_WARNINGS`, execution-strategy warnings, optional `NARRIX_DEBUG` paths). Uses **`@x12i/logxer` 4.4.2** **`warnCode`** + catalog (`.metadata/log-diagnostics.json`). Legacy alias: `AI_TASKS_LOG_LEVEL`. |
|
|
2415
|
+
|
|
2416
|
+
**Debug tooling (logxer 4.4.2):** **`getAiTasksJobLogs({ jobId, level, limit })`** queries in-process structured log envelopes captured during **`runTask()`**. Correlation ids (`jobId`, `taskId`, `graphId`, `nodeId`) are set via **`runAiTasksWithLogContext`** / **`patchRunTaskLogContext`** (re-exported from this package).
|
|
2415
2417
|
|
|
2416
2418
|
### What is recorded
|
|
2417
2419
|
|
package/dist/core/task-sdk.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ExellixSkillsClient } from "@exellix/ai-skills";
|
|
2
2
|
import { RunTaskRequest, RunTaskResponse } from "../types/index.js";
|
|
3
|
+
import type { StackLoggingOptions } from "@x12i/logxer";
|
|
3
4
|
type WorexClientSkills = ExellixSkillsClient;
|
|
4
5
|
/**
|
|
5
6
|
* Task execution client for @exellix/ai-tasks.
|
|
@@ -13,12 +14,17 @@ type WorexClientSkills = ExellixSkillsClient;
|
|
|
13
14
|
* This is a private package. We intentionally reuse @exellix/ai-skills directly,
|
|
14
15
|
* including its types and helpers. Naming leakage is acceptable.
|
|
15
16
|
*/
|
|
17
|
+
export type WorexClientTasksOptions = {
|
|
18
|
+
/** Host pass-through for logxer ≥ 4.5 stack levels (ai-tasks, ai-skills, xynthesis, funcx). */
|
|
19
|
+
logging?: StackLoggingOptions;
|
|
20
|
+
};
|
|
16
21
|
export declare class WorexClientTasks {
|
|
17
22
|
protected readonly skillsClient: WorexClientSkills;
|
|
18
23
|
private readonly executor;
|
|
24
|
+
protected readonly stackLogging?: StackLoggingOptions;
|
|
19
25
|
constructor(skillsClient: WorexClientSkills, executor: {
|
|
20
26
|
execute<TParsed = any>(input: any, onNotFound: (key: string) => Promise<void>): Promise<RunTaskResponse<TParsed>>;
|
|
21
|
-
});
|
|
27
|
+
}, options?: WorexClientTasksOptions);
|
|
22
28
|
runTask<TParsed = any>(input: RunTaskRequest): Promise<RunTaskResponse<TParsed>>;
|
|
23
29
|
/**
|
|
24
30
|
* Run the synthesized-context PRE step: enrich memory, resolve source material, render templates, call synthesis model, return synthesized context.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-sdk.d.ts","sourceRoot":"","sources":["../../src/core/task-sdk.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAazD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAuB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"task-sdk.d.ts","sourceRoot":"","sources":["../../src/core/task-sdk.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAazD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAuB,MAAM,mBAAmB,CAAC;AAyBzF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAyOxD,KAAK,iBAAiB,GAAG,mBAAmB,CAAC;AA0S7C;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,+FAA+F;IAC/F,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B,CAAC;AAEF,qBAAa,gBAAgB;IAIzB,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,iBAAiB;IAClD,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJ3B,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,mBAAmB,CAAC;gBAGjC,YAAY,EAAE,iBAAiB,EACjC,QAAQ,EAAE;QACzB,OAAO,CAAC,OAAO,GAAG,GAAG,EACnB,KAAK,EAAE,GAAG,EACV,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GACzC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;KACtC,EACD,OAAO,CAAC,EAAE,uBAAuB;IAQ7B,OAAO,CAAC,OAAO,GAAG,GAAG,EAAE,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IA2iDtF;;OAEG;YACW,6BAA6B;IAmhB3C;;;;;OAKG;YACW,cAAc;CAuR7B"}
|