@hraness/wordcell 0.20.0-bootstrap.1
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/LICENSE +21 -0
- package/README.md +749 -0
- package/dist/agent-context.js +35 -0
- package/dist/agent-guide-audit.js +18 -0
- package/dist/attachments.js +19 -0
- package/dist/authoring.js +33 -0
- package/dist/benchmark.js +19 -0
- package/dist/capture.js +49 -0
- package/dist/cli.js +57 -0
- package/dist/clip/acquire.js +57 -0
- package/dist/clip/args.js +21 -0
- package/dist/clip/bounded-byte-buffer.js +9 -0
- package/dist/clip/browser-profiles.js +17 -0
- package/dist/clip/bundle-reader.js +11 -0
- package/dist/clip/cli.js +27 -0
- package/dist/clip/cookies.js +21 -0
- package/dist/clip/defuddle-worker.js +84 -0
- package/dist/clip/doctor.js +32 -0
- package/dist/clip/jobs.js +784 -0
- package/dist/clip/network-proxy.js +9 -0
- package/dist/clip/network.js +28 -0
- package/dist/clip/persist.js +30 -0
- package/dist/clip/refresh.js +11 -0
- package/dist/clip/terminal.js +11 -0
- package/dist/evaluation-builder.js +12238 -0
- package/dist/evaluation-kb.js +26 -0
- package/dist/evaluation.js +35 -0
- package/dist/git.js +39 -0
- package/dist/graph.js +41 -0
- package/dist/index-054mb7d3.js +1974 -0
- package/dist/index-06c9ctr6.js +738 -0
- package/dist/index-180zbkkt.js +2480 -0
- package/dist/index-1gwbassd.js +743 -0
- package/dist/index-1xxnjn0d.js +171 -0
- package/dist/index-23z4zxgg.js +119 -0
- package/dist/index-2gv8y733.js +432 -0
- package/dist/index-3ehtt59c.js +199 -0
- package/dist/index-3rm7cz6h.js +373 -0
- package/dist/index-48pz4jpc.js +392 -0
- package/dist/index-4j3tt0c3.js +234 -0
- package/dist/index-5n05se68.js +307 -0
- package/dist/index-5vwpzb5a.js +764 -0
- package/dist/index-6jcz0m1c.js +712 -0
- package/dist/index-6sw24nvv.js +1189 -0
- package/dist/index-8a08v6x8.js +56 -0
- package/dist/index-adx6khj5.js +488 -0
- package/dist/index-b88v3vtm.js +805 -0
- package/dist/index-bcknqxrq.js +1943 -0
- package/dist/index-bs0yf4pp.js +711 -0
- package/dist/index-by0pbant.js +827 -0
- package/dist/index-d13v9ckt.js +150 -0
- package/dist/index-dfag79p7.js +370 -0
- package/dist/index-e4fagfjz.js +44 -0
- package/dist/index-e5fbsywq.js +658 -0
- package/dist/index-ekpwvbra.js +1070 -0
- package/dist/index-f984hw45.js +927 -0
- package/dist/index-gh719d91.js +63 -0
- package/dist/index-h170byqw.js +371 -0
- package/dist/index-hgve9rh2.js +2046 -0
- package/dist/index-hya40gb2.js +474 -0
- package/dist/index-j4zgmzjr.js +152 -0
- package/dist/index-m7et4rz4.js +966 -0
- package/dist/index-mxxxytys.js +1254 -0
- package/dist/index-n05s3wsb.js +2728 -0
- package/dist/index-nd6nynv2.js +1162 -0
- package/dist/index-npg9z1a4.js +431 -0
- package/dist/index-pj501bh1.js +140 -0
- package/dist/index-rdd5f7jj.js +70 -0
- package/dist/index-sy0zety7.js +3630 -0
- package/dist/index-tkpxp48t.js +1166 -0
- package/dist/index-w2zc0vwa.js +571 -0
- package/dist/index-why54q5p.js +462 -0
- package/dist/index-x3fthpsc.js +585 -0
- package/dist/index-x6m57nfc.js +1041 -0
- package/dist/index.js +784 -0
- package/dist/kb-alias.js +55 -0
- package/dist/navigation.js +13 -0
- package/dist/pdf.js +85 -0
- package/dist/percolate.js +44 -0
- package/dist/portfolio.js +77 -0
- package/dist/query.js +29 -0
- package/dist/repository-memory.js +60 -0
- package/dist/sdk.js +36 -0
- package/dist/search-rules.js +34 -0
- package/dist/search.js +22 -0
- package/dist/semantic.js +39 -0
- package/dist/source-inbox.js +17 -0
- package/dist/untrusted-content.js +32 -0
- package/dist/url-intelligence.js +74 -0
- package/dist/workflow.js +23 -0
- package/dist/workflows/decision-context.js +20 -0
- package/dist/workflows/explain-change.js +8 -0
- package/dist/workflows/index.js +28 -0
- package/dist/workflows/plan-radar.js +10 -0
- package/package.json +421 -0
- package/skills/wordcell/AGENTS.md +22 -0
- package/skills/wordcell/SKILL.md +91 -0
- package/skills/wordcell/agents/openai.yaml +4 -0
- package/skills/wordcell/references/companion-skills.md +96 -0
- package/skills/wordcell/references/customize.md +123 -0
- package/skills/wordcell/references/pdf-review.md +51 -0
- package/skills/wordcell/references/percolate.md +176 -0
- package/skills/wordcell/references/plan-structure.md +105 -0
- package/skills/wordcell/references/plan.md +115 -0
- package/skills/wordcell/references/query.md +252 -0
- package/skills/wordcell/references/refresh.md +133 -0
- package/skills/wordcell/references/save-pdf.md +125 -0
- package/skills/wordcell/references/save-url.md +178 -0
- package/skills/wordcell/references/url-authentication.md +75 -0
- package/skills/wordcell/references/url-platforms.md +25 -0
- package/skills/wordcell/templates/companion-skill.template.md +57 -0
- package/src/agent-context.ts +1241 -0
- package/src/agent-guide-audit.ts +750 -0
- package/src/attachments.ts +723 -0
- package/src/authoring-model.ts +798 -0
- package/src/authoring-platform.ts +549 -0
- package/src/authoring-program.ts +278 -0
- package/src/authoring-runtime.ts +54 -0
- package/src/authoring.ts +75 -0
- package/src/benchmark.ts +362 -0
- package/src/capture.ts +68 -0
- package/src/cli-program.ts +3662 -0
- package/src/cli.ts +6 -0
- package/src/clip/acquire.ts +1273 -0
- package/src/clip/archive-today.ts +402 -0
- package/src/clip/args.ts +423 -0
- package/src/clip/assets.ts +262 -0
- package/src/clip/bounded-byte-buffer.ts +75 -0
- package/src/clip/browser-profiles.ts +372 -0
- package/src/clip/bundle-reader.ts +608 -0
- package/src/clip/capture.ts +1054 -0
- package/src/clip/cli.ts +181 -0
- package/src/clip/cookies.ts +512 -0
- package/src/clip/doctor.ts +1110 -0
- package/src/clip/extract.ts +868 -0
- package/src/clip/jobs.ts +959 -0
- package/src/clip/lib.ts +861 -0
- package/src/clip/media.ts +1474 -0
- package/src/clip/metadata-search-tool/Cargo.lock +2498 -0
- package/src/clip/metadata-search-tool/Cargo.toml +18 -0
- package/src/clip/metadata-search-tool/runner.ts +685 -0
- package/src/clip/metadata-search-tool/src/main.rs +389 -0
- package/src/clip/metadata-search.ts +687 -0
- package/src/clip/network-proxy.ts +627 -0
- package/src/clip/network.ts +950 -0
- package/src/clip/package-root.ts +54 -0
- package/src/clip/persist.ts +1472 -0
- package/src/clip/platforms.ts +1824 -0
- package/src/clip/refresh.ts +197 -0
- package/src/clip/structured.ts +432 -0
- package/src/clip/terminal.ts +197 -0
- package/src/clip/url-intelligence.ts +581 -0
- package/src/clip/url-metadata-backfill.ts +616 -0
- package/src/clip/url-metadata-cli.ts +251 -0
- package/src/clip/url-metadata.ts +1397 -0
- package/src/evaluation-analysis-v2.ts +1440 -0
- package/src/evaluation-builder.ts +2539 -0
- package/src/evaluation-corpus-authoring.ts +2052 -0
- package/src/evaluation-evidence.ts +1147 -0
- package/src/evaluation-execution-v2.ts +426 -0
- package/src/evaluation-implementation.ts +131 -0
- package/src/evaluation-kb-closure.ts +1430 -0
- package/src/evaluation-kb-runner-v2.ts +735 -0
- package/src/evaluation-kb-v2.ts +2567 -0
- package/src/evaluation-kb.ts +1018 -0
- package/src/evaluation-measurement-v2.ts +1462 -0
- package/src/evaluation-packing-v2.ts +452 -0
- package/src/evaluation-redaction.ts +28 -0
- package/src/evaluation-v2.ts +3857 -0
- package/src/evaluation.ts +1220 -0
- package/src/git.ts +1276 -0
- package/src/graph.ts +1494 -0
- package/src/index.ts +21 -0
- package/src/init.ts +123 -0
- package/src/kb-alias.ts +14 -0
- package/src/navigation.ts +277 -0
- package/src/note-lock.ts +529 -0
- package/src/oh-adoption.ts +444 -0
- package/src/pdf/args.ts +202 -0
- package/src/pdf/capture.ts +298 -0
- package/src/pdf/cli.ts +159 -0
- package/src/pdf/extract.ts +303 -0
- package/src/pdf/layout.ts +618 -0
- package/src/pdf/markdown.ts +154 -0
- package/src/pdf/model.ts +234 -0
- package/src/pdf/ocr.ts +190 -0
- package/src/pdf/persist.ts +314 -0
- package/src/pdf/source.ts +135 -0
- package/src/pdf/tools.ts +146 -0
- package/src/pdf.ts +92 -0
- package/src/percolate.ts +1948 -0
- package/src/portfolio-audit.ts +574 -0
- package/src/portfolio-identity.ts +162 -0
- package/src/portfolio-registry.ts +473 -0
- package/src/portfolio.ts +765 -0
- package/src/query.ts +646 -0
- package/src/repository-memory.ts +1150 -0
- package/src/sdk.ts +1452 -0
- package/src/search-rules.ts +712 -0
- package/src/search.ts +710 -0
- package/src/semantic-runtime.ts +1139 -0
- package/src/semantic.ts +2480 -0
- package/src/source-inbox.ts +232 -0
- package/src/untrusted-content.ts +401 -0
- package/src/url-intelligence.ts +104 -0
- package/src/vault.ts +636 -0
- package/src/workflow-model.ts +444 -0
- package/src/workflow-platform.ts +74 -0
- package/src/workflow-program.ts +183 -0
- package/src/workflow-runtime.ts +51 -0
- package/src/workflow.ts +23 -0
- package/src/workflows/decision-context.ts +81 -0
- package/src/workflows/explain-change.ts +73 -0
- package/src/workflows/index.ts +3 -0
- package/src/workflows/plan-radar.ts +101 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,784 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
DEFAULT_WORKFLOW_OUTPUT_BYTES,
|
|
4
|
+
MAX_GIT_WORKFLOW_CONCURRENCY,
|
|
5
|
+
MAX_WORKFLOW_CONCURRENCY,
|
|
6
|
+
MAX_WORKFLOW_NODES,
|
|
7
|
+
MAX_WORKFLOW_OUTPUT_BYTES,
|
|
8
|
+
WorkflowRunError,
|
|
9
|
+
defineWorkflow,
|
|
10
|
+
runWorkflow,
|
|
11
|
+
workflowFromUnknown
|
|
12
|
+
} from "./index-h170byqw.js";
|
|
13
|
+
import {
|
|
14
|
+
initVault
|
|
15
|
+
} from "./index-23z4zxgg.js";
|
|
16
|
+
import {
|
|
17
|
+
MAX_SOURCE_DISPOSITION_EVIDENCE,
|
|
18
|
+
MAX_SOURCE_INBOX_CONNECTIONS,
|
|
19
|
+
MAX_SOURCE_INBOX_NOTES,
|
|
20
|
+
MAX_SOURCE_INBOX_PREFIXES,
|
|
21
|
+
MAX_SOURCE_INBOX_RESULTS,
|
|
22
|
+
sourceInbox
|
|
23
|
+
} from "./index-pj501bh1.js";
|
|
24
|
+
import {
|
|
25
|
+
FrozenEvaluationSnapshotError,
|
|
26
|
+
knowledgeBaseEvaluationRetrieverIds,
|
|
27
|
+
openKnowledgeBaseEvaluation,
|
|
28
|
+
verifyFrozenEvaluationSnapshot
|
|
29
|
+
} from "./index-bs0yf4pp.js";
|
|
30
|
+
import {
|
|
31
|
+
DEFAULT_PERCOLATION_LIMIT,
|
|
32
|
+
DEFAULT_PERCOLATION_MIN_SUPPORT,
|
|
33
|
+
MAX_PERCOLATION_EVIDENCE_PER_CANDIDATE,
|
|
34
|
+
MAX_PERCOLATION_LIMIT,
|
|
35
|
+
MAX_PERCOLATION_MENTIONS,
|
|
36
|
+
MAX_PERCOLATION_MENTION_PAIRS,
|
|
37
|
+
MAX_PERCOLATION_NOTES,
|
|
38
|
+
MAX_PERCOLATION_RESULT_NODES,
|
|
39
|
+
MAX_PERCOLATION_RESULT_UTF8_BYTES,
|
|
40
|
+
MAX_PERCOLATION_TEXT_UTF8_BYTES,
|
|
41
|
+
MAX_SCOPED_PERCOLATION_MENTION_PAIRS,
|
|
42
|
+
PERCOLATION_RESULT_SCHEMA_VERSION,
|
|
43
|
+
parsePercolationCliOutput,
|
|
44
|
+
parsePercolationCliOutputV1,
|
|
45
|
+
parsePercolationCliOutputV2,
|
|
46
|
+
parsePercolationResult,
|
|
47
|
+
parsePercolationResultV1,
|
|
48
|
+
parsePercolationResultV2,
|
|
49
|
+
percolateVault
|
|
50
|
+
} from "./index-nd6nynv2.js";
|
|
51
|
+
import {
|
|
52
|
+
DEFAULT_SEARCH_RESULTS,
|
|
53
|
+
MAX_SEARCH_CANDIDATES,
|
|
54
|
+
MAX_SEARCH_NOTE_REFERENCE_BYTES,
|
|
55
|
+
MAX_SEARCH_RELATED_SEEDS,
|
|
56
|
+
MAX_SEARCH_RESULTS,
|
|
57
|
+
MIN_UNTRUSTED_CONTEXT_BYTES,
|
|
58
|
+
openKnowledgeBase,
|
|
59
|
+
packSearchContext,
|
|
60
|
+
packUntrustedSearchContext,
|
|
61
|
+
validateKnowledgeBaseSearchHistory
|
|
62
|
+
} from "./index-m7et4rz4.js";
|
|
63
|
+
import"./index-adx6khj5.js";
|
|
64
|
+
import {
|
|
65
|
+
MAX_EMBEDDING_MODEL_BYTES,
|
|
66
|
+
MAX_NOTE_UTF8_BYTES,
|
|
67
|
+
MAX_SCANNED_NOTES,
|
|
68
|
+
MAX_SEMANTIC_DATABASE_IDENTITY_BYTES,
|
|
69
|
+
MAX_VAULT_UTF8_BYTES,
|
|
70
|
+
VaultScanBudgetError,
|
|
71
|
+
attestSemanticWarmCache,
|
|
72
|
+
checkpointSemanticWarmCache,
|
|
73
|
+
createVerifiedEmbeddingModelLease,
|
|
74
|
+
defaultIgnoredDirectories,
|
|
75
|
+
indexSemanticVault,
|
|
76
|
+
markdownFiles,
|
|
77
|
+
openSemanticSearchSession,
|
|
78
|
+
openSemanticWarmSearchSession,
|
|
79
|
+
qmdIndexerVersion,
|
|
80
|
+
readVaultNotes,
|
|
81
|
+
recommendedEmbeddingModel,
|
|
82
|
+
recommendedEmbeddingModelSha256,
|
|
83
|
+
refreshVault,
|
|
84
|
+
scanVault,
|
|
85
|
+
searchSemanticVault,
|
|
86
|
+
semanticDatabasePath,
|
|
87
|
+
sha256EmbeddingModelFile
|
|
88
|
+
} from "./index-n05s3wsb.js";
|
|
89
|
+
import"./index-4j3tt0c3.js";
|
|
90
|
+
import {
|
|
91
|
+
GitHistoryError,
|
|
92
|
+
MAX_GIT_HISTORY_COMMITS,
|
|
93
|
+
MAX_GIT_HISTORY_NOTES,
|
|
94
|
+
MAX_GIT_HISTORY_OUTPUT_BYTES,
|
|
95
|
+
MAX_GIT_HISTORY_TIMEOUT_MS,
|
|
96
|
+
MAX_GIT_NOTE_IDS_UTF8_BYTES,
|
|
97
|
+
MAX_GIT_NOTE_ID_UTF8_BYTES,
|
|
98
|
+
MAX_GIT_PATHS_PER_COMMIT,
|
|
99
|
+
MAX_GIT_PATH_OBSERVATIONS,
|
|
100
|
+
gitHistoryForNotes,
|
|
101
|
+
indexGitHistory,
|
|
102
|
+
parseGitHistoryOutput,
|
|
103
|
+
runGitCommand,
|
|
104
|
+
searchGitHistory,
|
|
105
|
+
validateGitHistoryForNotesOptions,
|
|
106
|
+
validateGitHistoryForNotesRequest,
|
|
107
|
+
validateSearchGitHistoryOptions
|
|
108
|
+
} from "./index-1gwbassd.js";
|
|
109
|
+
import {
|
|
110
|
+
MAX_BOOTSTRAP_RESAMPLES,
|
|
111
|
+
MAX_EVALUATION_DIAGNOSTICS,
|
|
112
|
+
MAX_EVALUATION_EVIDENCE_BYTES,
|
|
113
|
+
MAX_EVALUATION_QRELS_PER_QUERY,
|
|
114
|
+
MAX_EVALUATION_QUERIES,
|
|
115
|
+
MAX_EVALUATION_RESULTS_PER_QUERY,
|
|
116
|
+
MAX_EVALUATION_RETRIEVERS,
|
|
117
|
+
MAX_EVALUATION_TEXT_BYTES,
|
|
118
|
+
MAX_EVALUATION_TIMEOUT_MS,
|
|
119
|
+
RETRIEVAL_EVALUATION_REPORT_VERSION,
|
|
120
|
+
RETRIEVAL_EVALUATION_SCHEMA_VERSION,
|
|
121
|
+
buildRetrievalEvaluationReport,
|
|
122
|
+
pairedBootstrapConfidenceInterval,
|
|
123
|
+
parseRetrievalEvaluationCorpus,
|
|
124
|
+
runRetrievalEvaluation
|
|
125
|
+
} from "./index-b88v3vtm.js";
|
|
126
|
+
import {
|
|
127
|
+
auditAgentGuideRepository,
|
|
128
|
+
auditAgentGuideSource,
|
|
129
|
+
auditAgentGuides,
|
|
130
|
+
compareAgentGuideAudits,
|
|
131
|
+
defaultAgentGuideIgnoredDirectories,
|
|
132
|
+
discoverAgentGuides
|
|
133
|
+
} from "./index-hya40gb2.js";
|
|
134
|
+
import {
|
|
135
|
+
MAX_ATTACHMENT_PATH_BYTES,
|
|
136
|
+
MAX_ATTACHMENT_REFERENCES,
|
|
137
|
+
MAX_ATTACHMENT_SCAN_ENTRIES,
|
|
138
|
+
MAX_ATTACHMENT_SOURCE_BYTES,
|
|
139
|
+
parseLocalAttachmentReferences,
|
|
140
|
+
validateAttachmentReferences,
|
|
141
|
+
validateMarkdownAttachments
|
|
142
|
+
} from "./index-x3fthpsc.js";
|
|
143
|
+
import {
|
|
144
|
+
InvalidCanonicalNoteIdError,
|
|
145
|
+
NoteAlreadyExistsError,
|
|
146
|
+
NoteRecoveryRequiredError,
|
|
147
|
+
NoteRevisionConflictError,
|
|
148
|
+
addNoteRelation,
|
|
149
|
+
canonicalNoteId,
|
|
150
|
+
canonicalRelationTarget,
|
|
151
|
+
createConceptNote,
|
|
152
|
+
createNote,
|
|
153
|
+
listNoteRelations,
|
|
154
|
+
normalizeRelationPredicate,
|
|
155
|
+
noteRevision,
|
|
156
|
+
removeNoteRelation
|
|
157
|
+
} from "./index-6sw24nvv.js";
|
|
158
|
+
import"./index-3rm7cz6h.js";
|
|
159
|
+
import {
|
|
160
|
+
createRepresentativeRetrievalFixture,
|
|
161
|
+
createSyntheticRankFusionFixture,
|
|
162
|
+
evaluateRanking,
|
|
163
|
+
evaluateRetrievalBenchmark
|
|
164
|
+
} from "./index-3ehtt59c.js";
|
|
165
|
+
import {
|
|
166
|
+
MAX_SEARCH_QUERY_BYTES,
|
|
167
|
+
MAX_SEARCH_QUERY_TERMS,
|
|
168
|
+
buildGraphContext,
|
|
169
|
+
fuseRankedCandidates,
|
|
170
|
+
searchExactVault,
|
|
171
|
+
validateSearchQuery
|
|
172
|
+
} from "./index-why54q5p.js";
|
|
173
|
+
import {
|
|
174
|
+
MAX_QUERY_FILTERS,
|
|
175
|
+
MAX_QUERY_FILTER_VALUES,
|
|
176
|
+
MAX_QUERY_METADATA_PATH_SEGMENTS,
|
|
177
|
+
MAX_QUERY_METADATA_PATH_UTF8_BYTES,
|
|
178
|
+
MAX_QUERY_ONE_OF_VALUES,
|
|
179
|
+
MAX_QUERY_OPTIONS_UTF8_BYTES,
|
|
180
|
+
MAX_QUERY_TAGS,
|
|
181
|
+
MAX_QUERY_TEXT_UTF8_BYTES,
|
|
182
|
+
metadataAtPath,
|
|
183
|
+
queryVault,
|
|
184
|
+
validateQueryOptions
|
|
185
|
+
} from "./index-48pz4jpc.js";
|
|
186
|
+
import {
|
|
187
|
+
DEFAULT_REPOSITORY_MEMORY_DETAIL_LIMIT,
|
|
188
|
+
DEFAULT_REPOSITORY_MEMORY_GROUP_LIMIT,
|
|
189
|
+
MAX_REPOSITORY_MEMORY_DETAIL_LIMIT,
|
|
190
|
+
MAX_REPOSITORY_MEMORY_GROUP_LIMIT,
|
|
191
|
+
MAX_REPOSITORY_MEMORY_SUMMARY_UTF8_BYTES,
|
|
192
|
+
MAX_REPOSITORY_SCOPES,
|
|
193
|
+
MAX_REPOSITORY_SCOPES_UTF8_BYTES,
|
|
194
|
+
MAX_REPOSITORY_SCOPE_UTF8_BYTES,
|
|
195
|
+
RepositoryScopesError,
|
|
196
|
+
activePlanStatuses,
|
|
197
|
+
analyzeAuthoredRepositoryScopes,
|
|
198
|
+
auditRepositoryMemoryScopes,
|
|
199
|
+
buildRepositoryMemoryContext,
|
|
200
|
+
canonicalRepositoryPath,
|
|
201
|
+
classifyRepositoryMemoryRecord,
|
|
202
|
+
deepestRepositoryScopeMatch,
|
|
203
|
+
inspectRepositoryScopeState,
|
|
204
|
+
isActivePlanStatus,
|
|
205
|
+
isPlanStatus,
|
|
206
|
+
isTerminalPlanStatus,
|
|
207
|
+
metadataMatchesExactRepositoryScopes,
|
|
208
|
+
planStatuses,
|
|
209
|
+
repositoryMemoryGroupKeys,
|
|
210
|
+
repositoryScopeMatchesPath,
|
|
211
|
+
repositoryScopesMetadataKey,
|
|
212
|
+
terminalPlanStatuses,
|
|
213
|
+
validateRepositoryScopeSelection
|
|
214
|
+
} from "./index-06c9ctr6.js";
|
|
215
|
+
import {
|
|
216
|
+
MAX_NAVIGATION_INDEXED_CONNECTIONS,
|
|
217
|
+
MAX_NAVIGATION_RETURNED_CONNECTIONS,
|
|
218
|
+
NavigationBudgetError,
|
|
219
|
+
navigateLinks
|
|
220
|
+
} from "./index-d13v9ckt.js";
|
|
221
|
+
import {
|
|
222
|
+
AgentContextRepositoryPathError,
|
|
223
|
+
RepositoryScopeError,
|
|
224
|
+
agentContextDirectory,
|
|
225
|
+
agentContextGuidePath,
|
|
226
|
+
agentContextHashLength,
|
|
227
|
+
agentContextMarkerForScope,
|
|
228
|
+
agentContextNoteId,
|
|
229
|
+
agentContextNotePath,
|
|
230
|
+
agentContextSlugMaximumLength,
|
|
231
|
+
agentContextType,
|
|
232
|
+
analyzeAgentContexts,
|
|
233
|
+
formatAgentContextMarker,
|
|
234
|
+
inspectAgentContextRepository,
|
|
235
|
+
normalizeRepositoryScope,
|
|
236
|
+
parseAgentContextMarker
|
|
237
|
+
} from "./index-5vwpzb5a.js";
|
|
238
|
+
import {
|
|
239
|
+
MAX_ANALYZED_NOTES,
|
|
240
|
+
MAX_CONNECTION_OBSERVATIONS,
|
|
241
|
+
MAX_MENTIONS,
|
|
242
|
+
MAX_MENTION_PAIRS,
|
|
243
|
+
VaultAnalysisBudgetError,
|
|
244
|
+
analyzeVault,
|
|
245
|
+
catalogEnd,
|
|
246
|
+
catalogStart,
|
|
247
|
+
isCanonicalNoteId,
|
|
248
|
+
isCanonicalRelationPredicate,
|
|
249
|
+
lookupNote,
|
|
250
|
+
metadataValueFromUnknown,
|
|
251
|
+
normalizeVaultPath,
|
|
252
|
+
parseNote,
|
|
253
|
+
renderCatalog,
|
|
254
|
+
replaceCatalog,
|
|
255
|
+
searchableMarkdown,
|
|
256
|
+
wikiLinks
|
|
257
|
+
} from "./index-ekpwvbra.js";
|
|
258
|
+
import"./index-1xxnjn0d.js";
|
|
259
|
+
// src/oh-adoption.ts
|
|
260
|
+
import { createHash } from "crypto";
|
|
261
|
+
import { posix } from "path";
|
|
262
|
+
import { canonicalJson, canonicalSha256 } from "@hraness/oh";
|
|
263
|
+
import {
|
|
264
|
+
parseOhHeadV1,
|
|
265
|
+
parseOhStoreBindingV1,
|
|
266
|
+
verifyOhDependencyClosureAgainstV1
|
|
267
|
+
} from "@hraness/oh/store";
|
|
268
|
+
var CODE_PATTERN = /^[a-z][a-z0-9]*(?:[._:/-][a-z0-9]+)*$/u;
|
|
269
|
+
var RECORD_KEY_PATTERN = /^[a-z][a-z0-9]*(?:[._:/-][a-z0-9]+)*$/u;
|
|
270
|
+
var MAX_CAPSULE_BYTES = 16 * 1024 * 1024;
|
|
271
|
+
var MAX_RECORDS = 1024;
|
|
272
|
+
var MAX_ROOTS = 256;
|
|
273
|
+
var MAX_TEXT_BYTES = 4096;
|
|
274
|
+
var MAX_STRUCTURAL_NODES = 262144;
|
|
275
|
+
var MAX_STRUCTURAL_DEPTH = 128;
|
|
276
|
+
function isRecord(value) {
|
|
277
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
278
|
+
return false;
|
|
279
|
+
const prototype = Object.getPrototypeOf(value);
|
|
280
|
+
return prototype === Object.prototype || prototype === null;
|
|
281
|
+
}
|
|
282
|
+
function exactKeys(value, keys) {
|
|
283
|
+
const actual = Reflect.ownKeys(value);
|
|
284
|
+
return actual.length === keys.length && actual.every((key) => {
|
|
285
|
+
if (typeof key !== "string" || !keys.includes(key))
|
|
286
|
+
return false;
|
|
287
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
288
|
+
return descriptor !== undefined && descriptor.enumerable && "value" in descriptor;
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
function validUnicode(value) {
|
|
292
|
+
for (let index = 0;index < value.length; index += 1) {
|
|
293
|
+
const code = value.charCodeAt(index);
|
|
294
|
+
if (code >= 55296 && code <= 56319) {
|
|
295
|
+
const next = value.charCodeAt(index + 1);
|
|
296
|
+
if (next < 56320 || next > 57343)
|
|
297
|
+
return false;
|
|
298
|
+
index += 1;
|
|
299
|
+
} else if (code >= 56320 && code <= 57343)
|
|
300
|
+
return false;
|
|
301
|
+
}
|
|
302
|
+
return true;
|
|
303
|
+
}
|
|
304
|
+
function structurallyBounded(value) {
|
|
305
|
+
const pending = [[value, 0]];
|
|
306
|
+
const seen = new Set;
|
|
307
|
+
let nodes = 0;
|
|
308
|
+
let scalarBytes = 0;
|
|
309
|
+
while (pending.length > 0) {
|
|
310
|
+
const [candidate, depth] = pending.pop();
|
|
311
|
+
nodes += 1;
|
|
312
|
+
scalarBytes += 4;
|
|
313
|
+
if (nodes > MAX_STRUCTURAL_NODES || depth > MAX_STRUCTURAL_DEPTH || scalarBytes > MAX_CAPSULE_BYTES)
|
|
314
|
+
return false;
|
|
315
|
+
if (typeof candidate === "string") {
|
|
316
|
+
if (!validUnicode(candidate))
|
|
317
|
+
return false;
|
|
318
|
+
scalarBytes += Buffer.byteLength(candidate, "utf8");
|
|
319
|
+
if (scalarBytes > MAX_CAPSULE_BYTES)
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
322
|
+
if (typeof candidate !== "object" || candidate === null)
|
|
323
|
+
continue;
|
|
324
|
+
if (seen.has(candidate))
|
|
325
|
+
return false;
|
|
326
|
+
seen.add(candidate);
|
|
327
|
+
if (Array.isArray(candidate)) {
|
|
328
|
+
if (candidate.length > MAX_STRUCTURAL_NODES)
|
|
329
|
+
return false;
|
|
330
|
+
const keys = Reflect.ownKeys(candidate);
|
|
331
|
+
if (keys.some((key) => key !== "length" && (typeof key !== "string" || !/^(?:0|[1-9][0-9]*)$/u.test(key) || Number(key) >= candidate.length)))
|
|
332
|
+
return false;
|
|
333
|
+
for (let index = 0;index < candidate.length; index += 1) {
|
|
334
|
+
const descriptor = Object.getOwnPropertyDescriptor(candidate, String(index));
|
|
335
|
+
if (descriptor === undefined || !descriptor.enumerable || !("value" in descriptor))
|
|
336
|
+
return false;
|
|
337
|
+
pending.push([descriptor.value, depth + 1]);
|
|
338
|
+
}
|
|
339
|
+
} else if (isRecord(candidate)) {
|
|
340
|
+
const keys = Reflect.ownKeys(candidate);
|
|
341
|
+
if (keys.length > MAX_STRUCTURAL_NODES || keys.some((key) => typeof key !== "string"))
|
|
342
|
+
return false;
|
|
343
|
+
for (const key of keys) {
|
|
344
|
+
const descriptor = Object.getOwnPropertyDescriptor(candidate, key);
|
|
345
|
+
if (descriptor === undefined || !descriptor.enumerable || !("value" in descriptor) || !validUnicode(key))
|
|
346
|
+
return false;
|
|
347
|
+
scalarBytes += Buffer.byteLength(key, "utf8");
|
|
348
|
+
if (scalarBytes > MAX_CAPSULE_BYTES)
|
|
349
|
+
return false;
|
|
350
|
+
pending.push([descriptor.value, depth + 1]);
|
|
351
|
+
}
|
|
352
|
+
} else
|
|
353
|
+
return false;
|
|
354
|
+
}
|
|
355
|
+
return true;
|
|
356
|
+
}
|
|
357
|
+
function immutableClone(value) {
|
|
358
|
+
if (Array.isArray(value)) {
|
|
359
|
+
return Object.freeze(value.map((item) => immutableClone(item)));
|
|
360
|
+
}
|
|
361
|
+
if (isRecord(value)) {
|
|
362
|
+
const clone = {};
|
|
363
|
+
for (const key of Object.keys(value))
|
|
364
|
+
clone[key] = immutableClone(value[key]);
|
|
365
|
+
return Object.freeze(clone);
|
|
366
|
+
}
|
|
367
|
+
return value;
|
|
368
|
+
}
|
|
369
|
+
function code(value, maximum = 256) {
|
|
370
|
+
return typeof value === "string" && value.length <= maximum && CODE_PATTERN.test(value) ? value : null;
|
|
371
|
+
}
|
|
372
|
+
function recordKey(value) {
|
|
373
|
+
return typeof value === "string" && value.length <= 512 && RECORD_KEY_PATTERN.test(value) ? value : null;
|
|
374
|
+
}
|
|
375
|
+
function orderedUnique(values) {
|
|
376
|
+
return values.every((value, index) => index === 0 || values[index - 1] < value);
|
|
377
|
+
}
|
|
378
|
+
function unsafeReviewCodePoint(codePoint) {
|
|
379
|
+
return codePoint <= 31 || codePoint >= 127 && codePoint <= 159 || codePoint === 1564 || codePoint === 8206 || codePoint === 8207 || codePoint >= 8232 && codePoint <= 8238 || codePoint >= 8294 && codePoint <= 8297 || codePoint === 65279;
|
|
380
|
+
}
|
|
381
|
+
function singleLine(value) {
|
|
382
|
+
if (typeof value !== "string" || value.length < 1 || value.normalize("NFC") !== value || !validUnicode(value) || [...value].some((character) => unsafeReviewCodePoint(character.codePointAt(0) ?? 0)) || Buffer.byteLength(value, "utf8") > MAX_TEXT_BYTES)
|
|
383
|
+
return null;
|
|
384
|
+
return value;
|
|
385
|
+
}
|
|
386
|
+
function parseExpectedSource(value) {
|
|
387
|
+
if (!isRecord(value) || !exactKeys(value, ["authorityId", "binding", "head", "v"]) || value.v !== 1)
|
|
388
|
+
return null;
|
|
389
|
+
const authorityId = code(value.authorityId);
|
|
390
|
+
const binding = parseOhStoreBindingV1(value.binding);
|
|
391
|
+
const head = parseOhHeadV1(value.head);
|
|
392
|
+
return authorityId !== null && binding !== null && binding.profile.profileKind === "working" && head !== null ? immutableClone({ authorityId, binding, head, v: 1 }) : null;
|
|
393
|
+
}
|
|
394
|
+
function parseDestination(value) {
|
|
395
|
+
if (!isRecord(value) || !exactKeys(value, ["purpose", "targetPath", "v"]) || value.v !== 1)
|
|
396
|
+
return null;
|
|
397
|
+
const purpose = code(value.purpose);
|
|
398
|
+
if (purpose === null || typeof value.targetPath !== "string" || value.targetPath.length > 512 || value.targetPath.includes("\\") || value.targetPath.startsWith("/") || posix.normalize(value.targetPath) !== value.targetPath || !/^notes\/[a-z0-9][a-z0-9._/-]*\.md$/u.test(value.targetPath) || value.targetPath.split("/").some((segment) => segment === "." || segment === ".." || segment.startsWith("."))) {
|
|
399
|
+
return null;
|
|
400
|
+
}
|
|
401
|
+
return { purpose, targetPath: value.targetPath, v: 1 };
|
|
402
|
+
}
|
|
403
|
+
function parseRights(value, purpose) {
|
|
404
|
+
if (!isRecord(value) || !exactKeys(value, ["decisionId", "disposition", "purpose", "v"]) || value.v !== 1 || value.disposition !== "cleared-for-purpose" || value.purpose !== purpose)
|
|
405
|
+
return null;
|
|
406
|
+
const decisionId = code(value.decisionId);
|
|
407
|
+
return decisionId === null ? null : { decisionId, disposition: "cleared-for-purpose", purpose, v: 1 };
|
|
408
|
+
}
|
|
409
|
+
function parseReview(value) {
|
|
410
|
+
if (!isRecord(value) || !exactKeys(value, ["route", "status", "v"]) || value.v !== 1 || value.status !== "required")
|
|
411
|
+
return null;
|
|
412
|
+
const route = code(value.route);
|
|
413
|
+
return route === null ? null : { route, status: "required", v: 1 };
|
|
414
|
+
}
|
|
415
|
+
function parseConflicts(value) {
|
|
416
|
+
if (!isRecord(value) || !exactKeys(value, ["notes", "status", "v"]) || value.v !== 1 || value.status !== "none-observed" && value.status !== "requires-resolution" || !Array.isArray(value.notes) || value.notes.length < 1 || value.notes.length > 64)
|
|
417
|
+
return null;
|
|
418
|
+
const notes = value.notes.map(singleLine);
|
|
419
|
+
if (notes.some((note) => note === null))
|
|
420
|
+
return null;
|
|
421
|
+
const sorted = [...notes].sort();
|
|
422
|
+
return orderedUnique(sorted) ? { notes: sorted, status: value.status, v: 1 } : null;
|
|
423
|
+
}
|
|
424
|
+
function parseHostPolicy(value) {
|
|
425
|
+
if (!structurallyBounded(value) || !isRecord(value) || !exactKeys(value, ["conflicts", "destination", "expectedSource", "review", "rights", "v"]) || value.v !== 1)
|
|
426
|
+
return null;
|
|
427
|
+
const destination = parseDestination(value.destination);
|
|
428
|
+
const expectedSource = parseExpectedSource(value.expectedSource);
|
|
429
|
+
const conflicts = parseConflicts(value.conflicts);
|
|
430
|
+
const review = parseReview(value.review);
|
|
431
|
+
const rights = destination === null ? null : parseRights(value.rights, destination.purpose);
|
|
432
|
+
return destination !== null && expectedSource !== null && conflicts !== null && review !== null && rights !== null ? immutableClone({ conflicts, destination, expectedSource, review, rights, v: 1 }) : null;
|
|
433
|
+
}
|
|
434
|
+
function verifyCapsule(value, expectedSource) {
|
|
435
|
+
try {
|
|
436
|
+
if (!structurallyBounded(value) || !isRecord(value) || !exactKeys(value, ["binding", "closureSha256", "head", "records", "roots", "v"]) || value.v !== 1 || !Array.isArray(value.records) || !Array.isArray(value.roots) || value.records.length < 1 || value.records.length > MAX_RECORDS || value.roots.length < 1 || value.roots.length > MAX_ROOTS || Buffer.byteLength(canonicalJson(value), "utf8") > MAX_CAPSULE_BYTES)
|
|
437
|
+
return null;
|
|
438
|
+
const verified = verifyOhDependencyClosureAgainstV1(value, {
|
|
439
|
+
binding: expectedSource.binding,
|
|
440
|
+
head: expectedSource.head
|
|
441
|
+
});
|
|
442
|
+
return verified.ok && verified.closure.binding.profile.profileKind === "working" ? verified.closure : null;
|
|
443
|
+
} catch {
|
|
444
|
+
return null;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
function parseDisclosures(value, keys) {
|
|
448
|
+
if (!Array.isArray(value) || value.length > 256)
|
|
449
|
+
return null;
|
|
450
|
+
const parsed = [];
|
|
451
|
+
for (const item of value) {
|
|
452
|
+
if (!isRecord(item) || !exactKeys(item, ["id", "recordKey", "summary", "v"]) || item.v !== 1)
|
|
453
|
+
return null;
|
|
454
|
+
const id = code(item.id);
|
|
455
|
+
const key = recordKey(item.recordKey);
|
|
456
|
+
const summary = singleLine(item.summary);
|
|
457
|
+
if (id === null || key === null || summary === null || !keys.has(key))
|
|
458
|
+
return null;
|
|
459
|
+
parsed.push({ id, recordKey: key, summary, v: 1 });
|
|
460
|
+
}
|
|
461
|
+
parsed.sort((left, right) => left.id < right.id ? -1 : left.id > right.id ? 1 : 0);
|
|
462
|
+
return orderedUnique(parsed.map((item) => item.id)) ? parsed : null;
|
|
463
|
+
}
|
|
464
|
+
function markdownEscape(value) {
|
|
465
|
+
return value.replace(/[\\`*_{}\[\]<>()#+.!|>-]/gu, "\\$&");
|
|
466
|
+
}
|
|
467
|
+
function renderMarkdown(manifest, candidateSha256) {
|
|
468
|
+
const lines = [
|
|
469
|
+
"# Oh adoption candidate",
|
|
470
|
+
"",
|
|
471
|
+
`- Status: \`${manifest.status}\``,
|
|
472
|
+
`- Candidate: \`sha256:${candidateSha256}\``,
|
|
473
|
+
`- Destination: \`${manifest.destination.targetPath}\``,
|
|
474
|
+
`- Purpose: \`${manifest.destination.purpose}\``,
|
|
475
|
+
`- Source authority: \`${manifest.source.authorityId}\``,
|
|
476
|
+
`- Source binding: \`${manifest.source.binding.bindingSha256}\``,
|
|
477
|
+
`- Source head sequence: \`${manifest.source.head.sequence}\``,
|
|
478
|
+
`- Source head operation: \`${manifest.source.head.operationSha256 ?? "empty"}\``,
|
|
479
|
+
`- Source graph revision: \`${manifest.source.head.graphRevisionSha256 ?? "empty"}\``,
|
|
480
|
+
`- Source records digest: \`${manifest.source.head.recordsSha256}\``,
|
|
481
|
+
`- Closure: \`${manifest.source.closureSha256}\``,
|
|
482
|
+
"",
|
|
483
|
+
"This is a review candidate, not reviewed knowledge. It does not mutate a vault or adopt the source operation chain, database, projection, or derived tuples.",
|
|
484
|
+
"",
|
|
485
|
+
"## Required decisions",
|
|
486
|
+
"",
|
|
487
|
+
`- Rights: \`${manifest.rights.disposition}\` via \`${manifest.rights.decisionId}\` for \`${manifest.rights.purpose}\``,
|
|
488
|
+
`- Review: \`${manifest.review.status}\` via \`${manifest.review.route}\``,
|
|
489
|
+
`- Conflicts: \`${manifest.conflicts.status}\``,
|
|
490
|
+
...manifest.conflicts.notes.map((note) => ` - ${markdownEscape(note)}`),
|
|
491
|
+
"",
|
|
492
|
+
"## Selected roots",
|
|
493
|
+
"",
|
|
494
|
+
...manifest.source.roots.map((root) => `- \`${root}\``),
|
|
495
|
+
"",
|
|
496
|
+
"## Exact source records",
|
|
497
|
+
""
|
|
498
|
+
];
|
|
499
|
+
for (const record of manifest.source.records) {
|
|
500
|
+
lines.push(`### \`${record.key}\``, "", `- Kind: \`${record.kind}\``, `- Digest: \`${record.recordSha256}\``, `- Dependencies: ${record.dependencies.length === 0 ? "none" : record.dependencies.map((key) => `\`${key}\``).join(", ")}`, "");
|
|
501
|
+
}
|
|
502
|
+
lines.push("## Transformations", "", ...manifest.transformations.length === 0 ? ["- None declared."] : manifest.transformations.map((item) => `- \`${item.id}\` on \`${item.recordKey}\`: ${markdownEscape(item.summary)}`), "", "## Redactions", "", ...manifest.redactions.length === 0 ? ["- None declared."] : manifest.redactions.map((item) => `- \`${item.id}\` on \`${item.recordKey}\`: ${markdownEscape(item.summary)}`), "");
|
|
503
|
+
return `${lines.join(`
|
|
504
|
+
`)}
|
|
505
|
+
`;
|
|
506
|
+
}
|
|
507
|
+
function prepareWithPolicy(value, policy) {
|
|
508
|
+
if (!structurallyBounded(value) || !isRecord(value) || !exactKeys(value, ["capsule", "redactions", "transformations", "v"]) || value.v !== 1) {
|
|
509
|
+
throw new TypeError("Invalid Oh adoption preparation input.");
|
|
510
|
+
}
|
|
511
|
+
const capsule = verifyCapsule(value.capsule, policy.expectedSource);
|
|
512
|
+
if (capsule === null)
|
|
513
|
+
throw new TypeError("The source capsule is invalid for the bound authority and head.");
|
|
514
|
+
const recordKeys = new Set(capsule.records.map((record) => record.key));
|
|
515
|
+
const transformations = parseDisclosures(value.transformations, recordKeys);
|
|
516
|
+
const redactions = parseDisclosures(value.redactions, recordKeys);
|
|
517
|
+
const roots = new Set(capsule.roots);
|
|
518
|
+
if (transformations === null || redactions === null || capsule.records.filter((record) => roots.has(record.key)).every((record) => record.kind === "view")) {
|
|
519
|
+
throw new TypeError("Adoption requires valid disclosures and an authoritative root.");
|
|
520
|
+
}
|
|
521
|
+
const source = {
|
|
522
|
+
authorityId: policy.expectedSource.authorityId,
|
|
523
|
+
binding: { bindingSha256: capsule.binding.bindingSha256, v: 1 },
|
|
524
|
+
closureSha256: capsule.closureSha256,
|
|
525
|
+
head: capsule.head,
|
|
526
|
+
records: capsule.records.map((record) => ({
|
|
527
|
+
dependencies: record.dependencies,
|
|
528
|
+
key: record.key,
|
|
529
|
+
kind: record.kind,
|
|
530
|
+
recordSha256: record.recordSha256,
|
|
531
|
+
v: 1
|
|
532
|
+
})),
|
|
533
|
+
roots: capsule.roots,
|
|
534
|
+
v: 1
|
|
535
|
+
};
|
|
536
|
+
const manifest = {
|
|
537
|
+
conflicts: policy.conflicts,
|
|
538
|
+
destination: policy.destination,
|
|
539
|
+
format: "hraness.kb.oh-adoption-candidate.v1",
|
|
540
|
+
redactions,
|
|
541
|
+
review: policy.review,
|
|
542
|
+
rights: policy.rights,
|
|
543
|
+
source,
|
|
544
|
+
status: "prepared",
|
|
545
|
+
transformations,
|
|
546
|
+
v: 1
|
|
547
|
+
};
|
|
548
|
+
const candidateSha256 = canonicalSha256(manifest);
|
|
549
|
+
const markdown = renderMarkdown(manifest, candidateSha256);
|
|
550
|
+
if (Buffer.byteLength(markdown, "utf8") > MAX_CAPSULE_BYTES) {
|
|
551
|
+
throw new RangeError("The adoption candidate exceeds its Markdown byte limit.");
|
|
552
|
+
}
|
|
553
|
+
return immutableClone({
|
|
554
|
+
artifactSha256: createHash("sha256").update(markdown).digest("hex"),
|
|
555
|
+
candidateSha256,
|
|
556
|
+
manifest,
|
|
557
|
+
markdown,
|
|
558
|
+
v: 1
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
function createOhAdoptionPreparerV1(value) {
|
|
562
|
+
const policy = parseHostPolicy(value);
|
|
563
|
+
if (policy === null)
|
|
564
|
+
throw new TypeError("Invalid Oh adoption host policy.");
|
|
565
|
+
return Object.freeze({ prepare: (input) => prepareWithPolicy(input, policy) });
|
|
566
|
+
}
|
|
567
|
+
export {
|
|
568
|
+
workflowFromUnknown,
|
|
569
|
+
wikiLinks,
|
|
570
|
+
verifyFrozenEvaluationSnapshot,
|
|
571
|
+
validateSearchQuery,
|
|
572
|
+
validateSearchGitHistoryOptions,
|
|
573
|
+
validateRepositoryScopeSelection,
|
|
574
|
+
validateQueryOptions,
|
|
575
|
+
validateMarkdownAttachments,
|
|
576
|
+
validateKnowledgeBaseSearchHistory,
|
|
577
|
+
validateGitHistoryForNotesRequest,
|
|
578
|
+
validateGitHistoryForNotesOptions,
|
|
579
|
+
validateAttachmentReferences,
|
|
580
|
+
terminalPlanStatuses,
|
|
581
|
+
sourceInbox,
|
|
582
|
+
sha256EmbeddingModelFile,
|
|
583
|
+
semanticDatabasePath,
|
|
584
|
+
searchableMarkdown,
|
|
585
|
+
searchSemanticVault,
|
|
586
|
+
searchGitHistory,
|
|
587
|
+
searchExactVault,
|
|
588
|
+
scanVault,
|
|
589
|
+
runWorkflow,
|
|
590
|
+
runRetrievalEvaluation,
|
|
591
|
+
runGitCommand,
|
|
592
|
+
repositoryScopesMetadataKey,
|
|
593
|
+
repositoryScopeMatchesPath,
|
|
594
|
+
repositoryMemoryGroupKeys,
|
|
595
|
+
replaceCatalog,
|
|
596
|
+
renderCatalog,
|
|
597
|
+
removeNoteRelation,
|
|
598
|
+
refreshVault,
|
|
599
|
+
recommendedEmbeddingModelSha256,
|
|
600
|
+
recommendedEmbeddingModel,
|
|
601
|
+
readVaultNotes,
|
|
602
|
+
queryVault,
|
|
603
|
+
qmdIndexerVersion,
|
|
604
|
+
planStatuses,
|
|
605
|
+
percolateVault,
|
|
606
|
+
parseRetrievalEvaluationCorpus,
|
|
607
|
+
parsePercolationResultV2,
|
|
608
|
+
parsePercolationResultV1,
|
|
609
|
+
parsePercolationResult,
|
|
610
|
+
parsePercolationCliOutputV2,
|
|
611
|
+
parsePercolationCliOutputV1,
|
|
612
|
+
parsePercolationCliOutput,
|
|
613
|
+
parseNote,
|
|
614
|
+
parseLocalAttachmentReferences,
|
|
615
|
+
parseGitHistoryOutput,
|
|
616
|
+
parseAgentContextMarker,
|
|
617
|
+
pairedBootstrapConfidenceInterval,
|
|
618
|
+
packUntrustedSearchContext,
|
|
619
|
+
packSearchContext,
|
|
620
|
+
openSemanticWarmSearchSession,
|
|
621
|
+
openSemanticSearchSession,
|
|
622
|
+
openKnowledgeBaseEvaluation,
|
|
623
|
+
openKnowledgeBase,
|
|
624
|
+
noteRevision,
|
|
625
|
+
normalizeVaultPath,
|
|
626
|
+
normalizeRepositoryScope,
|
|
627
|
+
normalizeRelationPredicate,
|
|
628
|
+
navigateLinks,
|
|
629
|
+
metadataValueFromUnknown,
|
|
630
|
+
metadataMatchesExactRepositoryScopes,
|
|
631
|
+
metadataAtPath,
|
|
632
|
+
markdownFiles,
|
|
633
|
+
lookupNote,
|
|
634
|
+
listNoteRelations,
|
|
635
|
+
knowledgeBaseEvaluationRetrieverIds,
|
|
636
|
+
isTerminalPlanStatus,
|
|
637
|
+
isPlanStatus,
|
|
638
|
+
isCanonicalRelationPredicate,
|
|
639
|
+
isCanonicalNoteId,
|
|
640
|
+
isActivePlanStatus,
|
|
641
|
+
inspectRepositoryScopeState,
|
|
642
|
+
inspectAgentContextRepository,
|
|
643
|
+
initVault,
|
|
644
|
+
indexSemanticVault,
|
|
645
|
+
indexGitHistory,
|
|
646
|
+
gitHistoryForNotes,
|
|
647
|
+
fuseRankedCandidates,
|
|
648
|
+
formatAgentContextMarker,
|
|
649
|
+
evaluateRetrievalBenchmark,
|
|
650
|
+
evaluateRanking,
|
|
651
|
+
discoverAgentGuides,
|
|
652
|
+
defineWorkflow,
|
|
653
|
+
defaultIgnoredDirectories,
|
|
654
|
+
defaultAgentGuideIgnoredDirectories,
|
|
655
|
+
deepestRepositoryScopeMatch,
|
|
656
|
+
createVerifiedEmbeddingModelLease,
|
|
657
|
+
createSyntheticRankFusionFixture,
|
|
658
|
+
createRepresentativeRetrievalFixture,
|
|
659
|
+
createOhAdoptionPreparerV1,
|
|
660
|
+
createNote,
|
|
661
|
+
createConceptNote,
|
|
662
|
+
compareAgentGuideAudits,
|
|
663
|
+
classifyRepositoryMemoryRecord,
|
|
664
|
+
checkpointSemanticWarmCache,
|
|
665
|
+
catalogStart,
|
|
666
|
+
catalogEnd,
|
|
667
|
+
canonicalRepositoryPath,
|
|
668
|
+
canonicalRelationTarget,
|
|
669
|
+
canonicalNoteId,
|
|
670
|
+
buildRetrievalEvaluationReport,
|
|
671
|
+
buildRepositoryMemoryContext,
|
|
672
|
+
buildGraphContext,
|
|
673
|
+
auditRepositoryMemoryScopes,
|
|
674
|
+
auditAgentGuides,
|
|
675
|
+
auditAgentGuideSource,
|
|
676
|
+
auditAgentGuideRepository,
|
|
677
|
+
attestSemanticWarmCache,
|
|
678
|
+
analyzeVault,
|
|
679
|
+
analyzeAuthoredRepositoryScopes,
|
|
680
|
+
analyzeAgentContexts,
|
|
681
|
+
agentContextType,
|
|
682
|
+
agentContextSlugMaximumLength,
|
|
683
|
+
agentContextNotePath,
|
|
684
|
+
agentContextNoteId,
|
|
685
|
+
agentContextMarkerForScope,
|
|
686
|
+
agentContextHashLength,
|
|
687
|
+
agentContextGuidePath,
|
|
688
|
+
agentContextDirectory,
|
|
689
|
+
addNoteRelation,
|
|
690
|
+
activePlanStatuses,
|
|
691
|
+
WorkflowRunError,
|
|
692
|
+
VaultScanBudgetError,
|
|
693
|
+
VaultAnalysisBudgetError,
|
|
694
|
+
RepositoryScopesError,
|
|
695
|
+
RepositoryScopeError,
|
|
696
|
+
RETRIEVAL_EVALUATION_SCHEMA_VERSION,
|
|
697
|
+
RETRIEVAL_EVALUATION_REPORT_VERSION,
|
|
698
|
+
PERCOLATION_RESULT_SCHEMA_VERSION,
|
|
699
|
+
NoteRevisionConflictError,
|
|
700
|
+
NoteRecoveryRequiredError,
|
|
701
|
+
NoteAlreadyExistsError,
|
|
702
|
+
NavigationBudgetError,
|
|
703
|
+
MIN_UNTRUSTED_CONTEXT_BYTES,
|
|
704
|
+
MAX_WORKFLOW_OUTPUT_BYTES,
|
|
705
|
+
MAX_WORKFLOW_NODES,
|
|
706
|
+
MAX_WORKFLOW_CONCURRENCY,
|
|
707
|
+
MAX_VAULT_UTF8_BYTES,
|
|
708
|
+
MAX_SOURCE_INBOX_RESULTS,
|
|
709
|
+
MAX_SOURCE_INBOX_PREFIXES,
|
|
710
|
+
MAX_SOURCE_INBOX_NOTES,
|
|
711
|
+
MAX_SOURCE_INBOX_CONNECTIONS,
|
|
712
|
+
MAX_SOURCE_DISPOSITION_EVIDENCE,
|
|
713
|
+
MAX_SEMANTIC_DATABASE_IDENTITY_BYTES,
|
|
714
|
+
MAX_SEARCH_RESULTS,
|
|
715
|
+
MAX_SEARCH_RELATED_SEEDS,
|
|
716
|
+
MAX_SEARCH_QUERY_TERMS,
|
|
717
|
+
MAX_SEARCH_QUERY_BYTES,
|
|
718
|
+
MAX_SEARCH_NOTE_REFERENCE_BYTES,
|
|
719
|
+
MAX_SEARCH_CANDIDATES,
|
|
720
|
+
MAX_SCOPED_PERCOLATION_MENTION_PAIRS,
|
|
721
|
+
MAX_SCANNED_NOTES,
|
|
722
|
+
MAX_REPOSITORY_SCOPE_UTF8_BYTES,
|
|
723
|
+
MAX_REPOSITORY_SCOPES_UTF8_BYTES,
|
|
724
|
+
MAX_REPOSITORY_SCOPES,
|
|
725
|
+
MAX_REPOSITORY_MEMORY_SUMMARY_UTF8_BYTES,
|
|
726
|
+
MAX_REPOSITORY_MEMORY_GROUP_LIMIT,
|
|
727
|
+
MAX_REPOSITORY_MEMORY_DETAIL_LIMIT,
|
|
728
|
+
MAX_QUERY_TEXT_UTF8_BYTES,
|
|
729
|
+
MAX_QUERY_TAGS,
|
|
730
|
+
MAX_QUERY_OPTIONS_UTF8_BYTES,
|
|
731
|
+
MAX_QUERY_ONE_OF_VALUES,
|
|
732
|
+
MAX_QUERY_METADATA_PATH_UTF8_BYTES,
|
|
733
|
+
MAX_QUERY_METADATA_PATH_SEGMENTS,
|
|
734
|
+
MAX_QUERY_FILTER_VALUES,
|
|
735
|
+
MAX_QUERY_FILTERS,
|
|
736
|
+
MAX_PERCOLATION_TEXT_UTF8_BYTES,
|
|
737
|
+
MAX_PERCOLATION_RESULT_UTF8_BYTES,
|
|
738
|
+
MAX_PERCOLATION_RESULT_NODES,
|
|
739
|
+
MAX_PERCOLATION_NOTES,
|
|
740
|
+
MAX_PERCOLATION_MENTION_PAIRS,
|
|
741
|
+
MAX_PERCOLATION_MENTIONS,
|
|
742
|
+
MAX_PERCOLATION_LIMIT,
|
|
743
|
+
MAX_PERCOLATION_EVIDENCE_PER_CANDIDATE,
|
|
744
|
+
MAX_NOTE_UTF8_BYTES,
|
|
745
|
+
MAX_NAVIGATION_RETURNED_CONNECTIONS,
|
|
746
|
+
MAX_NAVIGATION_INDEXED_CONNECTIONS,
|
|
747
|
+
MAX_MENTION_PAIRS,
|
|
748
|
+
MAX_MENTIONS,
|
|
749
|
+
MAX_GIT_WORKFLOW_CONCURRENCY,
|
|
750
|
+
MAX_GIT_PATH_OBSERVATIONS,
|
|
751
|
+
MAX_GIT_PATHS_PER_COMMIT,
|
|
752
|
+
MAX_GIT_NOTE_ID_UTF8_BYTES,
|
|
753
|
+
MAX_GIT_NOTE_IDS_UTF8_BYTES,
|
|
754
|
+
MAX_GIT_HISTORY_TIMEOUT_MS,
|
|
755
|
+
MAX_GIT_HISTORY_OUTPUT_BYTES,
|
|
756
|
+
MAX_GIT_HISTORY_NOTES,
|
|
757
|
+
MAX_GIT_HISTORY_COMMITS,
|
|
758
|
+
MAX_EVALUATION_TIMEOUT_MS,
|
|
759
|
+
MAX_EVALUATION_TEXT_BYTES,
|
|
760
|
+
MAX_EVALUATION_RETRIEVERS,
|
|
761
|
+
MAX_EVALUATION_RESULTS_PER_QUERY,
|
|
762
|
+
MAX_EVALUATION_QUERIES,
|
|
763
|
+
MAX_EVALUATION_QRELS_PER_QUERY,
|
|
764
|
+
MAX_EVALUATION_EVIDENCE_BYTES,
|
|
765
|
+
MAX_EVALUATION_DIAGNOSTICS,
|
|
766
|
+
MAX_EMBEDDING_MODEL_BYTES,
|
|
767
|
+
MAX_CONNECTION_OBSERVATIONS,
|
|
768
|
+
MAX_BOOTSTRAP_RESAMPLES,
|
|
769
|
+
MAX_ATTACHMENT_SOURCE_BYTES,
|
|
770
|
+
MAX_ATTACHMENT_SCAN_ENTRIES,
|
|
771
|
+
MAX_ATTACHMENT_REFERENCES,
|
|
772
|
+
MAX_ATTACHMENT_PATH_BYTES,
|
|
773
|
+
MAX_ANALYZED_NOTES,
|
|
774
|
+
InvalidCanonicalNoteIdError,
|
|
775
|
+
GitHistoryError,
|
|
776
|
+
FrozenEvaluationSnapshotError,
|
|
777
|
+
DEFAULT_WORKFLOW_OUTPUT_BYTES,
|
|
778
|
+
DEFAULT_SEARCH_RESULTS,
|
|
779
|
+
DEFAULT_REPOSITORY_MEMORY_GROUP_LIMIT,
|
|
780
|
+
DEFAULT_REPOSITORY_MEMORY_DETAIL_LIMIT,
|
|
781
|
+
DEFAULT_PERCOLATION_MIN_SUPPORT,
|
|
782
|
+
DEFAULT_PERCOLATION_LIMIT,
|
|
783
|
+
AgentContextRepositoryPathError
|
|
784
|
+
};
|