@oneciel-ai/ciel-runtime 0.2.37 → 0.2.38
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/CHANGELOG.md +78 -0
- package/README.md +5 -2
- package/ciel_runtime.py +94 -96
- package/ciel_runtime_support/anthropic_model_policy.py +20 -3
- package/ciel_runtime_support/architecture.py +5 -0
- package/ciel_runtime_support/channel_inflight.py +4 -4
- package/ciel_runtime_support/channel_injection.py +56 -1
- package/ciel_runtime_support/channel_mcp_tools.py +34 -0
- package/ciel_runtime_support/channel_message_policy.py +9 -1
- package/ciel_runtime_support/channel_message_prompt.py +23 -0
- package/ciel_runtime_support/channel_pending_injection.py +86 -32
- package/ciel_runtime_support/channel_pending_poll.py +6 -2
- package/ciel_runtime_support/channel_runtime_environment.py +0 -11
- package/ciel_runtime_support/channel_terminal_context.py +0 -6
- package/ciel_runtime_support/channel_terminal_proxy.py +3 -42
- package/ciel_runtime_support/channel_transcript_repository.py +16 -1
- package/ciel_runtime_support/channel_wake_claim_repository.py +0 -19
- package/ciel_runtime_support/channel_wake_context.py +6 -13
- package/ciel_runtime_support/channel_wake_delivery_repository.py +50 -0
- package/ciel_runtime_support/chat_http_controller.py +88 -5
- package/ciel_runtime_support/claude_environment.py +100 -3
- package/ciel_runtime_support/claude_launch_assembly.py +4 -0
- package/ciel_runtime_support/claude_session_socket.py +181 -0
- package/ciel_runtime_support/cli_application_context.py +18 -10
- package/ciel_runtime_support/cli_dispatch.py +19 -3
- package/ciel_runtime_support/cli_parser.py +2 -0
- package/ciel_runtime_support/cli_usage.py +3 -2
- package/ciel_runtime_support/codex_backend_context.py +8 -3
- package/ciel_runtime_support/codex_completion_gate.py +198 -0
- package/ciel_runtime_support/codex_turn_recovery.py +240 -83
- package/ciel_runtime_support/compatibility_protocol.py +5 -2
- package/ciel_runtime_support/config_migrations.py +79 -0
- package/ciel_runtime_support/config_repository.py +7 -0
- package/ciel_runtime_support/context_summary_policy.py +24 -4
- package/ciel_runtime_support/external_event_menu.py +107 -0
- package/ciel_runtime_support/external_event_receiver.py +19 -1
- package/ciel_runtime_support/launch_state.py +2 -0
- package/ciel_runtime_support/managed_tool_injection.py +33 -0
- package/ciel_runtime_support/muse_runtime_context.py +291 -0
- package/ciel_runtime_support/ollama_thinking.py +12 -26
- package/ciel_runtime_support/prelaunch.py +13 -0
- package/ciel_runtime_support/prelaunch_launch_panel.py +2 -1
- package/ciel_runtime_support/prompt_compaction.py +39 -0
- package/ciel_runtime_support/provider_files_proxy.py +248 -0
- package/ciel_runtime_support/provider_model_identity.py +10 -2
- package/ciel_runtime_support/provider_option_cli.py +1 -1
- package/ciel_runtime_support/provider_request_access.py +54 -1
- package/ciel_runtime_support/provider_responses_passthrough.py +152 -15
- package/ciel_runtime_support/providers/alibaba.py +34 -1
- package/ciel_runtime_support/providers/anthropic.py +18 -1
- package/ciel_runtime_support/providers/meta.py +252 -21
- package/ciel_runtime_support/pseudo_tool_parser.py +17 -1
- package/ciel_runtime_support/remote_bridge.py +4 -0
- package/ciel_runtime_support/remote_instructions.py +5 -0
- package/ciel_runtime_support/remote_memory.py +1 -1
- package/ciel_runtime_support/responses_cache_diagnostics.py +82 -0
- package/ciel_runtime_support/responses_custom_tool_bridge.py +282 -0
- package/ciel_runtime_support/responses_input_compatibility.py +19 -3
- package/ciel_runtime_support/router_http.py +301 -4
- package/ciel_runtime_support/router_observability_context.py +26 -0
- package/ciel_runtime_support/router_server_context.py +1 -0
- package/ciel_runtime_support/runtime_adapters.py +31 -0
- package/ciel_runtime_support/runtime_constants.py +23 -1
- package/ciel_runtime_support/runtime_input_gateway.py +85 -5
- package/ciel_runtime_support/runtime_input_status.py +150 -0
- package/ciel_runtime_support/runtime_launch.py +27 -4
- package/ciel_runtime_support/runtime_paths.py +1 -0
- package/ciel_runtime_support/speech_http_controller.py +3 -2
- package/ciel_runtime_support/streaming_anthropic.py +3 -0
- package/ciel_runtime_support/tool_call_events.py +98 -0
- package/ciel_runtime_support/transcript_delta_delivery.py +140 -1
- package/ciel_runtime_support/ui_text.py +1 -0
- package/ciel_runtime_support/web_search_result_events.py +130 -0
- package/ciel_runtime_support/web_ui.py +1 -0
- package/ciel_runtime_support/windows_conpty.py +92 -8
- package/ciel_runtime_support/workspace_mcp.py +4 -1
- package/ciel_runtime_support/workspace_state.py +1 -0
- package/docs/Configuration.md +20 -4
- package/docs/MCP-Channels.md +79 -6
- package/docs/Managed-Tool-Injection.md +25 -0
- package/docs/Module-Map.md +4 -0
- package/docs/Muse-Code.md +73 -0
- package/docs/Observability.md +39 -0
- package/docs/Providers.md +29 -2
- package/docs/Remote-Bridge.md +12 -0
- package/docs/Router.md +1 -0
- package/docs/journal/2026/09/01/diagnostics/anthropic/router/fable51-usage-credits.okf +70 -0
- package/docs/journal/2026/09/01/implementation/claude/session-socket/all-input-paths/default-delivery.okf +133 -0
- package/docs/journal/2026/09/01/implementation/claude/session-socket/windows-direct-input.okf +112 -0
- package/docs/journal/2026/09/02/diagnostics/cache/alibaba/qwen38-post-restart-hit-rate.okf +107 -0
- package/docs/journal/2026/09/02/diagnostics/cache/ollama-cloud/kimi-k3-codex-hit-rate.okf +91 -0
- package/docs/journal/2026/09/02/diagnostics/codex/tui/statusline-cache-metrics.okf +44 -0
- package/docs/journal/2026/09/02/diagnostics/input/transport/fallback-behavior.okf +31 -0
- package/docs/journal/2026/09/02/diagnostics/providers/ollama-cloud/kimi-k3-agent-turn-recovery.okf +125 -0
- package/docs/journal/2026/09/02/diagnostics/providers/ollama-cloud/kimi-k3-parameters.okf +128 -0
- package/docs/journal/2026/09/02/diagnostics/remote/mia/socket-tui-visibility.okf +47 -0
- package/docs/journal/2026/09/02/diagnostics/runtime/alibaba/token-plan/qwen38-latency.okf +108 -0
- package/docs/journal/2026/09/02/diagnostics/runtime/alibaba/token-plan/qwen38-vs-gpt56-latency.okf +92 -0
- package/docs/journal/2026/09/02/implementation/anthropic/context/one-million-defaults.okf +85 -0
- package/docs/journal/2026/09/02/implementation/cache/alibaba/qwen38-cache-hit-improvement.okf +104 -0
- package/docs/journal/2026/09/02/implementation/cache/alibaba/qwen38-cache-hit-improvement.png +0 -0
- package/docs/journal/2026/09/02/implementation/cache/alibaba/responses-session-cache.okf +97 -0
- package/docs/journal/2026/09/02/implementation/providers/alibaba/qwen38/0902-parameter-alignment.okf +97 -0
- package/docs/journal/2026/09/02/implementation/providers/meta/multimodal-tools/contributor-protocol-adoption.okf +140 -0
- package/docs/journal/2026/09/02/implementation/providers/meta/muse-spark-1.3-support.okf +53 -0
- package/docs/journal/2026/09/02/monitoring/cache/alibaba/cielarvis-qwen38-live-hit-rate.okf +858 -0
- package/docs/journal/2026/09/02/operations/release/main-merge-local-deploy.okf +36 -0
- package/docs/journal/2026/09/02/operations/release/nightly/local-cache-deployment.okf +54 -0
- package/docs/journal/2026/09/02/operations/release/nightly/ollama-kimi-recovery-model-audit-deployment.okf +58 -0
- package/docs/journal/2026/09/02/operations/release/nightly/qwen38-cache-improvement-deployment.okf +72 -0
- package/docs/journal/2026/09/02/research/cache/alibaba/qwen38-hit-rate-improvement.okf +233 -0
- package/docs/journal/2026/09/02/research/cache/codex/provider-scope.okf +77 -0
- package/docs/journal/2026/09/02/research/providers/ollama-cloud/desktop-model-exhaustive-audit.okf +159 -0
- package/docs/journal/2026/09/03/diagnostics/providers/meta/muse-spark-contributor-cache-hit.okf +148 -0
- package/docs/journal/2026/09/03/diagnostics/providers/meta/muse-spark-contributor-required-schema.okf +127 -0
- package/docs/journal/2026/09/03/diagnostics/providers/ollama-cloud/kimi-k3-resumed-session-stall.okf +160 -0
- package/docs/journal/2026/09/03/diagnostics/providers/ollama-cloud/kimi-k3-substantive-dangling-action.okf +94 -0
- package/docs/journal/2026/09/03/diagnostics/remote/kevin/codex-gpt-early-turn-completion.okf +162 -0
- package/docs/journal/2026/09/03/implementation/runtimes/meta/muse-code/default-yolo.okf +40 -0
- package/docs/journal/2026/09/03/implementation/runtimes/meta/muse-code/native-subscription-router.okf +86 -0
- package/docs/journal/2026/09/03/operations/deployment/local/session-socket-default-fallback.okf +41 -0
- package/docs/journal/2026/09/03/research/deployment/colab/tailscale/credential-storage.okf +41 -0
- package/docs/journal/2026/09/03/research/providers/meta/muse-code/subscription-billing-boundary.okf +64 -0
- package/docs/journal/2026/09/03/research/web-chat/voice/instruction-format.okf +135 -0
- package/docs/journal/2026/09/04/diagnostics/claude/context/early-auto-compaction.okf +75 -0
- package/docs/journal/2026/09/04/diagnostics/claude/context/fable-51-status-200k.okf +54 -0
- package/docs/journal/2026/09/04/diagnostics/runtime/codex/responses/replayed-item-id-validation.okf +74 -0
- package/docs/journal/2026/09/04/diagnostics/workspaces/onecieldmsui/codex/replay-stall.okf +100 -0
- package/docs/journal/2026/09/04/implementation/observability/tool-calls/websocket-stream.okf +49 -0
- package/docs/journal/2026/09/04/implementation/web-chat/input/raw-injection.okf +42 -0
- package/docs/journal/2026/09/05/diagnostics/tty/claude-raw-idle-render.okf +25 -0
- package/docs/journal/2026/09/05/implementation/events/search-response-urls.okf +23 -0
- package/docs/journal/2026/09/05/implementation/tools/native-injection.okf +19 -0
- package/docs/journal/2026/09/05/implementation/windows/conpty/prompt-delivery-lifecycle.okf +43 -0
- package/docs/journal/2026/09/05/release/nightly/conpty-native-tools.okf +13 -0
- package/docs/journal/2026/09/05/release/nightly/search-result-urls.okf +14 -0
- package/docs/journal/2026/09/06/implementation/codex/inherited-web-mcp.okf +22 -0
- package/docs/journal/2026/09/07/integration/main/nightly-merge.okf +13 -0
- package/docs/journal/2026/09/07/release/stable/0.2.38.okf +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
okf: 1
|
|
2
|
+
kind: implementation-journal
|
|
3
|
+
task: meta-muse-spark-contributor-native-tools-and-files
|
|
4
|
+
date: 2026-09-02
|
|
5
|
+
status: implementation-verified
|
|
6
|
+
scope:
|
|
7
|
+
provider: meta
|
|
8
|
+
model: muse-spark-1.3-contributor
|
|
9
|
+
surfaces:
|
|
10
|
+
- OpenAI Responses
|
|
11
|
+
- OpenAI Chat Completions
|
|
12
|
+
- Anthropic Messages
|
|
13
|
+
- OpenAI Files
|
|
14
|
+
sources:
|
|
15
|
+
official:
|
|
16
|
+
- https://dev.meta.ai/docs/models/
|
|
17
|
+
- https://dev.meta.ai/docs/getting-started/cookbook
|
|
18
|
+
- https://github.com/meta-models/meta-model-cookbook
|
|
19
|
+
implementation_references:
|
|
20
|
+
- repository: https://github.com/meta-models/muse-code-sdk
|
|
21
|
+
adopted:
|
|
22
|
+
- preserve reasoning effort and reasoning-token accounting across turns
|
|
23
|
+
- repository: https://github.com/anomalyco/opencode
|
|
24
|
+
adopted:
|
|
25
|
+
- use native provider wire protocols
|
|
26
|
+
- request automatic reasoning summaries
|
|
27
|
+
- include encrypted reasoning for stateless replay
|
|
28
|
+
- leave sufficient output capacity for reasoning before tool emission
|
|
29
|
+
confirmed_contract:
|
|
30
|
+
protocols:
|
|
31
|
+
- Responses, Chat Completions, and Messages are all supported by Muse Spark
|
|
32
|
+
- Responses web search uses a web_search server tool
|
|
33
|
+
- Responses tool search uses one tool_search server tool and deferred function tools
|
|
34
|
+
files:
|
|
35
|
+
inline_limit_bytes: 50000000
|
|
36
|
+
files_api_file_limit_bytes: 1073741824
|
|
37
|
+
team_storage_limit_bytes: 107374182400
|
|
38
|
+
inference_purpose: user_data
|
|
39
|
+
expiry_seconds_range: 3600..2592000
|
|
40
|
+
delete_route: DELETE /v1/files/{file_id}
|
|
41
|
+
mime_types:
|
|
42
|
+
image:
|
|
43
|
+
- image/png
|
|
44
|
+
- image/jpeg
|
|
45
|
+
- image/jpg
|
|
46
|
+
- image/gif
|
|
47
|
+
- image/webp
|
|
48
|
+
- image/x-icon
|
|
49
|
+
video:
|
|
50
|
+
- video/mp4
|
|
51
|
+
audio:
|
|
52
|
+
- audio/mpeg
|
|
53
|
+
- audio/wav
|
|
54
|
+
documents:
|
|
55
|
+
- application/pdf
|
|
56
|
+
- text/plain
|
|
57
|
+
- application/json
|
|
58
|
+
- application/jsonl
|
|
59
|
+
pdf_processing:
|
|
60
|
+
text_pages: first 100
|
|
61
|
+
rendered_page_images: first 50
|
|
62
|
+
audio_note: Muse Spark 1.3 accepts audio but Meta documents degraded support and recommends 1.2 or Muse Voice Transcribe for audio work
|
|
63
|
+
observed_before_change:
|
|
64
|
+
compatibility_probe:
|
|
65
|
+
max_tokens: 128
|
|
66
|
+
result: stop_reason=max_tokens with no tool_use block
|
|
67
|
+
same_messages_tool_request:
|
|
68
|
+
max_tokens: 4096
|
|
69
|
+
result: tool_use compat_echo returned
|
|
70
|
+
changes:
|
|
71
|
+
- added Muse model presets with 4096 compatibility output tokens and 1,048,576-token context
|
|
72
|
+
- made Chat Completions a native Meta protocol instead of routing it through Messages conversion
|
|
73
|
+
- declared native Meta server web-tool support
|
|
74
|
+
- preserved web_search, tool_search, defer_loading, result-inclusion, and multimedia blocks
|
|
75
|
+
- separated Responses minimal effort from Messages, where live Meta rejected minimal and low is the minimum
|
|
76
|
+
- matched OpenCode's Meta reasoning summary and encrypted reasoning replay options
|
|
77
|
+
- added streaming Files API forwarding so uploads do not accumulate in router memory
|
|
78
|
+
- authenticated /v1/files routes with the same Remote Bridge bearer boundary as model routes
|
|
79
|
+
- forwarded file response metadata and implemented list, content, and delete resource paths
|
|
80
|
+
live_verification:
|
|
81
|
+
contributor_compatibility:
|
|
82
|
+
command: python ciel_runtime.py test 120 full
|
|
83
|
+
result: text, tool_use, and tool_result all passed
|
|
84
|
+
responses_web_search:
|
|
85
|
+
http_status: 200
|
|
86
|
+
output:
|
|
87
|
+
web_search_calls: 2
|
|
88
|
+
included_results: 12
|
|
89
|
+
url_citations: 1
|
|
90
|
+
responses_tool_search:
|
|
91
|
+
http_status: 200
|
|
92
|
+
output_types:
|
|
93
|
+
- reasoning
|
|
94
|
+
- message
|
|
95
|
+
- tool_search_call
|
|
96
|
+
- tool_search_output
|
|
97
|
+
- function_call
|
|
98
|
+
selected_function: lookup_issue
|
|
99
|
+
chat_tool_call:
|
|
100
|
+
automatic_choice_status: 200
|
|
101
|
+
named_choice_projected_to_auto_status: 200
|
|
102
|
+
finish_reason: tool_calls
|
|
103
|
+
selected_function: lookup_issue
|
|
104
|
+
files_pdf_round_trip:
|
|
105
|
+
upload_status: 200
|
|
106
|
+
uploaded_pdf_bytes: 13264
|
|
107
|
+
inference_status: 200
|
|
108
|
+
extracted_text: Dummy PDF file
|
|
109
|
+
delete_status: 200
|
|
110
|
+
deleted: true
|
|
111
|
+
messages_effort:
|
|
112
|
+
minimal_before_normalization: HTTP 400 unsupported output_config.effort
|
|
113
|
+
low_after_normalization: HTTP 200
|
|
114
|
+
verification:
|
|
115
|
+
targeted:
|
|
116
|
+
- 35 Meta provider tests passed
|
|
117
|
+
- 12 remote-memory runtime integration tests passed
|
|
118
|
+
- 55 Remote Bridge tests passed
|
|
119
|
+
- 20 router request-limit tests passed
|
|
120
|
+
- Ruff passed
|
|
121
|
+
full_suite:
|
|
122
|
+
command: npm test
|
|
123
|
+
result: 3117 tests passed; 137 skipped; 0 failures
|
|
124
|
+
package:
|
|
125
|
+
- documentation metadata checks passed
|
|
126
|
+
- npm pack dry run included provider_files_proxy.py and this journal
|
|
127
|
+
deployment:
|
|
128
|
+
local:
|
|
129
|
+
command: powershell -NoProfile -ExecutionPolicy Bypass -File ./install.ps1
|
|
130
|
+
result: passed
|
|
131
|
+
installed_version: 0.2.37
|
|
132
|
+
source_hash_match:
|
|
133
|
+
- ciel_runtime.py
|
|
134
|
+
- ciel_runtime_support/providers/meta.py
|
|
135
|
+
- ciel_runtime_support/provider_files_proxy.py
|
|
136
|
+
restored_current_provider: zai-start-plan
|
|
137
|
+
nightly: scheduled-on-nightly-push
|
|
138
|
+
security:
|
|
139
|
+
- contributor API key was loaded from Ciel credential storage and never printed or written to this journal
|
|
140
|
+
- uploaded verification PDF was deleted from Meta Files after inference
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
okf: 1
|
|
2
|
+
kind: implementation-journal
|
|
3
|
+
task: meta-muse-spark-1.3-support
|
|
4
|
+
date: 2026-09-02
|
|
5
|
+
status: in-progress
|
|
6
|
+
scope:
|
|
7
|
+
provider: meta
|
|
8
|
+
models:
|
|
9
|
+
- muse-spark-1.3
|
|
10
|
+
- muse-spark-1.3-contributor
|
|
11
|
+
evidence:
|
|
12
|
+
official_models_page: https://dev.meta.ai/docs/models/
|
|
13
|
+
official_release: https://research.meta.ai/blog/introducing-muse-spark-1-3
|
|
14
|
+
confirmed:
|
|
15
|
+
- muse-spark-1.3 is the recommended default for new work
|
|
16
|
+
- muse-spark-1.3-contributor is the Contributor tier model ID
|
|
17
|
+
- both models have a 1,048,576 token context window
|
|
18
|
+
- both are available through Responses, Chat Completions, and Messages APIs
|
|
19
|
+
- Contributor tier permits training on prompts and completions
|
|
20
|
+
- supported reasoning efforts are minimal, low, medium, high, and xhigh
|
|
21
|
+
changes:
|
|
22
|
+
- changed fresh Meta provider default from muse-spark-1.1 to muse-spark-1.3
|
|
23
|
+
- added the current official Muse Spark catalog and retained older model IDs
|
|
24
|
+
- added model-specific 1M profiles for standard and contributor variants
|
|
25
|
+
- exposed all official reasoning levels to Codex and xhigh capability to Claude Code
|
|
26
|
+
- added a persistent migration for existing configuration catalogs
|
|
27
|
+
- corrected Meta API key status and provider-option CLI coverage
|
|
28
|
+
verification:
|
|
29
|
+
status: source-verified
|
|
30
|
+
commands:
|
|
31
|
+
- command: python -m unittest discover -s tests -p "test_meta_provider.py" -v
|
|
32
|
+
result: 27 tests passed
|
|
33
|
+
- command: python -m unittest discover -s tests -q
|
|
34
|
+
result: 3107 tests passed; 137 skipped
|
|
35
|
+
- command: python -m compileall -q ciel_runtime.py ciel_runtime_support tests
|
|
36
|
+
result: passed
|
|
37
|
+
- command: python -m ruff check ciel_runtime.py ciel_runtime_support/config_migrations.py ciel_runtime_support/provider_option_cli.py ciel_runtime_support/providers/meta.py tests/test_meta_provider.py
|
|
38
|
+
result: passed
|
|
39
|
+
- command: python ciel_runtime.py models meta
|
|
40
|
+
result: five official models listed, including both 1.3 IDs
|
|
41
|
+
- command: in-memory Claude and Codex projection probe
|
|
42
|
+
result: both 1.3 IDs resolved exactly with 1M context and five reasoning levels
|
|
43
|
+
live_inference:
|
|
44
|
+
result: not-run
|
|
45
|
+
reason: no Meta MODEL_API_KEY is configured in the shared or workspace Ciel configurations
|
|
46
|
+
deployment:
|
|
47
|
+
local:
|
|
48
|
+
command: powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1
|
|
49
|
+
target: C:/Users/djlov/.local/share/ciel-runtime
|
|
50
|
+
result: passed
|
|
51
|
+
installed_cli_models: five official models, including both 1.3 IDs
|
|
52
|
+
source_installed_hash_match: true
|
|
53
|
+
nightly: pending
|