@aiwg/cli 2026.10.6 → 2026.10.7
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/bin/aiwg.mjs +4 -2
- package/dist/src/a2a/agent-card.js +11 -0
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/api/index.js +1 -0
- package/dist/src/artifacts/fortemi-shard-contract/2.2.0/contract.json +103 -0
- package/dist/src/artifacts/fortemi-shard-contract/2.2.0/full-v1-embedding-config.schema.json +212 -0
- package/dist/src/artifacts/fortemi-shard-contract/2.2.0/full-v1-embedding-set.schema.json +240 -0
- package/dist/src/artifacts/fortemi-shard-contract/2.2.0/full-v1-manifest.schema.json +451 -0
- package/dist/src/artifacts/fortemi-shard-export.js +284 -0
- package/dist/src/artifacts/index-preparation.js +2 -0
- package/dist/src/auth/client.js +5 -1
- package/dist/src/auth/credential-store.js +5 -1
- package/dist/src/auth/sensitive-input.js +151 -0
- package/dist/src/channel/manager.mjs +3 -0
- package/dist/src/cli/handlers/agentcard.js +47 -25
- package/dist/src/cli/handlers/auth.js +22 -2
- package/dist/src/cli/handlers/decision.js +3 -2
- package/dist/src/cli/handlers/effect.js +4 -84
- package/dist/src/cli/handlers/guided-setup.js +1 -1
- package/dist/src/cli/handlers/init.js +1 -1
- package/dist/src/cli/handlers/install.js +6 -0
- package/dist/src/cli/handlers/marketplace.js +15 -4
- package/dist/src/cli/handlers/setup.js +24 -20
- package/dist/src/cli/handlers/use.js +57 -15
- package/dist/src/cli/prompt-utils.js +73 -0
- package/dist/src/config/gitignore.js +4 -0
- package/dist/src/config/workspace.js +2 -1
- package/dist/src/decision/adapters/jev.js +20 -31
- package/dist/src/decision/ask.js +6 -1
- package/dist/src/decision/benchmark.js +19 -6
- package/dist/src/decision/qualification/gate-evidence.js +6 -4
- package/dist/src/decision/qualification/load-staged.js +47 -10
- package/dist/src/decision/qualification/runner.js +7 -3
- package/dist/src/discovery/interview.js +10 -5
- package/dist/src/discovery/plan-apply.js +26 -30
- package/dist/src/discovery/plan-validation.js +2 -2
- package/dist/src/effects/host.js +91 -0
- package/dist/src/extensions/commands/definitions.js +2 -2
- package/dist/src/extensions/project-local-gitignore.js +2 -0
- package/dist/src/issues/cli.js +16 -5
- package/dist/src/issues/live.js +44 -12
- package/dist/src/marketplace/exchange.js +18 -6
- package/dist/src/marketplace/provenance.js +3 -2
- package/dist/src/mcp/adapters/codex-runtime.js +46 -76
- package/dist/src/mcp/cli.mjs +17 -90
- package/dist/src/mcp/grok-build-config.mjs +2 -1
- package/dist/src/mcp/muse-native-config.mjs +2 -1
- package/dist/src/mcp/tools/worker-invoke.mjs +13 -2
- package/dist/src/memory/project-registry.js +2 -1
- package/dist/src/mission-protocol/worker-status.js +91 -1
- package/dist/src/models/worker-installation.d.mts +1 -1
- package/dist/src/models/worker-installation.mjs +65 -4
- package/dist/src/packages/adapters/git.js +99 -23
- package/dist/src/packages/adapters/gitea.js +8 -27
- package/dist/src/packages/adapters/github.js +7 -25
- package/dist/src/packages/registry.js +4 -4
- package/dist/src/process/cli-command.d.mts +5 -0
- package/dist/src/process/cli-command.mjs +42 -0
- package/dist/src/serve/worker-invocation.js +10 -0
- package/dist/src/smiths/context-pipeline/claude-hook.js +9 -9
- package/dist/src/smiths/context-pipeline/context-file-safety.js +330 -9
- package/dist/src/smiths/context-pipeline/finalization.js +3 -2
- package/dist/src/smiths/context-pipeline/generator.js +7 -19
- package/dist/src/smiths/context-pipeline/legacy-inject.js +3 -10
- package/dist/src/smiths/context-pipeline/managed-hook.js +5 -5
- package/dist/src/smiths/context-pipeline/workspace-context.js +4 -12
- package/dist/src/tracker/project-inputs.js +2 -0
- package/dist/src/update/notifier.mjs +2 -4
- package/package.json +1 -1
- package/tools/agents/providers/base.mjs +5 -1
- package/tools/agents/providers/claude.mjs +5 -2
- package/tools/agents/providers/codex.mjs +4 -1
- package/tools/agents/providers/context-write.mjs +28 -0
- package/tools/agents/providers/copilot.mjs +5 -2
- package/tools/agents/providers/hermes.mjs +5 -2
- package/tools/agents/providers/omp.mjs +3 -1
- package/tools/agents/providers/rule-delivery.mjs +29 -12
- package/tools/agents/providers/warp.mjs +4 -1
- package/tools/agents/providers/windsurf.mjs +6 -3
- package/tools/ralph-external/lib/consecutive-failure-circuit-breaker.mjs +26 -0
- package/tools/ralph-external/lib/launcher-recovery-evidence.mjs +7 -1
- package/tools/ralph-external/lib/recovery-probe.mjs +14 -4
- package/tools/ralph-external/process-monitor.mjs +42 -4
- package/tools/ralph-external/session-launcher.mjs +125 -3
package/bin/aiwg.mjs
CHANGED
|
@@ -312,8 +312,8 @@ trace('bin:entry');
|
|
|
312
312
|
* Qualifying commands, and why:
|
|
313
313
|
* - `mcp profile login` — reads an API key via `--api-key-env`,
|
|
314
314
|
* `--api-key-stdin`, or `--api-key-file`.
|
|
315
|
-
* - `decision setup jev` —
|
|
316
|
-
*
|
|
315
|
+
* - `decision setup jev`, `auth secret` — resolve standard sensitive inputs.
|
|
316
|
+
* - `init` / `setup` — apply saved credential references as well as flags.
|
|
317
317
|
*
|
|
318
318
|
* Checked and left out, with reasons (see the go/no-go review response):
|
|
319
319
|
* - `auth login` — an OAuth device/browser flow; it does not read a
|
|
@@ -336,6 +336,8 @@ function isCredentialHandlingCommand(args) {
|
|
|
336
336
|
}
|
|
337
337
|
if (positionals[0] === 'mcp' && positionals[1] === 'profile' && positionals[2] === 'login') return true;
|
|
338
338
|
if (positionals[0] === 'decision' && positionals[1] === 'setup' && positionals[2] === 'jev') return true;
|
|
339
|
+
if (positionals[0] === 'auth' && positionals[1] === 'secret') return true;
|
|
340
|
+
if (positionals[0] === 'init' || positionals[0] === 'setup') return true;
|
|
339
341
|
return false;
|
|
340
342
|
}
|
|
341
343
|
|
|
@@ -48,6 +48,17 @@ export class AgentCardCache {
|
|
|
48
48
|
* Throws on fetch failure or signature mismatch.
|
|
49
49
|
*/
|
|
50
50
|
export async function fetchAgentCard(host, instanceId, opts = {}) {
|
|
51
|
+
try {
|
|
52
|
+
return await fetchAgentCardImpl(host, instanceId, opts);
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
// Transport, JSON and signature errors can repeat remote input or headers.
|
|
56
|
+
// Drop the original cause/stack rather than retaining secret-bearing errors.
|
|
57
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
58
|
+
throw new Error(opts.bearer ? message.split(opts.bearer).join('[REDACTED]') : message);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
async function fetchAgentCardImpl(host, instanceId, opts) {
|
|
51
62
|
const fetchImpl = opts.fetch ?? fetch;
|
|
52
63
|
const base = host.replace(/\/+$/, '');
|
|
53
64
|
const encoded = encodeURIComponent(instanceId);
|
package/dist/src/api/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
export { run } from '../cli/router.js';
|
|
9
9
|
export * from '../resources/index.js';
|
|
10
10
|
export * from '../sessions/index.js';
|
|
11
|
+
export { AIWG_FULL_V1_SHARD_READER_VERSIONS, validateAiwgFortemiKnowledgeShard, importAiwgFortemiKnowledgeShard, exportAiwgFortemiKnowledgeShardWithReport, } from '../artifacts/fortemi-shard-export.js';
|
|
11
12
|
export * from '../memory/index.js';
|
|
12
13
|
export * from '../storage/index.js';
|
|
13
14
|
export * from '../security/threat-assessment-config.js';
|
package/dist/src/api/index.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
export { run } from '../cli/router.js';
|
|
9
9
|
export * from '../resources/index.js';
|
|
10
10
|
export * from '../sessions/index.js';
|
|
11
|
+
export { AIWG_FULL_V1_SHARD_READER_VERSIONS, validateAiwgFortemiKnowledgeShard, importAiwgFortemiKnowledgeShard, exportAiwgFortemiKnowledgeShardWithReport, } from '../artifacts/fortemi-shard-export.js';
|
|
11
12
|
export * from '../memory/index.js';
|
|
12
13
|
export * from '../storage/index.js';
|
|
13
14
|
export * from '../security/threat-assessment-config.js';
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"contractRevision": "23",
|
|
4
|
+
"status": "unreleased-candidate",
|
|
5
|
+
"authority": {
|
|
6
|
+
"repository": "Fortemi/fortemi",
|
|
7
|
+
"issue": "https://git.integrolabs.net/Fortemi/fortemi/issues/1217",
|
|
8
|
+
"adr": "docs/architecture/adr/ADR-102-canonical-knowledge-shard-contract.md"
|
|
9
|
+
},
|
|
10
|
+
"knowledgeShard": {
|
|
11
|
+
"format": "matric-shard",
|
|
12
|
+
"schemaVersion": "2.2.0",
|
|
13
|
+
"minimumReaderVersion": "2.2.0",
|
|
14
|
+
"profile": "full-v1"
|
|
15
|
+
},
|
|
16
|
+
"schemaBundle": {
|
|
17
|
+
"baseAuthority": "contracts/knowledge-shard/2.1.0/contract.json",
|
|
18
|
+
"files": {
|
|
19
|
+
"contracts/knowledge-shard/2.1.0/core-v1/collection.schema.json": "7507e3d8889c298f058246adecfa3fe8cf529f9c54f51a6beeec5a2229e8afff",
|
|
20
|
+
"contracts/knowledge-shard/2.1.0/core-v1/link.schema.json": "e654ca15596d4c3bddd99061f1011ae84085725db7b5b877023491d4c70a55fd",
|
|
21
|
+
"contracts/knowledge-shard/2.1.0/core-v1/note.schema.json": "f43082707710b1222afba6bd4f39ca694868257cdc0f6c3741fea48a48f322b8",
|
|
22
|
+
"contracts/knowledge-shard/2.1.0/core-v1/tag.schema.json": "dba94d9b65ef485667a618594d4e543da3db743b1608073daf340af39c83586f",
|
|
23
|
+
"contracts/knowledge-shard/2.1.0/core-v1/template.schema.json": "45d452c0d0ec82d8d8640d01b4db6ceeb92e8409597986f2d1c2361eccd8a3b6",
|
|
24
|
+
"contracts/knowledge-shard/2.1.0/full-v1/community-assignment.schema.json": "43caae37ff83af794e3b33c5c5a890c29891391c9013894b6a27a368d1d1a1e1",
|
|
25
|
+
"contracts/knowledge-shard/2.1.0/full-v1/community-set.schema.json": "44b5ba4dfafffafca4cd2dcbeb613e84b5eac40b8141ee42b64acdd442fc505c",
|
|
26
|
+
"contracts/knowledge-shard/2.1.0/full-v1/embedding-set-member.schema.json": "c3ec095a34bc679caf5953e103f8ff340def3e7f7d24354f84c0b23a50e685b9",
|
|
27
|
+
"contracts/knowledge-shard/2.1.0/full-v1/embedding.schema.json": "d0062129a58cc963688d8a477d93bb18c2515ebbb7459751540fae3be938866c",
|
|
28
|
+
"contracts/knowledge-shard/2.1.0/full-v1/graph-edge.schema.json": "ec03fd6f149f93ad59f1da43fda9584307c7e3a1d1fa9a66bb532b9d5cb09619",
|
|
29
|
+
"contracts/knowledge-shard/2.1.0/full-v1/graph-source.schema.json": "4df54f110cefad9204af4d5a334b42a865488a256acb3100e71319582c9692dc",
|
|
30
|
+
"contracts/knowledge-shard/2.1.0/full-v1/named-location.schema.json": "4fdacb534ae5d061e930fd3a6e5a248eff9724e106c86013400600ef42dbc860",
|
|
31
|
+
"contracts/knowledge-shard/2.1.0/full-v1/note-original-history.schema.json": "41246036eff831ec9dd3b84868ad089983bb375289eff0886f69ae80fe27760d",
|
|
32
|
+
"contracts/knowledge-shard/2.1.0/full-v1/note-original.schema.json": "85ed82382d951107d508e0628822b5342aa9ec19c1e9231c1f22dcecdd7316fe",
|
|
33
|
+
"contracts/knowledge-shard/2.1.0/full-v1/note-revised-current.schema.json": "506cff36ced7b63b06f4c37341aac2784b8dd20df6c1a0f969584288a11c4e2a",
|
|
34
|
+
"contracts/knowledge-shard/2.1.0/full-v1/note-revision.schema.json": "29366d0d5c5dc738fbb8ae3ad129086b51da1471b00c6fa27827b1d3d70b769f",
|
|
35
|
+
"contracts/knowledge-shard/2.1.0/full-v1/note-skos-tag.schema.json": "9be98ac497399dcc8696db6ba5582e58b3a5c4f57191e5dcf45d666c2954cf42",
|
|
36
|
+
"contracts/knowledge-shard/2.1.0/full-v1/provenance-activity.schema.json": "a91766df21408b770913ffc2f01b0d94c22d22e6282169392758d9a0cc491999",
|
|
37
|
+
"contracts/knowledge-shard/2.1.0/full-v1/provenance-device.schema.json": "b3fbb075bf1b3102d684254ebc9bd7cdb65358bf3fa91c831f8bd307701bb1ee",
|
|
38
|
+
"contracts/knowledge-shard/2.1.0/full-v1/provenance-edge.schema.json": "bb60c4762c410c82879a47f79f75b34f885e8599d3e2f842ea72381c4bf7aba3",
|
|
39
|
+
"contracts/knowledge-shard/2.1.0/full-v1/provenance-location.schema.json": "d497ea4cf761e04966dbd086c6559b975f6f04a36b537e2c994da0b5db7e1bcc",
|
|
40
|
+
"contracts/knowledge-shard/2.1.0/full-v1/provenance-record.schema.json": "4b780451a3beae7557a0af7ae29e07ea7652dc7825acd072adf3c8bd58420c17",
|
|
41
|
+
"contracts/knowledge-shard/2.1.0/full-v1/signature.schema.json": "f3ff9a478f425855716f18f0921aeebcd9992884d6040df72dc397c0e3531f99",
|
|
42
|
+
"contracts/knowledge-shard/2.1.0/full-v1/skos-collection-member.schema.json": "cfcbed164958e27834075be91e7907e386e29089b65f1a79383cc4472890d2e7",
|
|
43
|
+
"contracts/knowledge-shard/2.1.0/full-v1/skos-collection.schema.json": "0820fd02247fb82ee31aee2a77481906b9e82af90f04bb12038ab519c2b39fa5",
|
|
44
|
+
"contracts/knowledge-shard/2.1.0/full-v1/skos-concept.schema.json": "7a352094ece588501dc06960abf781a642e5df82c6a47ff6002b0b2023621b1c",
|
|
45
|
+
"contracts/knowledge-shard/2.1.0/full-v1/skos-label.schema.json": "256d1f370268cdc53cbc3d0fc2dc7fa4872cfbe28c22d8162f0b07bec67565d6",
|
|
46
|
+
"contracts/knowledge-shard/2.1.0/full-v1/skos-mapping-relation.schema.json": "149c978086247bfc6da3b5a655fc6e20958fcd4f11f533eb634f1fb58eb7feac",
|
|
47
|
+
"contracts/knowledge-shard/2.1.0/full-v1/skos-note.schema.json": "87d13a0391ec78b7354af34448083096e8c767fe481d34f05ecab831aa957469",
|
|
48
|
+
"contracts/knowledge-shard/2.1.0/full-v1/skos-relation.schema.json": "5b9fc1004137e5d3d7f1a8b2d74470863b0d708dd28b148456ebf52a16ff2432",
|
|
49
|
+
"contracts/knowledge-shard/2.1.0/full-v1/skos-scheme-membership.schema.json": "7547f5fd19c1012a4045d3415af03d9ddeb9a0997ea229af490169c97730f60e",
|
|
50
|
+
"contracts/knowledge-shard/2.1.0/full-v1/skos-scheme.schema.json": "a0ce0892d56f9a6871282210192f05c97db3a92675c4b9f7c6f8d784f3100d25",
|
|
51
|
+
"contracts/knowledge-shard/2.2.0/full-v1/embedding-config.schema.json": "03476bf53465d3bfba270b3c3f1ede8254b15f4e1b60ec6b361e1edc86c44192",
|
|
52
|
+
"contracts/knowledge-shard/2.2.0/full-v1/embedding-set.schema.json": "303a938ba044960cd9b09cc5438737576afc85ed0e51994b5cabf0fa21d66655",
|
|
53
|
+
"contracts/knowledge-shard/2.2.0/full-v1/manifest.schema.json": "20b4a98c18c53ec3a6c385d886750e77e4d32100f6bb25578f8db296b5edb109"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"fieldSemantics": {
|
|
57
|
+
"embedding_sets.query_template": {
|
|
58
|
+
"optional": true,
|
|
59
|
+
"nullable": true,
|
|
60
|
+
"absentDefault": null,
|
|
61
|
+
"nullMeaning": "No set query wrapper; use existing provider query behavior.",
|
|
62
|
+
"valueMeaning": "Exactly one {text}, at most 2048 UTF-8 bytes; restore without modification.",
|
|
63
|
+
"exportNull": "Omit; absence and null both denote the legacy no-template default."
|
|
64
|
+
},
|
|
65
|
+
"embedding_sets.vector_source": {
|
|
66
|
+
"optional": true,
|
|
67
|
+
"nullable": true,
|
|
68
|
+
"absentDefault": "internal",
|
|
69
|
+
"nullMeaning": "Internal automatic embedding ownership",
|
|
70
|
+
"valueMeaning": "Preserve internal/external write ownership independently of searchable vector kinds."
|
|
71
|
+
},
|
|
72
|
+
"embedding_configs.provider_dimension": {
|
|
73
|
+
"optional": true,
|
|
74
|
+
"nullable": true,
|
|
75
|
+
"absentDefault": null,
|
|
76
|
+
"nullMeaning": "Legacy provider-native postprocessing.",
|
|
77
|
+
"valueMeaning": "Raw provider output before truncation and L2 normalization; storage dimension <= raw <= 16384."
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"compatibility": {
|
|
81
|
+
"previousReaders": "Continue accepting 1.x, 2.0.0 and 2.1.0; absent query_template/provider_dimension default to NULL and vector_source to internal.",
|
|
82
|
+
"upgrade": "2.1.0 records remain valid 2.2.0 records; no rewriting or migration is required.",
|
|
83
|
+
"downgrade": "Reject older full-v1 exports if query_template, external ownership, or provider_dimension would be discarded.",
|
|
84
|
+
"selection": "Full-v1 exports select 2.2.0 when any of these extended contracts is present."
|
|
85
|
+
},
|
|
86
|
+
"canonicalCorpus": {
|
|
87
|
+
"path": "tests/fixtures/shards/full-v1-query-template-v2.2/embedding_sets.json",
|
|
88
|
+
"sha256": "f279cad22517395194c6a5dc327b4531bd089e151b9141324c94f01e81bacf32",
|
|
89
|
+
"test": "shard_query_template_tests::query_template_schema_2_2_golden_corpus_and_pins"
|
|
90
|
+
},
|
|
91
|
+
"consumerImpact": {
|
|
92
|
+
"fortemi": "Producer/consumer route round trip, legacy NULL default, validation-before-writes tests in shard_query_template_tests.rs.",
|
|
93
|
+
"fortemi-react": "Consumers pinned to earlier schema versions must reject 2.2.0 until their optional query_template mapping is implemented and fixtures pass. Preserve vector_source and provider_dimension under the same qualification gate.",
|
|
94
|
+
"aiwg": "Full-v1 consumers must preserve optional query_template and pass the new fixture before advertising 2.2.0. Preserve vector_source and provider_dimension under the same qualification gate.",
|
|
95
|
+
"HotM": "Consumers supporting full-v1 must negotiate 2.2.0 and preserve query_template before advertising support. Preserve vector_source and provider_dimension under the same qualification gate.",
|
|
96
|
+
"tracking": "Consumer issue/PR reciprocal links and cross-repository pins/results are required before release under Fortemi/fortemi#1217."
|
|
97
|
+
},
|
|
98
|
+
"claimPolicy": "Local implementation and corpus only. No new cross-repository conformance or release claim; existing receipts remain immutable and do not cover 2.2.0.",
|
|
99
|
+
"providerDimensionCorpus": {
|
|
100
|
+
"path": "tests/fixtures/shards/full-v1-query-template-v2.2/embedding_configs.json",
|
|
101
|
+
"sha256": "bc76206df48215d0da7a3c944874d7af5b6e01bb07df8b5849869025b7d25f89"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.fortemi.dev/knowledge-shard/2.2.0/full-v1/embedding-config.schema.json",
|
|
4
|
+
"title": "Fortemi Knowledge Shard full-v1 candidate embedding config record",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"id",
|
|
9
|
+
"name",
|
|
10
|
+
"description",
|
|
11
|
+
"model",
|
|
12
|
+
"dimension",
|
|
13
|
+
"vector_type",
|
|
14
|
+
"chunk_size",
|
|
15
|
+
"chunk_overlap",
|
|
16
|
+
"hnsw_m",
|
|
17
|
+
"hnsw_ef_construction",
|
|
18
|
+
"ivfflat_lists",
|
|
19
|
+
"is_default",
|
|
20
|
+
"supports_mrl",
|
|
21
|
+
"matryoshka_dims",
|
|
22
|
+
"default_truncate_dim",
|
|
23
|
+
"provider",
|
|
24
|
+
"provider_config",
|
|
25
|
+
"content_types",
|
|
26
|
+
"strengths",
|
|
27
|
+
"limitations",
|
|
28
|
+
"recommended_for",
|
|
29
|
+
"benchmark_scores",
|
|
30
|
+
"is_available",
|
|
31
|
+
"document_composition",
|
|
32
|
+
"created_at",
|
|
33
|
+
"updated_at"
|
|
34
|
+
],
|
|
35
|
+
"properties": {
|
|
36
|
+
"id": {
|
|
37
|
+
"$ref": "#/$defs/uuid"
|
|
38
|
+
},
|
|
39
|
+
"name": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 1
|
|
42
|
+
},
|
|
43
|
+
"description": {
|
|
44
|
+
"type": [
|
|
45
|
+
"string",
|
|
46
|
+
"null"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"model": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"minLength": 1
|
|
52
|
+
},
|
|
53
|
+
"dimension": {
|
|
54
|
+
"type": "integer",
|
|
55
|
+
"minimum": 1,
|
|
56
|
+
"maximum": 4000
|
|
57
|
+
},
|
|
58
|
+
"vector_type": {
|
|
59
|
+
"enum": [
|
|
60
|
+
"vector",
|
|
61
|
+
"halfvec"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"chunk_size": {
|
|
65
|
+
"type": "integer",
|
|
66
|
+
"minimum": 1
|
|
67
|
+
},
|
|
68
|
+
"chunk_overlap": {
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"minimum": 0
|
|
71
|
+
},
|
|
72
|
+
"hnsw_m": {
|
|
73
|
+
"$ref": "#/$defs/nullableNonNegativeInteger"
|
|
74
|
+
},
|
|
75
|
+
"hnsw_ef_construction": {
|
|
76
|
+
"$ref": "#/$defs/nullableNonNegativeInteger"
|
|
77
|
+
},
|
|
78
|
+
"ivfflat_lists": {
|
|
79
|
+
"$ref": "#/$defs/nullableNonNegativeInteger"
|
|
80
|
+
},
|
|
81
|
+
"is_default": {
|
|
82
|
+
"$ref": "#/$defs/nullableBoolean"
|
|
83
|
+
},
|
|
84
|
+
"supports_mrl": {
|
|
85
|
+
"$ref": "#/$defs/nullableBoolean"
|
|
86
|
+
},
|
|
87
|
+
"matryoshka_dims": {
|
|
88
|
+
"oneOf": [
|
|
89
|
+
{
|
|
90
|
+
"type": "array",
|
|
91
|
+
"minItems": 1,
|
|
92
|
+
"uniqueItems": true,
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "integer",
|
|
95
|
+
"minimum": 1
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "null"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"default_truncate_dim": {
|
|
104
|
+
"$ref": "#/$defs/nullablePositiveInteger"
|
|
105
|
+
},
|
|
106
|
+
"provider": {
|
|
107
|
+
"enum": [
|
|
108
|
+
null,
|
|
109
|
+
"ollama",
|
|
110
|
+
"openai",
|
|
111
|
+
"voyage",
|
|
112
|
+
"cohere",
|
|
113
|
+
"custom"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
"provider_config": {
|
|
117
|
+
"type": [
|
|
118
|
+
"object",
|
|
119
|
+
"null"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"content_types": {
|
|
123
|
+
"$ref": "#/$defs/nullableStringArray"
|
|
124
|
+
},
|
|
125
|
+
"strengths": {
|
|
126
|
+
"$ref": "#/$defs/nullableStringArray"
|
|
127
|
+
},
|
|
128
|
+
"limitations": {
|
|
129
|
+
"$ref": "#/$defs/nullableStringArray"
|
|
130
|
+
},
|
|
131
|
+
"recommended_for": {
|
|
132
|
+
"$ref": "#/$defs/nullableStringArray"
|
|
133
|
+
},
|
|
134
|
+
"benchmark_scores": {
|
|
135
|
+
"type": [
|
|
136
|
+
"object",
|
|
137
|
+
"null"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"is_available": {
|
|
141
|
+
"$ref": "#/$defs/nullableBoolean"
|
|
142
|
+
},
|
|
143
|
+
"document_composition": {
|
|
144
|
+
"type": "object"
|
|
145
|
+
},
|
|
146
|
+
"space_contract": true,
|
|
147
|
+
"space_id": {
|
|
148
|
+
"type": [
|
|
149
|
+
"string",
|
|
150
|
+
"null"
|
|
151
|
+
],
|
|
152
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
153
|
+
},
|
|
154
|
+
"created_at": {
|
|
155
|
+
"$ref": "#/$defs/dateTime"
|
|
156
|
+
},
|
|
157
|
+
"updated_at": {
|
|
158
|
+
"$ref": "#/$defs/dateTime"
|
|
159
|
+
},
|
|
160
|
+
"provider_dimension": {
|
|
161
|
+
"type": [
|
|
162
|
+
"integer",
|
|
163
|
+
"null"
|
|
164
|
+
],
|
|
165
|
+
"minimum": 1,
|
|
166
|
+
"maximum": 16384
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"$defs": {
|
|
170
|
+
"uuid": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"format": "uuid"
|
|
173
|
+
},
|
|
174
|
+
"dateTime": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"format": "date-time"
|
|
177
|
+
},
|
|
178
|
+
"nullableBoolean": {
|
|
179
|
+
"type": [
|
|
180
|
+
"boolean",
|
|
181
|
+
"null"
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
"nullableNonNegativeInteger": {
|
|
185
|
+
"type": [
|
|
186
|
+
"integer",
|
|
187
|
+
"null"
|
|
188
|
+
],
|
|
189
|
+
"minimum": 0
|
|
190
|
+
},
|
|
191
|
+
"nullablePositiveInteger": {
|
|
192
|
+
"type": [
|
|
193
|
+
"integer",
|
|
194
|
+
"null"
|
|
195
|
+
],
|
|
196
|
+
"minimum": 1
|
|
197
|
+
},
|
|
198
|
+
"nullableStringArray": {
|
|
199
|
+
"oneOf": [
|
|
200
|
+
{
|
|
201
|
+
"type": "array",
|
|
202
|
+
"items": {
|
|
203
|
+
"type": "string"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"type": "null"
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.fortemi.dev/knowledge-shard/2.2.0/full-v1/embedding-set.schema.json",
|
|
4
|
+
"title": "Fortemi Knowledge Shard full-v1 candidate embedding set record",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"id",
|
|
9
|
+
"name",
|
|
10
|
+
"slug",
|
|
11
|
+
"description",
|
|
12
|
+
"purpose",
|
|
13
|
+
"usage_hints",
|
|
14
|
+
"keywords",
|
|
15
|
+
"set_type",
|
|
16
|
+
"mode",
|
|
17
|
+
"criteria",
|
|
18
|
+
"embedding_config_id",
|
|
19
|
+
"truncate_dim",
|
|
20
|
+
"auto_embed_rules",
|
|
21
|
+
"index_status",
|
|
22
|
+
"index_type",
|
|
23
|
+
"last_indexed_at",
|
|
24
|
+
"document_count",
|
|
25
|
+
"embedding_count",
|
|
26
|
+
"embeddings_current",
|
|
27
|
+
"index_size_bytes",
|
|
28
|
+
"is_system",
|
|
29
|
+
"is_active",
|
|
30
|
+
"auto_refresh",
|
|
31
|
+
"refresh_interval",
|
|
32
|
+
"last_refresh_at",
|
|
33
|
+
"agent_metadata",
|
|
34
|
+
"created_at",
|
|
35
|
+
"updated_at",
|
|
36
|
+
"created_by"
|
|
37
|
+
],
|
|
38
|
+
"properties": {
|
|
39
|
+
"id": {
|
|
40
|
+
"$ref": "#/$defs/uuid"
|
|
41
|
+
},
|
|
42
|
+
"name": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1
|
|
45
|
+
},
|
|
46
|
+
"slug": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"minLength": 1
|
|
49
|
+
},
|
|
50
|
+
"description": {
|
|
51
|
+
"$ref": "#/$defs/nullableString"
|
|
52
|
+
},
|
|
53
|
+
"purpose": {
|
|
54
|
+
"$ref": "#/$defs/nullableString"
|
|
55
|
+
},
|
|
56
|
+
"usage_hints": {
|
|
57
|
+
"$ref": "#/$defs/nullableString"
|
|
58
|
+
},
|
|
59
|
+
"keywords": {
|
|
60
|
+
"$ref": "#/$defs/nullableStringArray"
|
|
61
|
+
},
|
|
62
|
+
"set_type": {
|
|
63
|
+
"enum": [
|
|
64
|
+
"filter",
|
|
65
|
+
"full"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"mode": {
|
|
69
|
+
"enum": [
|
|
70
|
+
"auto",
|
|
71
|
+
"manual",
|
|
72
|
+
"mixed"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"criteria": {
|
|
76
|
+
"type": [
|
|
77
|
+
"object",
|
|
78
|
+
"null"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"embedding_config_id": {
|
|
82
|
+
"$ref": "#/$defs/nullableUuid"
|
|
83
|
+
},
|
|
84
|
+
"truncate_dim": {
|
|
85
|
+
"$ref": "#/$defs/nullablePositiveInteger"
|
|
86
|
+
},
|
|
87
|
+
"auto_embed_rules": {
|
|
88
|
+
"type": [
|
|
89
|
+
"object",
|
|
90
|
+
"null"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"index_status": {
|
|
94
|
+
"enum": [
|
|
95
|
+
"empty",
|
|
96
|
+
"pending",
|
|
97
|
+
"building",
|
|
98
|
+
"ready",
|
|
99
|
+
"stale",
|
|
100
|
+
"disabled"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"index_type": {
|
|
104
|
+
"$ref": "#/$defs/nullableString"
|
|
105
|
+
},
|
|
106
|
+
"last_indexed_at": {
|
|
107
|
+
"$ref": "#/$defs/nullableDateTime"
|
|
108
|
+
},
|
|
109
|
+
"document_count": {
|
|
110
|
+
"$ref": "#/$defs/nullableNonNegativeInteger"
|
|
111
|
+
},
|
|
112
|
+
"embedding_count": {
|
|
113
|
+
"$ref": "#/$defs/nullableNonNegativeInteger"
|
|
114
|
+
},
|
|
115
|
+
"embeddings_current": {
|
|
116
|
+
"$ref": "#/$defs/nullableBoolean"
|
|
117
|
+
},
|
|
118
|
+
"index_size_bytes": {
|
|
119
|
+
"$ref": "#/$defs/nullableNonNegativeInteger"
|
|
120
|
+
},
|
|
121
|
+
"is_system": {
|
|
122
|
+
"$ref": "#/$defs/nullableBoolean"
|
|
123
|
+
},
|
|
124
|
+
"is_active": {
|
|
125
|
+
"$ref": "#/$defs/nullableBoolean"
|
|
126
|
+
},
|
|
127
|
+
"auto_refresh": {
|
|
128
|
+
"$ref": "#/$defs/nullableBoolean"
|
|
129
|
+
},
|
|
130
|
+
"refresh_interval": {
|
|
131
|
+
"$ref": "#/$defs/nullableString"
|
|
132
|
+
},
|
|
133
|
+
"last_refresh_at": {
|
|
134
|
+
"$ref": "#/$defs/nullableDateTime"
|
|
135
|
+
},
|
|
136
|
+
"agent_metadata": {
|
|
137
|
+
"type": [
|
|
138
|
+
"object",
|
|
139
|
+
"null"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"created_at": {
|
|
143
|
+
"$ref": "#/$defs/dateTime"
|
|
144
|
+
},
|
|
145
|
+
"updated_at": {
|
|
146
|
+
"$ref": "#/$defs/dateTime"
|
|
147
|
+
},
|
|
148
|
+
"created_by": {
|
|
149
|
+
"$ref": "#/$defs/nullableString"
|
|
150
|
+
},
|
|
151
|
+
"query_template": {
|
|
152
|
+
"type": [
|
|
153
|
+
"string",
|
|
154
|
+
"null"
|
|
155
|
+
],
|
|
156
|
+
"maxLength": 2048,
|
|
157
|
+
"pattern": "^(?:(?!\\{text\\})[\\s\\S])*\\{text\\}(?:(?!\\{text\\})[\\s\\S])*$"
|
|
158
|
+
},
|
|
159
|
+
"vector_source": {
|
|
160
|
+
"type": [
|
|
161
|
+
"string",
|
|
162
|
+
"null"
|
|
163
|
+
],
|
|
164
|
+
"enum": [
|
|
165
|
+
"internal",
|
|
166
|
+
"external",
|
|
167
|
+
null
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"$defs": {
|
|
172
|
+
"uuid": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"format": "uuid"
|
|
175
|
+
},
|
|
176
|
+
"dateTime": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"format": "date-time"
|
|
179
|
+
},
|
|
180
|
+
"nullableUuid": {
|
|
181
|
+
"oneOf": [
|
|
182
|
+
{
|
|
183
|
+
"$ref": "#/$defs/uuid"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"type": "null"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"nullableDateTime": {
|
|
191
|
+
"oneOf": [
|
|
192
|
+
{
|
|
193
|
+
"$ref": "#/$defs/dateTime"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"type": "null"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
"nullableString": {
|
|
201
|
+
"type": [
|
|
202
|
+
"string",
|
|
203
|
+
"null"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
"nullableBoolean": {
|
|
207
|
+
"type": [
|
|
208
|
+
"boolean",
|
|
209
|
+
"null"
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"nullableNonNegativeInteger": {
|
|
213
|
+
"type": [
|
|
214
|
+
"integer",
|
|
215
|
+
"null"
|
|
216
|
+
],
|
|
217
|
+
"minimum": 0
|
|
218
|
+
},
|
|
219
|
+
"nullablePositiveInteger": {
|
|
220
|
+
"type": [
|
|
221
|
+
"integer",
|
|
222
|
+
"null"
|
|
223
|
+
],
|
|
224
|
+
"minimum": 1
|
|
225
|
+
},
|
|
226
|
+
"nullableStringArray": {
|
|
227
|
+
"oneOf": [
|
|
228
|
+
{
|
|
229
|
+
"type": "array",
|
|
230
|
+
"items": {
|
|
231
|
+
"type": "string"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"type": "null"
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|