@abot-ai/runtime 1.1.0 → 1.2.0
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 +6 -3
- package/dist/src/capabilities/tool-types.d.ts +1 -1
- package/dist/src/model-gateway/providers/ollama/generation-options.d.ts +1 -3
- package/dist/src/model-gateway/providers/ollama/generation-options.js +1 -5
- package/dist/src/model-gateway/providers/ollama/payload.js +0 -8
- package/dist/src/model-gateway/server/request-body.js +1 -0
- package/dist/src/plugin-sdk/index.d.ts +2 -0
- package/dist/src/plugin-sdk/index.js +2 -0
- package/dist/src/plugin-sdk/tool-availability-brief.d.ts +9 -0
- package/dist/src/plugin-sdk/tool-availability-brief.js +48 -0
- package/dist/src/plugin-sdk/tool-availability-overview.d.ts +9 -0
- package/dist/src/plugin-sdk/tool-availability-overview.js +62 -0
- package/dist/src/runtime/adapters/registered-tool-payload-plan.d.ts +0 -9
- package/dist/src/runtime/adapters/registered-tool-payload-plan.js +0 -67
- package/dist/src/runtime/adapters/registered-tool-payload-related-artifacts.d.ts +13 -0
- package/dist/src/runtime/adapters/registered-tool-payload-related-artifacts.js +84 -0
- package/dist/src/runtime/adapters/registered-tool-worker-capabilities/catalog.js +4 -0
- package/dist/src/runtime/adapters/registered-tool-worker-capabilities/execution.js +3 -0
- package/dist/src/runtime/adapters/registered-tool-worker-capabilities/payload-lifecycle.d.ts +1 -0
- package/dist/src/runtime/adapters/registered-tool-worker-capabilities/payload-lifecycle.js +11 -1
- package/dist/src/runtime/adapters/registered-tool-worker-capabilities/payload-stages.d.ts +1 -0
- package/dist/src/runtime/adapters/registered-tool-worker-capabilities/payload-stages.js +9 -1
- package/dist/src/runtime/capabilities/request-bound-tool-registry.js +1 -24
- package/dist/src/runtime/capabilities/tool-availability.d.ts +6 -0
- package/dist/src/runtime/capabilities/tool-availability.js +28 -0
- package/dist/src/runtime/context/capability-brief.d.ts +25 -0
- package/dist/src/runtime/context/capability-brief.js +106 -0
- package/dist/src/runtime/context/request-tool-results-message-binding.d.ts +6 -0
- package/dist/src/runtime/context/request-tool-results-message-binding.js +30 -0
- package/dist/src/runtime/context/request-tool-results-scope.d.ts +3 -0
- package/dist/src/runtime/context/request-tool-results-scope.js +8 -0
- package/dist/src/runtime/context/request-tool-results.d.ts +8 -4
- package/dist/src/runtime/context/request-tool-results.js +49 -38
- package/dist/src/runtime/orchestration/role-calls/candidate-validation.js +8 -1
- package/dist/src/runtime/orchestration/role-calls/child-return.d.ts +4 -0
- package/dist/src/runtime/orchestration/role-calls/child-return.js +25 -5
- package/dist/src/runtime/orchestration/role-calls/command-decoder.js +8 -3
- package/dist/src/runtime/orchestration/role-calls/command-dispatch/child-transitions.d.ts +1 -1
- package/dist/src/runtime/orchestration/role-calls/command-dispatch/child-transitions.js +17 -2
- package/dist/src/runtime/orchestration/role-calls/command-dispatch.d.ts +1 -1
- package/dist/src/runtime/orchestration/role-calls/command-dispatch.js +2 -2
- package/dist/src/runtime/orchestration/role-calls/contracts.d.ts +5 -2
- package/dist/src/runtime/orchestration/role-calls/contracts.js +4 -4
- package/dist/src/runtime/orchestration/role-calls/dependency-results.d.ts +1 -1
- package/dist/src/runtime/orchestration/role-calls/dependency-results.js +1 -0
- package/dist/src/runtime/orchestration/role-calls/index.d.ts +5 -1
- package/dist/src/runtime/orchestration/role-calls/index.js +5 -1
- package/dist/src/runtime/orchestration/role-calls/ledger.d.ts +3 -1
- package/dist/src/runtime/orchestration/role-calls/ledger.js +9 -2
- package/dist/src/runtime/orchestration/role-calls/reducer.d.ts +1 -1
- package/dist/src/runtime/orchestration/role-calls/reducer.js +2 -2
- package/dist/src/runtime/orchestration/role-calls/result-receipt.d.ts +49 -0
- package/dist/src/runtime/orchestration/role-calls/result-receipt.js +188 -0
- package/dist/src/runtime/orchestration/role-calls/return-result-receipt.d.ts +19 -0
- package/dist/src/runtime/orchestration/role-calls/return-result-receipt.js +52 -0
- package/dist/src/runtime/orchestration/role-calls/transactions.js +1 -0
- package/dist/src/runtime/orchestration/role-calls/work-result-lineage.d.ts +34 -0
- package/dist/src/runtime/orchestration/role-calls/work-result-lineage.js +185 -0
- package/dist/src/runtime/orchestration/role-calls/work-result-receipt.d.ts +36 -0
- package/dist/src/runtime/orchestration/role-calls/work-result-receipt.js +187 -0
- package/dist/src/runtime/orchestration/role-executors/activation/result-normalization.js +6 -3
- package/dist/src/runtime/orchestration/role-executors/child-invocation/transaction.js +1 -0
- package/dist/src/runtime/orchestration/role-executors/contracts.d.ts +2 -1
- package/dist/src/runtime/orchestration/worker-capabilities/assignment-provenance.d.ts +36 -0
- package/dist/src/runtime/orchestration/worker-capabilities/assignment-provenance.js +171 -0
- package/dist/src/runtime/orchestration/worker-capabilities/contracts.d.ts +32 -1
- package/dist/src/runtime/orchestration/worker-capabilities/execution/invocation-preparation.d.ts +2 -1
- package/dist/src/runtime/orchestration/worker-capabilities/execution/invocation-preparation.js +3 -0
- package/dist/src/runtime/orchestration/worker-capabilities/execution.js +42 -19
- package/dist/src/runtime/orchestration/worker-capabilities/index.d.ts +2 -0
- package/dist/src/runtime/orchestration/worker-capabilities/index.js +2 -0
- package/dist/src/runtime/orchestration/worker-capabilities/payload-assignment-validation.d.ts +3 -0
- package/dist/src/runtime/orchestration/worker-capabilities/payload-assignment-validation.js +30 -0
- package/dist/src/runtime/orchestration/worker-capabilities/payload-author.js +8 -19
- package/dist/src/runtime/orchestration/worker-capabilities/payload-contracts.d.ts +5 -1
- package/dist/src/runtime/orchestration/worker-capabilities/payload-instructions.js +1 -1
- package/dist/src/runtime/orchestration/worker-capabilities/payload-source-provenance.d.ts +14 -0
- package/dist/src/runtime/orchestration/worker-capabilities/payload-source-provenance.js +132 -0
- package/dist/src/runtime/request/capability-brief.d.ts +5 -0
- package/dist/src/runtime/request/capability-brief.js +24 -0
- package/dist/src/runtime/request/execution-scope.d.ts +2 -1
- package/dist/src/runtime/request/role-executor-composition.js +1 -1
- package/dist/src/runtime/request/worker-capability-composition.d.ts +2 -1
- package/dist/src/runtime/request/worker-capability-composition.js +6 -1
- package/dist/src/runtime/request/worker-capability-payload.js +11 -8
- package/dist/src/runtime/steps/execution-agent/prompt.js +4 -3
- package/dist/src/runtime/steps/planner-decision/capability-catalog-context.d.ts +14 -0
- package/dist/src/runtime/steps/planner-decision/capability-catalog-context.js +87 -0
- package/dist/src/runtime/steps/planner-decision/contracts.d.ts +3 -5
- package/dist/src/runtime/steps/planner-decision/contracts.js +3 -3
- package/dist/src/runtime/steps/planner-decision/format.d.ts +3 -2
- package/dist/src/runtime/steps/planner-decision/format.js +73 -76
- package/dist/src/runtime/steps/planner-decision/input.d.ts +4 -3
- package/dist/src/runtime/steps/planner-decision/input.js +10 -7
- package/dist/src/runtime/steps/planner-decision/parser.d.ts +3 -2
- package/dist/src/runtime/steps/planner-decision/parser.js +10 -19
- package/dist/src/runtime/steps/planner-decision/plan-parser.js +18 -12
- package/dist/src/runtime/steps/planner-decision/prompt.js +33 -28
- package/dist/src/runtime/steps/planner-decision/resume.d.ts +1 -1
- package/dist/src/runtime/steps/planner-decision/resume.js +38 -1
- package/dist/src/runtime/steps/planner-decision/run.d.ts +3 -2
- package/dist/src/runtime/steps/reviewer-decision/audit-coverage.d.ts +10 -0
- package/dist/src/runtime/steps/reviewer-decision/audit-coverage.js +186 -0
- package/dist/src/runtime/steps/reviewer-decision/contracts.d.ts +3 -8
- package/dist/src/runtime/steps/reviewer-decision/contracts.js +12 -6
- package/dist/src/runtime/steps/reviewer-decision/delegated-context.d.ts +24 -0
- package/dist/src/runtime/steps/reviewer-decision/delegated-context.js +70 -0
- package/dist/src/runtime/steps/reviewer-decision/diagnostics.js +1 -1
- package/dist/src/runtime/steps/reviewer-decision/format.js +37 -24
- package/dist/src/runtime/steps/reviewer-decision/input.js +1 -1
- package/dist/src/runtime/steps/reviewer-decision/model-context.d.ts +4 -3
- package/dist/src/runtime/steps/reviewer-decision/model-context.js +92 -10
- package/dist/src/runtime/steps/reviewer-decision/parser.js +19 -1
- package/dist/src/runtime/steps/reviewer-decision/projection.js +42 -68
- package/dist/src/runtime/steps/reviewer-decision/prompt.js +10 -5
- package/dist/src/runtime/steps/reviewer-decision/run.js +12 -3
- package/dist/src/runtime/steps/reviewer-decision/verification-coverage.d.ts +14 -0
- package/dist/src/runtime/steps/reviewer-decision/verification-coverage.js +52 -0
- package/dist/src/runtime/steps/supervisor-decision/capability-brief.d.ts +14 -0
- package/dist/src/runtime/steps/supervisor-decision/capability-brief.js +38 -0
- package/dist/src/runtime/steps/supervisor-decision/contracts.d.ts +7 -3
- package/dist/src/runtime/steps/supervisor-decision/diagnostics.d.ts +2 -0
- package/dist/src/runtime/steps/supervisor-decision/diagnostics.js +8 -2
- package/dist/src/runtime/steps/supervisor-decision/format.js +32 -20
- package/dist/src/runtime/steps/supervisor-decision/input.d.ts +4 -1
- package/dist/src/runtime/steps/supervisor-decision/input.js +19 -1
- package/dist/src/runtime/steps/supervisor-decision/parser.js +62 -59
- package/dist/src/runtime/steps/supervisor-decision/prompt.js +6 -7
- package/dist/src/runtime/steps/supervisor-decision/resume.js +47 -1
- package/dist/src/runtime/steps/supervisor-decision/run.js +10 -0
- package/dist/src/runtime/steps/supervisor-decision/working-directory.js +2 -1
- package/dist/src/runtime/steps/worker-decision/contracts.d.ts +2 -1
- package/dist/src/runtime/steps/worker-decision/input/canonical-state.js +8 -1
- package/dist/src/runtime/steps/worker-decision/input/diagnostic-projection.js +2 -2
- package/dist/src/runtime/steps/worker-decision/input/prompt-context.d.ts +1 -0
- package/dist/src/runtime/steps/worker-decision/input/prompt-context.js +4 -1
- package/dist/src/runtime/steps/worker-decision/input/reference-context.js +34 -14
- package/dist/src/runtime/steps/worker-decision/input/types.d.ts +2 -1
- package/dist/src/runtime/steps/worker-decision/input.d.ts +1 -0
- package/dist/src/runtime/steps/worker-decision/input.js +1 -0
- package/dist/src/runtime/steps/worker-decision/payload-dependency-results.d.ts +8 -0
- package/dist/src/runtime/steps/worker-decision/payload-dependency-results.js +19 -0
- package/dist/src/runtime/steps/worker-decision/prompt.js +8 -8
- package/dist/src/runtime/steps/worker-decision/result-author.js +18 -11
- package/dist/src/runtime/steps/worker-decision/run.js +2 -2
- package/dist/src/web-ui/app/ARCHITECTURE.md +19 -6
- package/dist/src/web-ui/app/app.js +6 -7
- package/dist/src/web-ui/app/components/composer-context-window.d.ts +25 -0
- package/dist/src/web-ui/app/components/composer-context-window.js +155 -0
- package/dist/src/web-ui/app/components/composer-plan.d.ts +9 -0
- package/dist/src/web-ui/app/components/composer-plan.js +128 -0
- package/dist/src/web-ui/app/components/conversation-activity.d.ts +5 -6
- package/dist/src/web-ui/app/components/conversation-activity.js +64 -157
- package/dist/src/web-ui/app/components/conversation-role-cards.d.ts +23 -0
- package/dist/src/web-ui/app/components/conversation-role-cards.js +181 -0
- package/dist/src/web-ui/app/components/conversation-sidebar-layout.js +12 -0
- package/dist/src/web-ui/app/components/conversation-sources.d.ts +7 -0
- package/dist/src/web-ui/app/components/conversation-sources.js +182 -0
- package/dist/src/web-ui/app/components/conversation-view.js +34 -6
- package/dist/src/web-ui/app/components/model-selector.js +4 -1
- package/dist/src/web-ui/app/components/operations-section.js +46 -0
- package/dist/src/web-ui/app/components/workspace-shell.js +86 -78
- package/dist/src/web-ui/app/controllers/realtime-event-controller.d.ts +1 -0
- package/dist/src/web-ui/app/controllers/realtime-event-controller.js +55 -90
- package/dist/src/web-ui/app/controllers/runtime-selection-controller.js +2 -0
- package/dist/src/web-ui/app/controllers/session-controller.js +17 -12
- package/dist/src/web-ui/app/index.html +209 -210
- package/dist/src/web-ui/app/lib/composer-plan-model.d.ts +32 -0
- package/dist/src/web-ui/app/lib/composer-plan-model.js +108 -0
- package/dist/src/web-ui/app/lib/conversation-role-model.d.ts +19 -0
- package/dist/src/web-ui/app/lib/conversation-role-model.js +193 -0
- package/dist/src/web-ui/app/lib/event-presentation.js +30 -9
- package/dist/src/web-ui/app/lib/source-url-policy.d.ts +2 -0
- package/dist/src/web-ui/app/lib/source-url-policy.js +31 -0
- package/dist/src/web-ui/app/lib/task-progress.d.ts +53 -0
- package/dist/src/web-ui/app/lib/task-progress.js +233 -0
- package/dist/src/web-ui/app/lib/tool-invocation-count.d.ts +5 -0
- package/dist/src/web-ui/app/lib/tool-invocation-count.js +21 -0
- package/dist/src/web-ui/app/lib/web-source-event.d.ts +8 -0
- package/dist/src/web-ui/app/lib/web-source-event.js +21 -0
- package/dist/src/web-ui/app/lib/web-sources.d.ts +36 -0
- package/dist/src/web-ui/app/lib/web-sources.js +177 -0
- package/dist/src/web-ui/app/styles/00-tokens-base.css +15 -3
- package/dist/src/web-ui/app/styles/10-shell-sessions.css +24 -34
- package/dist/src/web-ui/app/styles/12-conversation-sidebar.css +93 -0
- package/dist/src/web-ui/app/styles/20-chat-composer.css +55 -472
- package/dist/src/web-ui/app/styles/21-composer-controls.css +368 -0
- package/dist/src/web-ui/app/styles/22-composer-context-window.css +90 -0
- package/dist/src/web-ui/app/styles/23-composer-plan.css +171 -0
- package/dist/src/web-ui/app/styles/24-conversation-role-cards.css +205 -0
- package/dist/src/web-ui/app/styles/25-conversation-sources.css +141 -0
- package/dist/src/web-ui/app/styles/30-inspector-config.css +21 -209
- package/dist/src/web-ui/app/styles/35-memory-onboarding.css +8 -8
- package/dist/src/web-ui/app/styles/36-memory-management.css +13 -13
- package/dist/src/web-ui/app/styles/37-config-operations.css +197 -0
- package/dist/src/web-ui/app/styles/40-config-workspace.css +36 -36
- package/dist/src/web-ui/app/styles/90-responsive.css +14 -77
- package/dist/src/web-ui/app/styles/foundation.css +2 -2
- package/dist/src/web-ui/app/styles.css +7 -0
- package/dist/src/web-ui/app/ui-behavior.d.ts +1 -1
- package/dist/src/web-ui/app/ui-behavior.js +1 -1
- package/docs/configuration.md +15 -8
- package/docs/installation.md +7 -4
- package/docs/known-limitations.md +21 -0
- package/docs/plugins.md +28 -13
- package/docs/runtime-invariant-coverage.md +18 -17
- package/docs/runtime-prompt-policy-contracts.md +27 -17
- package/package.json +4 -3
- package/plugins/capability-brief/source/index.ts +5 -48
- package/plugins/capability-brief/src/index.cjs +46 -33
- package/plugins/system-probe/plugin.json +1 -0
- package/plugins/web/README.md +125 -0
- package/plugins/web/plugin.json +1 -1
- package/plugins/web/skills/web_fetch_skill/SKILL.md +2 -2
- package/plugins/web/skills/web_search_skill/SKILL.md +8 -4
- package/plugins/web/source/errors.ts +5 -1
- package/plugins/web/source/fetch-presentation.ts +61 -0
- package/plugins/web/source/fetch-service.ts +2 -31
- package/plugins/web/source/light/config.ts +196 -0
- package/plugins/web/source/light/crawl/origin-gate.ts +134 -0
- package/plugins/web/source/light/crawl/robots-cache.ts +71 -0
- package/plugins/web/source/light/crawl/robots-parser.ts +132 -0
- package/plugins/web/source/light/crawl/robots-policy.ts +154 -0
- package/plugins/web/source/light/crawl/session-budget.ts +141 -0
- package/plugins/web/source/light/crawl/transport.ts +216 -0
- package/plugins/web/source/light/discovery/candidate-values.ts +63 -0
- package/plugins/web/source/light/discovery/feed-document.ts +127 -0
- package/plugins/web/source/light/discovery/html-links.ts +80 -0
- package/plugins/web/source/light/discovery/html-robots-directives.ts +29 -0
- package/plugins/web/source/light/discovery/markup-tree.ts +145 -0
- package/plugins/web/source/light/discovery/origin-dates.ts +71 -0
- package/plugins/web/source/light/discovery/sitemap-document.ts +63 -0
- package/plugins/web/source/light/documents/cache-policy.ts +28 -0
- package/plugins/web/source/light/documents/document-cache.ts +99 -0
- package/plugins/web/source/light/documents/document-charset.ts +89 -0
- package/plugins/web/source/light/documents/document-contract.ts +20 -0
- package/plugins/web/source/light/documents/document-reader.ts +75 -0
- package/plugins/web/source/light/documents/extract-document.ts +124 -0
- package/plugins/web/source/light/documents/http-cache-freshness.ts +68 -0
- package/plugins/web/source/light/documents/response-decoding.ts +120 -0
- package/plugins/web/source/light/ranking/document-ranking.ts +114 -0
- package/plugins/web/source/light/ranking/query-normalization.ts +69 -0
- package/plugins/web/source/light/search-collection.ts +136 -0
- package/plugins/web/source/light/search-frontier.ts +246 -0
- package/plugins/web/source/light/search-metadata.ts +84 -0
- package/plugins/web/source/light/search-service.ts +154 -0
- package/plugins/web/source/light/search-unavailable.ts +33 -0
- package/plugins/web/source/light/sources/catalog.ts +312 -0
- package/plugins/web/source/light/sources/source-definition.ts +9 -0
- package/plugins/web/source/light/sources/source-selection.ts +35 -0
- package/plugins/web/source/plugin.ts +70 -56
- package/plugins/web/source/public-http.ts +10 -1
- package/plugins/web/source/search-presentation.ts +63 -63
- package/plugins/web/source/search-service-selector.ts +31 -0
- package/plugins/web/source/search-service.ts +6 -0
- package/plugins/web/source/search-source-presentation.ts +76 -0
- package/plugins/web/source/search-types.ts +4 -0
- package/plugins/web/source/source-output-receipts.ts +267 -0
- package/plugins/web/source/source-receipt-budget.ts +51 -0
- package/plugins/web/source/source-receipt-contract.ts +18 -0
- package/plugins/web/src/index.cjs +3214 -288
- package/src/runtime/README.md +30 -9
- package/dist/src/model-gateway/structured-output/budget.d.ts +0 -7
- package/dist/src/model-gateway/structured-output/budget.js +0 -20
- package/dist/src/model-gateway/structured-output/schema-character-estimator.d.ts +0 -1
- package/dist/src/model-gateway/structured-output/schema-character-estimator.js +0 -211
- package/dist/src/model-gateway/structured-output-budget.d.ts +0 -1
- package/dist/src/model-gateway/structured-output-budget.js +0 -1
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
/* Composer controls and the menus anchored to them. */
|
|
2
|
+
|
|
3
|
+
.composer-controls {
|
|
4
|
+
position: relative;
|
|
5
|
+
container-type: inline-size;
|
|
6
|
+
grid-column: 1 / -1;
|
|
7
|
+
grid-row: 3;
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: 34px auto minmax(0, 1fr) auto;
|
|
10
|
+
gap: 5px;
|
|
11
|
+
align-items: center;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.composer-controls > * {
|
|
16
|
+
min-width: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.composer-model-controls {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: 4px;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
padding-inline: 6px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.control-cluster,
|
|
28
|
+
.permission-mode-control {
|
|
29
|
+
position: relative;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.model-control {
|
|
34
|
+
flex: 0 1 auto;
|
|
35
|
+
min-width: 120px;
|
|
36
|
+
max-width: 220px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.agent-mode-control {
|
|
40
|
+
flex: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.agent-mode-button,
|
|
44
|
+
.model-select-button,
|
|
45
|
+
.permission-mode-button {
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: 6px;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
min-height: 32px;
|
|
51
|
+
padding: 0 8px;
|
|
52
|
+
border-color: transparent;
|
|
53
|
+
border-radius: 7px;
|
|
54
|
+
background: transparent;
|
|
55
|
+
color: var(--muted);
|
|
56
|
+
font-size: var(--font-size-md);
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
box-shadow: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.agent-mode-button:hover,
|
|
62
|
+
.agent-mode-button.open,
|
|
63
|
+
.model-select-button:hover,
|
|
64
|
+
.model-select-button.open,
|
|
65
|
+
.permission-mode-button:hover,
|
|
66
|
+
.permission-mode-button.open {
|
|
67
|
+
border-color: transparent;
|
|
68
|
+
background: rgba(95, 139, 182, 0.08);
|
|
69
|
+
color: var(--text);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.agent-mode-button,
|
|
73
|
+
.model-select-button {
|
|
74
|
+
width: 100%;
|
|
75
|
+
text-align: left;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.agent-mode-button > span:last-child,
|
|
79
|
+
.model-select-button > span,
|
|
80
|
+
.permission-mode-label {
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
text-overflow: ellipsis;
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.agent-mode-icon,
|
|
87
|
+
.model-select-icon {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.agent-mode-option-icon {
|
|
92
|
+
display: grid;
|
|
93
|
+
place-items: center;
|
|
94
|
+
width: 18px;
|
|
95
|
+
height: 18px;
|
|
96
|
+
border-radius: 5px;
|
|
97
|
+
background: rgba(93, 133, 173, 0.1);
|
|
98
|
+
color: var(--muted);
|
|
99
|
+
font-size: var(--font-size-xs);
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.model-select-button {
|
|
104
|
+
justify-content: space-between;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.model-select-button > svg:not(.model-select-icon) {
|
|
108
|
+
flex: none;
|
|
109
|
+
width: 13px;
|
|
110
|
+
height: 13px;
|
|
111
|
+
fill: none;
|
|
112
|
+
stroke: currentColor;
|
|
113
|
+
stroke-linecap: round;
|
|
114
|
+
stroke-linejoin: round;
|
|
115
|
+
stroke-width: 1.7;
|
|
116
|
+
opacity: 0.75;
|
|
117
|
+
transition: transform 120ms ease;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.model-select-button.open > svg:not(.model-select-icon) {
|
|
121
|
+
transform: rotate(180deg);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.agent-mode-button::after,
|
|
125
|
+
.permission-mode-button::after {
|
|
126
|
+
flex: none;
|
|
127
|
+
width: 5px;
|
|
128
|
+
height: 5px;
|
|
129
|
+
border-right: 1px solid currentColor;
|
|
130
|
+
border-bottom: 1px solid currentColor;
|
|
131
|
+
content: "";
|
|
132
|
+
opacity: 0.65;
|
|
133
|
+
transform: translateY(-1px) rotate(45deg);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.permission-mode-button {
|
|
137
|
+
width: auto;
|
|
138
|
+
font-size: var(--font-size-sm);
|
|
139
|
+
font-weight: 500;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.permission-mode-button.full {
|
|
143
|
+
background: transparent;
|
|
144
|
+
color: #d3b875;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.agent-mode-menu,
|
|
148
|
+
.model-select-menu,
|
|
149
|
+
.permission-mode-menu {
|
|
150
|
+
position: absolute;
|
|
151
|
+
bottom: calc(100% + 8px);
|
|
152
|
+
z-index: 80;
|
|
153
|
+
display: grid;
|
|
154
|
+
gap: 3px;
|
|
155
|
+
max-height: min(360px, max(120px, calc(100dvh - 300px)));
|
|
156
|
+
padding: 5px;
|
|
157
|
+
overflow-y: auto;
|
|
158
|
+
overscroll-behavior: contain;
|
|
159
|
+
border: 1px solid var(--line);
|
|
160
|
+
border-radius: 10px;
|
|
161
|
+
background: #132438;
|
|
162
|
+
box-shadow: 0 18px 42px rgba(0, 6, 16, 0.34);
|
|
163
|
+
opacity: 0;
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
transform: translateY(4px);
|
|
166
|
+
transition:
|
|
167
|
+
opacity 120ms ease,
|
|
168
|
+
transform 120ms ease;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.agent-mode-menu {
|
|
172
|
+
right: 0;
|
|
173
|
+
width: 260px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.model-select-menu {
|
|
177
|
+
left: 0;
|
|
178
|
+
width: max(100%, 240px);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.permission-mode-menu {
|
|
182
|
+
left: 0;
|
|
183
|
+
min-width: 180px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.agent-mode-menu.open,
|
|
187
|
+
.model-select-menu.open,
|
|
188
|
+
.permission-mode-menu.open {
|
|
189
|
+
opacity: 1;
|
|
190
|
+
pointer-events: auto;
|
|
191
|
+
transform: none;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.agent-mode-option,
|
|
195
|
+
.model-select-option,
|
|
196
|
+
.permission-mode-option {
|
|
197
|
+
border-color: transparent;
|
|
198
|
+
border-radius: 7px;
|
|
199
|
+
background: transparent;
|
|
200
|
+
color: var(--text);
|
|
201
|
+
text-align: left;
|
|
202
|
+
box-shadow: none;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.agent-mode-option:hover,
|
|
206
|
+
.agent-mode-option.selected,
|
|
207
|
+
.model-select-option:hover,
|
|
208
|
+
.model-select-option.selected,
|
|
209
|
+
.permission-mode-option:hover,
|
|
210
|
+
.permission-mode-option.selected {
|
|
211
|
+
border-color: transparent;
|
|
212
|
+
background: rgba(91, 138, 183, 0.11);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.model-select-option {
|
|
216
|
+
display: grid;
|
|
217
|
+
grid-template-columns: minmax(0, 1fr) 18px;
|
|
218
|
+
gap: 10px;
|
|
219
|
+
align-items: center;
|
|
220
|
+
min-height: 38px;
|
|
221
|
+
padding: 7px 9px;
|
|
222
|
+
font-size: var(--font-size-lg);
|
|
223
|
+
font-weight: 400;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.model-select-option-label {
|
|
227
|
+
overflow-wrap: anywhere;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.model-select-check {
|
|
231
|
+
color: #8eb7ec;
|
|
232
|
+
text-align: center;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.agent-mode-option {
|
|
236
|
+
display: grid;
|
|
237
|
+
grid-template-columns: 24px minmax(0, 1fr);
|
|
238
|
+
gap: 8px;
|
|
239
|
+
align-items: center;
|
|
240
|
+
min-height: 48px;
|
|
241
|
+
padding: 7px 9px;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.agent-mode-option strong,
|
|
245
|
+
.agent-mode-option small,
|
|
246
|
+
.permission-mode-option strong,
|
|
247
|
+
.permission-mode-option small {
|
|
248
|
+
display: block;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.agent-mode-option strong,
|
|
252
|
+
.permission-mode-option strong {
|
|
253
|
+
color: var(--text);
|
|
254
|
+
font-size: var(--font-size-md);
|
|
255
|
+
font-weight: 400;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.agent-mode-option small,
|
|
259
|
+
.permission-mode-option small {
|
|
260
|
+
margin-top: 2px;
|
|
261
|
+
color: var(--muted-2);
|
|
262
|
+
font-size: var(--font-size-sm);
|
|
263
|
+
font-weight: 450;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.permission-mode-option {
|
|
267
|
+
display: grid;
|
|
268
|
+
gap: 2px;
|
|
269
|
+
width: 100%;
|
|
270
|
+
min-height: 43px;
|
|
271
|
+
padding: 6px 8px;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.composer-submit-control {
|
|
275
|
+
position: relative;
|
|
276
|
+
display: inline-flex;
|
|
277
|
+
justify-self: end;
|
|
278
|
+
overflow: visible;
|
|
279
|
+
border-radius: 8px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@container (max-width: 400px) {
|
|
283
|
+
.control-cluster {
|
|
284
|
+
position: static;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.agent-mode-control,
|
|
288
|
+
.agent-mode-button {
|
|
289
|
+
width: 32px;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.agent-mode-button {
|
|
293
|
+
justify-content: center;
|
|
294
|
+
padding: 0;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.agent-mode-button > span:last-child {
|
|
298
|
+
position: absolute;
|
|
299
|
+
width: 1px;
|
|
300
|
+
height: 1px;
|
|
301
|
+
padding: 0;
|
|
302
|
+
overflow: hidden;
|
|
303
|
+
clip-path: inset(50%);
|
|
304
|
+
white-space: nowrap;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.agent-mode-icon {
|
|
308
|
+
display: inline-grid;
|
|
309
|
+
place-items: center;
|
|
310
|
+
width: 18px;
|
|
311
|
+
height: 18px;
|
|
312
|
+
color: var(--muted);
|
|
313
|
+
font-size: var(--font-size-md);
|
|
314
|
+
font-weight: 500;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.agent-mode-button::after {
|
|
318
|
+
display: none;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.agent-mode-menu,
|
|
322
|
+
.model-select-menu {
|
|
323
|
+
right: auto;
|
|
324
|
+
left: 0;
|
|
325
|
+
width: min(280px, 100%);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
@container (max-width: 320px) {
|
|
330
|
+
.model-control {
|
|
331
|
+
flex: none;
|
|
332
|
+
width: 32px;
|
|
333
|
+
min-width: 32px;
|
|
334
|
+
max-width: 32px;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.model-select-button {
|
|
338
|
+
justify-content: center;
|
|
339
|
+
width: 32px;
|
|
340
|
+
padding: 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.model-select-button > span {
|
|
344
|
+
position: absolute;
|
|
345
|
+
width: 1px;
|
|
346
|
+
height: 1px;
|
|
347
|
+
padding: 0;
|
|
348
|
+
overflow: hidden;
|
|
349
|
+
clip-path: inset(50%);
|
|
350
|
+
white-space: nowrap;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.model-select-button .model-select-icon {
|
|
354
|
+
display: block;
|
|
355
|
+
width: 16px;
|
|
356
|
+
height: 16px;
|
|
357
|
+
fill: none;
|
|
358
|
+
stroke: currentColor;
|
|
359
|
+
stroke-linecap: round;
|
|
360
|
+
stroke-linejoin: round;
|
|
361
|
+
stroke-width: 1.7;
|
|
362
|
+
opacity: 1;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.model-select-button > svg:not(.model-select-icon) {
|
|
366
|
+
display: none;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* Compact context usage; details do not take space in the conversation. */
|
|
2
|
+
|
|
3
|
+
.composer-context-window {
|
|
4
|
+
--context-accent: #80b7ff;
|
|
5
|
+
flex: none;
|
|
6
|
+
margin-inline-start: auto;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.composer-context-window.rejected {
|
|
10
|
+
--context-accent: #ef9a9a;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.composer-context-window-button {
|
|
14
|
+
display: grid;
|
|
15
|
+
place-items: center;
|
|
16
|
+
width: 30px;
|
|
17
|
+
min-height: 32px;
|
|
18
|
+
padding: 0;
|
|
19
|
+
border-color: transparent;
|
|
20
|
+
border-radius: 7px;
|
|
21
|
+
background: transparent;
|
|
22
|
+
color: var(--context-accent);
|
|
23
|
+
box-shadow: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.composer-context-window-button:hover,
|
|
27
|
+
.composer-context-window-button:focus-visible {
|
|
28
|
+
border-color: transparent;
|
|
29
|
+
background: rgba(95, 139, 182, 0.08);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.composer-context-window-ring {
|
|
33
|
+
display: block;
|
|
34
|
+
width: 19px;
|
|
35
|
+
height: 19px;
|
|
36
|
+
border-radius: 50%;
|
|
37
|
+
background: conic-gradient(
|
|
38
|
+
var(--context-accent) var(--context-used, 0%),
|
|
39
|
+
rgba(118, 157, 198, 0.2) 0
|
|
40
|
+
);
|
|
41
|
+
mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.composer-context-window-tooltip {
|
|
45
|
+
/* Anchor to the composer controls so the bubble stays inside narrow screens. */
|
|
46
|
+
position: absolute;
|
|
47
|
+
right: 0;
|
|
48
|
+
bottom: calc(100% + 8px);
|
|
49
|
+
z-index: 90;
|
|
50
|
+
display: grid;
|
|
51
|
+
gap: 7px;
|
|
52
|
+
width: min(320px, 100%);
|
|
53
|
+
padding: 12px;
|
|
54
|
+
border: 1px solid var(--line);
|
|
55
|
+
border-radius: 10px;
|
|
56
|
+
background: #132438;
|
|
57
|
+
color: var(--muted-2);
|
|
58
|
+
box-shadow: 0 12px 32px rgba(0, 6, 16, 0.3);
|
|
59
|
+
font-size: var(--font-size-sm);
|
|
60
|
+
line-height: 1.5;
|
|
61
|
+
overflow-wrap: anywhere;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.composer-context-window-tooltip::after {
|
|
65
|
+
position: absolute;
|
|
66
|
+
right: 0;
|
|
67
|
+
bottom: -9px;
|
|
68
|
+
left: 0;
|
|
69
|
+
height: 9px;
|
|
70
|
+
content: "";
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.composer-context-window-header {
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: baseline;
|
|
76
|
+
justify-content: space-between;
|
|
77
|
+
gap: 12px;
|
|
78
|
+
color: var(--text);
|
|
79
|
+
font-size: var(--font-size-md);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.composer-context-window-percentage {
|
|
83
|
+
color: var(--context-accent);
|
|
84
|
+
font-family: var(--font-mono);
|
|
85
|
+
font-variant-numeric: tabular-nums;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.composer-context-window-compaction {
|
|
89
|
+
color: #8dd7b6;
|
|
90
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
.composer-plan {
|
|
2
|
+
flex: none;
|
|
3
|
+
width: min(100%, 860px);
|
|
4
|
+
min-width: 0;
|
|
5
|
+
margin-bottom: 8px;
|
|
6
|
+
color: var(--text);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.composer-plan-details {
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
border: 1px solid var(--line);
|
|
12
|
+
border-radius: 12px;
|
|
13
|
+
background: var(--surface, #132438);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.composer-plan-toggle {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 9px;
|
|
20
|
+
min-height: 42px;
|
|
21
|
+
padding: 10px 12px;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
list-style: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.composer-plan-toggle::-webkit-details-marker {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.composer-plan-toggle:focus-visible {
|
|
31
|
+
outline: 2px solid #80b7ff;
|
|
32
|
+
outline-offset: -3px;
|
|
33
|
+
border-radius: 11px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.composer-plan-label {
|
|
37
|
+
flex: none;
|
|
38
|
+
color: var(--muted-2);
|
|
39
|
+
font-size: var(--font-size-sm);
|
|
40
|
+
font-weight: 650;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.composer-plan-preview {
|
|
44
|
+
flex: 1;
|
|
45
|
+
min-width: 0;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
color: var(--text);
|
|
48
|
+
font-size: var(--font-size-md);
|
|
49
|
+
text-overflow: ellipsis;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.composer-plan-chevron {
|
|
54
|
+
flex: none;
|
|
55
|
+
color: var(--muted-2);
|
|
56
|
+
transition: transform 120ms ease;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.composer-plan-details[open] .composer-plan-chevron {
|
|
60
|
+
transform: rotate(180deg);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.composer-plan-body {
|
|
64
|
+
max-height: min(34vh, 280px);
|
|
65
|
+
overflow-y: auto;
|
|
66
|
+
overscroll-behavior: contain;
|
|
67
|
+
padding: 0 12px 12px;
|
|
68
|
+
scrollbar-gutter: stable;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.composer-plan-header {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: baseline;
|
|
74
|
+
justify-content: space-between;
|
|
75
|
+
gap: 12px;
|
|
76
|
+
margin-bottom: 12px;
|
|
77
|
+
padding-top: 8px;
|
|
78
|
+
border-top: 1px solid var(--line);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.composer-plan-title {
|
|
82
|
+
min-width: 0;
|
|
83
|
+
margin: 0;
|
|
84
|
+
font-size: var(--font-size-md);
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
overflow-wrap: anywhere;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.composer-plan-counter {
|
|
90
|
+
flex: none;
|
|
91
|
+
color: var(--muted-2);
|
|
92
|
+
font-size: var(--font-size-xs);
|
|
93
|
+
font-variant-numeric: tabular-nums;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.composer-plan-items {
|
|
97
|
+
display: grid;
|
|
98
|
+
gap: 10px;
|
|
99
|
+
margin: 0;
|
|
100
|
+
padding: 0;
|
|
101
|
+
list-style: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.composer-plan-item {
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: baseline;
|
|
107
|
+
gap: 9px;
|
|
108
|
+
font-size: var(--font-size-md);
|
|
109
|
+
line-height: 1.5;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.composer-plan-status {
|
|
113
|
+
flex: none;
|
|
114
|
+
width: 14px;
|
|
115
|
+
color: var(--muted-2);
|
|
116
|
+
text-align: center;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.composer-plan-item-title {
|
|
120
|
+
flex: 1;
|
|
121
|
+
min-width: 0;
|
|
122
|
+
overflow-wrap: anywhere;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.composer-plan-item-status,
|
|
126
|
+
.composer-plan-placeholder {
|
|
127
|
+
margin: 0;
|
|
128
|
+
color: var(--muted-2);
|
|
129
|
+
font-size: var(--font-size-xs);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.composer-plan-item.is-active .composer-plan-status,
|
|
133
|
+
.composer-plan-status.is-active {
|
|
134
|
+
color: #80b7ff;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.composer-plan-item.is-done .composer-plan-status,
|
|
138
|
+
.composer-plan-status.is-done {
|
|
139
|
+
color: #8dd7b6;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.composer-plan-item.is-blocked .composer-plan-status,
|
|
143
|
+
.composer-plan-item.is-blocked .composer-plan-item-status {
|
|
144
|
+
color: #ef9a9a;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.composer-plan-item.is-superseded {
|
|
148
|
+
color: var(--muted-2);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@media (max-width: 520px) {
|
|
152
|
+
.composer-plan-header {
|
|
153
|
+
flex-wrap: wrap;
|
|
154
|
+
gap: 5px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.composer-plan-body {
|
|
158
|
+
max-height: min(30vh, 220px);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.composer-plan-item-status {
|
|
162
|
+
max-width: 65px;
|
|
163
|
+
text-align: end;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media (prefers-reduced-motion: reduce) {
|
|
168
|
+
.composer-plan-chevron {
|
|
169
|
+
transition: none;
|
|
170
|
+
}
|
|
171
|
+
}
|