@dcyfr/ai 3.0.1 → 3.0.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 (109) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/LICENSE +11 -30
  3. package/README.md +216 -145
  4. package/dist/.tsbuildinfo +1 -1
  5. package/dist/ai/agents/agent-router.d.ts.map +1 -1
  6. package/dist/ai/agents/agent-router.js +3 -1
  7. package/dist/ai/agents/agent-router.js.map +1 -1
  8. package/dist/ai/config/loader.d.ts +5 -1
  9. package/dist/ai/config/loader.d.ts.map +1 -1
  10. package/dist/ai/config/loader.js +24 -4
  11. package/dist/ai/config/loader.js.map +1 -1
  12. package/dist/ai/core/provider-registry.d.ts +9 -1
  13. package/dist/ai/core/provider-registry.d.ts.map +1 -1
  14. package/dist/ai/core/provider-registry.js +97 -138
  15. package/dist/ai/core/provider-registry.js.map +1 -1
  16. package/dist/ai/core/telemetry-engine.d.ts +1 -1
  17. package/dist/ai/core/telemetry-engine.d.ts.map +1 -1
  18. package/dist/ai/core/telemetry-engine.js +14 -10
  19. package/dist/ai/core/telemetry-engine.js.map +1 -1
  20. package/dist/ai/delegation/contract-manager.d.ts.map +1 -1
  21. package/dist/ai/delegation/contract-manager.js +5 -2
  22. package/dist/ai/delegation/contract-manager.js.map +1 -1
  23. package/dist/ai/delegation/execution-mode-dashboard.d.ts.map +1 -1
  24. package/dist/ai/delegation/execution-mode-dashboard.js +4 -2
  25. package/dist/ai/delegation/execution-mode-dashboard.js.map +1 -1
  26. package/dist/ai/mcp/servers/shared/utils.d.ts.map +1 -1
  27. package/dist/ai/mcp/servers/shared/utils.js +4 -2
  28. package/dist/ai/mcp/servers/shared/utils.js.map +1 -1
  29. package/dist/ai/memory/file-memory-adapter.d.ts.map +1 -1
  30. package/dist/ai/memory/file-memory-adapter.js +11 -13
  31. package/dist/ai/memory/file-memory-adapter.js.map +1 -1
  32. package/dist/ai/memory/working-memory-persistence.d.ts.map +1 -1
  33. package/dist/ai/memory/working-memory-persistence.js +4 -2
  34. package/dist/ai/memory/working-memory-persistence.js.map +1 -1
  35. package/dist/ai/metacognition/config.d.ts +41 -0
  36. package/dist/ai/metacognition/config.d.ts.map +1 -0
  37. package/dist/ai/metacognition/config.js +51 -0
  38. package/dist/ai/metacognition/config.js.map +1 -0
  39. package/dist/ai/metacognition/governance.d.ts +68 -0
  40. package/dist/ai/metacognition/governance.d.ts.map +1 -0
  41. package/dist/ai/metacognition/governance.js +118 -0
  42. package/dist/ai/metacognition/governance.js.map +1 -0
  43. package/dist/ai/metacognition/index.d.ts +24 -0
  44. package/dist/ai/metacognition/index.d.ts.map +1 -0
  45. package/dist/ai/metacognition/index.js +18 -0
  46. package/dist/ai/metacognition/index.js.map +1 -0
  47. package/dist/ai/metacognition/ledger.d.ts +121 -0
  48. package/dist/ai/metacognition/ledger.d.ts.map +1 -0
  49. package/dist/ai/metacognition/ledger.js +268 -0
  50. package/dist/ai/metacognition/ledger.js.map +1 -0
  51. package/dist/ai/metacognition/runtime.d.ts +205 -0
  52. package/dist/ai/metacognition/runtime.d.ts.map +1 -0
  53. package/dist/ai/metacognition/runtime.js +391 -0
  54. package/dist/ai/metacognition/runtime.js.map +1 -0
  55. package/dist/ai/metacognition/telemetry.d.ts +144 -0
  56. package/dist/ai/metacognition/telemetry.d.ts.map +1 -0
  57. package/dist/ai/metacognition/telemetry.js +149 -0
  58. package/dist/ai/metacognition/telemetry.js.map +1 -0
  59. package/dist/ai/metacognition/transfer.d.ts +153 -0
  60. package/dist/ai/metacognition/transfer.d.ts.map +1 -0
  61. package/dist/ai/metacognition/transfer.js +182 -0
  62. package/dist/ai/metacognition/transfer.js.map +1 -0
  63. package/dist/ai/metacognition/types.d.ts +302 -0
  64. package/dist/ai/metacognition/types.d.ts.map +1 -0
  65. package/dist/ai/metacognition/types.js +79 -0
  66. package/dist/ai/metacognition/types.js.map +1 -0
  67. package/dist/ai/runtime/agent-runtime.d.ts.map +1 -1
  68. package/dist/ai/runtime/agent-runtime.js +12 -18
  69. package/dist/ai/runtime/agent-runtime.js.map +1 -1
  70. package/dist/ai/src/capability-manifest-generator.d.ts.map +1 -1
  71. package/dist/ai/src/capability-manifest-generator.js +11 -5
  72. package/dist/ai/src/capability-manifest-generator.js.map +1 -1
  73. package/dist/ai/src/cli/telemetry-dashboard.js +3 -3
  74. package/dist/ai/src/cli/telemetry-dashboard.js.map +1 -1
  75. package/dist/ai/src/compaction/memory-compaction.d.ts.map +1 -1
  76. package/dist/ai/src/compaction/memory-compaction.js +5 -4
  77. package/dist/ai/src/compaction/memory-compaction.js.map +1 -1
  78. package/dist/ai/src/integrations/linear/index.d.ts +19 -0
  79. package/dist/ai/src/integrations/linear/index.d.ts.map +1 -0
  80. package/dist/ai/src/integrations/linear/index.js +20 -0
  81. package/dist/ai/src/integrations/linear/index.js.map +1 -0
  82. package/dist/ai/src/integrations/linear/issue-mapper.d.ts +93 -0
  83. package/dist/ai/src/integrations/linear/issue-mapper.d.ts.map +1 -0
  84. package/dist/ai/src/integrations/linear/issue-mapper.js +186 -0
  85. package/dist/ai/src/integrations/linear/issue-mapper.js.map +1 -0
  86. package/dist/ai/src/integrations/linear/linear-client.d.ts +199 -0
  87. package/dist/ai/src/integrations/linear/linear-client.d.ts.map +1 -0
  88. package/dist/ai/src/integrations/linear/linear-client.js +300 -0
  89. package/dist/ai/src/integrations/linear/linear-client.js.map +1 -0
  90. package/dist/ai/src/plugins/security/secret-detector.js +3 -3
  91. package/dist/ai/src/plugins/security/secret-detector.js.map +1 -1
  92. package/dist/ai/src/runtime/agent-runtime.js +1 -1
  93. package/dist/ai/src/runtime/agent-runtime.js.map +1 -1
  94. package/dist/ai/src/security/prompt-scan-worker.d.ts +63 -0
  95. package/dist/ai/src/security/prompt-scan-worker.d.ts.map +1 -0
  96. package/dist/ai/src/security/prompt-scan-worker.js +177 -0
  97. package/dist/ai/src/security/prompt-scan-worker.js.map +1 -0
  98. package/dist/ai/src/telemetry/delegation-telemetry.d.ts +10 -0
  99. package/dist/ai/src/telemetry/delegation-telemetry.d.ts.map +1 -1
  100. package/dist/ai/src/telemetry/delegation-telemetry.js +23 -0
  101. package/dist/ai/src/telemetry/delegation-telemetry.js.map +1 -1
  102. package/dist/ai/types/index.d.ts +8 -3
  103. package/dist/ai/types/index.d.ts.map +1 -1
  104. package/dist/ai/types/index.js.map +1 -1
  105. package/dist/ai/utils/safe-fs.d.ts +19 -0
  106. package/dist/ai/utils/safe-fs.d.ts.map +1 -0
  107. package/dist/ai/utils/safe-fs.js +64 -0
  108. package/dist/ai/utils/safe-fs.js.map +1 -0
  109. package/package.json +33 -22
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#173](https://github.com/dcyfr-labs/dcyfr-ai/pull/173) [`6c50c05`](https://github.com/dcyfr-labs/dcyfr-ai/commit/6c50c05f7c598f678907f43385eb653f0d2a341b) Thanks [@dcyfr](https://github.com/dcyfr)! - Remove unused `@mistralai/mistralai` dependency.
8
+
9
+ The Mistral SDK is not imported anywhere in the codebase — only a description string in `packages/ai/core/provider-registry.ts` references Mistral models served via the GitHub Models API, which doesn't require this SDK.
10
+
11
+ Clears downstream Dependabot alert [GHSA-3q49-cfcf-g5fm](https://github.com/advisories/GHSA-3q49-cfcf-g5fm) (malware in `@mistralai/mistralai` 2.2.2 / 2.2.3 / 2.2.4 with an overbroad `>= 0` blanket range that flags safe versions too) for downstream consumers like `dcyfr-labs/dcyfr-labs`.
12
+
3
13
  ## 3.0.1
4
14
 
5
15
  ### Patch Changes
package/LICENSE CHANGED
@@ -1,13 +1,15 @@
1
- MIT License
1
+ SPDX-License-Identifier: MIT
2
2
 
3
- Copyright (c) 2025-2026 DCYFR Labs (https://www.dcyfr.ai)
3
+ # MIT License
4
+
5
+ Copyright © 2025-2026 DCYFR Labs
4
6
 
5
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
8
  of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
9
+ in the Software without restriction, including without limitation the rights to
10
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
11
+ of the Software, and to permit persons to whom the Software is furnished to do
12
+ so, subject to the following conditions:
11
13
 
12
14
  The above copyright notice and this permission notice shall be included in all
13
15
  copies or substantial portions of the Software.
@@ -20,28 +22,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
22
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
23
  SOFTWARE.
22
24
 
23
- ---
24
-
25
- ## Commercial Use
26
-
27
- This software is dual-licensed:
28
-
29
- - **MIT License** applies to personal, educational, and non-commercial use
30
- - **Commercial License** required for business and revenue-generating use
31
-
32
- ### Commercial use includes:
33
- - Using @dcyfr/ai in a product or service that generates revenue
34
- - Deploying in a business environment (>5 employees)
35
- - Providing consulting/services using @dcyfr/ai for profit
36
- - Distributing as part of a commercial offering
37
-
38
- ### To obtain a commercial license:
39
- - View tiers: https://github.com/dcyfr/workspace/blob/main/SPONSORSHIP.md
40
- - Contact: licensing@dcyfr.ai
41
- - GitHub Sponsors: https://github.com/sponsors/dcyfr
42
-
43
- For questions about whether your use requires a commercial license, contact licensing@dcyfr.ai.
44
-
45
- ## Trademark
25
+ ## Trademark Notice
46
26
 
47
- "DCYFR" is a trademark of DCYFR Labs. See TRADEMARK.md for usage guidelines.
27
+ DCYFR is a trademark of DCYFR Labs. When using DCYFR in titles, product names,
28
+ or branding, proper trademark notation should be used (DCYFR™, DCYFR Labs®).