@iowarp/clio-coder 0.3.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/CHANGELOG.md +407 -0
- package/CODE_OF_CONDUCT.md +21 -0
- package/CONTRIBUTING.md +224 -0
- package/LICENSE +202 -0
- package/NOTICE +9 -0
- package/README.md +798 -0
- package/SECURITY.md +72 -0
- package/assets/clio-coder-logo-128.webp +0 -0
- package/damage-control-rules.yaml +419 -0
- package/dist/acp-UMLFVA3F.js +92 -0
- package/dist/agents-Q4MYPMUW.js +91 -0
- package/dist/auth-O6HYIJ6J.js +521 -0
- package/dist/chunk-262G75JS.js +35 -0
- package/dist/chunk-26BZQOAD.js +1281 -0
- package/dist/chunk-2J63S4SF.js +508 -0
- package/dist/chunk-3DANZDGR.js +717 -0
- package/dist/chunk-4UQA7NCT.js +29 -0
- package/dist/chunk-527KG6XR.js +497 -0
- package/dist/chunk-5LDRNKX2.js +1063 -0
- package/dist/chunk-5N2FG33Q.js +25 -0
- package/dist/chunk-67MTHP2E.js +135 -0
- package/dist/chunk-6CWDTGUC.js +20 -0
- package/dist/chunk-7BHLZB3A.js +2115 -0
- package/dist/chunk-7RBKDI66.js +348 -0
- package/dist/chunk-AMFR5YA3.js +541 -0
- package/dist/chunk-BBUH4VAA.js +1224 -0
- package/dist/chunk-BYEU76JP.js +899 -0
- package/dist/chunk-CLJ5HLUD.js +458 -0
- package/dist/chunk-D5YD55AR.js +116 -0
- package/dist/chunk-DXQNI4PC.js +61 -0
- package/dist/chunk-E3NYWENM.js +1004 -0
- package/dist/chunk-GNGDQYDU.js +34688 -0
- package/dist/chunk-GOTUR54M.js +9 -0
- package/dist/chunk-HBU5MTAM.js +41 -0
- package/dist/chunk-HMYNFFY4.js +28 -0
- package/dist/chunk-JPOWPFCU.js +1010 -0
- package/dist/chunk-JWHCJDCI.js +1215 -0
- package/dist/chunk-KBR4MZZR.js +41 -0
- package/dist/chunk-KKKPTZLM.js +93 -0
- package/dist/chunk-ME6DNWIU.js +66 -0
- package/dist/chunk-NI4DEJMC.js +88 -0
- package/dist/chunk-O4EJEDHO.js +659 -0
- package/dist/chunk-PIDUD6M2.js +31 -0
- package/dist/chunk-PS4PFJQP.js +29459 -0
- package/dist/chunk-QV47YRF4.js +48 -0
- package/dist/chunk-RQDWMVRB.js +279 -0
- package/dist/chunk-TFSSEXL6.js +136 -0
- package/dist/chunk-TKHQ4DGZ.js +8290 -0
- package/dist/chunk-TPOCL34A.js +2876 -0
- package/dist/chunk-UGYAX5YI.js +565 -0
- package/dist/chunk-UHTSULZS.js +461 -0
- package/dist/chunk-UU3R62TT.js +128 -0
- package/dist/chunk-UWIJNAOB.js +3906 -0
- package/dist/chunk-VOO7NYPP.js +914 -0
- package/dist/chunk-VPAWTYLY.js +117 -0
- package/dist/chunk-WD6AJM35.js +1216 -0
- package/dist/chunk-X3BR7HWV.js +115 -0
- package/dist/chunk-X3NE4WVW.js +120 -0
- package/dist/chunk-XNISANGE.js +1395 -0
- package/dist/chunk-XV4ZJ6ZM.js +3177 -0
- package/dist/cli/index.js +236 -0
- package/dist/clio-KIQ5SNDS.js +53 -0
- package/dist/components-JVHMUBEB.js +653 -0
- package/dist/config-ZFCDBMDC.js +372 -0
- package/dist/configure-G4E3A2PG.js +27 -0
- package/dist/context-CDXTP2MP.js +293 -0
- package/dist/context-E3KIFVXI.js +185 -0
- package/dist/context-clear-3F4PLXOS.js +102 -0
- package/dist/context-index-Q7YSYTR3.js +106 -0
- package/dist/docs-YIETIWZI.js +280 -0
- package/dist/doctor-M5HJJZOL.js +61 -0
- package/dist/domains/agents/builtins/architect.md +33 -0
- package/dist/domains/agents/builtins/coder.md +31 -0
- package/dist/domains/agents/builtins/context-bootstrap.md +38 -0
- package/dist/domains/agents/builtins/debugger.md +30 -0
- package/dist/domains/agents/builtins/documenter.md +31 -0
- package/dist/domains/agents/builtins/git-master.md +30 -0
- package/dist/domains/agents/builtins/provenance.md +30 -0
- package/dist/domains/agents/builtins/researcher.md +71 -0
- package/dist/domains/agents/builtins/scout.md +42 -0
- package/dist/domains/agents/builtins/tester.md +31 -0
- package/dist/domains/agents/builtins/verifier.md +30 -0
- package/dist/domains/agents/builtins/wiki-writer.md +41 -0
- package/dist/eval-B3KZZESM.js +2674 -0
- package/dist/evidence-V67CHM35.js +233 -0
- package/dist/evolve-YDZSUQYA.js +518 -0
- package/dist/extensions-SRG7XCAH.js +207 -0
- package/dist/fleet-CA2CRTVG.js +760 -0
- package/dist/fleet-preflight-CLIAX7YR.js +21 -0
- package/dist/init-2OZDJE2D.js +227 -0
- package/dist/memory-3PIQQAKX.js +207 -0
- package/dist/models-DY35XI7Y.js +237 -0
- package/dist/paths-5OMXW7Z4.js +57 -0
- package/dist/preload-KZVHET2B.js +11 -0
- package/dist/reset-PIFYNOS3.js +216 -0
- package/dist/run-3VSPP24F.js +735 -0
- package/dist/share-D36RQCXM.js +241 -0
- package/dist/skills-F2MRLELY.js +445 -0
- package/dist/skills-eval-E2ZTW4PL.js +932 -0
- package/dist/targets-DZMEZAH4.js +977 -0
- package/dist/trace-7NYCUI2J.js +250 -0
- package/dist/uninstall-AD3JWHBB.js +322 -0
- package/dist/upgrade-WYYBKGDY.js +301 -0
- package/dist/usage-ULIDAGFF.js +755 -0
- package/dist/version-ROZ6CZKH.js +16 -0
- package/dist/wiki-generate-PKFIX6OB.js +377 -0
- package/dist/worker/entry.js +1739 -0
- package/docs/README.md +93 -0
- package/docs/acp.md +120 -0
- package/docs/alcf-provider.md +72 -0
- package/docs/architecture.md +172 -0
- package/docs/artifact-versions.md +54 -0
- package/docs/built-in-agents.md +265 -0
- package/docs/capacity-and-scheduling.md +97 -0
- package/docs/commands-and-modes.md +554 -0
- package/docs/config-knobs-audit.md +115 -0
- package/docs/configuration-and-targets.md +812 -0
- package/docs/context-engine.md +236 -0
- package/docs/dispatch-architecture-rationale.md +126 -0
- package/docs/documentation-coverage.md +46 -0
- package/docs/documentation-guide.md +166 -0
- package/docs/environment-variables.md +105 -0
- package/docs/eval-runner.md +205 -0
- package/docs/evals-internal.md +298 -0
- package/docs/evidence-and-memory.md +243 -0
- package/docs/evolution.md +143 -0
- package/docs/exit-codes-and-output.md +74 -0
- package/docs/extensions-and-sharing.md +306 -0
- package/docs/fleet-demo-runbook.md +179 -0
- package/docs/fleet-dispatch.md +591 -0
- package/docs/glossary.md +75 -0
- package/docs/html/agents_blueprint.html +936 -0
- package/docs/html/alcf_blueprint.html +324 -0
- package/docs/html/architecture_blueprint.html +850 -0
- package/docs/html/commands_blueprint.html +794 -0
- package/docs/html/config_knobs_audit_blueprint.html +178 -0
- package/docs/html/configuration_blueprint.html +1080 -0
- package/docs/html/context_blueprint.html +603 -0
- package/docs/html/documentation_blueprint.html +832 -0
- package/docs/html/environment_blueprint.html +404 -0
- package/docs/html/eval_blueprint.html +743 -0
- package/docs/html/evals_internal_blueprint.html +190 -0
- package/docs/html/evolution_blueprint.html +674 -0
- package/docs/html/extensions_blueprint.html +2065 -0
- package/docs/html/fleet_dispatch_blueprint.html +286 -0
- package/docs/html/index.html +919 -0
- package/docs/html/lifecycle_blueprint.html +723 -0
- package/docs/html/memory_blueprint.html +699 -0
- package/docs/html/middleware_blueprint.html +664 -0
- package/docs/html/models_blueprint.html +2366 -0
- package/docs/html/observability_blueprint.html +683 -0
- package/docs/html/provider_adapter_blueprint.html +245 -0
- package/docs/html/safety_blueprint.html +1386 -0
- package/docs/html/shared.css +571 -0
- package/docs/html/shared.js +143 -0
- package/docs/html/skills_blueprint.html +671 -0
- package/docs/html/soak_blueprint.html +182 -0
- package/docs/html/tool_usage_blueprint.html +350 -0
- package/docs/html/tools_blueprint.html +2249 -0
- package/docs/html/trace_blueprint.html +235 -0
- package/docs/html/tui_design_blueprint.html +314 -0
- package/docs/html/validation_blueprint.html +961 -0
- package/docs/html/worker_dispatch_blueprint.html +231 -0
- package/docs/installation-and-lifecycle.md +308 -0
- package/docs/middleware-and-components.md +148 -0
- package/docs/model-catalog.md +189 -0
- package/docs/observability.md +233 -0
- package/docs/proactive-memory.md +452 -0
- package/docs/prompt-envelope-and-tools.md +142 -0
- package/docs/provider-adapter-cookbook.md +148 -0
- package/docs/release-cut-checklist.md +138 -0
- package/docs/safety-model.md +357 -0
- package/docs/scientific-validation.md +105 -0
- package/docs/session-lifecycle.md +156 -0
- package/docs/skills-marketplace.md +46 -0
- package/docs/tool-usage.md +527 -0
- package/docs/trace-store.md +132 -0
- package/docs/troubleshooting.md +33 -0
- package/docs/tui-design.md +239 -0
- package/docs/worker-dispatch-mechanics.md +242 -0
- package/package.json +132 -0
- package/skills/README.md +408 -0
- package/skills/git/commit-crafting/SKILL.md +79 -0
- package/skills/git/commit-crafting/evals.md +92 -0
- package/skills/git/create-pr/SKILL.md +116 -0
- package/skills/git/create-pr/evals.md +114 -0
- package/skills/git/investigate-issue/SKILL.md +139 -0
- package/skills/git/investigate-issue/evals.md +94 -0
- package/skills/git/resolve-merge-conflicts/SKILL.md +96 -0
- package/skills/git/resolve-merge-conflicts/evals.md +58 -0
- package/skills/git/review-changes/SKILL.md +103 -0
- package/skills/git/review-changes/evals.md +85 -0
- package/skills/git/worktree-create/SKILL.md +92 -0
- package/skills/git/worktree-create/evals.md +97 -0
- package/skills/git/worktree-create/references/worktree-setup.md +66 -0
- package/skills/git/worktree-merge/SKILL.md +95 -0
- package/skills/git/worktree-merge/evals.md +114 -0
- package/skills/skill-marketplace.json +261 -0
- package/skills/workflow/cut-it/SKILL.md +86 -0
- package/skills/workflow/cut-it/evals.md +42 -0
- package/src/domains/agents/builtins/architect.md +33 -0
- package/src/domains/agents/builtins/coder.md +31 -0
- package/src/domains/agents/builtins/context-bootstrap.md +38 -0
- package/src/domains/agents/builtins/debugger.md +30 -0
- package/src/domains/agents/builtins/documenter.md +31 -0
- package/src/domains/agents/builtins/git-master.md +30 -0
- package/src/domains/agents/builtins/provenance.md +30 -0
- package/src/domains/agents/builtins/researcher.md +71 -0
- package/src/domains/agents/builtins/scout.md +42 -0
- package/src/domains/agents/builtins/tester.md +31 -0
- package/src/domains/agents/builtins/verifier.md +30 -0
- package/src/domains/agents/builtins/wiki-writer.md +41 -0
- package/src/domains/agents/fleets/build-review.md +34 -0
- package/src/domains/agents/fleets/build-test.md +35 -0
- package/src/domains/agents/fleets/sdlc.md +86 -0
- package/src/domains/prompts/fragments/identity/clio-worker.md +11 -0
- package/src/domains/prompts/fragments/identity/clio.md +26 -0
- package/src/domains/prompts/fragments/operating/contract.md +64 -0
- package/src/domains/prompts/fragments/safety/auto-edit.md +14 -0
- package/src/domains/prompts/fragments/safety/full-auto.md +14 -0
- package/src/domains/prompts/fragments/safety/read-only.md +13 -0
- package/src/domains/prompts/fragments/safety/suggest.md +13 -0
- package/src/domains/prompts/fragments/wiki/page.md +75 -0
- package/src/domains/prompts/fragments/wiki/plan.md +48 -0
- package/src/domains/providers/models/cloud-models/alcf.yaml +40 -0
- package/src/domains/providers/models/local-models/clio-local-coding-targets.yaml +993 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Provider Adapter Cookbook Blueprint (v0.3.0)</title>
|
|
7
|
+
<link rel="stylesheet" href="shared.css">
|
|
8
|
+
<style>
|
|
9
|
+
/* Custom builder style */
|
|
10
|
+
.checkbox-group {
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: 1fr 1fr;
|
|
13
|
+
gap: 0.5rem;
|
|
14
|
+
margin-top: 0.5rem;
|
|
15
|
+
}
|
|
16
|
+
.checkbox-item {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 0.5rem;
|
|
20
|
+
font-size: 0.85rem;
|
|
21
|
+
}
|
|
22
|
+
.checkbox-item input {
|
|
23
|
+
width: auto;
|
|
24
|
+
}
|
|
25
|
+
</style>
|
|
26
|
+
</head>
|
|
27
|
+
<body>
|
|
28
|
+
<div class="container">
|
|
29
|
+
<header>
|
|
30
|
+
<div class="header-left">
|
|
31
|
+
<div class="header-logo">
|
|
32
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="color: var(--color-cyan);"><title>Icon</title>
|
|
33
|
+
<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon>
|
|
34
|
+
<polyline points="2 17 12 22 22 17"></polyline>
|
|
35
|
+
<polyline points="2 12 12 17 22 12"></polyline>
|
|
36
|
+
</svg>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="header-title-wrapper">
|
|
39
|
+
<h1>Provider Adapter Cookbook</h1>
|
|
40
|
+
<p>Custom inference API connectors, endpoint probing logic, and runtime registry templates</p>
|
|
41
|
+
<div class="meta-chips-row">
|
|
42
|
+
<span class="chip">Source: docs/provider-adapter-cookbook.md</span>
|
|
43
|
+
<span class="chip chip-orange">clio-coder docs provider_adapter</span>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="header-right">
|
|
48
|
+
<span class="version-badge">Clio Coder v0.3.0</span>
|
|
49
|
+
<a href="index.html" class="back-btn">
|
|
50
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><title>Icon</title><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>
|
|
51
|
+
Dashboard Hub
|
|
52
|
+
</a>
|
|
53
|
+
</div>
|
|
54
|
+
</header>
|
|
55
|
+
|
|
56
|
+
<div class="page-layout-grid">
|
|
57
|
+
<nav class="sidebar" aria-label="Table of Contents">
|
|
58
|
+
<div class="toc-container">
|
|
59
|
+
<div class="toc-title">On This Page</div>
|
|
60
|
+
<ul class="toc-list">
|
|
61
|
+
<!-- Dynamically populated -->
|
|
62
|
+
</ul>
|
|
63
|
+
</div>
|
|
64
|
+
</nav>
|
|
65
|
+
|
|
66
|
+
<main>
|
|
67
|
+
<div class="glass-card">
|
|
68
|
+
<h2>Overview Summary</h2>
|
|
69
|
+
<p>This blueprint provides boilerplate and step-by-step guides for integrating custom local/remote inference adapters inside Clio Coder.</p>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
<div class="tabs-nav">
|
|
73
|
+
<button type="button" class="tab-btn active" onclick="switchTab('builder')">
|
|
74
|
+
Descriptor Builder
|
|
75
|
+
</button>
|
|
76
|
+
<button type="button" class="tab-btn" onclick="switchTab('checklist')">
|
|
77
|
+
Capability checklist
|
|
78
|
+
</button>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<!-- Tab 1: Builder -->
|
|
82
|
+
<div class="tab-pane active" id="pane-builder">
|
|
83
|
+
<div class="blueprint-layout">
|
|
84
|
+
<div class="specs-col">
|
|
85
|
+
<div class="glass-card">
|
|
86
|
+
<h3>Descriptor Properties</h3>
|
|
87
|
+
<p>Customize fields below to build your TypeScript adapter plugin:</p>
|
|
88
|
+
|
|
89
|
+
<div class="form-group">
|
|
90
|
+
<label for="runtimeId">Runtime ID</label>
|
|
91
|
+
<input type="text" id="runtimeId" value="my-custom-service" oninput="generateDescriptor()">
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
<div class="form-group">
|
|
95
|
+
<label for="runtimeName">Display Name</label>
|
|
96
|
+
<input type="text" id="runtimeName" value="My Custom Service Native Client" oninput="generateDescriptor()">
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<div class="form-group">
|
|
100
|
+
<label for="runtimeKind">Client Type</label>
|
|
101
|
+
<select id="runtimeKind" onchange="generateDescriptor()">
|
|
102
|
+
<option value="http">http (Rest API / JSON endpoints)</option>
|
|
103
|
+
<option value="sdk">sdk (e.g. Anthropic, Vertex SDKs)</option>
|
|
104
|
+
<option value="subprocess">subprocess (spawn CLI worker)</option>
|
|
105
|
+
</select>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<div class="form-group">
|
|
109
|
+
<label for="authType">Authentication Mechanism</label>
|
|
110
|
+
<select id="authType" onchange="generateDescriptor()">
|
|
111
|
+
<option value="api-key">api-key (API credential token)</option>
|
|
112
|
+
<option value="oauth">oauth (OAuth login PKCE flow)</option>
|
|
113
|
+
<option value="none">none (Unauthenticated endpoint)</option>
|
|
114
|
+
</select>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<div class="form-group">
|
|
118
|
+
<label>Capabilities</label>
|
|
119
|
+
<div class="checkbox-group">
|
|
120
|
+
<label class="checkbox-item"><input type="checkbox" id="capTools" checked onchange="generateDescriptor()"> Tools support</label>
|
|
121
|
+
<label class="checkbox-item"><input type="checkbox" id="capReasoning" onchange="generateDescriptor()"> Reasoning / Thinking</label>
|
|
122
|
+
<label class="checkbox-item"><input type="checkbox" id="capVision" onchange="generateDescriptor()"> Vision inputs</label>
|
|
123
|
+
<label class="checkbox-item"><input type="checkbox" id="capEmbed" onchange="generateDescriptor()"> Embeddings</label>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
<div class="specs-col">
|
|
130
|
+
<div class="glass-card">
|
|
131
|
+
<h3>Generated Runtime Plugin</h3>
|
|
132
|
+
<p>Save this file as <code>src/domains/providers/runtimes/custom/my-custom-service.ts</code>:</p>
|
|
133
|
+
|
|
134
|
+
<pre><code id="generatedDescriptorCode">// Populated dynamically</code></pre>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
<!-- Tab 2: Checklist -->
|
|
141
|
+
<div class="tab-pane" id="pane-checklist">
|
|
142
|
+
<div class="glass-card">
|
|
143
|
+
<h3>Adapter Capability Requirements</h3>
|
|
144
|
+
<p>Clio's runtime uses standard features mapped as follows:</p>
|
|
145
|
+
|
|
146
|
+
<div style="margin-top:1.5rem; display:flex; flex-direction:column; gap:1rem;">
|
|
147
|
+
<div class="verdict-box normal" style="margin-top:0;">
|
|
148
|
+
<strong>Chat Completion (REQUIRED)</strong>
|
|
149
|
+
<span style="display:block; font-size:0.85rem; margin-top:0.25rem;">The model must process system instructions and a replayed array of assistant/user/tool messages.</span>
|
|
150
|
+
</div>
|
|
151
|
+
<div class="verdict-box warn" style="margin-top:0;">
|
|
152
|
+
<strong>Function Calling / Tools (HIGHLY RECOMMENDED)</strong>
|
|
153
|
+
<span style="display:block; font-size:0.85rem; margin-top:0.25rem;">Enables Clio to issue file search, read, write, and bash commands. If disabled, Clio acts in a conversational-only posture.</span>
|
|
154
|
+
</div>
|
|
155
|
+
<div class="verdict-box normal" style="margin-top:0; background:rgba(59, 130, 246, 0.08); border-color:rgba(59, 130, 246, 0.3); color:#3b82f6;">
|
|
156
|
+
<strong>Structured JSON Outputs (RECOMMENDED)</strong>
|
|
157
|
+
<span style="display:block; font-size:0.85rem; margin-top:0.25rem;">Used for structured change manifests (`clio-coder evolve`) and local evaluation reports.</span>
|
|
158
|
+
</div>
|
|
159
|
+
<div class="verdict-box normal" style="margin-top:0; background:rgba(255,255,255,0.02); border-color:var(--border-card); color:var(--text-muted);">
|
|
160
|
+
<strong>Fill-in-the-Middle FIM (OPTIONAL)</strong>
|
|
161
|
+
<span style="display:block; font-size:0.85rem; margin-top:0.25rem;">Enables surgical code edits when exact line matching fails.</span>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
<!-- Related Navigation -->
|
|
168
|
+
<nav class="related-nav" aria-label="Related Pages">
|
|
169
|
+
<a href="tool_usage_blueprint.html" class="nav-link-card">
|
|
170
|
+
<span class="nav-label">Previous Blueprint</span>
|
|
171
|
+
<span class="nav-title">Tool Usage Reference</span>
|
|
172
|
+
</a>
|
|
173
|
+
<a href="tui_design_blueprint.html" class="nav-link-card next">
|
|
174
|
+
<span class="nav-label">Next Blueprint</span>
|
|
175
|
+
<span class="nav-title">TUI Design System</span>
|
|
176
|
+
</a>
|
|
177
|
+
</nav>
|
|
178
|
+
</main>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
181
|
+
<footer>
|
|
182
|
+
<p>Clio Coder Provider Adapter Cookbook Blueprint • Version 0.3.0 • Gnosis Research Center</p>
|
|
183
|
+
</footer>
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<script src="shared.js"></script>
|
|
187
|
+
<script>
|
|
188
|
+
function generateDescriptor() {
|
|
189
|
+
const id = document.getElementById("runtimeId").value;
|
|
190
|
+
const name = document.getElementById("runtimeName").value;
|
|
191
|
+
const kind = document.getElementById("runtimeKind").value;
|
|
192
|
+
const auth = document.getElementById("authType").value;
|
|
193
|
+
|
|
194
|
+
const tools = document.getElementById("capTools").checked;
|
|
195
|
+
const reasoning = document.getElementById("capReasoning").checked;
|
|
196
|
+
const vision = document.getElementById("capVision").checked;
|
|
197
|
+
const embed = document.getElementById("capEmbed").checked;
|
|
198
|
+
|
|
199
|
+
const cred = auth === 'api-key' ? `\n credentialsEnvVar: "${id.toUpperCase().replace(/-/g, '_')}_API_KEY",` : '';
|
|
200
|
+
|
|
201
|
+
const code = `import { type RuntimeDescriptor } from "../../types/runtime-descriptor.js";
|
|
202
|
+
|
|
203
|
+
export const customRuntime: RuntimeDescriptor = {
|
|
204
|
+
id: "${id}",
|
|
205
|
+
displayName: "${name}",
|
|
206
|
+
kind: "${kind}",
|
|
207
|
+
tier: "local-native",
|
|
208
|
+
apiFamily: "openai-responses",
|
|
209
|
+
auth: "${auth}",${cred}
|
|
210
|
+
|
|
211
|
+
defaultCapabilities: {
|
|
212
|
+
chat: true,
|
|
213
|
+
tools: ${tools},
|
|
214
|
+
toolCallFormat: "openai",
|
|
215
|
+
reasoning: ${reasoning},
|
|
216
|
+
structuredOutputs: "json-schema",
|
|
217
|
+
vision: ${vision},
|
|
218
|
+
embeddings: ${embed},
|
|
219
|
+
contextWindow: 16384,
|
|
220
|
+
maxTokens: 4096
|
|
221
|
+
},
|
|
222
|
+
|
|
223
|
+
async probe(target, ctx) {
|
|
224
|
+
// Check health endpoint & return models list
|
|
225
|
+
return { ok: true, serverVersion: "custom/1.0", models: ["model-v1"] };
|
|
226
|
+
},
|
|
227
|
+
|
|
228
|
+
synthesizeModel(target, wireModelId, kb) {
|
|
229
|
+
// Factory method building model connection
|
|
230
|
+
throw new Error("Method not implemented.");
|
|
231
|
+
}
|
|
232
|
+
};`;
|
|
233
|
+
|
|
234
|
+
document.getElementById("generatedDescriptorCode").innerText = code;
|
|
235
|
+
if (window.initTableOfContents) window.initTableOfContents();
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// Init
|
|
239
|
+
window.onload = () => {
|
|
240
|
+
generateDescriptor();
|
|
241
|
+
window.generateDescriptor = generateDescriptor;
|
|
242
|
+
};
|
|
243
|
+
</script>
|
|
244
|
+
</body>
|
|
245
|
+
</html>
|