@eclipse-docks/extension-ai-system 0.7.140 → 0.7.141
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/README.md +72 -0
- package/dist/api.d.ts +1 -7
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +2 -2
- package/dist/cognitive-extension-CG_d39K5.js +2129 -0
- package/dist/cognitive-extension-CG_d39K5.js.map +1 -0
- package/dist/cognitive-extension.d.ts +1 -0
- package/dist/cognitive-extension.d.ts.map +1 -0
- package/dist/i18n.de-BrLTiN56.js +11 -0
- package/dist/i18n.de-BrLTiN56.js.map +1 -0
- package/dist/i18n.en-MkwuLlOD.js +11 -0
- package/dist/i18n.en-MkwuLlOD.js.map +1 -0
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/runtime/attachments.d.ts +89 -0
- package/dist/runtime/attachments.d.ts.map +1 -0
- package/dist/runtime/cognitive-runtime.d.ts +83 -0
- package/dist/runtime/cognitive-runtime.d.ts.map +1 -0
- package/dist/runtime/compact/compaction.d.ts +29 -0
- package/dist/runtime/compact/compaction.d.ts.map +1 -0
- package/dist/runtime/constants.d.ts +9 -0
- package/dist/runtime/constants.d.ts.map +1 -0
- package/dist/runtime/context/usage.d.ts +35 -0
- package/dist/runtime/context/usage.d.ts.map +1 -0
- package/dist/runtime/core/index.d.ts +4 -0
- package/dist/runtime/core/index.d.ts.map +1 -0
- package/dist/runtime/core/needs.d.ts +5 -0
- package/dist/runtime/core/needs.d.ts.map +1 -0
- package/dist/runtime/core/plutchik.d.ts +8 -0
- package/dist/runtime/core/plutchik.d.ts.map +1 -0
- package/dist/runtime/core/tick.d.ts +23 -0
- package/dist/runtime/core/tick.d.ts.map +1 -0
- package/dist/runtime/events.d.ts +21 -0
- package/dist/runtime/events.d.ts.map +1 -0
- package/dist/runtime/index.d.ts +14 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/memory/index.d.ts +2 -0
- package/dist/runtime/memory/index.d.ts.map +1 -0
- package/dist/runtime/memory/store.d.ts +27 -0
- package/dist/runtime/memory/store.d.ts.map +1 -0
- package/dist/runtime/models/effort-support.d.ts +31 -0
- package/dist/runtime/models/effort-support.d.ts.map +1 -0
- package/dist/runtime/models/index.d.ts +7 -0
- package/dist/runtime/models/index.d.ts.map +1 -0
- package/dist/runtime/models/openai-compatible.d.ts +39 -0
- package/dist/runtime/models/openai-compatible.d.ts.map +1 -0
- package/dist/runtime/models/provider-config.d.ts +23 -0
- package/dist/runtime/models/provider-config.d.ts.map +1 -0
- package/dist/runtime/models/provider-registry.d.ts +16 -0
- package/dist/runtime/models/provider-registry.d.ts.map +1 -0
- package/dist/runtime/models/router.d.ts +12 -0
- package/dist/runtime/models/router.d.ts.map +1 -0
- package/dist/runtime/models/types.d.ts +88 -0
- package/dist/runtime/models/types.d.ts.map +1 -0
- package/dist/runtime/session/index.d.ts +2 -0
- package/dist/runtime/session/index.d.ts.map +1 -0
- package/dist/runtime/session/session-runtime.d.ts +48 -0
- package/dist/runtime/session/session-runtime.d.ts.map +1 -0
- package/dist/runtime/specialists/classify-risk.d.ts +15 -0
- package/dist/runtime/specialists/classify-risk.d.ts.map +1 -0
- package/dist/runtime/specialists/index.d.ts +12 -0
- package/dist/runtime/specialists/index.d.ts.map +1 -0
- package/dist/runtime/specialists/loop.d.ts +25 -0
- package/dist/runtime/specialists/loop.d.ts.map +1 -0
- package/dist/runtime/tools/attachment-adapter.d.ts +6 -0
- package/dist/runtime/tools/attachment-adapter.d.ts.map +1 -0
- package/dist/runtime/tools/broker.d.ts +52 -0
- package/dist/runtime/tools/broker.d.ts.map +1 -0
- package/dist/runtime/tools/command-adapter.d.ts +5 -0
- package/dist/runtime/tools/command-adapter.d.ts.map +1 -0
- package/dist/runtime/tools/index.d.ts +5 -0
- package/dist/runtime/tools/index.d.ts.map +1 -0
- package/dist/runtime/tools/workspace-adapter.d.ts +4 -0
- package/dist/runtime/tools/workspace-adapter.d.ts.map +1 -0
- package/dist/runtime/types.d.ts +145 -0
- package/dist/runtime/types.d.ts.map +1 -0
- package/dist/runtime-DfNGzEjU.js +2952 -0
- package/dist/runtime-DfNGzEjU.js.map +1 -0
- package/dist/view/cognitive-settings-editor.d.ts +40 -0
- package/dist/view/cognitive-settings-editor.d.ts.map +1 -0
- package/dist/view/cognitive-view.d.ts +83 -0
- package/dist/view/cognitive-view.d.ts.map +1 -0
- package/package.json +15 -11
- package/dist/agents/agent-registry.d.ts +0 -8
- package/dist/agents/agent-registry.d.ts.map +0 -1
- package/dist/agents/index.d.ts +0 -6
- package/dist/agents/index.d.ts.map +0 -1
- package/dist/agents/message-processor.d.ts +0 -9
- package/dist/agents/message-processor.d.ts.map +0 -1
- package/dist/agents/orchestrator.d.ts +0 -12
- package/dist/agents/orchestrator.d.ts.map +0 -1
- package/dist/agents/prompt-builder.d.ts +0 -21
- package/dist/agents/prompt-builder.d.ts.map +0 -1
- package/dist/agents/reviewer.d.ts +0 -15
- package/dist/agents/reviewer.d.ts.map +0 -1
- package/dist/ai-service-Cmafte5S.js +0 -1866
- package/dist/ai-service-Cmafte5S.js.map +0 -1
- package/dist/ai-system-extension-CsfSiwNJ.js +0 -2324
- package/dist/ai-system-extension-CsfSiwNJ.js.map +0 -1
- package/dist/ai-system-extension.d.ts +0 -1
- package/dist/ai-system-extension.d.ts.map +0 -1
- package/dist/chat-provider-contributions.d.ts +0 -2
- package/dist/chat-provider-contributions.d.ts.map +0 -1
- package/dist/core/constants.d.ts +0 -21
- package/dist/core/constants.d.ts.map +0 -1
- package/dist/core/index.d.ts +0 -4
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/interfaces.d.ts +0 -138
- package/dist/core/interfaces.d.ts.map +0 -1
- package/dist/core/message-utils.d.ts +0 -4
- package/dist/core/message-utils.d.ts.map +0 -1
- package/dist/core/types.d.ts +0 -128
- package/dist/core/types.d.ts.map +0 -1
- package/dist/prompt-enhancer-contributions.d.ts +0 -2
- package/dist/prompt-enhancer-contributions.d.ts.map +0 -1
- package/dist/providers/base-provider.d.ts +0 -15
- package/dist/providers/base-provider.d.ts.map +0 -1
- package/dist/providers/index.d.ts +0 -9
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/ollama-provider.d.ts +0 -7
- package/dist/providers/ollama-provider.d.ts.map +0 -1
- package/dist/providers/openai-provider.d.ts +0 -7
- package/dist/providers/openai-provider.d.ts.map +0 -1
- package/dist/providers/provider-factory.d.ts +0 -10
- package/dist/providers/provider-factory.d.ts.map +0 -1
- package/dist/providers/provider-utils.d.ts +0 -5
- package/dist/providers/provider-utils.d.ts.map +0 -1
- package/dist/providers/streaming/ollama-parser.d.ts +0 -9
- package/dist/providers/streaming/ollama-parser.d.ts.map +0 -1
- package/dist/providers/streaming/sse-parser.d.ts +0 -10
- package/dist/providers/streaming/sse-parser.d.ts.map +0 -1
- package/dist/providers/streaming/stream-parser.d.ts +0 -10
- package/dist/providers/streaming/stream-parser.d.ts.map +0 -1
- package/dist/service/ai-service.d.ts +0 -47
- package/dist/service/ai-service.d.ts.map +0 -1
- package/dist/service/token-usage-tracker.d.ts +0 -16
- package/dist/service/token-usage-tracker.d.ts.map +0 -1
- package/dist/task/task-checkpoint.d.ts +0 -12
- package/dist/task/task-checkpoint.d.ts.map +0 -1
- package/dist/task/task-plan.d.ts +0 -7
- package/dist/task/task-plan.d.ts.map +0 -1
- package/dist/task/task-runner.d.ts +0 -10
- package/dist/task/task-runner.d.ts.map +0 -1
- package/dist/tools/index.d.ts +0 -6
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/token-estimator.d.ts +0 -12
- package/dist/tools/token-estimator.d.ts.map +0 -1
- package/dist/tools/tool-call-accumulator.d.ts +0 -9
- package/dist/tools/tool-call-accumulator.d.ts.map +0 -1
- package/dist/tools/tool-executor.d.ts +0 -13
- package/dist/tools/tool-executor.d.ts.map +0 -1
- package/dist/tools/tool-name-utils.d.ts +0 -2
- package/dist/tools/tool-name-utils.d.ts.map +0 -1
- package/dist/tools/tool-registry.d.ts +0 -7
- package/dist/tools/tool-registry.d.ts.map +0 -1
- package/dist/utils/token-estimator.d.ts +0 -2
- package/dist/utils/token-estimator.d.ts.map +0 -1
- package/dist/utils/tool-detector.d.ts +0 -10
- package/dist/utils/tool-detector.d.ts.map +0 -1
- package/dist/view/agent-group-manager.d.ts +0 -37
- package/dist/view/agent-group-manager.d.ts.map +0 -1
- package/dist/view/aiview.d.ts +0 -42
- package/dist/view/aiview.d.ts.map +0 -1
- package/dist/view/components/ai-agent-response-group.d.ts +0 -18
- package/dist/view/components/ai-agent-response-group.d.ts.map +0 -1
- package/dist/view/components/ai-chat-input.d.ts +0 -20
- package/dist/view/components/ai-chat-input.d.ts.map +0 -1
- package/dist/view/components/ai-chat-message.d.ts +0 -22
- package/dist/view/components/ai-chat-message.d.ts.map +0 -1
- package/dist/view/components/ai-config-editor.d.ts +0 -33
- package/dist/view/components/ai-config-editor.d.ts.map +0 -1
- package/dist/view/components/ai-empty-state.d.ts +0 -13
- package/dist/view/components/ai-empty-state.d.ts.map +0 -1
- package/dist/view/components/ai-tool-approval.d.ts +0 -26
- package/dist/view/components/ai-tool-approval.d.ts.map +0 -1
- package/dist/view/components/index.d.ts +0 -7
- package/dist/view/components/index.d.ts.map +0 -1
- package/dist/view/provider-manager.d.ts +0 -30
- package/dist/view/provider-manager.d.ts.map +0 -1
- package/dist/view/session-manager.d.ts +0 -25
- package/dist/view/session-manager.d.ts.map +0 -1
- package/dist/view/stream-manager.d.ts +0 -23
- package/dist/view/stream-manager.d.ts.map +0 -1
- package/dist/view/task-progress-panel.d.ts +0 -14
- package/dist/view/task-progress-panel.d.ts.map +0 -1
- package/dist/view/token-usage.d.ts +0 -18
- package/dist/view/token-usage.d.ts.map +0 -1
- package/dist/view/workspace-panel.d.ts +0 -15
- package/dist/view/workspace-panel.d.ts.map +0 -1
- package/dist/workflows/base-sequential-workflow.d.ts +0 -13
- package/dist/workflows/base-sequential-workflow.d.ts.map +0 -1
- package/dist/workflows/conditional-workflow.d.ts +0 -7
- package/dist/workflows/conditional-workflow.d.ts.map +0 -1
- package/dist/workflows/index.d.ts +0 -10
- package/dist/workflows/index.d.ts.map +0 -1
- package/dist/workflows/orchestrated-workflow.d.ts +0 -10
- package/dist/workflows/orchestrated-workflow.d.ts.map +0 -1
- package/dist/workflows/parallel-workflow.d.ts +0 -6
- package/dist/workflows/parallel-workflow.d.ts.map +0 -1
- package/dist/workflows/pipeline-workflow.d.ts +0 -7
- package/dist/workflows/pipeline-workflow.d.ts.map +0 -1
- package/dist/workflows/review-workflow.d.ts +0 -10
- package/dist/workflows/review-workflow.d.ts.map +0 -1
- package/dist/workflows/sequential-workflow.d.ts +0 -7
- package/dist/workflows/sequential-workflow.d.ts.map +0 -1
- package/dist/workflows/workflow-engine.d.ts +0 -8
- package/dist/workflows/workflow-engine.d.ts.map +0 -1
- package/dist/workflows/workflow-strategy.d.ts +0 -8
- package/dist/workflows/workflow-strategy.d.ts.map +0 -1
- package/dist/workspace/workspace.d.ts +0 -20
- package/dist/workspace/workspace.d.ts.map +0 -1
package/README.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# `@eclipse-docks/extension-ai-system`
|
|
2
|
+
|
|
3
|
+
Cognitive chat runtime for Eclipse Docks: sessions, model routing, tool broker with approval modes, and a UI-agnostic event bus. Consumers use `@eclipse-docks/extension-ai-system/api`.
|
|
4
|
+
|
|
5
|
+
## Status
|
|
6
|
+
|
|
7
|
+
The **harness** (prompt → specialist loop → tools → approvals → streaming UI) is the working product path.
|
|
8
|
+
|
|
9
|
+
Composer supports **attachments** (paperclip / drag-drop, up to 8). Payloads (text or image data URLs) are stored on the **session**, not inlined into chat history. The user turn only publishes a lightweight reference; the model calls `attachment_list` / `attachment_read` when it needs contents (images are presented for vision only on read). This keeps baseline token use low.
|
|
10
|
+
|
|
11
|
+
Supported: text files (≤~100k chars stored) and visual media (jpeg/png/gif/webp/svg/ico/bmp/avif/tiff, ≤4MB). SVG keeps source text for `attachment_read` plus a preview data URL. Audio/video rejected.
|
|
12
|
+
|
|
13
|
+
**ICOM Core** (`runtime/core`) and **ACT-R memory** (`runtime/memory` + session buffers) are wired into each turn but do not yet drive model policy, tool policy, or prompt content in a meaningful way. Treat them as scaffolding until the todos below land.
|
|
14
|
+
|
|
15
|
+
See also `docs/internal/icom-agentic-runtime.md` for the layer map.
|
|
16
|
+
|
|
17
|
+
## Finalize implementation
|
|
18
|
+
|
|
19
|
+
### ICOM Core — make motivation real
|
|
20
|
+
|
|
21
|
+
- [ ] Feed intent / dominant need / valence into the specialist system prompt (not only `goal ≈ user text`)
|
|
22
|
+
- [ ] Let needs/valence influence routing (e.g. `safety` → prefer ask / lower-risk tools; `clarity` → explore/plan)
|
|
23
|
+
- [ ] Update need urgency from turn outcomes (tool failure, user correction, success) via `bumpNeed`
|
|
24
|
+
- [ ] Surface `TOPIC.coreTick` in the UI (optional debug panel: conscious valence, need, intent)
|
|
25
|
+
- [ ] Decide whether subconscious state affects anything beyond blending, or drop it until needed
|
|
26
|
+
|
|
27
|
+
### ACT-R memory — close the loop
|
|
28
|
+
|
|
29
|
+
- [ ] Inject top retrieved chunks into the LLM context (system or dedicated message), not only the `retrieval` buffer for `coreTick`
|
|
30
|
+
- [ ] Call `decay()` on a schedule (per turn or idle) so activation ranking matters over time
|
|
31
|
+
- [ ] Use `imaginal` / `motor` buffers or remove them from `BufferMap` until there is a real producer/consumer
|
|
32
|
+
- [ ] Persist utility-relevant episodic structure (what worked) and retrieve by task similarity, not only keyword overlap
|
|
33
|
+
- [ ] Pin / forget UX for workspace-scoped chunks (or API for extensions)
|
|
34
|
+
|
|
35
|
+
### Specialist roles & Plan/Build
|
|
36
|
+
|
|
37
|
+
- [ ] Role picker in `docks-cognitive-view` (`plan` / `explore` / `build` / `general`)
|
|
38
|
+
- [ ] Default role from ICOM intent / need instead of hard-coded `build`
|
|
39
|
+
- [ ] Explicit Plan → approve → Build handoff (checkpoint + user gate), not only read-only tool filters
|
|
40
|
+
- [ ] Compact / title / summary specialists invoked automatically with economy models
|
|
41
|
+
|
|
42
|
+
### Tool broker & approvals
|
|
43
|
+
|
|
44
|
+
- [ ] Persist allow/deny rules and approval mode across reloads
|
|
45
|
+
- [ ] Cache risk classifications per tool (or signature) to avoid a classify call every batch in `auto_safe`
|
|
46
|
+
- [ ] Show why a tool was classified critical in the approval UI
|
|
47
|
+
- [ ] Align WebMCP / other `cmd_*` callers with first-class command tool names
|
|
48
|
+
|
|
49
|
+
### Model router & transport
|
|
50
|
+
|
|
51
|
+
- [ ] Persist router utility scores with cognitive state
|
|
52
|
+
- [ ] Move tool + reasoning to Responses API (or equivalent) so `reasoning_effort` and tools can coexist
|
|
53
|
+
- [ ] Re-enable effort levels when tools are required, once transport allows
|
|
54
|
+
- [ ] Expose manual effort override consistently with Models.dev capabilities
|
|
55
|
+
|
|
56
|
+
### Sessions, context & compaction
|
|
57
|
+
|
|
58
|
+
- [x] Inject `compactionSummary` into provider messages; LLM summarize on compact (extractive fallback)
|
|
59
|
+
- [ ] Auto-compact threshold tunable in settings; compact summary should include ACT-R goal/retrieval highlights
|
|
60
|
+
- [ ] Keep context-usage estimate in sync with what is actually sent to the provider (retrieved chunks, enhancers)
|
|
61
|
+
- [ ] Checkpoint restore should rehydrate Core state, not only session buffers/history
|
|
62
|
+
|
|
63
|
+
### Consumer API & docs
|
|
64
|
+
|
|
65
|
+
- [ ] Document `./api` surface (runtime, `TOPIC`, enhancers, external providers, settings helpers)
|
|
66
|
+
- [ ] Fix stale references (`cmd_*` tool prefix, command ids) in internal docs
|
|
67
|
+
- [ ] e2e coverage for approval modes, external provider registration, and prompt enhancers
|
|
68
|
+
|
|
69
|
+
### Cleanup
|
|
70
|
+
|
|
71
|
+
- [ ] Remove or quarantine any leftover pre-cognitive modules if still present in the tree
|
|
72
|
+
- [ ] Trim public exports to the stable façade; keep Core/memory internals package-private unless consumers need them
|
package/dist/api.d.ts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { aiService } from './service/ai-service';
|
|
3
|
-
export type { AIService } from './service/ai-service';
|
|
4
|
-
export * from './providers';
|
|
5
|
-
export * from './tools';
|
|
6
|
-
export { AgentRegistry, PromptBuilder, MessageProcessorService, } from './agents';
|
|
7
|
-
export * from './workflows';
|
|
1
|
+
export { cognitiveRuntime, CognitiveRuntime, TOPIC, AI_VIEW_NAME, AI_SETTINGS_KEY, AI_SETTINGS_EDITOR_ID, OPEN_AI_SETTINGS_COMMAND, defaultProvidersSettings, fetchOpenAICompatibleModels, listConfiguredModelIds, loadModelsCatalog, parseModelIds, OpenAICompatibleProvider, type ChatMessage, type MessagePart, type PromptAttachment, type SessionAttachment, type CognitiveSession, type Checkpoint, type ModelPolicy, type EffortLevel, type OptimizeFor, type SpecialistRole, type PermissionAction, type ToolApprovalMode, type EmotionalState, type ProviderConfig, type ProvidersSettings, type RemoteModelInfo, type ModelProvider, type StreamParams, type StreamChunk, type ProviderChatMessage, type SystemPromptEnhancer, } from './runtime';
|
|
8
2
|
//# sourceMappingURL=api.d.ts.map
|
package/dist/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,EACb,wBAAwB,EACxB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,WAAW,CAAC"}
|
package/dist/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { _ as AI_SETTINGS_KEY, b as TOPIC, d as defaultProvidersSettings, f as listConfiguredModelIds, g as AI_SETTINGS_EDITOR_ID, h as loadModelsCatalog, l as OpenAICompatibleProvider, n as cognitiveRuntime, p as parseModelIds, t as CognitiveRuntime, u as fetchOpenAICompatibleModels, v as AI_VIEW_NAME, y as OPEN_AI_SETTINGS_COMMAND } from "./runtime-DfNGzEjU.js";
|
|
2
|
+
export { AI_SETTINGS_EDITOR_ID, AI_SETTINGS_KEY, AI_VIEW_NAME, CognitiveRuntime, OPEN_AI_SETTINGS_COMMAND, OpenAICompatibleProvider, TOPIC, cognitiveRuntime, defaultProvidersSettings, fetchOpenAICompatibleModels, listConfiguredModelIds, loadModelsCatalog, parseModelIds };
|