@lucern/sdk 0.2.0-alpha.1 → 0.2.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +691 -61
- package/dist/adminClient.d.ts +409 -0
- package/dist/adminClient.js +755 -0
- package/dist/adminClient.js.map +1 -0
- package/dist/answersClient.d.ts +23 -0
- package/dist/answersClient.js +333 -0
- package/dist/answersClient.js.map +1 -0
- package/dist/audience/index.d.ts +38 -0
- package/dist/audience/index.js +110 -0
- package/dist/audience/index.js.map +1 -0
- package/dist/{packages/sdk/src/audiencesClient.d.ts → audiencesClient.d.ts} +30 -18
- package/dist/audiencesClient.js +472 -0
- package/dist/audiencesClient.js.map +1 -0
- package/dist/auditClient.d.ts +29 -0
- package/dist/auditClient.js +386 -0
- package/dist/auditClient.js.map +1 -0
- package/dist/beliefs/index.d.ts +465 -0
- package/dist/beliefs/index.js +6433 -0
- package/dist/beliefs/index.js.map +1 -0
- package/dist/beliefs/lifecycle.d.ts +24 -0
- package/dist/beliefs/lifecycle.js +98 -0
- package/dist/beliefs/lifecycle.js.map +1 -0
- package/dist/beliefsClient.d.ts +241 -0
- package/dist/beliefsClient.js +646 -0
- package/dist/beliefsClient.js.map +1 -0
- package/dist/client.d.ts +2398 -0
- package/dist/client.js +6411 -0
- package/dist/client.js.map +1 -0
- package/dist/contextClient.d.ts +27 -0
- package/dist/contextClient.js +396 -0
- package/dist/contextClient.js.map +1 -0
- package/dist/contextFacade.d.ts +2 -0
- package/dist/contextFacade.js +73 -0
- package/dist/contextFacade.js.map +1 -0
- package/dist/{lucern/packages/domain-context/src/context-pack-compiler.d.ts → contextPackCompiler.d.ts} +11 -10
- package/dist/contextPackCompiler.js +1091 -0
- package/dist/contextPackCompiler.js.map +1 -0
- package/dist/contextPackPolicy.d.ts +84 -0
- package/dist/contextPackPolicy.js +347 -0
- package/dist/contextPackPolicy.js.map +1 -0
- package/dist/contextPackSchema.d.ts +7 -0
- package/dist/contextPackSchema.js +203 -0
- package/dist/contextPackSchema.js.map +1 -0
- package/dist/contextTypes.d.ts +135 -0
- package/dist/contextTypes.js +3 -0
- package/dist/contextTypes.js.map +1 -0
- package/dist/contracts/api-enums.contract.d.ts +81 -0
- package/dist/contracts/api-enums.contract.js +98 -0
- package/dist/contracts/api-enums.contract.js.map +1 -0
- package/dist/{lucern/contracts/src → contracts}/auth-session.contract.d.ts +14 -12
- package/dist/contracts/auth-session.contract.js +48 -0
- package/dist/contracts/auth-session.contract.js.map +1 -0
- package/dist/{lucern/contracts/src → contracts}/context-pack.contract.d.ts +56 -58
- package/dist/contracts/context-pack.contract.js +98 -0
- package/dist/contracts/context-pack.contract.js.map +1 -0
- package/dist/contracts/contextPack.d.ts +1 -0
- package/dist/contracts/contextPack.js +98 -0
- package/dist/contracts/contextPack.js.map +1 -0
- package/dist/contracts/index.d.ts +9 -0
- package/dist/contracts/index.js +4928 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/{lucern/contracts/src → contracts}/lens-filter.contract.d.ts +10 -8
- package/dist/contracts/lens-filter.contract.js +71 -0
- package/dist/contracts/lens-filter.contract.js.map +1 -0
- package/dist/contracts/lens-workflow.contract.d.ts +87 -0
- package/dist/contracts/lens-workflow.contract.js +123 -0
- package/dist/contracts/lens-workflow.contract.js.map +1 -0
- package/dist/contracts/lensFilter.d.ts +1 -0
- package/dist/contracts/lensFilter.js +71 -0
- package/dist/contracts/lensFilter.js.map +1 -0
- package/dist/contracts/lensWorkflow.d.ts +2 -0
- package/dist/contracts/lensWorkflow.js +123 -0
- package/dist/contracts/lensWorkflow.js.map +1 -0
- package/dist/contracts/mcp-tools.contract.d.ts +1 -0
- package/dist/contracts/mcp-tools.contract.js +3016 -0
- package/dist/contracts/mcp-tools.contract.js.map +1 -0
- package/dist/contracts/mcpTools.d.ts +1 -0
- package/dist/contracts/mcpTools.js +3016 -0
- package/dist/contracts/mcpTools.js.map +1 -0
- package/dist/contracts/prompt.contract.d.ts +26 -0
- package/dist/contracts/prompt.contract.js +12 -0
- package/dist/contracts/prompt.contract.js.map +1 -0
- package/dist/contracts/prompt.d.ts +1 -0
- package/dist/contracts/prompt.js +12 -0
- package/dist/contracts/prompt.js.map +1 -0
- package/dist/contracts/sdk-tools.contract.d.ts +2 -0
- package/dist/contracts/sdk-tools.contract.js +4164 -0
- package/dist/contracts/sdk-tools.contract.js.map +1 -0
- package/dist/contracts/sdkTools.d.ts +2 -0
- package/dist/contracts/sdkTools.js +4164 -0
- package/dist/contracts/sdkTools.js.map +1 -0
- package/dist/contracts/workflow-runtime.contract.d.ts +163 -0
- package/dist/contracts/workflow-runtime.contract.js +245 -0
- package/dist/contracts/workflow-runtime.contract.js.map +1 -0
- package/dist/contracts/workflowRuntime.d.ts +1 -0
- package/dist/contracts/workflowRuntime.js +245 -0
- package/dist/contracts/workflowRuntime.js.map +1 -0
- package/dist/contradictions/index.d.ts +158 -0
- package/dist/contradictions/index.js +6427 -0
- package/dist/contradictions/index.js.map +1 -0
- package/dist/{packages/sdk/src/controlObjectOwnership.d.ts → controlObjectOwnership.d.ts} +35 -18
- package/dist/controlObjectOwnership.js +215 -0
- package/dist/controlObjectOwnership.js.map +1 -0
- package/dist/{packages/sdk/src/coreClient.d.ts → coreClient.d.ts} +38 -14
- package/dist/coreClient.js +339 -0
- package/dist/coreClient.js.map +1 -0
- package/dist/customTools.d.ts +88 -0
- package/dist/customTools.js +248 -0
- package/dist/customTools.js.map +1 -0
- package/dist/decisions/index.d.ts +68 -0
- package/dist/decisions/index.js +6429 -0
- package/dist/decisions/index.js.map +1 -0
- package/dist/decisionsClient.d.ts +111 -0
- package/dist/decisionsClient.js +522 -0
- package/dist/decisionsClient.js.map +1 -0
- package/dist/domainContext.d.ts +1 -0
- package/dist/domainContext.js +3 -0
- package/dist/domainContext.js.map +1 -0
- package/dist/edges/index.d.ts +204 -0
- package/dist/edges/index.js +6428 -0
- package/dist/edges/index.js.map +1 -0
- package/dist/events.d.ts +178 -0
- package/dist/events.js +251 -0
- package/dist/events.js.map +1 -0
- package/dist/eventsCore.d.ts +49 -0
- package/dist/eventsCore.js +429 -0
- package/dist/eventsCore.js.map +1 -0
- package/dist/evidence/index.d.ts +295 -0
- package/dist/evidence/index.js +6428 -0
- package/dist/evidence/index.js.map +1 -0
- package/dist/evidenceClient.d.ts +119 -0
- package/dist/evidenceClient.js +350 -0
- package/dist/evidenceClient.js.map +1 -0
- package/dist/facade/context.d.ts +18 -0
- package/dist/facade/context.js +73 -0
- package/dist/facade/context.js.map +1 -0
- package/dist/gatewayFacades.d.ts +589 -0
- package/dist/gatewayFacades.js +2006 -0
- package/dist/gatewayFacades.js.map +1 -0
- package/dist/graphClient.d.ts +271 -0
- package/dist/graphClient.js +698 -0
- package/dist/graphClient.js.map +1 -0
- package/dist/{packages/sdk/src/harnessClient.d.ts → harnessClient.d.ts} +127 -35
- package/dist/harnessClient.js +607 -0
- package/dist/harnessClient.js.map +1 -0
- package/dist/identityClient.d.ts +140 -0
- package/dist/identityClient.js +497 -0
- package/dist/identityClient.js.map +1 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +5284 -2568
- package/dist/index.js.map +1 -1
- package/dist/learningClient.d.ts +46 -0
- package/dist/learningClient.js +409 -0
- package/dist/learningClient.js.map +1 -0
- package/dist/lenses/index.d.ts +194 -0
- package/dist/lenses/index.js +6427 -0
- package/dist/lenses/index.js.map +1 -0
- package/dist/{packages/sdk/src/mcpParityClient.d.ts → mcpParityClient.d.ts} +11 -5
- package/dist/mcpParityClient.js +516 -0
- package/dist/mcpParityClient.js.map +1 -0
- package/dist/mcpParitySurface.d.ts +12 -0
- package/dist/mcpParitySurface.js +65 -0
- package/dist/mcpParitySurface.js.map +1 -0
- package/dist/mcpTools-DPZxowDX.d.ts +254 -0
- package/dist/nodes/index.d.ts +62 -0
- package/dist/nodes/index.js +6429 -0
- package/dist/nodes/index.js.map +1 -0
- package/dist/ontologies/index.d.ts +178 -0
- package/dist/ontologies/index.js +6430 -0
- package/dist/ontologies/index.js.map +1 -0
- package/dist/{packages/sdk/src/ontologyClient.d.ts → ontologyClient.d.ts} +44 -22
- package/dist/ontologyClient.js +513 -0
- package/dist/ontologyClient.js.map +1 -0
- package/dist/opinion.d.ts +11 -0
- package/dist/opinion.js +35 -0
- package/dist/opinion.js.map +1 -0
- package/dist/packRuntime.d.ts +2 -0
- package/dist/packRuntime.js +3 -0
- package/dist/packRuntime.js.map +1 -0
- package/dist/packsClient.d.ts +131 -0
- package/dist/packsClient.js +525 -0
- package/dist/packsClient.js.map +1 -0
- package/dist/{packages/sdk/src/policyClient.d.ts → policyClient.d.ts} +113 -18
- package/dist/policyClient.js +625 -0
- package/dist/policyClient.js.map +1 -0
- package/dist/questions/index.d.ts +297 -0
- package/dist/questions/index.js +6430 -0
- package/dist/questions/index.js.map +1 -0
- package/dist/realtime/index.d.ts +29 -0
- package/dist/realtime/index.js +23 -0
- package/dist/realtime/index.js.map +1 -0
- package/dist/realtime/refs.d.ts +17 -0
- package/dist/realtime/refs.js +9 -0
- package/dist/realtime/refs.js.map +1 -0
- package/dist/reportsClient.d.ts +41 -0
- package/dist/reportsClient.js +418 -0
- package/dist/reportsClient.js.map +1 -0
- package/dist/schemaClient.d.ts +64 -0
- package/dist/schemaClient.js +434 -0
- package/dist/schemaClient.js.map +1 -0
- package/dist/sdkSurface.d.ts +61 -0
- package/dist/sdkSurface.js +112 -0
- package/dist/sdkSurface.js.map +1 -0
- package/dist/sdkTools-CwXJDACb.d.ts +150 -0
- package/dist/sourcesClient.d.ts +24 -0
- package/dist/sourcesClient.js +339 -0
- package/dist/sourcesClient.js.map +1 -0
- package/dist/topics/index.d.ts +68 -0
- package/dist/topics/index.js +6428 -0
- package/dist/topics/index.js.map +1 -0
- package/dist/topicsClient.d.ts +84 -0
- package/dist/topicsClient.js +492 -0
- package/dist/topicsClient.js.map +1 -0
- package/dist/types.d.ts +715 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/version.d.ts +4 -0
- package/dist/version.js +6 -0
- package/dist/version.js.map +1 -0
- package/dist/workflowClient.d.ts +316 -0
- package/dist/workflowClient.js +830 -0
- package/dist/workflowClient.js.map +1 -0
- package/dist/worktrees/index.d.ts +210 -0
- package/dist/worktrees/index.js +6430 -0
- package/dist/worktrees/index.js.map +1 -0
- package/package.json +92 -37
- package/dist/lucern/contracts/src/lens-workflow.contract.d.ts +0 -84
- package/dist/lucern/contracts/src/mcp-tools.contract.d.ts +0 -151
- package/dist/lucern/contracts/src/workflow-runtime.contract.d.ts +0 -161
- package/dist/lucern/mcp-server/src/context-pack-policy.d.ts +0 -119
- package/dist/lucern/mcp-server/src/context-pack-schema.d.ts +0 -18
- package/dist/lucern/modules/graph-primitives/src/ontology-matching.d.ts +0 -78
- package/dist/lucern/modules/graph-primitives/src/text-matching.d.ts +0 -53
- package/dist/lucern/packages/client-core/src/beliefs.d.ts +0 -30
- package/dist/lucern/packages/client-core/src/context.d.ts +0 -29
- package/dist/lucern/packages/client-core/src/contradictions.d.ts +0 -11
- package/dist/lucern/packages/client-core/src/edges.d.ts +0 -11
- package/dist/lucern/packages/client-core/src/events.d.ts +0 -9
- package/dist/lucern/packages/client-core/src/evidence.d.ts +0 -21
- package/dist/lucern/packages/client-core/src/graph.d.ts +0 -17
- package/dist/lucern/packages/client-core/src/identity.d.ts +0 -7
- package/dist/lucern/packages/client-core/src/ids.d.ts +0 -7
- package/dist/lucern/packages/client-core/src/ontologies.d.ts +0 -13
- package/dist/lucern/packages/client-core/src/questions.d.ts +0 -39
- package/dist/lucern/packages/client-core/src/search.d.ts +0 -7
- package/dist/lucern/packages/client-core/src/tasks.d.ts +0 -13
- package/dist/lucern/packages/client-core/src/topics.d.ts +0 -17
- package/dist/lucern/packages/client-core/src/webhooks.d.ts +0 -35
- package/dist/lucern/packages/client-core/src/worktrees.d.ts +0 -17
- package/dist/lucern/packages/domain-beliefs/src/beliefs.d.ts +0 -283
- package/dist/lucern/packages/domain-beliefs/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-context/src/compile.d.ts +0 -11
- package/dist/lucern/packages/domain-context/src/index.d.ts +0 -4
- package/dist/lucern/packages/domain-context/src/ports.d.ts +0 -58
- package/dist/lucern/packages/domain-context/src/public-types.d.ts +0 -1
- package/dist/lucern/packages/domain-edges/src/contradictions.d.ts +0 -59
- package/dist/lucern/packages/domain-edges/src/edges.d.ts +0 -91
- package/dist/lucern/packages/domain-edges/src/index.d.ts +0 -2
- package/dist/lucern/packages/domain-evidence/src/evidence.d.ts +0 -115
- package/dist/lucern/packages/domain-evidence/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-graph/src/graph.d.ts +0 -150
- package/dist/lucern/packages/domain-identity/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-identity/src/whoami.d.ts +0 -13
- package/dist/lucern/packages/domain-ontologies/src/ontologies.d.ts +0 -123
- package/dist/lucern/packages/domain-questions/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-questions/src/questions.d.ts +0 -147
- package/dist/lucern/packages/domain-search/src/search.d.ts +0 -97
- package/dist/lucern/packages/domain-tasks/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-tasks/src/tasks.d.ts +0 -102
- package/dist/lucern/packages/domain-topics/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-topics/src/topics.d.ts +0 -147
- package/dist/lucern/packages/domain-worktrees/src/index.d.ts +0 -1
- package/dist/lucern/packages/domain-worktrees/src/worktrees.d.ts +0 -185
- package/dist/lucern/packages/events/src/index.d.ts +0 -4
- package/dist/lucern/packages/events/src/matching.d.ts +0 -3
- package/dist/lucern/packages/events/src/outbox.d.ts +0 -15
- package/dist/lucern/packages/events/src/types.d.ts +0 -151
- package/dist/lucern/packages/events/src/webhooks.d.ts +0 -9
- package/dist/lucern/packages/sdk-typescript/src/facade/beliefs.d.ts +0 -15
- package/dist/lucern/packages/sdk-typescript/src/facade/context.d.ts +0 -12
- package/dist/lucern/packages/sdk-typescript/src/facade/contradictions.d.ts +0 -7
- package/dist/lucern/packages/sdk-typescript/src/facade/edges.d.ts +0 -7
- package/dist/lucern/packages/sdk-typescript/src/facade/events.d.ts +0 -6
- package/dist/lucern/packages/sdk-typescript/src/facade/evidence.d.ts +0 -21
- package/dist/lucern/packages/sdk-typescript/src/facade/graph.d.ts +0 -10
- package/dist/lucern/packages/sdk-typescript/src/facade/identity.d.ts +0 -5
- package/dist/lucern/packages/sdk-typescript/src/facade/ontologies.d.ts +0 -8
- package/dist/lucern/packages/sdk-typescript/src/facade/questions.d.ts +0 -39
- package/dist/lucern/packages/sdk-typescript/src/facade/search.d.ts +0 -5
- package/dist/lucern/packages/sdk-typescript/src/facade/tasks.d.ts +0 -8
- package/dist/lucern/packages/sdk-typescript/src/facade/topics.d.ts +0 -10
- package/dist/lucern/packages/sdk-typescript/src/facade/webhooks.d.ts +0 -16
- package/dist/lucern/packages/sdk-typescript/src/facade/worktrees.d.ts +0 -10
- package/dist/lucern/packages/sdk-typescript/src/index.d.ts +0 -28
- package/dist/packages/sdk/src/adminClient.d.ts +0 -89
- package/dist/packages/sdk/src/answersClient.d.ts +0 -5
- package/dist/packages/sdk/src/auditClient.d.ts +0 -23
- package/dist/packages/sdk/src/beliefsClient.d.ts +0 -54
- package/dist/packages/sdk/src/client.d.ts +0 -1610
- package/dist/packages/sdk/src/contextClient.d.ts +0 -9
- package/dist/packages/sdk/src/contracts/api-enums.contract.d.ts +0 -58
- package/dist/packages/sdk/src/customTools.d.ts +0 -65
- package/dist/packages/sdk/src/decisionsClient.d.ts +0 -110
- package/dist/packages/sdk/src/graphClient.d.ts +0 -209
- package/dist/packages/sdk/src/identityClient.d.ts +0 -104
- package/dist/packages/sdk/src/index.d.ts +0 -28
- package/dist/packages/sdk/src/learningClient.d.ts +0 -43
- package/dist/packages/sdk/src/mcpParitySurface.d.ts +0 -8
- package/dist/packages/sdk/src/packsClient.d.ts +0 -101
- package/dist/packages/sdk/src/reportsClient.d.ts +0 -31
- package/dist/packages/sdk/src/schemaClient.d.ts +0 -54
- package/dist/packages/sdk/src/sdkSurface.d.ts +0 -56
- package/dist/packages/sdk/src/topicsClient.d.ts +0 -45
- package/dist/packages/sdk/src/types.d.ts +0 -489
- package/dist/packages/sdk/src/version.d.ts +0 -2
- package/dist/packages/sdk/src/workflowClient.d.ts +0 -274
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ontology Matching Engine — L0 entity type classification and similarity scoring.
|
|
3
|
-
*
|
|
4
|
-
* Provides bigram-based text similarity for matching free text against
|
|
5
|
-
* ontology entity types. Domain-agnostic: works identically for companies,
|
|
6
|
-
* molecules, code modules, or any tenant-defined entity vocabulary.
|
|
7
|
-
*
|
|
8
|
-
* Used by:
|
|
9
|
-
* - match_entity_type MCP handler (classify new entities)
|
|
10
|
-
* - discover_entity_connections MCP handler (suggest missing bridge edges)
|
|
11
|
-
*
|
|
12
|
-
* @module graph-primitives/ontology-matching
|
|
13
|
-
*/
|
|
14
|
-
/** An entity type definition from a resolved ontology version. */
|
|
15
|
-
export type OntologyEntityType = {
|
|
16
|
-
value: string;
|
|
17
|
-
label: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
subtypes?: Array<{
|
|
20
|
-
value: string;
|
|
21
|
-
label: string;
|
|
22
|
-
description?: string;
|
|
23
|
-
}>;
|
|
24
|
-
};
|
|
25
|
-
/** A scored match between input text and an entity type. */
|
|
26
|
-
export type EntityTypeMatch = {
|
|
27
|
-
entityType: string;
|
|
28
|
-
label: string;
|
|
29
|
-
score: number;
|
|
30
|
-
reason: string;
|
|
31
|
-
};
|
|
32
|
-
/** A candidate entity node that can be matched against a target node. */
|
|
33
|
-
export type EntityMatchCandidate = {
|
|
34
|
-
nodeId: string;
|
|
35
|
-
entityType: string;
|
|
36
|
-
title: string;
|
|
37
|
-
canonicalText: string;
|
|
38
|
-
connectedBeliefCount: number;
|
|
39
|
-
connectedEvidenceCount: number;
|
|
40
|
-
};
|
|
41
|
-
/** A scored entity match with suggested bridge edge type. */
|
|
42
|
-
export type EntityConnectionMatch = {
|
|
43
|
-
entityNodeId: string;
|
|
44
|
-
entityType: string;
|
|
45
|
-
title: string;
|
|
46
|
-
score: number;
|
|
47
|
-
suggestedEdgeType: string;
|
|
48
|
-
reason: string;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Score how well input text matches a single entity type definition.
|
|
52
|
-
* Combines bigram Jaccard similarity, word overlap, and description matching.
|
|
53
|
-
*/
|
|
54
|
-
export declare function scoreEntityTypeMatch(inputText: string, entityType: OntologyEntityType): EntityTypeMatch;
|
|
55
|
-
/**
|
|
56
|
-
* Rank all entity types in an ontology against input text.
|
|
57
|
-
* Returns matches sorted by score (descending), filtered to score > minScore.
|
|
58
|
-
*/
|
|
59
|
-
export declare function rankEntityTypeMatches(inputText: string, entityTypes: OntologyEntityType[], options?: {
|
|
60
|
-
minScore?: number;
|
|
61
|
-
limit?: number;
|
|
62
|
-
}): EntityTypeMatch[];
|
|
63
|
-
/**
|
|
64
|
-
* Score how well a node's text matches an entity candidate.
|
|
65
|
-
* Used by discover_entity_connections to suggest missing bridge edges.
|
|
66
|
-
*/
|
|
67
|
-
export declare function scoreEntityConnection(nodeText: string, candidate: EntityMatchCandidate, options?: {
|
|
68
|
-
connectivityWeight?: number;
|
|
69
|
-
}): EntityConnectionMatch;
|
|
70
|
-
/**
|
|
71
|
-
* Rank entity candidates against a node's text.
|
|
72
|
-
* Returns sorted matches above the minimum score threshold.
|
|
73
|
-
*/
|
|
74
|
-
export declare function rankEntityConnections(nodeText: string, candidates: EntityMatchCandidate[], options?: {
|
|
75
|
-
minScore?: number;
|
|
76
|
-
limit?: number;
|
|
77
|
-
connectivityWeight?: number;
|
|
78
|
-
}): EntityConnectionMatch[];
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared lexical matching primitives used across MCP handlers and graph utilities.
|
|
3
|
-
*
|
|
4
|
-
* The goal is not to replace downstream LLM scoring. It provides a fast,
|
|
5
|
-
* deterministic substrate for candidate generation, reranking, and light
|
|
6
|
-
* classification across belief/question/evidence/entity surfaces.
|
|
7
|
-
*/
|
|
8
|
-
export type LexicalStrategy = "tokenOverlap" | "bigramJaccard" | "wordOverlap";
|
|
9
|
-
export type PreparedLexicalQuery = {
|
|
10
|
-
raw: string;
|
|
11
|
-
tokens: string[];
|
|
12
|
-
words: string[];
|
|
13
|
-
bigrams: Set<string>;
|
|
14
|
-
};
|
|
15
|
-
export type LexicalSignal = {
|
|
16
|
-
strategy?: LexicalStrategy;
|
|
17
|
-
text: string | null | undefined;
|
|
18
|
-
weight: number;
|
|
19
|
-
};
|
|
20
|
-
export type LexicalRerankOptions = {
|
|
21
|
-
lexicalWeight?: number;
|
|
22
|
-
rankWeight?: number;
|
|
23
|
-
};
|
|
24
|
-
/** Tokenize a string into lowercase words, removing stop words. */
|
|
25
|
-
export declare function tokenizeSearchText(text: string): string[];
|
|
26
|
-
/** Simple stemmer: strip common English suffixes for fuzzy matching. */
|
|
27
|
-
export declare function stemToken(word: string): string;
|
|
28
|
-
/** Compute token overlap score between query tokens and text tokens. */
|
|
29
|
-
export declare function tokenOverlapScore(queryTokens: string[], textTokens: string[]): number;
|
|
30
|
-
/**
|
|
31
|
-
* Extract character bigrams from text. Normalizes to lowercase, removes
|
|
32
|
-
* non-alphanumeric characters, and generates overlapping pairs.
|
|
33
|
-
*/
|
|
34
|
-
export declare function bigramTokenize(text: string): Set<string>;
|
|
35
|
-
/**
|
|
36
|
-
* Extract word-level tokens from text (for coarser matching).
|
|
37
|
-
* Normalizes to lowercase, splits on non-alphanumeric.
|
|
38
|
-
*/
|
|
39
|
-
export declare function wordTokenize(text: string): string[];
|
|
40
|
-
/** Jaccard similarity between two sets: |A ∩ B| / |A ∪ B|. */
|
|
41
|
-
export declare function jaccardSimilarity(setA: Set<string>, setB: Set<string>): number;
|
|
42
|
-
/** Exact word overlap score: fraction of type words found in input text. */
|
|
43
|
-
export declare function wordOverlapScore(inputWords: string[], typeWords: string[]): number;
|
|
44
|
-
/** Pre-compute reusable lexical structures for a query. */
|
|
45
|
-
export declare function prepareLexicalQuery(query: string): PreparedLexicalQuery;
|
|
46
|
-
/** Score a single lexical signal against a prepared query. */
|
|
47
|
-
export declare function scoreLexicalSignal(query: PreparedLexicalQuery, signal: LexicalSignal): number;
|
|
48
|
-
/** Weighted lexical score across multiple textual signals. */
|
|
49
|
-
export declare function scoreLexicalSignals(query: PreparedLexicalQuery, signals: LexicalSignal[]): number;
|
|
50
|
-
/** Map a candidate's original rank position into a 0..1 prior. */
|
|
51
|
-
export declare function rankWindowScore(index: number, total: number): number;
|
|
52
|
-
/** Rerank a candidate window by lexical overlap while preserving original-rank prior. */
|
|
53
|
-
export declare function rerankLexicalWindow<T>(query: string, items: T[], getText: (item: T) => string | null | undefined, options?: LexicalRerankOptions): T[];
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { ArchiveBeliefInput, BeliefArchiveResult, BeliefBisectResult, BeliefConfidenceHistoryResult, BeliefConfidenceUpdateResult, BeliefContractCreateInput, BeliefContractCreateResult, BeliefLineageResult, BeliefListResult, BeliefRefineInput, BeliefRecord, BisectBeliefConfidenceInput, CreateBeliefInput, ForkBeliefInput, ListBeliefsQuery, UpdateBeliefConfidenceInput } from "@/lucern/packages/domain-beliefs/src/beliefs";
|
|
3
|
-
export type BeliefsClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type BeliefsGetResponse = PlatformGatewaySuccess<BeliefRecord>;
|
|
5
|
-
export type BeliefsCreateResponse = PlatformGatewaySuccess<BeliefRecord>;
|
|
6
|
-
export type BeliefsListResponse = PlatformGatewaySuccess<BeliefListResult>;
|
|
7
|
-
export type BeliefsRefineResponse = PlatformGatewaySuccess<BeliefRecord>;
|
|
8
|
-
export type BeliefsForkResponse = PlatformGatewaySuccess<BeliefRecord & {
|
|
9
|
-
parentBeliefId: string;
|
|
10
|
-
forkReason: string;
|
|
11
|
-
}>;
|
|
12
|
-
export type BeliefsUpdateConfidenceResponse = PlatformGatewaySuccess<BeliefConfidenceUpdateResult>;
|
|
13
|
-
export type BeliefsArchiveResponse = PlatformGatewaySuccess<BeliefArchiveResult>;
|
|
14
|
-
export type BeliefsLineageResponse = PlatformGatewaySuccess<BeliefLineageResult>;
|
|
15
|
-
export type BeliefsConfidenceHistoryResponse = PlatformGatewaySuccess<BeliefConfidenceHistoryResult>;
|
|
16
|
-
export type BeliefsCreateContractResponse = PlatformGatewaySuccess<BeliefContractCreateResult>;
|
|
17
|
-
export type BeliefsBisectResponse = PlatformGatewaySuccess<BeliefBisectResult>;
|
|
18
|
-
export declare function createBeliefsClientCore(config?: BeliefsClientCoreConfig): {
|
|
19
|
-
create(input: CreateBeliefInput, idempotencyKey?: string): Promise<BeliefsCreateResponse>;
|
|
20
|
-
get(id: string): Promise<BeliefsGetResponse>;
|
|
21
|
-
list(query: ListBeliefsQuery): Promise<BeliefsListResponse>;
|
|
22
|
-
refine(id: string, input: Omit<BeliefRefineInput, "id">, idempotencyKey?: string): Promise<BeliefsRefineResponse>;
|
|
23
|
-
fork(id: string, input: Omit<ForkBeliefInput, "id">, idempotencyKey?: string): Promise<BeliefsForkResponse>;
|
|
24
|
-
updateConfidence(id: string, input: Omit<UpdateBeliefConfidenceInput, "id">, idempotencyKey?: string): Promise<BeliefsUpdateConfidenceResponse>;
|
|
25
|
-
archive(id: string, input?: Omit<ArchiveBeliefInput, "id">, idempotencyKey?: string): Promise<BeliefsArchiveResponse>;
|
|
26
|
-
lineage(id: string): Promise<BeliefsLineageResponse>;
|
|
27
|
-
confidenceHistory(id: string): Promise<BeliefsConfidenceHistoryResponse>;
|
|
28
|
-
createContract(id: string, input: BeliefContractCreateInput, idempotencyKey?: string): Promise<BeliefsCreateContractResponse>;
|
|
29
|
-
bisect(id: string, input: Omit<BisectBeliefConfidenceInput, "id">, idempotencyKey?: string): Promise<BeliefsBisectResponse>;
|
|
30
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { ContextCompilationMode, ContextRankingProfile, PackWeightOverride } from "../../../contracts/src/context-pack.contract";
|
|
2
|
-
export type CompileContextInput = {
|
|
3
|
-
query?: string;
|
|
4
|
-
budget?: number;
|
|
5
|
-
ranking?: ContextRankingProfile;
|
|
6
|
-
limit?: number;
|
|
7
|
-
maxDepth?: number;
|
|
8
|
-
includeEntities?: boolean;
|
|
9
|
-
mode?: ContextCompilationMode;
|
|
10
|
-
includeFailures?: boolean;
|
|
11
|
-
worktreeId?: string;
|
|
12
|
-
sessionId?: string;
|
|
13
|
-
packWeightOverrides?: PackWeightOverride[];
|
|
14
|
-
/** @deprecated Use budget. */
|
|
15
|
-
tokenBudget?: number;
|
|
16
|
-
/** @deprecated Use ranking. */
|
|
17
|
-
rankingProfile?: ContextRankingProfile;
|
|
18
|
-
};
|
|
19
|
-
export type ContextClientRequest = {
|
|
20
|
-
path: "/api/platform/v1/context/compile";
|
|
21
|
-
method: "POST";
|
|
22
|
-
body: Record<string, unknown>;
|
|
23
|
-
};
|
|
24
|
-
export declare function buildCompileContextRequest(topicId: string, input?: CompileContextInput): ContextClientRequest;
|
|
25
|
-
export declare function createContextClientCore<TResult>(deps: {
|
|
26
|
-
execute(request: ContextClientRequest): Promise<TResult>;
|
|
27
|
-
}): {
|
|
28
|
-
compile(topicId: string, input?: CompileContextInput): Promise<TResult>;
|
|
29
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { ContradictionListResult, ContradictionRecord, FlagContradictionInput, ListContradictionsQuery } from "@/lucern/packages/domain-edges/src/contradictions";
|
|
3
|
-
export type ContradictionsClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type ContradictionsFlagResponse = PlatformGatewaySuccess<ContradictionRecord>;
|
|
5
|
-
export type ContradictionsListResponse = PlatformGatewaySuccess<ContradictionListResult>;
|
|
6
|
-
export type ContradictionsGetResponse = PlatformGatewaySuccess<ContradictionRecord>;
|
|
7
|
-
export declare function createContradictionsClient(config?: ContradictionsClientCoreConfig): {
|
|
8
|
-
flag(input: FlagContradictionInput, idempotencyKey?: string): Promise<ContradictionsFlagResponse>;
|
|
9
|
-
list(query: ListContradictionsQuery): Promise<ContradictionsListResponse>;
|
|
10
|
-
get(id: string): Promise<ContradictionsGetResponse>;
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { CreateEdgeInput, EdgeListResult, EdgeRecord, EdgeTraversalResult, ListEdgesQuery, TraverseEdgesInput } from "@/lucern/packages/domain-edges/src/edges";
|
|
3
|
-
export type EdgesClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type EdgesCreateResponse = PlatformGatewaySuccess<EdgeRecord>;
|
|
5
|
-
export type EdgesListResponse = PlatformGatewaySuccess<EdgeListResult>;
|
|
6
|
-
export type EdgesTraverseResponse = PlatformGatewaySuccess<EdgeTraversalResult>;
|
|
7
|
-
export declare function createEdgesClient(config?: EdgesClientCoreConfig): {
|
|
8
|
-
create(input: CreateEdgeInput, idempotencyKey?: string): Promise<EdgesCreateResponse>;
|
|
9
|
-
list(query: ListEdgesQuery): Promise<EdgesListResponse>;
|
|
10
|
-
traverse(input: TraverseEdgesInput, idempotencyKey?: string): Promise<EdgesTraverseResponse>;
|
|
11
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { EventListQuery, EventListResult, ReplayEventsInput, ReplayEventsResult } from "@/lucern/packages/events/src/types";
|
|
3
|
-
export type EventsClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type EventsListResponse = PlatformGatewaySuccess<EventListResult>;
|
|
5
|
-
export type EventsReplayResponse = PlatformGatewaySuccess<ReplayEventsResult>;
|
|
6
|
-
export declare function createEventsClientCore(config?: EventsClientCoreConfig): {
|
|
7
|
-
list(query?: EventListQuery): Promise<EventsListResponse>;
|
|
8
|
-
replay(input: ReplayEventsInput, idempotencyKey?: string): Promise<EventsReplayResponse>;
|
|
9
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { CreateEvidenceInput, EvidenceListResult, EvidenceRecord, EvidenceSearchPage, LinkEvidenceResult, ListEvidenceQuery, SearchEvidenceQuery } from "@/lucern/packages/domain-evidence/src/evidence";
|
|
3
|
-
export type EvidenceClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type EvidenceGetResponse = PlatformGatewaySuccess<EvidenceRecord>;
|
|
5
|
-
export type EvidenceCreateResponse = PlatformGatewaySuccess<EvidenceRecord>;
|
|
6
|
-
export type EvidenceListResponse = PlatformGatewaySuccess<EvidenceListResult>;
|
|
7
|
-
export type EvidenceSearchResponse = PlatformGatewaySuccess<EvidenceSearchPage>;
|
|
8
|
-
export type EvidenceLinkResponse = PlatformGatewaySuccess<LinkEvidenceResult>;
|
|
9
|
-
export declare function createEvidenceClient(config?: EvidenceClientCoreConfig): {
|
|
10
|
-
create(input: CreateEvidenceInput, idempotencyKey?: string): Promise<EvidenceCreateResponse>;
|
|
11
|
-
get(id: string): Promise<EvidenceGetResponse>;
|
|
12
|
-
list(query: ListEvidenceQuery): Promise<EvidenceListResponse>;
|
|
13
|
-
link(input: {
|
|
14
|
-
evidenceId: string;
|
|
15
|
-
targetId: string;
|
|
16
|
-
targetType?: "belief" | "question";
|
|
17
|
-
weight?: number;
|
|
18
|
-
rationale?: string;
|
|
19
|
-
}, idempotencyKey?: string): Promise<EvidenceLinkResponse>;
|
|
20
|
-
search(query: SearchEvidenceQuery, idempotencyKey?: string): Promise<EvidenceSearchResponse>;
|
|
21
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { GraphAnalyzeInput, GraphAnalyzeResult, GraphBiasInput, GraphBiasResult, GraphFalsifyInput, GraphFalsifyResult, GraphGapsInput, GraphGapsResult, GraphNeighborhoodInput, GraphNeighborhoodResult, GraphTraverseInput, GraphTraverseResult } from "@/lucern/packages/domain-graph/src/graph";
|
|
3
|
-
export type GraphClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type GraphNeighborhoodResponse = PlatformGatewaySuccess<GraphNeighborhoodResult>;
|
|
5
|
-
export type GraphTraverseResponse = PlatformGatewaySuccess<GraphTraverseResult>;
|
|
6
|
-
export type GraphAnalyzeResponse = PlatformGatewaySuccess<GraphAnalyzeResult>;
|
|
7
|
-
export type GraphBiasResponse = PlatformGatewaySuccess<GraphBiasResult>;
|
|
8
|
-
export type GraphGapsResponse = PlatformGatewaySuccess<GraphGapsResult>;
|
|
9
|
-
export type GraphFalsifyResponse = PlatformGatewaySuccess<GraphFalsifyResult>;
|
|
10
|
-
export declare function createGraphClient(config?: GraphClientCoreConfig): {
|
|
11
|
-
neighborhood(input: GraphNeighborhoodInput): Promise<GraphNeighborhoodResponse>;
|
|
12
|
-
traverse(input: GraphTraverseInput): Promise<GraphTraverseResponse>;
|
|
13
|
-
analyze(input: GraphAnalyzeInput): Promise<GraphAnalyzeResponse>;
|
|
14
|
-
bias(input: GraphBiasInput): Promise<GraphBiasResponse>;
|
|
15
|
-
gaps(input: GraphGapsInput): Promise<GraphGapsResponse>;
|
|
16
|
-
falsify(input: GraphFalsifyInput): Promise<GraphFalsifyResponse>;
|
|
17
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { IdentitySummary } from "@/lucern/packages/domain-identity/src/whoami";
|
|
3
|
-
export type IdentityClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type IdentityWhoamiResponse = PlatformGatewaySuccess<IdentitySummary>;
|
|
5
|
-
export declare function createIdentityWhoamiClient(config?: IdentityClientCoreConfig): {
|
|
6
|
-
whoami(): Promise<IdentityWhoamiResponse>;
|
|
7
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type DecodedPrefixedId = {
|
|
2
|
-
prefix: string;
|
|
3
|
-
value: string;
|
|
4
|
-
};
|
|
5
|
-
export declare function encodePrefixedId(prefix: string, value: string): string;
|
|
6
|
-
export declare function decodePrefixedId(id: string): DecodedPrefixedId;
|
|
7
|
-
export declare function hasPrefixedIdPrefix(id: string, prefix: string): boolean;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { BindOntologyInput, OntologyBindingResult, OntologyListQuery, OntologyListResult, OntologyMatchInput, OntologyMatchResult, OntologyRecord } from "@/lucern/packages/domain-ontologies/src/ontologies";
|
|
3
|
-
export type OntologiesClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type OntologiesGetResponse = PlatformGatewaySuccess<OntologyRecord>;
|
|
5
|
-
export type OntologiesListResponse = PlatformGatewaySuccess<OntologyListResult>;
|
|
6
|
-
export type OntologiesBindResponse = PlatformGatewaySuccess<OntologyBindingResult>;
|
|
7
|
-
export type OntologiesMatchResponse = PlatformGatewaySuccess<OntologyMatchResult>;
|
|
8
|
-
export declare function createOntologiesClientCore(config?: OntologiesClientCoreConfig): {
|
|
9
|
-
get(id: string): Promise<OntologiesGetResponse>;
|
|
10
|
-
list(query?: OntologyListQuery): Promise<OntologiesListResponse>;
|
|
11
|
-
bind(input: BindOntologyInput, idempotencyKey?: string): Promise<OntologiesBindResponse>;
|
|
12
|
-
match(input: OntologyMatchInput, idempotencyKey?: string): Promise<OntologiesMatchResponse>;
|
|
13
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { CreateQuestionInput, ListQuestionsQuery, QuestionArchiveResult, QuestionAnswerResult, QuestionListResult, QuestionRecord } from "@/lucern/packages/domain-questions/src/questions";
|
|
3
|
-
export type QuestionsClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type QuestionsCreateResponse = PlatformGatewaySuccess<QuestionRecord>;
|
|
5
|
-
export type QuestionsGetResponse = PlatformGatewaySuccess<QuestionRecord>;
|
|
6
|
-
export type QuestionsListResponse = PlatformGatewaySuccess<QuestionListResult>;
|
|
7
|
-
export type QuestionsRefineResponse = PlatformGatewaySuccess<QuestionRecord & {
|
|
8
|
-
previousText: string;
|
|
9
|
-
updatedText: string;
|
|
10
|
-
}>;
|
|
11
|
-
export type QuestionsUpdateStatusResponse = PlatformGatewaySuccess<QuestionRecord & {
|
|
12
|
-
previousStatus: string;
|
|
13
|
-
newStatus: string;
|
|
14
|
-
}>;
|
|
15
|
-
export type QuestionsArchiveResponse = PlatformGatewaySuccess<QuestionArchiveResult>;
|
|
16
|
-
export type QuestionsAnswerResponse = PlatformGatewaySuccess<QuestionAnswerResult>;
|
|
17
|
-
export declare function createQuestionsClient(config?: QuestionsClientCoreConfig): {
|
|
18
|
-
create(input: CreateQuestionInput, idempotencyKey?: string): Promise<QuestionsCreateResponse>;
|
|
19
|
-
get(id: string): Promise<QuestionsGetResponse>;
|
|
20
|
-
list(query: ListQuestionsQuery): Promise<QuestionsListResponse>;
|
|
21
|
-
answer(id: string, input: {
|
|
22
|
-
text: string;
|
|
23
|
-
confidence?: string;
|
|
24
|
-
evidenceIds?: string[];
|
|
25
|
-
rationale?: string;
|
|
26
|
-
}, idempotencyKey?: string): Promise<QuestionsAnswerResponse>;
|
|
27
|
-
refine(id: string, input: {
|
|
28
|
-
text: string;
|
|
29
|
-
rationale?: string;
|
|
30
|
-
}, idempotencyKey?: string): Promise<QuestionsRefineResponse>;
|
|
31
|
-
archive(id: string, input?: {
|
|
32
|
-
reason?: string;
|
|
33
|
-
rationale?: string;
|
|
34
|
-
}, idempotencyKey?: string): Promise<QuestionsArchiveResponse>;
|
|
35
|
-
updateStatus(id: string, input: {
|
|
36
|
-
status: string;
|
|
37
|
-
rationale?: string;
|
|
38
|
-
}, idempotencyKey?: string): Promise<QuestionsUpdateStatusResponse>;
|
|
39
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { SearchInput, SearchResponse } from "@/lucern/packages/domain-search/src/search";
|
|
3
|
-
export type SearchClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type SearchResourcesResponse = PlatformGatewaySuccess<SearchResponse>;
|
|
5
|
-
export declare function createSearchClient(config?: SearchClientCoreConfig): {
|
|
6
|
-
query(input: SearchInput): Promise<SearchResourcesResponse>;
|
|
7
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { CompleteTaskInput, CreateTaskInput, ListTasksQuery, TaskListResult, TaskRecord, UpdateTaskInput } from "@/lucern/packages/domain-tasks/src/tasks";
|
|
3
|
-
export type TasksClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type TasksCreateResponse = PlatformGatewaySuccess<TaskRecord>;
|
|
5
|
-
export type TasksUpdateResponse = PlatformGatewaySuccess<TaskRecord>;
|
|
6
|
-
export type TasksCompleteResponse = PlatformGatewaySuccess<TaskRecord>;
|
|
7
|
-
export type TasksListResponse = PlatformGatewaySuccess<TaskListResult>;
|
|
8
|
-
export declare function createTasksClientCore(config?: TasksClientCoreConfig): {
|
|
9
|
-
create(input: CreateTaskInput, idempotencyKey?: string): Promise<TasksCreateResponse>;
|
|
10
|
-
update(input: UpdateTaskInput, idempotencyKey?: string): Promise<TasksUpdateResponse>;
|
|
11
|
-
complete(input: CompleteTaskInput, idempotencyKey?: string): Promise<TasksCompleteResponse>;
|
|
12
|
-
list(query: ListTasksQuery): Promise<TasksListResponse>;
|
|
13
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { CreateTopicInput, GetTopicCoverageInput, GetTopicTreeInput, ListTopicsQuery, TopicCoverageResult, TopicListResult, TopicRecord, TopicTreeResult, UpdateTopicInput } from "@/lucern/packages/domain-topics/src/topics";
|
|
3
|
-
export type TopicsClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type TopicsCreateResponse = PlatformGatewaySuccess<TopicRecord>;
|
|
5
|
-
export type TopicsGetResponse = PlatformGatewaySuccess<TopicRecord>;
|
|
6
|
-
export type TopicsListResponse = PlatformGatewaySuccess<TopicListResult>;
|
|
7
|
-
export type TopicsUpdateResponse = PlatformGatewaySuccess<TopicRecord>;
|
|
8
|
-
export type TopicsTreeResponse = PlatformGatewaySuccess<TopicTreeResult>;
|
|
9
|
-
export type TopicsCoverageResponse = PlatformGatewaySuccess<TopicCoverageResult>;
|
|
10
|
-
export declare function createTopicsClientCore(config?: TopicsClientCoreConfig): {
|
|
11
|
-
create(input: CreateTopicInput, idempotencyKey?: string): Promise<TopicsCreateResponse>;
|
|
12
|
-
get(id: string): Promise<TopicsGetResponse>;
|
|
13
|
-
list(query?: ListTopicsQuery): Promise<TopicsListResponse>;
|
|
14
|
-
update(input: UpdateTopicInput, idempotencyKey?: string): Promise<TopicsUpdateResponse>;
|
|
15
|
-
tree(input: GetTopicTreeInput): Promise<TopicsTreeResponse>;
|
|
16
|
-
coverage(input: GetTopicCoverageInput): Promise<TopicsCoverageResponse>;
|
|
17
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { WebhookCreateInput, WebhookDeliveriesResult, WebhookHealthResult, WebhookRecord, WebhookTestResult, WebhookUpdateInput } from "@/lucern/packages/events/src/types";
|
|
3
|
-
export type WebhooksClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type WebhookListQuery = {
|
|
5
|
-
topicId?: string;
|
|
6
|
-
};
|
|
7
|
-
export type WebhookDeliveriesQuery = {
|
|
8
|
-
limit?: number;
|
|
9
|
-
};
|
|
10
|
-
export type WebhookDeleteResult = {
|
|
11
|
-
webhookId: string;
|
|
12
|
-
deleted: boolean;
|
|
13
|
-
};
|
|
14
|
-
export type WebhooksCreateResponse = PlatformGatewaySuccess<WebhookRecord>;
|
|
15
|
-
export type WebhooksListResponse = PlatformGatewaySuccess<{
|
|
16
|
-
webhooks: WebhookRecord[];
|
|
17
|
-
}>;
|
|
18
|
-
export type WebhooksGetResponse = PlatformGatewaySuccess<WebhookRecord>;
|
|
19
|
-
export type WebhooksUpdateResponse = PlatformGatewaySuccess<WebhookRecord>;
|
|
20
|
-
export type WebhooksDeleteResponse = PlatformGatewaySuccess<WebhookDeleteResult>;
|
|
21
|
-
export type WebhooksTestResponse = PlatformGatewaySuccess<WebhookTestResult>;
|
|
22
|
-
export type WebhooksDeliveriesResponse = PlatformGatewaySuccess<WebhookDeliveriesResult>;
|
|
23
|
-
export type WebhooksHealthResponse = PlatformGatewaySuccess<WebhookHealthResult>;
|
|
24
|
-
export declare function createWebhooksClientCore(config?: WebhooksClientCoreConfig): {
|
|
25
|
-
create(input: WebhookCreateInput, idempotencyKey?: string): Promise<WebhooksCreateResponse>;
|
|
26
|
-
list(query?: WebhookListQuery): Promise<WebhooksListResponse>;
|
|
27
|
-
get(id: string): Promise<WebhooksGetResponse>;
|
|
28
|
-
update(id: string, input: WebhookUpdateInput, idempotencyKey?: string): Promise<WebhooksUpdateResponse>;
|
|
29
|
-
delete(id: string, idempotencyKey?: string): Promise<WebhooksDeleteResponse>;
|
|
30
|
-
test(id: string, input?: {
|
|
31
|
-
topicId?: string;
|
|
32
|
-
}, idempotencyKey?: string): Promise<WebhooksTestResponse>;
|
|
33
|
-
deliveries(id: string, query?: WebhookDeliveriesQuery): Promise<WebhooksDeliveriesResponse>;
|
|
34
|
-
health(id: string): Promise<WebhooksHealthResponse>;
|
|
35
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type GatewayClientConfig, type PlatformGatewaySuccess } from "@/packages/sdk/src/coreClient";
|
|
2
|
-
import type { ActivateWorktreeInput, CreateWorktreeInput, ListWorktreesQuery, MergeWorktreeInput, MergeWorktreeResult, UpdateWorktreeInput, UpdateWorktreeTargetsInput, WorktreeListResult, WorktreeRecord } from "@/lucern/packages/domain-worktrees/src/worktrees";
|
|
3
|
-
export type WorktreesClientCoreConfig = GatewayClientConfig;
|
|
4
|
-
export type WorktreesCreateResponse = PlatformGatewaySuccess<WorktreeRecord>;
|
|
5
|
-
export type WorktreesListResponse = PlatformGatewaySuccess<WorktreeListResult>;
|
|
6
|
-
export type WorktreesActivateResponse = PlatformGatewaySuccess<WorktreeRecord>;
|
|
7
|
-
export type WorktreesUpdateResponse = PlatformGatewaySuccess<WorktreeRecord>;
|
|
8
|
-
export type WorktreesTargetsResponse = PlatformGatewaySuccess<WorktreeRecord>;
|
|
9
|
-
export type WorktreesMergeResponse = PlatformGatewaySuccess<MergeWorktreeResult>;
|
|
10
|
-
export declare function createWorktreesClientCore(config?: WorktreesClientCoreConfig): {
|
|
11
|
-
create(input: CreateWorktreeInput, idempotencyKey?: string): Promise<WorktreesCreateResponse>;
|
|
12
|
-
list(query: ListWorktreesQuery): Promise<WorktreesListResponse>;
|
|
13
|
-
activate(input: ActivateWorktreeInput, idempotencyKey?: string): Promise<WorktreesActivateResponse>;
|
|
14
|
-
update(input: UpdateWorktreeInput, idempotencyKey?: string): Promise<WorktreesUpdateResponse>;
|
|
15
|
-
merge(input: MergeWorktreeInput, idempotencyKey?: string): Promise<WorktreesMergeResponse>;
|
|
16
|
-
updateTargets(input: UpdateWorktreeTargetsInput, idempotencyKey?: string): Promise<WorktreesTargetsResponse>;
|
|
17
|
-
};
|