@exellix/ai-tasks 8.4.2 → 8.4.3

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 (94) hide show
  1. package/.docs/DOWNSTREAM_ENV.md +42 -0
  2. package/.docs/FEEDBACK_TO_CLIENT_DOWNSTREAM_FIXES.md +64 -0
  3. package/.docs/INTERMEDIATE_STEPS.md +82 -0
  4. package/.docs/activity-structure.md +31 -0
  5. package/.docs/ai-task-ai-scoping-spec.md +338 -0
  6. package/.docs/ai-tasks-model-profile-aliases-7x.md +74 -0
  7. package/.docs/blockers-and-issues.md +346 -0
  8. package/.docs/building-runTask-sdk.md +659 -0
  9. package/.docs/building-skill-execution-orchestrator.md +968 -0
  10. package/.docs/code-used-before/run-task.txt +39 -0
  11. package/.docs/code-used-before/task-executor.ts.old +57 -0
  12. package/.docs/code-used-before/test-run-task.ts.old +42 -0
  13. package/.docs/code-used-before/types.txt +23 -0
  14. package/.docs/env-ready-policy.md +40 -0
  15. package/.docs/flow-io/flow-README.md +76 -0
  16. package/.docs/flow-io/narrix.md +124 -0
  17. package/.docs/flow-io/web-scoping.md +135 -0
  18. package/.docs/flow-io/xynthesis-post.md +154 -0
  19. package/.docs/flow-io/xynthesis-pre.md +181 -0
  20. package/.docs/gap-analysis.md +201 -0
  21. package/.docs/integration-facts-ai-tasks.md +109 -0
  22. package/.docs/investigation/ai-skills.md +170 -0
  23. package/.docs/investigation/external-packages-assignments.md +66 -0
  24. package/.docs/investigation/integration-summary.md +20 -0
  25. package/.docs/investigation/narrix-catalox.md +29 -0
  26. package/.docs/investigation/workplan-close-graph-engine-gaps.md +101 -0
  27. package/.docs/logging-stack.md +30 -0
  28. package/.docs/memory-narrix-adapter-developer-guide.md +402 -0
  29. package/.docs/memory-narrix-adapter-requirements.md +112 -0
  30. package/.docs/narrix-context-consumption-gap.md +184 -0
  31. package/.docs/narrix-context-downstream-report.md +30 -0
  32. package/.docs/narrix-ingest-and-packs-library-spec.md +240 -0
  33. package/.docs/narrix-record-input-current-design.md +48 -0
  34. package/.docs/pacakge.md +48 -0
  35. package/.docs/possible-components/README.md +11 -0
  36. package/.docs/possible-components/integration/README.md +10 -0
  37. package/.docs/possible-components/integration/gaps-when-merging.md +16 -0
  38. package/.docs/possible-components/integration/platform.md +54 -0
  39. package/.docs/possible-components/integration/reintegrate-into-ai-tasks.md +26 -0
  40. package/.docs/possible-components/integration/roadmap-and-checklists.md +54 -0
  41. package/.docs/possible-components/post-component/README.md +18 -0
  42. package/.docs/possible-components/post-component/builder-guide.md +175 -0
  43. package/.docs/possible-components/post-component/gaps-and-artifacts.md +52 -0
  44. package/.docs/possible-components/post-component/handler-audit.md +47 -0
  45. package/.docs/possible-components/post-component/handler-polish.md +41 -0
  46. package/.docs/possible-components/post-component/unified-protocol.md +59 -0
  47. package/.docs/possible-components/pre-component/README.md +22 -0
  48. package/.docs/possible-components/pre-component/builder-guide.md +127 -0
  49. package/.docs/possible-components/pre-component/gaps-and-artifacts.md +35 -0
  50. package/.docs/possible-components/pre-component/handler-ai-scoping.md +45 -0
  51. package/.docs/possible-components/pre-component/handler-narrix-preprocessor.md +49 -0
  52. package/.docs/possible-components/pre-component/handler-narrix-system2.md +35 -0
  53. package/.docs/possible-components/pre-component/handler-synthesized-context.md +65 -0
  54. package/.docs/possible-components/pre-component/handler-web-scope.md +29 -0
  55. package/.docs/possible-components/pre-component/unified-protocol.md +89 -0
  56. package/.docs/prefer-openrouter-routing-policy.md +132 -0
  57. package/.docs/questions-for-ai-skills.md +123 -0
  58. package/.docs/realtime-narrixing-gap-analysis.md +40 -0
  59. package/.docs/realtime-narrixing.md +433 -0
  60. package/.docs/run-context-object.md +32 -0
  61. package/.docs/session-id-usage.md +26 -0
  62. package/.docs/skill-library-spec.md +249 -0
  63. package/.docs/synthesized-context-strategy-spec.md +906 -0
  64. package/.docs/upstream-issue/2026-03-21_woroces-ai-tasks_ISSUE-006_web-scope-question-from-cni-entity.md +46 -0
  65. package/.docs/web-scopper-embed.md +93 -0
  66. package/.docs/xynthesis-wiring-and-io.md +12 -0
  67. package/README.md +15 -13
  68. package/dist/index.d.ts +2 -1
  69. package/dist/index.d.ts.map +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/index.js.map +1 -1
  72. package/dist/internal/runPostStepLlmCall.d.ts.map +1 -1
  73. package/dist/internal/runPostStepLlmCall.js +4 -2
  74. package/dist/internal/runPostStepLlmCall.js.map +1 -1
  75. package/dist/invocation/resolveProfileInvocationRouting.js +2 -2
  76. package/dist/invocation/resolveProfileInvocationRouting.js.map +1 -1
  77. package/dist/utils/aiProfileModelFormat.d.ts +2 -2
  78. package/dist/utils/aiProfileModelFormat.js +2 -2
  79. package/dist/utils/aiProfilesCatalog.d.ts +16 -0
  80. package/dist/utils/aiProfilesCatalog.d.ts.map +1 -0
  81. package/dist/utils/aiProfilesCatalog.js +23 -0
  82. package/dist/utils/aiProfilesCatalog.js.map +1 -0
  83. package/dist/utils/resolveAiProfileModel.d.ts +2 -2
  84. package/dist/utils/resolveAiProfileModel.d.ts.map +1 -1
  85. package/dist/utils/resolveAiProfileModel.js +5 -5
  86. package/dist/utils/resolveAiProfileModel.js.map +1 -1
  87. package/dist/utils/routeModelConfigSlots.d.ts +3 -1
  88. package/dist/utils/routeModelConfigSlots.d.ts.map +1 -1
  89. package/dist/utils/routeModelConfigSlots.js +2 -1
  90. package/dist/utils/routeModelConfigSlots.js.map +1 -1
  91. package/documenations/upstream-feature-requests/README.md +2 -2
  92. package/documenations/upstream-feature-requests/ai-tasks-wrap-up-after-upstream.md +5 -2
  93. package/documenations/upstream-feature-requests/xynthesis-orchestrator-invoke-contract-4.2.md +2 -2
  94. package/package.json +2 -1
@@ -0,0 +1,346 @@
1
+ # Blockers and Issues for @woroces/ai-tasks Package Setup
2
+
3
+ **Date**: 2026-01-06
4
+ **Status**: Blocked on dependency installation
5
+ **Package**: `@woroces/ai-tasks`
6
+
7
+ ## Executive Summary
8
+
9
+ The package setup is blocked because the primary dependency `@woroces/ai-skills` cannot be installed. Multiple issues are preventing successful dependency resolution and installation.
10
+
11
+ ---
12
+
13
+ ## Primary Blocker: Missing Dependency Package
14
+
15
+ ### Issue #1: `@woroces/ai-skills` Not Found in GitHub Packages
16
+
17
+ **Error Message**:
18
+ ```
19
+ npm error 404 Not Found - GET https://npm.pkg.github.com/@woroces%2fai-skills
20
+ npm error 404 '@woroces/ai-skills@*' is not in this registry.
21
+ ```
22
+
23
+ **Root Cause**:
24
+ - The package `@woroces/ai-skills` does not exist in the GitHub Packages registry under the `@woroces` organization
25
+ - Attempts to install it result in 404 errors from both GitHub Packages and npmjs.org
26
+
27
+ **Evidence**:
28
+ 1. `npm view @woroces/ai-skills --registry=https://npm.pkg.github.com` returns 404
29
+ 2. `npm search @woroces --registry=https://npm.pkg.github.com` returns 404
30
+ 3. The package is referenced in documentation (`.docs/building-runTask-sdk.md`, `.docs/building-skill-execution-orchestrator.md`) but doesn't exist in the registry
31
+
32
+ **Possible Solutions**:
33
+ 1. **Publish the package first**: The `@woroces/ai-skills` package needs to be published to GitHub Packages before this package can depend on it
34
+ 2. **Use Git URL**: Install directly from GitHub repository (attempted but failed - see Issue #2)
35
+ 3. **Verify package name**: Confirm the actual package name (could be `@woroces/ai-skills` with different spelling, or under different organization)
36
+ 4. **Use local path**: If the package exists locally, use `file:` protocol in package.json
37
+
38
+ ---
39
+
40
+ ## Issue #2: Registry Configuration Problems
41
+
42
+ ### npm Registry Resolution Order
43
+
44
+ **Problem**:
45
+ npm is attempting to fetch `@woroces/ai-skills` from `https://registry.npmjs.org` (public npm registry) instead of `https://npm.pkg.github.com` (GitHub Packages).
46
+
47
+ **Error Pattern**:
48
+ ```
49
+ npm error 404 Not Found - GET https://registry.npmjs.org/@woroces%2fai-skills
50
+ ```
51
+
52
+ **Root Cause Analysis**:
53
+ 1. **Scope Configuration**: The `.npmrc` file correctly defines:
54
+ ```
55
+ @woroces:registry=https://npm.pkg.github.com
56
+ ```
57
+ However, npm might be:
58
+ - Checking the public registry first
59
+ - Not properly applying scope-based registry resolution
60
+ - Having cache issues
61
+
62
+ 2. **Token Authentication**: The token in `.npmrc` is valid (confirmed by `npm whoami` returning `ami-nx`), but npm might not be using it for the correct registry
63
+
64
+ **Current `.npmrc` Configuration**:
65
+ ```
66
+ @athenices:registry=https://npm.pkg.github.com
67
+ @xronoces:registry=https://npm.pkg.github.com
68
+ @xeonoces:registry=https://npm.pkg.github.com
69
+ @woroces:registry=https://npm.pkg.github.com
70
+ //npm.pkg.github.com/:_authToken=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
71
+ ```
72
+
73
+ **Issues Identified**:
74
+ - ✅ **Spelling is consistent**: All files correctly use `@woroces` (with 'o')
75
+ - ✅ `.npmrc` correctly defines `@woroces:registry=https://npm.pkg.github.com`
76
+ - ✅ `package.json` correctly uses `@woroces/ai-skills`
77
+ - ✅ Source code correctly imports from `@woroces/ai-skills`
78
+
79
+ **No spelling mismatch found** - all references are consistent.
80
+
81
+ ---
82
+
83
+ ## Issue #3: Git Installation Attempts Failed
84
+
85
+ ### Attempted Solution: Install from Git Repository
86
+
87
+ **Command Attempted**:
88
+ ```bash
89
+ npm install @woroces/ai-skills@git+ssh://git@github.com:woroces/ai-skills.git
90
+ ```
91
+
92
+ **Result**: Failed with various errors:
93
+ - Authentication issues
94
+ - Repository access problems
95
+ - Dependency resolution failures
96
+
97
+ **Why It Failed**:
98
+ 1. The repository might not exist at `git@github.com:woroces/ai-skills.git`
99
+ 2. SSH key authentication might not be configured
100
+ 3. The repository might be private and require different authentication
101
+ 4. The package might not have a valid `package.json` in the repository root
102
+
103
+ ---
104
+
105
+ ## Issue #4: TypeScript Types Installation
106
+
107
+ ### `@types/node` Version Resolution
108
+
109
+ **Error**:
110
+ ```
111
+ npm error code ETARGET
112
+ npm error notarget No matching version found for @types/node@^20.0.0.
113
+ ```
114
+
115
+ **Root Cause**:
116
+ - The version `^20.0.0` might not exist in the registry being queried
117
+ - npm might be looking in the wrong registry for this public package
118
+
119
+ **Workaround Applied**:
120
+ Changed to `"@types/node": "^18.0.0 || ^20.0.0"` to allow more flexibility
121
+
122
+ **Status**: Partially resolved, but installation still fails due to primary blocker
123
+
124
+ ---
125
+
126
+ ## Issue #5: Peer Dependency Warnings
127
+
128
+ ### AWS SDK Version Conflicts
129
+
130
+ **Warnings Observed**:
131
+ ```
132
+ npm warn ERESOLVE overriding peer dependency
133
+ npm warn While resolving: @xronoces/xronox-storage-s3@2.0.1
134
+ npm warn Found: @aws-sdk/client-s3@undefined
135
+ npm warn Could not resolve dependency:
136
+ npm warn peer @aws-sdk/client-s3@"^3.450.0" from @xronoces/xronox-storage-s3@2.0.1
137
+ ```
138
+
139
+ **Impact**:
140
+ - These are warnings, not blockers
141
+ - However, they indicate potential runtime issues if dependencies are resolved incorrectly
142
+ - The `@aws-sdk/client-s3@undefined` suggests incomplete dependency resolution
143
+
144
+ ---
145
+
146
+ ## Dependency Chain Analysis
147
+
148
+ ### Required Dependencies
149
+
150
+ 1. **Primary Dependency**: `@woroces/ai-skills`
151
+ - Status: ❌ NOT FOUND
152
+ - Required by: `src/task-sdk.ts` (imports `XeonoxSkillsClient`, `RunTaskRequest`, etc.)
153
+ - Impact: **BLOCKER** - Cannot build or test without this
154
+
155
+ 2. **Secondary Dependency**: `@athenices/execution-memory-manager`
156
+ - Status: ❓ UNKNOWN (not tested due to primary blocker)
157
+ - Required by: Type definitions for `JobHistory`, `TaskHistory`
158
+ - Impact: Medium - Types might be available from `@woroces/ai-skills` if it's installed
159
+
160
+ 3. **Peer Dependency**: `@athenices/ai-gateway`
161
+ - Status: ❓ UNKNOWN
162
+ - Required by: Underlying gateway functionality
163
+ - Impact: Low - Peer dependency, might be optional
164
+
165
+ 4. **Dev Dependencies**: `typescript`, `ts-node`, `@types/node`, `dotenv`
166
+ - Status: ⚠️ PARTIAL (some installed, some failed)
167
+ - Impact: Low - Can work around with manual installation
168
+
169
+ ---
170
+
171
+ ## Authentication Status
172
+
173
+ ### GitHub Token Validation
174
+
175
+ **Test Command**:
176
+ ```bash
177
+ npm whoami --registry=https://npm.pkg.github.com
178
+ ```
179
+
180
+ **Result**: ✅ **SUCCESS** - Returns `ami-nx`
181
+
182
+ **Conclusion**:
183
+ - Token is valid and authenticated
184
+ - Authentication is NOT the blocker
185
+ - The issue is package availability, not access
186
+
187
+ ---
188
+
189
+ ## Registry Resolution Flow
190
+
191
+ ### How npm Resolves Packages
192
+
193
+ 1. **Scoped Packages** (`@scope/package`):
194
+ - npm checks `.npmrc` for `@scope:registry=URL`
195
+ - If found, uses that registry
196
+ - If not found, falls back to default registry (npmjs.org)
197
+
198
+ 2. **Current Behavior**:
199
+ - npm finds `@woroces:registry` in `.npmrc` ✅
200
+ - Attempts to fetch from GitHub Packages ✅
201
+ - Package doesn't exist → 404 ❌
202
+ - Falls back to npmjs.org → 404 ❌
203
+ - Installation fails ❌
204
+
205
+ 3. **Scope Configuration**:
206
+ - ✅ `.npmrc` correctly has `@woroces:registry=https://npm.pkg.github.com`
207
+ - ✅ `package.json` correctly uses `@woroces/ai-skills`
208
+ - ✅ All references are consistent with `@woroces` (with 'o')
209
+ - **No spelling issues found**
210
+
211
+ ---
212
+
213
+ ## Recommended Actions
214
+
215
+ ### Immediate Fixes
216
+
217
+ 1. **Verify Package Existence**:
218
+ - Check if `@woroces/ai-skills` exists in GitHub Packages
219
+ - Confirm the package has been published (current version `^3.3.6` per package.json)
220
+ - Verify the package is accessible with the current token
221
+
222
+ 3. **Alternative: Use Git URL** (if repository exists):
223
+ ```json
224
+ {
225
+ "dependencies": {
226
+ "@woroces/ai-skills": "git+ssh://git@github.com:woroces/ai-skills.git"
227
+ }
228
+ }
229
+ ```
230
+
231
+ 4. **Alternative: Use Local Path** (if package exists locally):
232
+ ```json
233
+ {
234
+ "dependencies": {
235
+ "@woroces/ai-skills": "file:../ai-skills"
236
+ }
237
+ }
238
+ ```
239
+
240
+ ### Long-term Solutions
241
+
242
+ 1. **Publish `@woroces/ai-skills` to GitHub Packages**:
243
+ - This is the proper solution
244
+ - Ensures version management
245
+ - Enables proper dependency resolution
246
+
247
+ 2. **Organization Naming**:
248
+ - ✅ All references consistently use `@woroces` (with 'o')
249
+ - ✅ No standardization needed - already consistent
250
+
251
+ 3. **Create Package Registry Documentation**:
252
+ - Document which packages exist where
253
+ - Create a registry map
254
+ - Include installation instructions
255
+
256
+ ---
257
+
258
+ ## Testing Status
259
+
260
+ ### What We CAN Test
261
+
262
+ - ✅ TypeScript compilation (if dev dependencies install)
263
+ - ✅ Package structure
264
+ - ✅ Code syntax and types
265
+
266
+ ### What We CANNOT Test
267
+
268
+ - ❌ Actual `runTask` functionality (requires `@woroces/ai-skills`)
269
+ - ❌ Integration with AI Gateway
270
+ - ❌ Real skill execution
271
+ - ❌ Memory management features
272
+ - ❌ Context enrichment
273
+
274
+ ### Workaround for Testing
275
+
276
+ 1. **Mock Implementation**:
277
+ - Create mock `XeonoxSkillsClient`
278
+ - Test SDK structure without real dependencies
279
+ - Validate API surface
280
+
281
+ 2. **Integration Test Later**:
282
+ - Once `@woroces/ai-skills` is available
283
+ - Run full integration tests
284
+ - Test with real credentials from `.env`
285
+
286
+ ---
287
+
288
+ ## Environment Variables Status
289
+
290
+ ### Credentials Available
291
+
292
+ The user mentioned having valid credentials in `.env`:
293
+ - ✅ GitHub token (validated via `npm whoami`)
294
+ - ✅ AI provider keys (assumed available)
295
+ - ✅ Content registry URL (assumed available)
296
+
297
+ **Impact**:
298
+ - Once dependencies are resolved, the package should work
299
+ - ERC (Env-Ready) compliance can be tested
300
+ - Real integration tests can be run
301
+
302
+ ---
303
+
304
+ ## Summary
305
+
306
+ ### Narrix / subnet playground (unblocked)
307
+
308
+ The narrix run path and subnet batch playground (`npm run local:narrix:subnets`) are unblocked: narrix deps resolve, pack registry includes subnetEgress, and ai-tasks uses `defaultIngest` and normalizes array-shaped test-data to a single record per file. See [GAP-AND-BUGS-RESOLVED.md](../GAP-AND-BUGS-RESOLVED.md) for what was fixed.
309
+
310
+ ### Critical Blockers
311
+
312
+ 1. **PRIMARY**: `@woroces/ai-skills` package (version `^3.3.6`) cannot be installed from GitHub Packages
313
+ 2. **SECONDARY**: Git installation attempts failing (repository might not exist or inaccessible)
314
+ 3. **TERTIARY**: npm registry resolution may be checking wrong registry first
315
+
316
+ ### Resolution Path
317
+
318
+ 1. Fix `.npmrc` scope spelling
319
+ 2. Verify/obtain `@woroces/ai-skills` package
320
+ 3. Install dependencies
321
+ 4. Build package
322
+ 5. Run real tests with `.env` credentials
323
+
324
+ ### Current State
325
+
326
+ - ✅ Package structure created
327
+ - ✅ Code written and typed correctly
328
+ - ✅ Documentation complete
329
+ - ❌ Dependencies cannot be installed
330
+ - ❌ Cannot build or test
331
+ - ⚠️ Blocked until `@woroces/ai-skills` is available
332
+
333
+ ---
334
+
335
+ ## Next Steps
336
+
337
+ 1. **Immediate**: Verify `@woroces/ai-skills@^3.3.6` exists in GitHub Packages and is accessible
338
+ 2. **Verify**: Check if the repository `git@github.com:woroces/ai-skills.git` exists and is accessible
339
+ 3. **Test Authentication**: Confirm token has proper permissions for the package
340
+ 4. **Alternative**: Use local development setup if package exists locally
341
+ 5. **Test**: Once dependencies resolve, run full integration tests
342
+
343
+ ---
344
+
345
+ **Last Updated**: 2026-01-06
346
+ **Next Review**: After `@woroces/ai-skills` availability is confirmed