@tangle-network/sandbox 1.0.236 → 1.0.238
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/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +5 -5
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-execution-preparation-BJChICex.js → agent-execution-preparation-CjKTjmJ9.js} +3 -3
- package/dist/{agent-execution-preparation-receipt-BIFxqyr5.js → agent-execution-preparation-receipt-AihkqLnd.js} +4 -4
- package/dist/{agent-run-outcome-CEf6hJYp.d.ts → agent-run-outcome-DrhA0Z4S.d.ts} +2 -2
- package/dist/{api-request-DXF7sotx.js → api-request-wjUrfDvm.js} +1 -1
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +2 -2
- package/dist/{browser-interactive-control-controller-CcUjQEfa.d.ts → browser-interactive-control-controller-9RauUsHw.d.ts} +1 -1
- package/dist/{browser-interactive-control-controller-DL5Cz1_6.js → browser-interactive-control-controller-BDVXcCnz.js} +14 -14
- package/dist/{chunked-upload-BlvgxPWx.js → chunked-upload-B1kuuezC.js} +1 -1
- package/dist/{chunked-upload-file-DOeLpMO0.js → chunked-upload-file-DtAW52iW.js} +1 -1
- package/dist/cli-auth-bundle-BinY89CX.js +2 -0
- package/dist/{cli-auth-bundle-C6DtK7GX-mBUPER0R.js → cli-auth-bundle-C6DtK7GX-DoqlFTT-.js} +1 -1
- package/dist/{client-OYkwBKG2.d.ts → client-DsXWyLrM.d.ts} +79 -114
- package/dist/{client-BiKIhMtW.js → client-eoEoMzDD.js} +20 -117
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-CpKTrw6R.js → collaboration-jvzPekSe.js} +2 -2
- package/dist/core.d.ts +7 -7
- package/dist/core.js +6 -6
- package/dist/{errors-nXGKGVFe.js → errors-DQEu-Q7s.js} +20 -21
- package/dist/{file-download-BjkrYzy_.js → file-download-CihyMYH-.js} +2 -2
- package/dist/{harness-DMaNgn0S.js → harness-C5lXV9e5.js} +5 -5
- package/dist/{index-C8YpXh5N.d.ts → index-B_1aVs2B.d.ts} +14 -88
- package/dist/index.d.ts +13 -12
- package/dist/index.js +13 -13
- package/dist/intelligence/index.d.ts +13 -6
- package/dist/intelligence/index.js +61 -9
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-CJ7BBRpv.d.ts → interactive-controller-C2vOFe0u.d.ts} +3 -3
- package/dist/{interactive-controller-Blf5CLeI.js → interactive-controller-CDqa41yU.js} +7 -7
- package/dist/{lines-CSGBHEjR.js → lines-Bsp1TFBM.js} +1 -1
- package/dist/{lines-CCJZUrBP.d.ts → lines-CxWFuuJ3.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth-CO0byocv.js → local-cli-auth-DrNihS9-.js} +1 -1
- package/dist/{mcp-local-oIc-ZtHF.js → mcp-local-CbzPG05W.js} +2 -2
- package/dist/{preview-zpWYtsDJ.d.ts → preview-DFFaAZdF.d.ts} +3 -3
- package/dist/{profile-schema-C1KpT-wS.js → profile-schema-C0n0VgmA.js} +468 -36
- package/dist/{public-templates-DCFFPDEB.d.ts → public-templates-xqtPv6pg.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/{raw-evidence-archive-Cz4j8VMw.js → raw-evidence-archive-DLNEUdij.js} +3 -15
- package/dist/raw-evidence-export-C0ieFpi2.d.ts +354 -0
- package/dist/raw-evidence-export-C6Xdl3nC.js +19 -0
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +5 -5
- package/dist/{sandbox-C1Ffpg9v.js → sandbox-nYoBbiu1.js} +116 -155
- package/dist/{select-seat-B4Y-7vIq.js → select-seat-BHHUFoKh.js} +5 -5
- package/dist/select-seat-command.d.ts +2 -2
- package/dist/select-seat-command.js +2 -2
- package/dist/session-gateway/index.js +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-CL6wrVuO.js → tangle-BaGQdAZk.js} +3 -3
- package/dist/{terminal-stream-types-eE97lZ-5.d.ts → terminal-stream-types-D7dMd-NV.d.ts} +40 -26
- package/dist/{types-B5GAxo6l.d.ts → types-ImZuAuFG.d.ts} +299 -1521
- package/package.json +7 -7
- package/dist/cli-auth-bundle-BLAtE6Dc.js +0 -2
- /package/dist/{cli-auth-bundle-B91fSxkR.d.ts → cli-auth-bundle-eUl7Sa1x.d.ts} +0 -0
- /package/dist/{direct-http2-Bgb2lHte.js → direct-http2-zLxsvF44.js} +0 -0
- /package/dist/{index-o31uwAkX.d.ts → index-BTXyTVq4.d.ts} +0 -0
- /package/dist/{index-C-_HY5NY.d.ts → index-ClusTWYM.d.ts} +0 -0
- /package/dist/{sha2-vu4U-x2L.js → sha2-BIoWepwn.js} +0 -0
|
@@ -1,6 +1,26 @@
|
|
|
1
|
-
import { C as boundedIdentifierSchema, O as isBoundedJsonMaterial, _ as CONTRACT_MAX_ARRAY_LENGTH, a as agentCandidateSecretRefSchema, c as environmentNameSchema, d as isSafeExecutable, f as isSafeRelativePath, g as sha256DigestSchema, i as trainedModelIdForArtifact, l as headerNameSchema, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, v as CONTRACT_MAX_JSON_NODES } from "./harness-
|
|
1
|
+
import { C as boundedIdentifierSchema, O as isBoundedJsonMaterial, _ as CONTRACT_MAX_ARRAY_LENGTH, a as agentCandidateSecretRefSchema, c as environmentNameSchema, d as isSafeExecutable, f as isSafeRelativePath, g as sha256DigestSchema, i as trainedModelIdForArtifact, l as headerNameSchema, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, v as CONTRACT_MAX_JSON_NODES } from "./harness-C5lXV9e5.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
3
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/deep-freeze.js
|
|
4
|
+
/**
|
|
5
|
+
* Make a validated value immutable before it is handed out.
|
|
6
|
+
*
|
|
7
|
+
* A profile snapshot, a certified context, and a capability document are each
|
|
8
|
+
* evidence: something already checked, that a caller then reads and acts on.
|
|
9
|
+
* If the copy the caller holds can be written to, the evidence can be changed
|
|
10
|
+
* after the check that made it trustworthy, and a mutated capability flag
|
|
11
|
+
* describes a surface the environment does not have.
|
|
12
|
+
*
|
|
13
|
+
* Values already visited are skipped, so a value that refers back to itself is
|
|
14
|
+
* frozen once instead of recursing until the stack runs out.
|
|
15
|
+
*/
|
|
16
|
+
function deepFreeze(value, seen = /* @__PURE__ */ new Set()) {
|
|
17
|
+
if (value === null || typeof value !== "object" || seen.has(value)) return value;
|
|
18
|
+
seen.add(value);
|
|
19
|
+
for (const child of Object.values(value)) deepFreeze(child, seen);
|
|
20
|
+
return Object.freeze(value);
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/profile-knowledge.js
|
|
4
24
|
/** Immutable Hub generation identities, never aliases such as latest or a caller's scope. */
|
|
5
25
|
const agentProfileKnowledgeRefSchema = z.strictObject({
|
|
6
26
|
sourceId: z.string().regex(/^[A-Za-z0-9_-]{1,128}$/),
|
|
@@ -18,7 +38,7 @@ const agentProfileKnowledgeRefsSchema = z.array(agentProfileKnowledgeRefSchema).
|
|
|
18
38
|
});
|
|
19
39
|
});
|
|
20
40
|
//#endregion
|
|
21
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
41
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/agent-profile-canonical.js
|
|
22
42
|
/** Why a value cannot be AgentProfile JSON, with the path of the offending entry. */
|
|
23
43
|
var AgentProfileValueError = class extends Error {
|
|
24
44
|
path;
|
|
@@ -94,7 +114,7 @@ function renderPath(path) {
|
|
|
94
114
|
return path.length === 0 ? "root" : path.join(".");
|
|
95
115
|
}
|
|
96
116
|
//#endregion
|
|
97
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
117
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/own-property-record.js
|
|
98
118
|
/**
|
|
99
119
|
* Zod records currently assign parsed values onto an ordinary object. The
|
|
100
120
|
* special own key `__proto__` therefore invokes the legacy prototype setter
|
|
@@ -177,7 +197,7 @@ function decodeRecordKey(value) {
|
|
|
177
197
|
return decoded;
|
|
178
198
|
}
|
|
179
199
|
//#endregion
|
|
180
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
200
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/proxy-secrets.js
|
|
181
201
|
/**
|
|
182
202
|
* Declarations request authority. The issuer intersects scope/expiry with authenticated tenant,
|
|
183
203
|
* issuer policy and lineage, without personal/team fallback, pinning immutable secret ID/revision.
|
|
@@ -250,7 +270,6 @@ const ProxySecretBindingSchema = ProxySecretScopeSchema.extend({
|
|
|
250
270
|
});
|
|
251
271
|
const ProxySecretsSchema = z.array(ProxySecretBindingSchema).max(CONTRACT_MAX_ARRAY_LENGTH).refine((bindings) => unique(bindings.map((binding) => binding.envName)), "proxy secret env names must be unique");
|
|
252
272
|
ownPropertyRecordSchema(boundedIdentifierSchema.nullable(), { maxEntries: CONTRACT_MAX_ARRAY_LENGTH }).refine((parents) => Object.keys(parents).every((name) => envNameSchema.safeParse(name).success), "invalid parent selection keys");
|
|
253
|
-
z.literal(1);
|
|
254
273
|
const ProxySecretResolvedIdentitySchema = z.strictObject({
|
|
255
274
|
tenantId: boundedIdentifierSchema,
|
|
256
275
|
issuerId: boundedIdentifierSchema,
|
|
@@ -344,20 +363,10 @@ z.strictObject({
|
|
|
344
363
|
requireInPlace: z.boolean().optional()
|
|
345
364
|
});
|
|
346
365
|
//#endregion
|
|
347
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
366
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/harness-capabilities.js
|
|
348
367
|
/** Canonical harness/model, effort and prompt controls. Model-specific capability comes from the serving catalog. */
|
|
349
368
|
/** low → high. `none` = thinking off; `ultracode` = max (claude-code mode). */
|
|
350
369
|
const reasoningLadder = REASONING_EFFORTS;
|
|
351
|
-
/**
|
|
352
|
-
* Vendor locks, before the measured {@link harnessModelExclusions}. Absent means router-backed.
|
|
353
|
-
* Claude Code and Codex run any Router model: their native vendor wire passes through for vendor
|
|
354
|
-
* models and translates others to chat completions (including images/tools; hosted tools drop).
|
|
355
|
-
* Kimi Code on a managed box writes an `openai_legacy` provider that sends chat completions to the
|
|
356
|
-
* Router, so it runs any Router model too. A caller's vendor key/login remains vendor-limited;
|
|
357
|
-
* this table does not know credentials. {@link vendorHarness} chooses a default harness; it is not
|
|
358
|
-
* a provider restriction.
|
|
359
|
-
*/
|
|
360
|
-
const harnessProviderLock = {};
|
|
361
370
|
/** Provider prefix of a canonical model id (`anthropic/claude-…` → `anthropic`), or null. */
|
|
362
371
|
function modelProvider(modelId) {
|
|
363
372
|
const slash = modelId.indexOf("/");
|
|
@@ -389,10 +398,6 @@ function resolveModelProvider(modelId) {
|
|
|
389
398
|
for (const [family, provider] of bareModelFamilyProviders) if (family.test(id)) return provider;
|
|
390
399
|
return null;
|
|
391
400
|
}
|
|
392
|
-
/** The providers a harness is locked to, or `null` when it is router-backed (any model). */
|
|
393
|
-
function harnessProviders(harness) {
|
|
394
|
-
return harnessProviderLock[harness] ?? null;
|
|
395
|
-
}
|
|
396
401
|
const SANDBOX_HARNESS_MATRIX_EVIDENCE = "https://github.com/tangle-network/agent-container/issues/9382";
|
|
397
402
|
/**
|
|
398
403
|
* Pairs a router-backed harness cannot run, measured on production with the Router credential: one
|
|
@@ -434,9 +439,8 @@ const harnessModelExclusions = [
|
|
|
434
439
|
/**
|
|
435
440
|
* Whether a harness can run a model, and why not. A bare id resolves its provider through
|
|
436
441
|
* {@link resolveModelProvider}; an id whose provider cannot be resolved (a sentinel like `default`)
|
|
437
|
-
* is left to the harness, because its provider only the serving harness knows.
|
|
438
|
-
*
|
|
439
|
-
* {@link harnessModelExclusions}.
|
|
442
|
+
* is left to the harness, because its provider only the serving harness knows. Only the measured
|
|
443
|
+
* {@link harnessModelExclusions} are refused.
|
|
440
444
|
*/
|
|
441
445
|
function harnessModelSupport(harness, modelId, options = {}) {
|
|
442
446
|
const trimmed = modelId.trim();
|
|
@@ -447,14 +451,6 @@ function harnessModelSupport(harness, modelId, options = {}) {
|
|
|
447
451
|
model,
|
|
448
452
|
provider
|
|
449
453
|
};
|
|
450
|
-
const allowedProviders = harnessProviders(harness);
|
|
451
|
-
if (allowedProviders && !allowedProviders.includes(provider)) return {
|
|
452
|
-
supported: false,
|
|
453
|
-
model,
|
|
454
|
-
provider,
|
|
455
|
-
allowedProviders,
|
|
456
|
-
message: `Harness ${harness} runs only ${allowedProviders.join(" or ")} models, not ${model} (provider ${provider}). Choose a model whose id starts with ${allowedProviders.map((p) => `${p}/`).join(" or ")}, or a harness that runs ${provider} models, such as opencode.`
|
|
457
|
-
};
|
|
458
454
|
const reasoning = options.reasoningEffort !== void 0 && options.reasoningEffort !== null && options.reasoningEffort !== "none";
|
|
459
455
|
const exclusion = harnessModelExclusions.find((entry) => entry.harness === harness && entry.models.test(model) && (!entry.onlyWithReasoningEffort || reasoning));
|
|
460
456
|
if (exclusion) return {
|
|
@@ -639,7 +635,426 @@ function harnessSystemPromptIntents(harness) {
|
|
|
639
635
|
return harnessSystemPromptControls[harness] ?? noSystemPromptControls;
|
|
640
636
|
}
|
|
641
637
|
//#endregion
|
|
642
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
638
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/profile-kb/entry.js
|
|
639
|
+
function claim(text, source, basis = "documented", audience = "operator") {
|
|
640
|
+
return {
|
|
641
|
+
text,
|
|
642
|
+
basis,
|
|
643
|
+
audience,
|
|
644
|
+
sources: [source]
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
/** Keep public string arrays and entry citations derived from the same claim records. */
|
|
648
|
+
function kbEntry(entry) {
|
|
649
|
+
const sources = /* @__PURE__ */ new Map();
|
|
650
|
+
for (const claim of entry.claims) for (const source of claim.sources) sources.set(JSON.stringify(source), source);
|
|
651
|
+
const textFor = (audience) => entry.claims.filter((claim) => claim.audience === audience && claim.basis !== "hypothesis").map((claim) => claim.text);
|
|
652
|
+
return {
|
|
653
|
+
...entry,
|
|
654
|
+
sources: [...sources.values()],
|
|
655
|
+
prompt: textFor("agent"),
|
|
656
|
+
operator: textFor("operator")
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
//#endregion
|
|
660
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/profile-kb/harnesses.js
|
|
661
|
+
const CHECKED$1 = "2026-10-04";
|
|
662
|
+
const source$1 = (url, locator) => ({
|
|
663
|
+
url,
|
|
664
|
+
locator,
|
|
665
|
+
checkedAt: CHECKED$1,
|
|
666
|
+
authority: "primary"
|
|
667
|
+
});
|
|
668
|
+
const claudeCli = source$1("https://code.claude.com/docs/en/cli-reference", "CLI flags: --print, --bg, --bare, system prompt flags");
|
|
669
|
+
const claudeAgents = source$1("https://code.claude.com/docs/en/sub-agents", "How subagents work; forked subagents");
|
|
670
|
+
const codexConfig = source$1("https://learn.chatgpt.com/docs/config-file/config-reference", "model_instructions_file; model_reasoning_effort");
|
|
671
|
+
const codexAgents = source$1("https://learn.chatgpt.com/docs/agent-configuration/subagents", "Availability; approvals and sandbox controls");
|
|
672
|
+
const codexCommands = source$1("https://learn.chatgpt.com/docs/developer-commands", "Set or view a task goal with /goal");
|
|
673
|
+
const piBase = "https://github.com/earendil-works/pi/blob/200387122ca450d6387f033949423114a270b96c/packages/coding-agent/";
|
|
674
|
+
const piCli = source$1(`${piBase}docs/cli.md`, "Invocation and output; models; prompts and process");
|
|
675
|
+
const piRpc = source$1(`${piBase}docs/rpc.md#run-lifecycle`, "Run lifecycle");
|
|
676
|
+
const piCommands = source$1(`${piBase}docs/rpc-commands.md`, "steer; follow_up; get_available_thinking_levels");
|
|
677
|
+
const opencodeCli = source$1("https://opencode.ai/docs/cli/", "run; serve; acp");
|
|
678
|
+
const opencodePrompt = source$1("https://github.com/anomalyco/opencode/blob/907b3bc518fa48e90e8ec24dd327d13eee71c36c/packages/opencode/src/session/llm/request.ts#L51-L70", "LLMRequestPrep.prepare");
|
|
679
|
+
const kimiCli = source$1("https://moonshotai.github.io/kimi-code/en/reference/kimi-command.html", "Flag conflict rules; non-interactive execution");
|
|
680
|
+
const kimiConfig = source$1("https://moonshotai.github.io/kimi-code/en/configuration/config-files.html", "Config file location; thinking; complete example");
|
|
681
|
+
/** Source-qualified launch knowledge; versions describe checked sources, not every host's installation. */
|
|
682
|
+
const profileKbHarnesses = [
|
|
683
|
+
kbEntry({
|
|
684
|
+
id: "claude-code",
|
|
685
|
+
name: "Claude Code",
|
|
686
|
+
version: "2.1.289",
|
|
687
|
+
claims: [
|
|
688
|
+
claim("For a non-forked subagent, supply the context needed for its task; forked subagents inherit the parent conversation.", claudeAgents, "documented", "agent"),
|
|
689
|
+
claim("Headless: claude -p <prompt> --model <id> --effort <level> --output-format stream-json --verbose. --bg is a separate background-session mode and cannot combine with -p.", claudeCli),
|
|
690
|
+
claim("--append-system-prompt adds to the default; --system-prompt replaces it. On resume, prompt changes may wait for compaction.", claudeCli),
|
|
691
|
+
claim("--bare skips automatic discovery; explicitly supplied context can still load. It is not an established speed improvement for this workload.", claudeCli),
|
|
692
|
+
claim("--max-budget-usd caps the print invocation's spend, excluding restored prior spend; --json-schema constrains output structure, not correctness.", claudeCli)
|
|
693
|
+
]
|
|
694
|
+
}),
|
|
695
|
+
kbEntry({
|
|
696
|
+
id: "codex",
|
|
697
|
+
name: "Codex CLI",
|
|
698
|
+
version: "0.160.0",
|
|
699
|
+
claims: [
|
|
700
|
+
claim("Observed on the Mac: codex exec <prompt> -m <model> -c model_reasoning_effort=<level> --json -o <file>; --output-schema, review, resume and fork are available.", {
|
|
701
|
+
url: "cli:codex --version; codex exec --help",
|
|
702
|
+
checkedAt: CHECKED$1,
|
|
703
|
+
authority: "local",
|
|
704
|
+
locator: "Codex 0.160.0, Mac; research/anthropic-openai.md#local-codex-catalog-evidence"
|
|
705
|
+
}, "local-observation"),
|
|
706
|
+
claim("model_instructions_file replaces model instructions. Reasoning support is model/client-specific; a requested effort does not establish the effective effort.", codexConfig),
|
|
707
|
+
claim("Current local Codex spawns subagents after a direct request or applicable project/skill instruction. Enabled features do not establish tool exposure in another integration.", codexAgents),
|
|
708
|
+
claim("/goal tracks an interactive objective; it does not establish recovery across host or process restarts.", codexCommands)
|
|
709
|
+
]
|
|
710
|
+
}),
|
|
711
|
+
kbEntry({
|
|
712
|
+
id: "opencode",
|
|
713
|
+
name: "OpenCode",
|
|
714
|
+
version: "1.18.34",
|
|
715
|
+
claims: [
|
|
716
|
+
claim("Headless: opencode run <message> -m <provider/model> --agent <name> --variant <variant> --format json. Variants are provider-specific.", opencodeCli),
|
|
717
|
+
claim("A configured agent.prompt replaces the provider prompt before system/user additions; plugins can transform it further. Do not assume the provider prompt is retained.", opencodePrompt),
|
|
718
|
+
claim("serve exposes an HTTP API, run --attach reuses that server, and acp exposes an IDE protocol; these capabilities do not establish a particular parent adapter's support.", opencodeCli)
|
|
719
|
+
]
|
|
720
|
+
}),
|
|
721
|
+
kbEntry({
|
|
722
|
+
id: "pi",
|
|
723
|
+
name: "Pi",
|
|
724
|
+
version: "1.0.2",
|
|
725
|
+
claims: [
|
|
726
|
+
claim("Headless: pi -p <prompt> --model <provider/id[:thinking]> --mode json. Model arguments can fuzzy-match; inspect the selected identity. --thinking clamps to model capability.", piCli),
|
|
727
|
+
claim("--system-prompt replaces the default; --append-system-prompt adds to it. JSON mode exits after supplied prompts; RPC stays alive on stdin/stdout.", piCli),
|
|
728
|
+
claim("In Pi 1.0.2 RPC, prompt acceptance and agent_end do not prove settlement: wait for agent_settled, except a handled prompt that began no run.", piRpc),
|
|
729
|
+
claim("RPC steering arrives after current tool calls, before the next model call; follow-ups wait for tool calls and steering to drain. Query get_available_thinking_levels for the selected model.", piCommands)
|
|
730
|
+
]
|
|
731
|
+
}),
|
|
732
|
+
kbEntry({
|
|
733
|
+
id: "kimi-code",
|
|
734
|
+
name: "Kimi Code CLI",
|
|
735
|
+
version: "2.1.1",
|
|
736
|
+
claims: [
|
|
737
|
+
claim("Headless: kimi -p <prompt> -m <configured-alias> --output-format stream-json. Print mode already uses auto policy with static deny rules; it rejects --auto, --yolo and --plan.", kimiCli),
|
|
738
|
+
claim("--agent-file selects a new session's custom agent and cannot combine with resume/continue.", kimiCli),
|
|
739
|
+
claim("kimi-code/k3 is a configured coding-provider alias, not Moonshot's public API ID kimi-k3. Configuration lives under KIMI_CODE_HOME or ~/.kimi-code.", kimiConfig),
|
|
740
|
+
claim("[thinking].effort is model-dependent; unsupported settings fall back to the model default. The documented K3 configuration supports low, high and max.", kimiConfig)
|
|
741
|
+
]
|
|
742
|
+
})
|
|
743
|
+
];
|
|
744
|
+
//#endregion
|
|
745
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/profile-kb/models.js
|
|
746
|
+
const CHECKED = "2026-10-04";
|
|
747
|
+
const source = (url, locator) => ({
|
|
748
|
+
url,
|
|
749
|
+
locator,
|
|
750
|
+
checkedAt: CHECKED,
|
|
751
|
+
authority: "primary"
|
|
752
|
+
});
|
|
753
|
+
const claudeDocs = "https://platform.claude.com/docs/en";
|
|
754
|
+
const opusGuide = source(`${claudeDocs}/build-with-claude/prompt-engineering/prompting-claude-opus-5-5`, "Tools for complex visual inputs; unattended agentic runs; time signals for multiagent harnesses");
|
|
755
|
+
const fableGuide = source(`${claudeDocs}/build-with-claude/prompt-engineering/prompting-claude-fable-5-1`, "Finish the whole task; batch independent tool calls; keep the conversation history append-only");
|
|
756
|
+
const sonnetGuide = source(`${claudeDocs}/build-with-claude/prompt-engineering/prompting-claude-sonnet-5`, "Code review harnesses; tone and writing style");
|
|
757
|
+
const deepseekModel = source("https://api-docs.deepseek.com/quick_start/pricing/#model-details", "Model details; footnote 1");
|
|
758
|
+
const deepseekThinking = source("https://api-docs.deepseek.com/guides/thinking_mode/", "Thinking mode toggle and effort control; tool calls");
|
|
759
|
+
const glmModel = source("https://docs.z.ai/guides/llm/glm-5.3#feature-changes", "Feature changes");
|
|
760
|
+
const kimiModel = source("https://platform.kimi.ai/docs/guide/kimi-k3-quickstart", "Reasoning effort; vision input; important limits");
|
|
761
|
+
/** `opencode models opencode --verbose` on OpenCode 1.18.33: the keyless free routes, all priced at 0. */
|
|
762
|
+
function opencodeFreeClaim(route, limits) {
|
|
763
|
+
return claim(`OpenCode serves ${route} keyless (no provider key), at zero cost: ${limits}. A free route can change or leave the catalog without notice.`, {
|
|
764
|
+
url: "https://opencode.ai/inference/openai/v1",
|
|
765
|
+
checkedAt: "2026-11-02",
|
|
766
|
+
authority: "local",
|
|
767
|
+
locator: `opencode 1.18.33 models opencode --verbose; ${route}`
|
|
768
|
+
}, "local-observation");
|
|
769
|
+
}
|
|
770
|
+
/** Historical acceptance records, not a current serving or quality check. */
|
|
771
|
+
function routerClaim(note) {
|
|
772
|
+
return claim(`The 2026-09-22 record reports ${note}; this audit recovered no attached trace and made no new router request.`, {
|
|
773
|
+
url: "https://router.tangle.tools/v1/chat/completions",
|
|
774
|
+
checkedAt: "2026-09-22",
|
|
775
|
+
authority: "local",
|
|
776
|
+
locator: "models.ts at d949682; historical routerCheck note"
|
|
777
|
+
}, "local-observation");
|
|
778
|
+
}
|
|
779
|
+
/** Each row refers to the dated catalog in the retained source audit. */
|
|
780
|
+
function codexCatalogClaim(id, defaultEffort, ultra) {
|
|
781
|
+
return claim(`Codex cache observed at 2026-10-04T05:31:58Z (client 0.160.0): 272000 context, default ${defaultEffort}, efforts low through max${ultra ? " plus ultra" : ""}. This account/client catalog is not a serving receipt; a later cache written by 0.155.0 lacked GPT-6.1 Sol.`, {
|
|
782
|
+
url: "file://~/.codex/models_cache.json",
|
|
783
|
+
checkedAt: CHECKED,
|
|
784
|
+
authority: "local",
|
|
785
|
+
locator: `research/anthropic-openai.md#local-codex-catalog-evidence; slug ${id}`
|
|
786
|
+
}, "local-observation");
|
|
787
|
+
}
|
|
788
|
+
function historicalCodexClaim(id, catalogSource) {
|
|
789
|
+
const note = catalogSource ? `codex-cli 0.156.1 served list; \`codex exec -m ${id}\` returned OK` : "codex-cli 0.156.1 on a ChatGPT account returned OK";
|
|
790
|
+
return claim(`The 2026-09-22 record reports ${note}; no attached trace was recovered in this audit.`, {
|
|
791
|
+
url: catalogSource ? "file://~/.codex/models_cache.json" : `cli:codex exec -m ${id} 'Reply with exactly: OK'`,
|
|
792
|
+
checkedAt: "2026-09-22",
|
|
793
|
+
note,
|
|
794
|
+
authority: "local",
|
|
795
|
+
locator: "models.ts at d949682; historical CLI check"
|
|
796
|
+
}, "local-observation");
|
|
797
|
+
}
|
|
798
|
+
/** Source-backed facts and conditional advice. API controls never become agent instructions. */
|
|
799
|
+
const profileKbModels = [
|
|
800
|
+
kbEntry({
|
|
801
|
+
id: "claude-opus-5-5",
|
|
802
|
+
name: "Claude Opus 5.5",
|
|
803
|
+
vendor: "Anthropic",
|
|
804
|
+
surfaces: ["api"],
|
|
805
|
+
aliases: ["anthropic/claude-opus-5-5", "anthropic.claude-opus-5-5"],
|
|
806
|
+
defaultEffort: "medium",
|
|
807
|
+
claims: [
|
|
808
|
+
claim("Claude API: 1M context, 128K ordinary output; adaptive thinking is always enabled, default effort medium. Preserve returned thinking and its conversation prefix.", source("https://platform.claude.com/docs/en/models/opus-5-5/overview", "Overview; capabilities; good to know")),
|
|
809
|
+
claim("For dense charts or screenshots, inspect small details using available crop or zoom tools.", opusGuide, "vendor-guidance", "agent"),
|
|
810
|
+
claim("For unattended runs that stop with unfinished work, explicit completion tracking and bounded continuation are vendor tuning candidates; interactive confirmations still apply.", opusGuide, "vendor-guidance"),
|
|
811
|
+
claim("For an already-authorized agent team, elapsed-time and budget signals are a tuning candidate; hard timeouts need enforcement outside the prompt, and time pressure can reduce verification.", opusGuide, "vendor-guidance")
|
|
812
|
+
]
|
|
813
|
+
}),
|
|
814
|
+
kbEntry({
|
|
815
|
+
id: "claude-fable-5-1",
|
|
816
|
+
name: "Claude Fable 5.1",
|
|
817
|
+
vendor: "Anthropic",
|
|
818
|
+
surfaces: ["api"],
|
|
819
|
+
aliases: ["anthropic/claude-fable-5-1", "anthropic.claude-fable-5-1"],
|
|
820
|
+
defaultEffort: "high",
|
|
821
|
+
claims: [
|
|
822
|
+
claim("Claude API: 1M context, 128K ordinary output; always-on adaptive thinking, default effort high.", source("https://platform.claude.com/docs/en/models/fable-5-1/overview", "Overview; capabilities")),
|
|
823
|
+
claim("The vendor offers optional remedies for demonstrated early stopping, serial independent calls, overediting and writing problems. Apply the matching remedy within the task scope and authorization.", fableGuide, "vendor-guidance"),
|
|
824
|
+
claim("Keep history append-only; supported turn-scoped reminders remain appended. When subagents are already used, nonblocking spawn and later results let the lead continue, but do not guarantee useful overlap.", fableGuide, "vendor-guidance")
|
|
825
|
+
]
|
|
826
|
+
}),
|
|
827
|
+
kbEntry({
|
|
828
|
+
id: "claude-sonnet-5",
|
|
829
|
+
name: "Claude Sonnet 5",
|
|
830
|
+
vendor: "Anthropic",
|
|
831
|
+
surfaces: ["api", "router"],
|
|
832
|
+
aliases: ["anthropic/claude-sonnet-5", "anthropic.claude-sonnet-5"],
|
|
833
|
+
defaultEffort: "high",
|
|
834
|
+
claims: [
|
|
835
|
+
claim("Claude API: active legacy model; 1M context, 128K output. Adaptive thinking defaults on with effort high; disabled thinking is also supported.", source("https://platform.claude.com/docs/en/models/sonnet-5/overview", "Capabilities; availability")),
|
|
836
|
+
claim("For review, specify the desired precision/recall and name any actual downstream filter; do not invent one to justify broad reporting.", sonnetGuide, "vendor-guidance"),
|
|
837
|
+
claim("Nondefault temperature, top_p and top_k are rejected.", sonnetGuide),
|
|
838
|
+
routerClaim("claude-sonnet-5 returned HTTP 200")
|
|
839
|
+
]
|
|
840
|
+
}),
|
|
841
|
+
kbEntry({
|
|
842
|
+
id: "claude-sonnet-5-5",
|
|
843
|
+
name: "Claude Sonnet 5.5",
|
|
844
|
+
vendor: "Anthropic",
|
|
845
|
+
surfaces: ["api"],
|
|
846
|
+
aliases: ["anthropic/claude-sonnet-5-5", "anthropic.claude-sonnet-5-5"],
|
|
847
|
+
defaultEffort: "high",
|
|
848
|
+
claims: [claim("Claude API: released 2026-09-28; 1M context, 128K output; adaptive thinking with default effort high. between_tools is the lowest thinking setting and requires effort high or below; do not reuse Sonnet 5 disabled-thinking assumptions.", source("https://platform.claude.com/docs/en/models/sonnet-5-5/overview", "Overview; capabilities; good to know"))]
|
|
849
|
+
}),
|
|
850
|
+
kbEntry({
|
|
851
|
+
id: "claude-haiku-4-5",
|
|
852
|
+
name: "Claude Haiku 4.5",
|
|
853
|
+
vendor: "Anthropic",
|
|
854
|
+
surfaces: ["api"],
|
|
855
|
+
aliases: [
|
|
856
|
+
"claude-haiku-4-5-20251001",
|
|
857
|
+
"anthropic/claude-haiku-4-5",
|
|
858
|
+
"anthropic.claude-haiku-4-5"
|
|
859
|
+
],
|
|
860
|
+
claims: [claim("Claude API alias claude-haiku-4-5 resolves to claude-haiku-4-5-20251001; 200K context, 64K output. Manual extended thinking uses budget_tokens and accepts no effort parameter. Retirement is not before 2026-10-15, not scheduled on that date.", source("https://platform.claude.com/docs/en/models/haiku-4-5/overview", "Model IDs; capabilities; availability"))]
|
|
861
|
+
}),
|
|
862
|
+
kbEntry({
|
|
863
|
+
id: "gpt-6-pro",
|
|
864
|
+
name: "GPT-6 Pro",
|
|
865
|
+
vendor: "OpenAI",
|
|
866
|
+
surfaces: ["chatgpt"],
|
|
867
|
+
aliases: ["GPT-6 Pro"],
|
|
868
|
+
claims: [claim("GPT-6 Pro is a ChatGPT product mode powered by Astra, with plan/workspace-dependent access and allowances. This entry establishes no API model ID.", source("https://help.openai.com/en/articles/20001354-gpt-56-and-gpt-6-pro-in-chatgpt", "GPT-6 Pro availability; usage limits"))]
|
|
869
|
+
}),
|
|
870
|
+
kbEntry({
|
|
871
|
+
id: "gpt-6.1-sol",
|
|
872
|
+
name: "GPT-6.1 Sol",
|
|
873
|
+
vendor: "OpenAI",
|
|
874
|
+
surfaces: ["codex", "api"],
|
|
875
|
+
aliases: ["openai/gpt-6.1-sol"],
|
|
876
|
+
defaultEffort: "medium",
|
|
877
|
+
claims: [claim("OpenAI API: 1,050,000-token context, 128K output; efforts low, medium, high, xhigh and max. API default is medium. Tool calling requires Responses.", source("https://developers.openai.com/api/docs/models/gpt-6.1-sol", "Model description; reasoning effort; context/output limits; supported endpoints")), codexCatalogClaim("gpt-6.1-sol", "low", true)]
|
|
878
|
+
}),
|
|
879
|
+
kbEntry({
|
|
880
|
+
id: "gpt-6-astra",
|
|
881
|
+
name: "GPT-6 Astra",
|
|
882
|
+
vendor: "OpenAI",
|
|
883
|
+
surfaces: ["codex", "api"],
|
|
884
|
+
aliases: ["openai/gpt-6-astra"],
|
|
885
|
+
defaultEffort: "medium",
|
|
886
|
+
claims: [
|
|
887
|
+
claim("OpenAI API: 1,050,000-token context, 128K output; efforts low, medium, high, xhigh and max. Tool calling requires Responses.", source("https://developers.openai.com/api/docs/models/gpt-6-astra", "Model description; reasoning effort; context/output limits; supported endpoints")),
|
|
888
|
+
codexCatalogClaim("gpt-6-astra", "medium", true),
|
|
889
|
+
claim("The GPT-6 guide describes Astra prompting patterns; delegation, autonomy and testing examples remain conditional on tools, authorization and workload. Other family members need their own evaluation.", source("https://developers.openai.com/api/docs/guides/latest-model?model=gpt-6-astra", "Prompting best practices; subagent delegation; testing and verification"), "vendor-guidance"),
|
|
890
|
+
historicalCodexClaim("gpt-6-astra", false)
|
|
891
|
+
]
|
|
892
|
+
}),
|
|
893
|
+
kbEntry({
|
|
894
|
+
id: "gpt-6-sol",
|
|
895
|
+
name: "GPT-6 Sol",
|
|
896
|
+
vendor: "OpenAI",
|
|
897
|
+
surfaces: ["codex", "api"],
|
|
898
|
+
aliases: ["openai/gpt-6-sol"],
|
|
899
|
+
defaultEffort: "medium",
|
|
900
|
+
claims: [
|
|
901
|
+
claim("OpenAI API: 1,050,000-token context, 128K output; efforts none, low, medium, high, xhigh and max. API default is medium. Responses supports tools; Chat Completions function calling requires effort none.", source("https://developers.openai.com/api/docs/models/gpt-6-sol", "Model description; reasoning effort; context/output limits; supported endpoints")),
|
|
902
|
+
codexCatalogClaim("gpt-6-sol", "medium", true),
|
|
903
|
+
historicalCodexClaim("gpt-6-sol", false)
|
|
904
|
+
]
|
|
905
|
+
}),
|
|
906
|
+
kbEntry({
|
|
907
|
+
id: "gpt-6-luna",
|
|
908
|
+
name: "GPT-6 Luna",
|
|
909
|
+
vendor: "OpenAI",
|
|
910
|
+
surfaces: ["codex", "api"],
|
|
911
|
+
aliases: ["openai/gpt-6-luna"],
|
|
912
|
+
defaultEffort: "medium",
|
|
913
|
+
claims: [
|
|
914
|
+
claim("OpenAI API: 1,050,000-token context, 128K output; efforts none, low, medium, high, xhigh and max. API default is medium. Responses supports tools; Chat Completions function calling requires effort none.", source("https://developers.openai.com/api/docs/models/gpt-6-luna", "Model description; reasoning effort; context/output limits; supported endpoints")),
|
|
915
|
+
codexCatalogClaim("gpt-6-luna", "medium", false),
|
|
916
|
+
historicalCodexClaim("gpt-6-luna", false)
|
|
917
|
+
]
|
|
918
|
+
}),
|
|
919
|
+
kbEntry({
|
|
920
|
+
id: "gpt-5.6-sol",
|
|
921
|
+
name: "GPT-5.6 Sol",
|
|
922
|
+
vendor: "OpenAI",
|
|
923
|
+
surfaces: [
|
|
924
|
+
"codex",
|
|
925
|
+
"api",
|
|
926
|
+
"router"
|
|
927
|
+
],
|
|
928
|
+
aliases: ["openai/gpt-5.6-sol"],
|
|
929
|
+
defaultEffort: "medium",
|
|
930
|
+
claims: [
|
|
931
|
+
claim("OpenAI API: 1,050,000-token context, 128K output; efforts none, low, medium, high, xhigh and max. API default is medium.", source("https://developers.openai.com/api/docs/models/gpt-5.6-sol", "Model description; reasoning effort; context/output limits; supported endpoints")),
|
|
932
|
+
claim("OpenAI API name gpt-5.6 aliases to gpt-5.6-sol.", source("https://developers.openai.com/api/docs/models/gpt-5.6-sol", "Model description; reasoning effort; context/output limits; supported endpoints")),
|
|
933
|
+
codexCatalogClaim("gpt-5.6-sol", "low", true),
|
|
934
|
+
historicalCodexClaim("gpt-5.6-sol", true),
|
|
935
|
+
routerClaim("gpt-5.6-sol returned HTTP 200")
|
|
936
|
+
]
|
|
937
|
+
}),
|
|
938
|
+
kbEntry({
|
|
939
|
+
id: "gpt-5.6-terra",
|
|
940
|
+
name: "GPT-5.6 Terra",
|
|
941
|
+
vendor: "OpenAI",
|
|
942
|
+
surfaces: [
|
|
943
|
+
"codex",
|
|
944
|
+
"api",
|
|
945
|
+
"router"
|
|
946
|
+
],
|
|
947
|
+
aliases: ["openai/gpt-5.6-terra"],
|
|
948
|
+
defaultEffort: "medium",
|
|
949
|
+
claims: [
|
|
950
|
+
claim("OpenAI API: 1,050,000-token context, 128K output; efforts none, low, medium, high, xhigh and max. API default is medium.", source("https://developers.openai.com/api/docs/models/gpt-5.6-terra", "Model description; reasoning effort; context/output limits; supported endpoints")),
|
|
951
|
+
codexCatalogClaim("gpt-5.6-terra", "medium", true),
|
|
952
|
+
historicalCodexClaim("gpt-5.6-terra", true),
|
|
953
|
+
routerClaim("gpt-5.6-terra returned HTTP 200")
|
|
954
|
+
]
|
|
955
|
+
}),
|
|
956
|
+
kbEntry({
|
|
957
|
+
id: "gpt-5.6-luna",
|
|
958
|
+
name: "GPT-5.6 Luna",
|
|
959
|
+
vendor: "OpenAI",
|
|
960
|
+
surfaces: [
|
|
961
|
+
"codex",
|
|
962
|
+
"api",
|
|
963
|
+
"router"
|
|
964
|
+
],
|
|
965
|
+
aliases: ["openai/gpt-5.6-luna"],
|
|
966
|
+
defaultEffort: "medium",
|
|
967
|
+
claims: [
|
|
968
|
+
claim("OpenAI API: 1,050,000-token context, 128K output; efforts none, low, medium, high, xhigh and max. API default is medium.", source("https://developers.openai.com/api/docs/models/gpt-5.6-luna", "Model description; reasoning effort; context/output limits; supported endpoints")),
|
|
969
|
+
codexCatalogClaim("gpt-5.6-luna", "medium", false),
|
|
970
|
+
historicalCodexClaim("gpt-5.6-luna", true),
|
|
971
|
+
routerClaim("gpt-5.6-luna returned HTTP 200")
|
|
972
|
+
]
|
|
973
|
+
}),
|
|
974
|
+
kbEntry({
|
|
975
|
+
id: "deepseek-v4.1-flash",
|
|
976
|
+
name: "DeepSeek V4.1 Flash",
|
|
977
|
+
vendor: "DeepSeek",
|
|
978
|
+
surfaces: [
|
|
979
|
+
"api",
|
|
980
|
+
"router",
|
|
981
|
+
"opencode"
|
|
982
|
+
],
|
|
983
|
+
aliases: [
|
|
984
|
+
"deepseek-flash",
|
|
985
|
+
"deepseek/deepseek-v4.1-flash",
|
|
986
|
+
"opencode/deepseek-v4.1-flash-free"
|
|
987
|
+
],
|
|
988
|
+
claims: [
|
|
989
|
+
claim("DeepSeek API ID deepseek-flash denotes V4.1-Flash: 1M context, 384K output, vision and tools; non-thinking mode is available. Router naming is a separate contract.", deepseekModel),
|
|
990
|
+
claim("Thinking defaults on at high. Native efforts are low, high and max; minimal maps to low, medium/xhigh to high, and ultra to max. With tools, preserve all previous reasoning_content, including turns without tool calls.", deepseekThinking),
|
|
991
|
+
routerClaim("deepseek/deepseek-v4.1-flash returned HTTP 200 and served that id"),
|
|
992
|
+
opencodeFreeClaim("opencode/deepseek-v4.1-flash-free", "200K context, 32K output, image input, efforts low, high and max")
|
|
993
|
+
]
|
|
994
|
+
}),
|
|
995
|
+
kbEntry({
|
|
996
|
+
id: "glm-5.3-flash",
|
|
997
|
+
name: "GLM-5.3-Flash",
|
|
998
|
+
vendor: "Z.ai",
|
|
999
|
+
surfaces: ["opencode"],
|
|
1000
|
+
aliases: ["opencode/glm-5.3-flash-free"],
|
|
1001
|
+
claims: [opencodeFreeClaim("opencode/glm-5.3-flash-free", "200K context, 32K output, image input, efforts low, high and max")]
|
|
1002
|
+
}),
|
|
1003
|
+
kbEntry({
|
|
1004
|
+
id: "glm-5.3",
|
|
1005
|
+
name: "GLM-5.3",
|
|
1006
|
+
vendor: "Z.ai",
|
|
1007
|
+
surfaces: ["api", "router"],
|
|
1008
|
+
aliases: ["z-ai/glm-5.3", "zai-coding-plan/glm-5.3"],
|
|
1009
|
+
defaultEffort: "ultracode",
|
|
1010
|
+
claims: [
|
|
1011
|
+
claim("Z.ai direct API: text-only, 1M context, 128K output; thinking cannot be disabled. reasoning_effort accepts only low, high or max, default max.", glmModel),
|
|
1012
|
+
claim("Coding Plan maps none/minimal/low to low, medium/high to high, and xhigh/max to max; this mapping does not apply to direct GLM-5.3 API requests.", source("https://docs.z.ai/guides/capabilities/thinking#core-parameters", "Core parameters; Coding Plan mappings")),
|
|
1013
|
+
claim("Z.ai recommends max for complex coding; no local effort sweep establishes its value for this workload.", glmModel, "vendor-guidance"),
|
|
1014
|
+
routerClaim("glm-5.3 returned HTTP 200, served as z-ai/glm-5.3")
|
|
1015
|
+
]
|
|
1016
|
+
}),
|
|
1017
|
+
kbEntry({
|
|
1018
|
+
id: "kimi-k3",
|
|
1019
|
+
name: "Kimi K3",
|
|
1020
|
+
vendor: "Moonshot AI",
|
|
1021
|
+
surfaces: ["api", "router"],
|
|
1022
|
+
aliases: ["moonshotai/kimi-k3", "kimi-code/k3"],
|
|
1023
|
+
defaultEffort: "ultracode",
|
|
1024
|
+
claims: [
|
|
1025
|
+
claim("Moonshot API ID kimi-k3: 1M context, native vision, always-on thinking; reasoning_effort low, high or max, default max. The CLI alias kimi-code/k3 belongs to a different configuration surface.", kimiModel),
|
|
1026
|
+
claim("Omit fixed sampling fields. Replay complete assistant messages unchanged, including reasoning and tool calls. Vision uses structured base64 or uploaded-file content, not public image URLs.", kimiModel),
|
|
1027
|
+
claim("For large tool catalogs, tool search followed by dynamic declarations is vendor guidance; the backend must implement retrieval and the K3-specific declaration protocol.", source("https://platform.kimi.ai/docs/guide/kimi-k3-tool-calling-best-practice", "Declare a search tool; use tool_choice; inject tool definitions"), "vendor-guidance"),
|
|
1028
|
+
routerClaim("kimi-k3 returned HTTP 200, served as moonshotai/kimi-k3")
|
|
1029
|
+
]
|
|
1030
|
+
})
|
|
1031
|
+
];
|
|
1032
|
+
//#endregion
|
|
1033
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/profile-kb/records.js
|
|
1034
|
+
/**
|
|
1035
|
+
* Lessons this platform measured itself. A lesson enters only after an
|
|
1036
|
+
* agent-eval check reproduced it strongly; none has met that bar yet, so the
|
|
1037
|
+
* list is empty rather than filled with single-run observations.
|
|
1038
|
+
*/
|
|
1039
|
+
const profileKbLearnings = [];
|
|
1040
|
+
deepFreeze(structuredClone(profileKbHarnesses));
|
|
1041
|
+
const modelSnapshot = deepFreeze(structuredClone(profileKbModels));
|
|
1042
|
+
deepFreeze(structuredClone(profileKbLearnings));
|
|
1043
|
+
const modelIndex = (() => {
|
|
1044
|
+
const index = /* @__PURE__ */ new Map();
|
|
1045
|
+
modelSnapshot.forEach((model, position) => {
|
|
1046
|
+
for (const name of [model.id, ...model.aliases]) {
|
|
1047
|
+
const key = name.toLowerCase();
|
|
1048
|
+
if (index.has(key)) throw new Error(`profile-kb: model name ${name} is declared twice`);
|
|
1049
|
+
index.set(key, position);
|
|
1050
|
+
}
|
|
1051
|
+
});
|
|
1052
|
+
return index;
|
|
1053
|
+
})();
|
|
1054
|
+
/** Whether the knowledge base lists this exact spelling: a model id or one of its aliases, such as `zai-coding-plan/glm-5.3`. */
|
|
1055
|
+
const profileKbNamesModel = (name) => modelIndex.has(name.trim().toLowerCase());
|
|
1056
|
+
//#endregion
|
|
1057
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/sandbox-size.js
|
|
643
1058
|
/**
|
|
644
1059
|
* Portable sandbox size vocabulary.
|
|
645
1060
|
*
|
|
@@ -662,7 +1077,7 @@ const SANDBOX_SIZE_PRESET_NAMES = [
|
|
|
662
1077
|
"large"
|
|
663
1078
|
];
|
|
664
1079
|
//#endregion
|
|
665
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1080
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.19/node_modules/@tangle-network/agent-interface/dist/profile-schema.js
|
|
666
1081
|
const profileOpaqueValueSchema = z.unknown().transform((value, context) => {
|
|
667
1082
|
if (value === void 0 || isBoundedJsonMaterial(value, {
|
|
668
1083
|
dataPropertiesOnly: true,
|
|
@@ -753,6 +1168,12 @@ const agentProfileSeatSchema = z.strictObject({
|
|
|
753
1168
|
provider: z.string().regex(/^[a-z][a-z0-9-]*$/),
|
|
754
1169
|
model: z.string().min(1).refine((value) => value.trim() === value, "model must be canonical"),
|
|
755
1170
|
reasoningEffort: reasoningEffortSchema.optional(),
|
|
1171
|
+
credentialSource: z.enum([
|
|
1172
|
+
"router",
|
|
1173
|
+
"api-key",
|
|
1174
|
+
"subscription",
|
|
1175
|
+
"managed"
|
|
1176
|
+
]).optional(),
|
|
756
1177
|
selector: z.union([z.strictObject({ kind: z.literal("all-eligible") }), z.strictObject({
|
|
757
1178
|
kind: z.literal("seat"),
|
|
758
1179
|
id: z.string().min(1).refine((value) => value.trim() === value, "seat id must be canonical")
|
|
@@ -1054,7 +1475,7 @@ const agentProfileSchema = z.strictObject({
|
|
|
1054
1475
|
}).superRefine((profile, context) => {
|
|
1055
1476
|
validateNestedRecordKeys(profile, context, [], /* @__PURE__ */ new Set());
|
|
1056
1477
|
if (profile.seats?.length) {
|
|
1057
|
-
const first = profile.seats[0];
|
|
1478
|
+
const first = profile.seats[0], source = profile.model?.metadata?.credentialSource ?? "router";
|
|
1058
1479
|
if (first.harness !== profile.harness || first.provider !== profile.model?.provider || first.model !== profile.model?.default) context.addIssue({
|
|
1059
1480
|
code: "custom",
|
|
1060
1481
|
path: ["seats", 0],
|
|
@@ -1069,6 +1490,16 @@ const agentProfileSchema = z.strictObject({
|
|
|
1069
1490
|
],
|
|
1070
1491
|
message: "first seat reasoningEffort must match profile model.reasoningEffort"
|
|
1071
1492
|
});
|
|
1493
|
+
const spell = (value) => value === "managed" ? "router" : value;
|
|
1494
|
+
if ((first.credentialSource ?? source) !== source && spell(first.credentialSource) !== spell(source)) context.addIssue({
|
|
1495
|
+
code: "custom",
|
|
1496
|
+
path: [
|
|
1497
|
+
"seats",
|
|
1498
|
+
0,
|
|
1499
|
+
"credentialSource"
|
|
1500
|
+
],
|
|
1501
|
+
message: "first seat credentialSource must match profile model.metadata.credentialSource"
|
|
1502
|
+
});
|
|
1072
1503
|
if (first.tools !== void 0 && canonicalAgentProfileJson(first.tools) !== canonicalAgentProfileJson(profile.tools)) context.addIssue({
|
|
1073
1504
|
code: "custom",
|
|
1074
1505
|
path: [
|
|
@@ -1088,7 +1519,8 @@ const agentProfileSchema = z.strictObject({
|
|
|
1088
1519
|
message: "first seat permissions must match profile permissions"
|
|
1089
1520
|
});
|
|
1090
1521
|
for (const [index, seat] of profile.seats.entries()) {
|
|
1091
|
-
|
|
1522
|
+
const owner = resolveModelProvider(seat.model);
|
|
1523
|
+
if (owner !== null && owner !== seat.provider && !profileKbNamesModel(`${seat.provider}/${seat.model}`)) context.addIssue({
|
|
1092
1524
|
code: "custom",
|
|
1093
1525
|
path: [
|
|
1094
1526
|
"seats",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Cr as PublishPublicTemplateVersionOptions, Sr as PublishPublicTemplateOptions, Xr as HttpClient, br as PublicTemplateInfo, xr as PublicTemplateVersionInfo } from "./types-
|
|
1
|
+
import { R as SandboxError } from "./terminal-stream-types-D7dMd-NV.js";
|
|
2
|
+
import { Cr as PublishPublicTemplateVersionOptions, Sr as PublishPublicTemplateOptions, Xr as HttpClient, br as PublicTemplateInfo, xr as PublicTemplateVersionInfo } from "./types-ImZuAuFG.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/public-templates.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
1
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-xqtPv6pg.js";
|
|
2
2
|
export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
|
package/dist/public-templates.js
CHANGED