@lucern/contracts 0.3.0-alpha.16 → 0.3.0-alpha.2
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 +0 -7
- package/dist/api-enums.contract.d.ts +3 -5
- package/dist/api-enums.contract.js +12 -14
- package/dist/api-enums.contract.js.map +1 -1
- package/dist/auth-context.contract.js +1 -13
- package/dist/auth-context.contract.js.map +1 -1
- package/dist/auth-session.contract.js +1 -13
- package/dist/auth-session.contract.js.map +1 -1
- package/dist/auth.contract.d.ts +1 -1
- package/dist/auth.contract.js +1 -13
- package/dist/auth.contract.js.map +1 -1
- package/dist/context-pack.contract.d.ts +3 -5
- package/dist/context-pack.contract.js.map +1 -1
- package/dist/{defineTable-t1wr5wgn.d.ts → defineTable-CBQ03FXl.d.ts} +1 -1
- package/dist/{dsl-DVPthQGY.d.ts → dsl-BgpoVOVQ.d.ts} +2 -2
- package/dist/dsl.d.ts +2 -2
- package/dist/dsl.js +4 -1
- package/dist/dsl.js.map +1 -1
- package/dist/function-registry/beliefs.d.ts +51 -64
- package/dist/function-registry/beliefs.js +55 -815
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +6 -15
- package/dist/function-registry/coding.js +41 -864
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +16 -22
- package/dist/function-registry/context.js +44 -803
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +3 -9
- package/dist/function-registry/contracts.js +37 -768
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +9 -21
- package/dist/function-registry/coordination.js +37 -768
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +2 -167
- package/dist/function-registry/edges.js +69 -976
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +41 -52
- package/dist/function-registry/evidence.js +60 -824
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +66 -162
- package/dist/function-registry/graph.js +44 -884
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +4 -7
- package/dist/function-registry/helpers.js +38 -769
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +16 -62
- package/dist/function-registry/identity.js +43 -791
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +3 -5
- package/dist/function-registry/index.js +41 -775
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +11 -16
- package/dist/function-registry/judgments.js +40 -780
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +1 -5
- package/dist/function-registry/legacy.js +37 -768
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +21 -28
- package/dist/function-registry/lenses.js +40 -791
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +6 -6
- package/dist/function-registry/manifest.js +2 -19
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +56 -70
- package/dist/function-registry/ontologies.js +43 -786
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +16 -22
- package/dist/function-registry/pipeline.js +40 -777
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +61 -76
- package/dist/function-registry/questions.js +50 -867
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +21 -28
- package/dist/function-registry/tasks.js +46 -843
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +26 -114
- package/dist/function-registry/topics.js +41 -850
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +3 -7
- package/dist/function-registry/worktrees.d.ts +51 -104
- package/dist/function-registry/worktrees.js +49 -907
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/gateway.contract.d.ts +0 -5
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.d.ts +3 -3
- package/dist/generated/convexSchemas.js +18 -39
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/schema-manifest.json +98 -1244
- package/dist/generated/tableOwnership.d.ts +28 -49
- package/dist/generated/tableOwnership.js +26 -68
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +9 -66
- package/dist/graph-types/index.d.ts +1 -5
- package/dist/graph-types/index.js +4 -15
- package/dist/graph-types/index.js.map +1 -1
- package/dist/index-CV-0_VWJ.d.ts +25 -0
- package/dist/index.d.ts +414 -30
- package/dist/index.js +339 -34916
- package/dist/index.js.map +1 -1
- package/dist/lens-filter.contract.js +3 -4
- package/dist/lens-filter.contract.js.map +1 -1
- package/dist/lens-workflow.contract.js +3 -4
- package/dist/lens-workflow.contract.js.map +1 -1
- package/dist/schema-helpers/enumValidation.js +5 -2
- package/dist/schema-helpers/enumValidation.js.map +1 -1
- package/dist/schema-helpers/spine/nodes/decision.js +1 -2
- package/dist/schema-helpers/spine/nodes/decision.js.map +1 -1
- package/dist/schema-helpers/spine/tables/epistemicNodes.js +27 -27
- package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -1
- package/dist/schemas/component-table-manifest.d.ts +6 -6
- package/dist/schemas/component-table-manifest.js +2 -2
- package/dist/schemas/component-table-manifest.js.map +1 -1
- package/dist/schemas/enums.d.ts +2 -5
- package/dist/schemas/enums.js +2 -5
- package/dist/schemas/enums.js.map +1 -1
- package/dist/schemas/index.d.ts +3 -3
- package/dist/schemas/index.js +139 -1165
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +932 -3042
- package/dist/schemas/manifest.js +137 -1163
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/sl-opinion.d.ts +4 -4
- package/dist/schemas/tables/{controlPlane → identity}/agent.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/agent.js +3 -3
- package/dist/schemas/tables/identity/agent.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/epistemic.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/epistemic.js +3 -3
- package/dist/schemas/tables/identity/epistemic.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/model.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/model.js +6 -6
- package/dist/schemas/tables/identity/model.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/platform.d.ts +11 -11
- package/dist/schemas/tables/{controlPlane → identity}/platform.js +18 -18
- package/dist/schemas/tables/identity/platform.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/project.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/project.js +3 -3
- package/dist/schemas/tables/identity/project.js.map +1 -0
- package/dist/schemas/tables/{controlPlane → identity}/user.d.ts +1 -1
- package/dist/schemas/tables/{controlPlane → identity}/user.js +3 -3
- package/dist/schemas/tables/identity/user.js.map +1 -0
- package/dist/schemas/tables/kernel/config.d.ts +1 -1
- package/dist/schemas/tables/kernel/config.js.map +1 -1
- package/dist/schemas/tables/kernel/coordination.d.ts +1 -1
- package/dist/schemas/tables/kernel/coordination.js.map +1 -1
- package/dist/schemas/tables/kernel/decision.d.ts +1 -1
- package/dist/schemas/tables/kernel/decision.js.map +1 -1
- package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
- package/dist/schemas/tables/kernel/embedding.js.map +1 -1
- package/dist/schemas/tables/kernel/epistemic.d.ts +7 -7
- package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
- package/dist/schemas/tables/kernel/idempotency.d.ts +1 -1
- package/dist/schemas/tables/kernel/idempotency.js.map +1 -1
- package/dist/schemas/tables/kernel/infra.d.ts +5 -5
- package/dist/schemas/tables/kernel/infra.js.map +1 -1
- package/dist/schemas/tables/kernel/intelligence.d.ts +11 -11
- package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
- package/dist/schemas/tables/kernel/lens.d.ts +5 -5
- package/dist/schemas/tables/kernel/lens.js.map +1 -1
- package/dist/schemas/tables/kernel/ontology.d.ts +1 -1
- package/dist/schemas/tables/kernel/ontology.js.map +1 -1
- package/dist/schemas/tables/kernel/platform.d.ts +13 -13
- package/dist/schemas/tables/kernel/platform.js.map +1 -1
- package/dist/schemas/tables/kernel/spine.d.ts +4 -5
- package/dist/schemas/tables/kernel/spine.js +2 -6
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +43 -43
- package/dist/schemas/tables/kernel/task.js.map +1 -1
- package/dist/schemas/tables/kernel/topic.d.ts +1 -1
- package/dist/schemas/tables/kernel/topic.js +1 -5
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
- package/dist/schemas/tables/kernel/workflow.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +55 -55
- package/dist/schemas/tables/kernel/worktree.js.map +1 -1
- package/dist/schemas/tables/mc/identity.d.ts +4 -44
- package/dist/schemas/tables/mc/identity.js +1 -66
- package/dist/schemas/tables/mc/identity.js.map +1 -1
- package/dist/schemas/tables/mc/methodology.d.ts +1 -1
- package/dist/schemas/tables/mc/methodology.js.map +1 -1
- package/dist/schemas/tables/mc/pack.d.ts +21 -21
- package/dist/schemas/tables/mc/pack.js.map +1 -1
- package/dist/schemas/tables/mc/policy.d.ts +2 -2
- package/dist/schemas/tables/mc/policy.js +1 -1
- package/dist/schemas/tables/mc/policy.js.map +1 -1
- package/dist/schemas/tables/mc/registry.d.ts +5 -5
- package/dist/schemas/tables/mc/registry.js.map +1 -1
- package/dist/schemas/tables/mc/runtime.d.ts +3 -109
- package/dist/schemas/tables/mc/runtime.js +104 -330
- package/dist/schemas/tables/mc/runtime.js.map +1 -1
- package/dist/schemas/tables/mc/tenant.d.ts +2 -4
- package/dist/schemas/tables/mc/tenant.js +1 -3
- package/dist/schemas/tables/mc/tenant.js.map +1 -1
- package/dist/schemas/tables/mc/workspace.d.ts +5 -28
- package/dist/schemas/tables/mc/workspace.js +2 -36
- package/dist/schemas/tables/mc/workspace.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +2 -2
- package/dist/{sdk-tools.contract-CKmSsrZ2.d.ts → sdk-tools.contract-S4ia0TTo.d.ts} +2 -2
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +25 -717
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/{tool-contracts-C_xvM9q2.d.ts → tool-contracts-C92-9ueT.d.ts} +2 -38
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +26 -718
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +1 -30
- package/dist/component-boundary.contract.d.ts +0 -14
- package/dist/component-boundary.contract.js +0 -175
- package/dist/component-boundary.contract.js.map +0 -1
- package/dist/component-host-boundary.contract.d.ts +0 -46
- package/dist/component-host-boundary.contract.js +0 -60
- package/dist/component-host-boundary.contract.js.map +0 -1
- package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +0 -133
- package/dist/function-registry/nodes.d.ts +0 -412
- package/dist/function-registry/nodes.js +0 -5354
- package/dist/function-registry/nodes.js.map +0 -1
- package/dist/function-registry-input-audit.d.ts +0 -13
- package/dist/function-registry-input-audit.js +0 -166
- package/dist/function-registry-input-audit.js.map +0 -1
- package/dist/generated/infisicalRuntimeEnv.d.ts +0 -70
- package/dist/generated/infisicalRuntimeEnv.js +0 -27051
- package/dist/generated/infisicalRuntimeEnv.js.map +0 -1
- package/dist/generated/lucernGatewayEnv.d.ts +0 -17
- package/dist/generated/lucernGatewayEnv.js +0 -38
- package/dist/generated/lucernGatewayEnv.js.map +0 -1
- package/dist/generated/lucernWebPublicEnv.d.ts +0 -26
- package/dist/generated/lucernWebPublicEnv.js +0 -32
- package/dist/generated/lucernWebPublicEnv.js.map +0 -1
- package/dist/generated/lucernWebServerEnv.d.ts +0 -33
- package/dist/generated/lucernWebServerEnv.js +0 -51
- package/dist/generated/lucernWebServerEnv.js.map +0 -1
- package/dist/graph-intelligence.contract.d.ts +0 -506
- package/dist/graph-intelligence.contract.js +0 -595
- package/dist/graph-intelligence.contract.js.map +0 -1
- package/dist/index-CM1Pl_vI.d.ts +0 -28
- package/dist/infisical-runtime.contract.d.ts +0 -1851
- package/dist/infisical-runtime.contract.js +0 -3189
- package/dist/infisical-runtime.contract.js.map +0 -1
- package/dist/manifests/edge-policy-manifest.d.ts +0 -2
- package/dist/manifests/edge-policy-manifest.data.d.ts +0 -13
- package/dist/manifests/edge-policy-manifest.data.js +0 -26
- package/dist/manifests/edge-policy-manifest.data.js.map +0 -1
- package/dist/manifests/edge-policy-manifest.js +0 -92
- package/dist/manifests/edge-policy-manifest.js.map +0 -1
- package/dist/manifests/infisical-runtime-manifest.d.ts +0 -1754
- package/dist/manifests/infisical-runtime-manifest.js +0 -3044
- package/dist/manifests/infisical-runtime-manifest.js.map +0 -1
- package/dist/manifests/invariant-manifest.d.ts +0 -65
- package/dist/manifests/invariant-manifest.js +0 -18
- package/dist/manifests/invariant-manifest.js.map +0 -1
- package/dist/manifests/invariants/ast-utils.d.ts +0 -14
- package/dist/manifests/invariants/ast-utils.js +0 -54
- package/dist/manifests/invariants/ast-utils.js.map +0 -1
- package/dist/manifests/invariants/index.d.ts +0 -15
- package/dist/manifests/invariants/index.js +0 -183
- package/dist/manifests/invariants/index.js.map +0 -1
- package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +0 -12
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js +0 -94
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js.map +0 -1
- package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +0 -12
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js +0 -99
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js.map +0 -1
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +0 -12
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +0 -42
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +0 -1
- package/dist/manifests/tenant-client-manifest.d.ts +0 -327
- package/dist/manifests/tenant-client-manifest.js +0 -449
- package/dist/manifests/tenant-client-manifest.js.map +0 -1
- package/dist/mcp-gateway-boundary.contract.d.ts +0 -201
- package/dist/mcp-gateway-boundary.contract.js +0 -45
- package/dist/mcp-gateway-boundary.contract.js.map +0 -1
- package/dist/permit-principal-projection.contract.d.ts +0 -74
- package/dist/permit-principal-projection.contract.js +0 -160
- package/dist/permit-principal-projection.contract.js.map +0 -1
- package/dist/projections/check-convex-args-shape.d.ts +0 -3
- package/dist/projections/check-convex-args-shape.js +0 -403
- package/dist/projections/check-convex-args-shape.js.map +0 -1
- package/dist/projections/create-evidence.projection.d.ts +0 -176
- package/dist/projections/create-evidence.projection.js +0 -130
- package/dist/projections/create-evidence.projection.js.map +0 -1
- package/dist/projections/index.d.ts +0 -102
- package/dist/projections/index.js +0 -352
- package/dist/projections/index.js.map +0 -1
- package/dist/projections/list-beliefs.projection.d.ts +0 -36
- package/dist/projections/list-beliefs.projection.js +0 -54
- package/dist/projections/list-beliefs.projection.js.map +0 -1
- package/dist/projections/list-tasks.projection.d.ts +0 -44
- package/dist/projections/list-tasks.projection.js +0 -57
- package/dist/projections/list-tasks.projection.js.map +0 -1
- package/dist/projections/modulate-confidence.projection.d.ts +0 -219
- package/dist/projections/modulate-confidence.projection.js +0 -148
- package/dist/projections/modulate-confidence.projection.js.map +0 -1
- package/dist/projections/projection-dsl.d.ts +0 -11
- package/dist/projections/projection-dsl.js +0 -8
- package/dist/projections/projection-dsl.js.map +0 -1
- package/dist/proof-attestation.json +0 -45
- package/dist/schemas/tables/controlPlane/accessControl.d.ts +0 -260
- package/dist/schemas/tables/controlPlane/accessControl.js +0 -658
- package/dist/schemas/tables/controlPlane/accessControl.js.map +0 -1
- package/dist/schemas/tables/controlPlane/agent.js.map +0 -1
- package/dist/schemas/tables/controlPlane/epistemic.js.map +0 -1
- package/dist/schemas/tables/controlPlane/model.js.map +0 -1
- package/dist/schemas/tables/controlPlane/platform.js.map +0 -1
- package/dist/schemas/tables/controlPlane/project.js.map +0 -1
- package/dist/schemas/tables/controlPlane/user.js.map +0 -1
- package/dist/schemas/tables/kernel/events.d.ts +0 -21
- package/dist/schemas/tables/kernel/events.js +0 -43
- package/dist/schemas/tables/kernel/events.js.map +0 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +0 -1289
- package/dist/tenant-bootstrap-seed.contract.js +0 -764
- package/dist/tenant-bootstrap-seed.contract.js.map +0 -1
- package/dist/tenant-bootstrap-seed.defaults.d.ts +0 -16
- package/dist/tenant-bootstrap-seed.defaults.js +0 -321
- package/dist/tenant-bootstrap-seed.defaults.js.map +0 -1
- package/dist/tenant-client.contract.d.ts +0 -354
- package/dist/tenant-client.contract.js +0 -505
- package/dist/tenant-client.contract.js.map +0 -1
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { v } from 'convex/values';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
// src/projections/create-evidence.projection.ts
|
|
5
|
-
|
|
6
|
-
// src/projections/projection-dsl.ts
|
|
7
|
-
function defineProjection(def) {
|
|
8
|
-
return def;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// src/projections/create-evidence.projection.ts
|
|
12
|
-
var jsonRecordSchema = z.record(z.unknown());
|
|
13
|
-
var createEvidenceInputSchemaBase = z.object({
|
|
14
|
-
projectId: z.string().optional(),
|
|
15
|
-
topicId: z.string().optional(),
|
|
16
|
-
text: z.string().optional(),
|
|
17
|
-
canonicalText: z.string().optional(),
|
|
18
|
-
title: z.string().optional(),
|
|
19
|
-
content: z.string().optional(),
|
|
20
|
-
contentType: z.string().optional(),
|
|
21
|
-
kind: z.string().optional(),
|
|
22
|
-
tags: z.array(z.string()).optional(),
|
|
23
|
-
source: z.string().optional(),
|
|
24
|
-
sourceUrl: z.string().optional(),
|
|
25
|
-
sourceType: z.string().optional(),
|
|
26
|
-
externalSourceType: z.string().optional(),
|
|
27
|
-
sourceQuestionId: z.string().optional(),
|
|
28
|
-
methodology: z.string().optional(),
|
|
29
|
-
informationAsymmetry: z.string().optional(),
|
|
30
|
-
sourceDescription: z.string().optional(),
|
|
31
|
-
targetId: z.string().optional(),
|
|
32
|
-
targetNodeId: z.string().optional(),
|
|
33
|
-
linkedBeliefNodeId: z.string().optional(),
|
|
34
|
-
evidenceRelation: z.enum(["supports", "contradicts"]).optional(),
|
|
35
|
-
confidence: z.number().optional(),
|
|
36
|
-
weight: z.number().optional(),
|
|
37
|
-
reasoning: z.string().optional(),
|
|
38
|
-
rationale: z.string(),
|
|
39
|
-
metadata: jsonRecordSchema.optional(),
|
|
40
|
-
trustedBypassAccessCheck: z.boolean().optional()
|
|
41
|
-
}).passthrough();
|
|
42
|
-
var createEvidenceInputSchema = createEvidenceInputSchemaBase.refine(
|
|
43
|
-
(input) => Boolean(input.text ?? input.canonicalText),
|
|
44
|
-
{
|
|
45
|
-
message: "create_evidence requires text",
|
|
46
|
-
path: ["text"]
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
function compactRecord(input) {
|
|
50
|
-
return Object.fromEntries(
|
|
51
|
-
Object.entries(input).filter(([, value]) => value !== void 0)
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
function isRecord(value) {
|
|
55
|
-
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
56
|
-
}
|
|
57
|
-
function recordValue(value) {
|
|
58
|
-
return isRecord(value) ? value : {};
|
|
59
|
-
}
|
|
60
|
-
var createEvidenceProjection = defineProjection({
|
|
61
|
-
contractName: "create_evidence",
|
|
62
|
-
inputSchema: createEvidenceInputSchema,
|
|
63
|
-
project: (input) => {
|
|
64
|
-
const text = input.text ?? input.canonicalText;
|
|
65
|
-
const weight = typeof input.weight === "number" ? input.weight : void 0;
|
|
66
|
-
return compactRecord({
|
|
67
|
-
projectId: input.projectId,
|
|
68
|
-
topicId: input.topicId,
|
|
69
|
-
text,
|
|
70
|
-
title: input.title ?? text,
|
|
71
|
-
content: input.content ?? text,
|
|
72
|
-
contentType: input.contentType,
|
|
73
|
-
kind: input.kind,
|
|
74
|
-
tags: input.tags,
|
|
75
|
-
sourceType: input.sourceType,
|
|
76
|
-
externalSourceType: input.externalSourceType,
|
|
77
|
-
sourceUrl: input.sourceUrl ?? input.source,
|
|
78
|
-
sourceQuestionId: input.sourceQuestionId,
|
|
79
|
-
methodology: input.methodology,
|
|
80
|
-
informationAsymmetry: input.informationAsymmetry,
|
|
81
|
-
sourceDescription: input.sourceDescription,
|
|
82
|
-
metadata: compactRecord({
|
|
83
|
-
...recordValue(input.metadata),
|
|
84
|
-
source: input.source,
|
|
85
|
-
targetId: input.targetId,
|
|
86
|
-
targetNodeId: input.targetNodeId,
|
|
87
|
-
weight,
|
|
88
|
-
reasoning: input.reasoning,
|
|
89
|
-
rationale: input.rationale
|
|
90
|
-
}),
|
|
91
|
-
linkedBeliefNodeId: input.linkedBeliefNodeId ?? input.targetNodeId ?? input.targetId,
|
|
92
|
-
evidenceRelation: input.evidenceRelation ?? (weight === void 0 ? void 0 : weight < 0 ? "contradicts" : "supports"),
|
|
93
|
-
confidence: input.confidence ?? (weight === void 0 ? void 0 : Math.min(1, Math.max(0, Math.abs(weight)))),
|
|
94
|
-
rationale: input.rationale,
|
|
95
|
-
trustedBypassAccessCheck: input.trustedBypassAccessCheck ?? true
|
|
96
|
-
});
|
|
97
|
-
},
|
|
98
|
-
convexArgsValidator: v.object({
|
|
99
|
-
projectId: v.optional(v.string()),
|
|
100
|
-
topicId: v.optional(v.string()),
|
|
101
|
-
text: v.string(),
|
|
102
|
-
title: v.optional(v.string()),
|
|
103
|
-
content: v.optional(v.string()),
|
|
104
|
-
contentType: v.optional(v.string()),
|
|
105
|
-
kind: v.optional(v.string()),
|
|
106
|
-
tags: v.optional(v.array(v.string())),
|
|
107
|
-
sourceType: v.optional(v.string()),
|
|
108
|
-
externalSourceType: v.optional(v.string()),
|
|
109
|
-
sourceUrl: v.optional(v.string()),
|
|
110
|
-
sourceQuestionId: v.optional(v.string()),
|
|
111
|
-
methodology: v.optional(v.string()),
|
|
112
|
-
informationAsymmetry: v.optional(v.string()),
|
|
113
|
-
sourceDescription: v.optional(v.string()),
|
|
114
|
-
metadata: v.optional(v.record(v.string(), v.any())),
|
|
115
|
-
linkedBeliefNodeId: v.optional(v.string()),
|
|
116
|
-
evidenceRelation: v.optional(
|
|
117
|
-
v.union(
|
|
118
|
-
v.literal("supports"),
|
|
119
|
-
v.literal("contradicts")
|
|
120
|
-
)
|
|
121
|
-
),
|
|
122
|
-
confidence: v.optional(v.number()),
|
|
123
|
-
rationale: v.string(),
|
|
124
|
-
trustedBypassAccessCheck: v.optional(v.boolean())
|
|
125
|
-
})
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
export { createEvidenceInputSchema, createEvidenceProjection };
|
|
129
|
-
//# sourceMappingURL=create-evidence.projection.js.map
|
|
130
|
-
//# sourceMappingURL=create-evidence.projection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/projections/projection-dsl.ts","../../src/projections/create-evidence.projection.ts"],"names":[],"mappings":";;;;;;AASO,SAAS,iBACd,GAAA,EACqB;AACrB,EAAA,OAAO,GAAA;AACT;;;ACTA,IAAM,gBAAA,GAAmB,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,SAAS,CAAA;AAE7C,IAAM,6BAAA,GAAgC,EACnC,MAAA,CAAO;AAAA,EACN,SAAA,EAAW,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EAC/B,OAAA,EAAS,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EAC7B,IAAA,EAAM,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EAC1B,aAAA,EAAe,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EACnC,KAAA,E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AAE,QAAQ,CAAA;AAAA,IAClC,oBAAA,EAAsB,CAAA,CAAE,QAAA,CAAS,CAAA,CAAE,QAAQ,CAAA;AAAA,IAC3C,iBAAA,EAAmB,CAAA,CAAE,QAAA,CAAS,CAAA,CAAE,QAAQ,CAAA;AAAA,IACxC,QAAA,EAAU,CAAA,CAAE,QAAA,CAAS,CAAA,CAAE,MAAA,CAAO,CAAA,CAAE,MAAA,EAAO,EAAG,CAAA,CAAE,GAAA,EAAK,CAAC,CAAA;AAAA,IAClD,kBAAA,EAAoB,CAAA,CAAE,QAAA,CAAS,CAAA,CAAE,QAAQ,CAAA;AAAA,IACzC,kBAAkB,CAAA,CAAE,QAAA;AAAA,MAClB,CAAA,CAAE,KAAA;AAAA,QACA,CAAA,CAAE,QAAQ,UAAU,CAAA;AAAA,QACpB,CAAA,CAAE,QAAQ,aAAa;AAAA;AACzB,KACF;AAAA,IACA,UAAA,EAAY,CAAA,CAAE,QAAA,CAAS,CAAA,CAAE,QAAQ,CAAA;AAAA,IACjC,SAAA,EAAW,EAAE,MAAA,EAAO;AAAA,IACpB,wBAAA,EAA0B,CAAA,CAAE,QAAA,CAAS,CAAA,CAAE,SAAS;AAAA,GACjD;AACH,CAAC","file":"create-evidence.projection.js","sourcesContent":["import type { z } from \"zod\";\n\nexport interface ProjectionDef<TInput, TConvexArgs> {\n contractName: string;\n inputSchema: z.ZodSchema<TInput>;\n project: (input: TInput) => TConvexArgs;\n convexArgsValidator: unknown;\n}\n\nexport function defineProjection<I, C>(\n def: ProjectionDef<I, C>\n): ProjectionDef<I, C> {\n return def;\n}\n","import { v } from \"convex/values\";\nimport { z } from \"zod\";\nimport { defineProjection } from \"./projection-dsl.js\";\n\nconst jsonRecordSchema = z.record(z.unknown());\n\nconst createEvidenceInputSchemaBase = z\n .object({\n projectId: z.string().optional(),\n topicId: z.string().optional(),\n text: z.string().optional(),\n canonicalText: z.string().optional(),\n title: z.string().optional(),\n content: z.string().optional(),\n contentType: z.string().optional(),\n kind: z.string().optional(),\n tags: z.array(z.string()).optional(),\n source: z.string().optional(),\n sourceUrl: z.string().optional(),\n sourceType: z.string().optional(),\n externalSourceType: z.string().optional(),\n sourceQuestionId: z.string().optional(),\n methodology: z.string().optional(),\n informationAsymmetry: z.string().optional(),\n sourceDescription: z.string().optional(),\n targetId: z.string().optional(),\n targetNodeId: z.string().optional(),\n linkedBeliefNodeId: z.string().optional(),\n evidenceRelation: z.enum([\"supports\", \"contradicts\"]).optional(),\n confidence: z.number().optional(),\n weight: z.number().optional(),\n reasoning: z.string().optional(),\n rationale: z.string(),\n metadata: jsonRecordSchema.optional(),\n trustedBypassAccessCheck: z.boolean().optional(),\n })\n .passthrough();\n\nexport const createEvidenceInputSchema = createEvidenceInputSchemaBase.refine(\n (input) => Boolean(input.text ?? input.canonicalText),\n {\n message: \"create_evidence requires text\",\n path: [\"text\"],\n },\n);\n\nexport type CreateEvidenceProjectionInput = z.infer<\n typeof createEvidenceInputSchema\n>;\n\nfunction compactRecord(\n input: Record<string, unknown>,\n): Record<string, unknown> {\n return Object.fromEntries(\n Object.entries(input).filter(([, value]) => value !== undefined),\n );\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return Boolean(value) && typeof value === \"object\" && !Array.isArray(value);\n}\n\nfunction recordValue(value: unknown): Record<string, unknown> {\n return isRecord(value) ? value : {};\n}\n\nexport const createEvidenceProjection = defineProjection({\n contractName: \"create_evidence\",\n inputSchema: createEvidenceInputSchema,\n project: (input: CreateEvidenceProjectionInput) => {\n const text = input.text ?? input.canonicalText;\n const weight = typeof input.weight === \"number\" ? input.weight : undefined;\n\n return compactRecord({\n projectId: input.projectId,\n topicId: input.topicId,\n text,\n title: input.title ?? text,\n content: input.content ?? text,\n contentType: input.contentType,\n kind: input.kind,\n tags: input.tags,\n sourceType: input.sourceType,\n externalSourceType: input.externalSourceType,\n sourceUrl: input.sourceUrl ?? input.source,\n sourceQuestionId: input.sourceQuestionId,\n methodology: input.methodology,\n informationAsymmetry: input.informationAsymmetry,\n sourceDescription: input.sourceDescription,\n metadata: compactRecord({\n ...recordValue(input.metadata),\n source: input.source,\n targetId: input.targetId,\n targetNodeId: input.targetNodeId,\n weight,\n reasoning: input.reasoning,\n rationale: input.rationale,\n }),\n linkedBeliefNodeId:\n input.linkedBeliefNodeId ?? input.targetNodeId ?? input.targetId,\n evidenceRelation:\n input.evidenceRelation ??\n (weight === undefined\n ? undefined\n : weight < 0\n ? \"contradicts\"\n : \"supports\"),\n confidence:\n input.confidence ??\n (weight === undefined\n ? undefined\n : Math.min(1, Math.max(0, Math.abs(weight)))),\n rationale: input.rationale,\n trustedBypassAccessCheck: input.trustedBypassAccessCheck ?? true,\n });\n },\n convexArgsValidator: v.object({\n projectId: v.optional(v.string()),\n topicId: v.optional(v.string()),\n text: v.string(),\n title: v.optional(v.string()),\n content: v.optional(v.string()),\n contentType: v.optional(v.string()),\n kind: v.optional(v.string()),\n tags: v.optional(v.array(v.string())),\n sourceType: v.optional(v.string()),\n externalSourceType: v.optional(v.string()),\n sourceUrl: v.optional(v.string()),\n sourceQuestionId: v.optional(v.string()),\n methodology: v.optional(v.string()),\n informationAsymmetry: v.optional(v.string()),\n sourceDescription: v.optional(v.string()),\n metadata: v.optional(v.record(v.string(), v.any())),\n linkedBeliefNodeId: v.optional(v.string()),\n evidenceRelation: v.optional(\n v.union(\n v.literal(\"supports\"),\n v.literal(\"contradicts\"),\n ),\n ),\n confidence: v.optional(v.number()),\n rationale: v.string(),\n trustedBypassAccessCheck: v.optional(v.boolean()),\n }),\n});\n"]}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { ProjectionDef } from './projection-dsl.js';
|
|
2
|
-
export { defineProjection } from './projection-dsl.js';
|
|
3
|
-
import * as zod from 'zod';
|
|
4
|
-
export { createEvidenceProjection } from './create-evidence.projection.js';
|
|
5
|
-
export { listBeliefsProjection } from './list-beliefs.projection.js';
|
|
6
|
-
export { listTasksProjection } from './list-tasks.projection.js';
|
|
7
|
-
export { modulateConfidenceProjection } from './modulate-confidence.projection.js';
|
|
8
|
-
|
|
9
|
-
declare const projections: {
|
|
10
|
-
readonly create_evidence: ProjectionDef<zod.objectInputType<{
|
|
11
|
-
projectId: zod.ZodOptional<zod.ZodString>;
|
|
12
|
-
topicId: zod.ZodOptional<zod.ZodString>;
|
|
13
|
-
text: zod.ZodOptional<zod.ZodString>;
|
|
14
|
-
canonicalText: zod.ZodOptional<zod.ZodString>;
|
|
15
|
-
title: zod.ZodOptional<zod.ZodString>;
|
|
16
|
-
content: zod.ZodOptional<zod.ZodString>;
|
|
17
|
-
contentType: zod.ZodOptional<zod.ZodString>;
|
|
18
|
-
kind: zod.ZodOptional<zod.ZodString>;
|
|
19
|
-
tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
20
|
-
source: zod.ZodOptional<zod.ZodString>;
|
|
21
|
-
sourceUrl: zod.ZodOptional<zod.ZodString>;
|
|
22
|
-
sourceType: zod.ZodOptional<zod.ZodString>;
|
|
23
|
-
externalSourceType: zod.ZodOptional<zod.ZodString>;
|
|
24
|
-
sourceQuestionId: zod.ZodOptional<zod.ZodString>;
|
|
25
|
-
methodology: zod.ZodOptional<zod.ZodString>;
|
|
26
|
-
informationAsymmetry: zod.ZodOptional<zod.ZodString>;
|
|
27
|
-
sourceDescription: zod.ZodOptional<zod.ZodString>;
|
|
28
|
-
targetId: zod.ZodOptional<zod.ZodString>;
|
|
29
|
-
targetNodeId: zod.ZodOptional<zod.ZodString>;
|
|
30
|
-
linkedBeliefNodeId: zod.ZodOptional<zod.ZodString>;
|
|
31
|
-
evidenceRelation: zod.ZodOptional<zod.ZodEnum<["supports", "contradicts"]>>;
|
|
32
|
-
confidence: zod.ZodOptional<zod.ZodNumber>;
|
|
33
|
-
weight: zod.ZodOptional<zod.ZodNumber>;
|
|
34
|
-
reasoning: zod.ZodOptional<zod.ZodString>;
|
|
35
|
-
rationale: zod.ZodString;
|
|
36
|
-
metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
37
|
-
trustedBypassAccessCheck: zod.ZodOptional<zod.ZodBoolean>;
|
|
38
|
-
}, zod.ZodTypeAny, "passthrough">, Record<string, unknown>>;
|
|
39
|
-
readonly list_beliefs: ProjectionDef<{
|
|
40
|
-
topicId: string;
|
|
41
|
-
status?: "active" | "archived" | "unscored" | "scored" | "superseded" | undefined;
|
|
42
|
-
worktreeId?: string | undefined;
|
|
43
|
-
limit?: number | undefined;
|
|
44
|
-
minConfidence?: number | undefined;
|
|
45
|
-
includeEdgeAssociated?: boolean | undefined;
|
|
46
|
-
}, Record<string, unknown>>;
|
|
47
|
-
readonly list_tasks: ProjectionDef<{
|
|
48
|
-
status?: "blocked" | "todo" | "in_progress" | "done" | undefined;
|
|
49
|
-
topicId?: string | undefined;
|
|
50
|
-
worktreeId?: string | undefined;
|
|
51
|
-
limit?: number | undefined;
|
|
52
|
-
linkedWorktreeId?: string | undefined;
|
|
53
|
-
}, Record<string, unknown>>;
|
|
54
|
-
readonly modulate_confidence: ProjectionDef<{
|
|
55
|
-
rationale: string;
|
|
56
|
-
trigger: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "agent_assessment" | "worktree_outcome" | "worktree_completed" | "fusion" | "discount" | "deduction" | "answer_recorded" | "backfill_synthetic";
|
|
57
|
-
belief?: number | undefined;
|
|
58
|
-
baseRate?: number | undefined;
|
|
59
|
-
nodeId?: string | undefined;
|
|
60
|
-
disbelief?: number | undefined;
|
|
61
|
-
uncertainty?: number | undefined;
|
|
62
|
-
worktreeId?: string | undefined;
|
|
63
|
-
triggeringEvidenceId?: string | undefined;
|
|
64
|
-
triggeringQuestionId?: string | undefined;
|
|
65
|
-
triggeringAnswerId?: string | undefined;
|
|
66
|
-
triggeringContradictionId?: string | undefined;
|
|
67
|
-
triggeringWorktreeId?: string | undefined;
|
|
68
|
-
beliefNodeId?: string | undefined;
|
|
69
|
-
trustedBypassAccessCheck?: boolean | undefined;
|
|
70
|
-
opinion?: {
|
|
71
|
-
belief: number;
|
|
72
|
-
baseRate: number;
|
|
73
|
-
disbelief: number;
|
|
74
|
-
uncertainty: number;
|
|
75
|
-
} | undefined;
|
|
76
|
-
provenance?: {
|
|
77
|
-
evidence?: string | undefined;
|
|
78
|
-
question?: string | undefined;
|
|
79
|
-
contradiction?: string | undefined;
|
|
80
|
-
worktree?: string | undefined;
|
|
81
|
-
answer?: string | undefined;
|
|
82
|
-
} | undefined;
|
|
83
|
-
}, {
|
|
84
|
-
nodeId: string;
|
|
85
|
-
worktreeId: string | undefined;
|
|
86
|
-
belief: number;
|
|
87
|
-
disbelief: number;
|
|
88
|
-
uncertainty: number;
|
|
89
|
-
baseRate: number;
|
|
90
|
-
trigger: "evidence_added" | "evidence_removed" | "contradiction_detected" | "contradiction_resolved" | "agent_assessment" | "worktree_outcome" | "worktree_completed" | "fusion" | "discount" | "deduction" | "backfill_synthetic";
|
|
91
|
-
triggeringEvidenceId: string | undefined;
|
|
92
|
-
triggeringQuestionId: string | undefined;
|
|
93
|
-
triggeringAnswerId: string | undefined;
|
|
94
|
-
triggeringContradictionId: string | undefined;
|
|
95
|
-
triggeringWorktreeId: string | undefined;
|
|
96
|
-
rationale: string;
|
|
97
|
-
trustedBypassAccessCheck: boolean;
|
|
98
|
-
}>;
|
|
99
|
-
};
|
|
100
|
-
type ProjectionRegistry = typeof projections;
|
|
101
|
-
|
|
102
|
-
export { ProjectionDef, type ProjectionRegistry, projections };
|
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
import { v } from 'convex/values';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
// src/projections/create-evidence.projection.ts
|
|
5
|
-
|
|
6
|
-
// src/projections/projection-dsl.ts
|
|
7
|
-
function defineProjection(def) {
|
|
8
|
-
return def;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// src/projections/create-evidence.projection.ts
|
|
12
|
-
var jsonRecordSchema = z.record(z.unknown());
|
|
13
|
-
var createEvidenceInputSchemaBase = z.object({
|
|
14
|
-
projectId: z.string().optional(),
|
|
15
|
-
topicId: z.string().optional(),
|
|
16
|
-
text: z.string().optional(),
|
|
17
|
-
canonicalText: z.string().optional(),
|
|
18
|
-
title: z.string().optional(),
|
|
19
|
-
content: z.string().optional(),
|
|
20
|
-
contentType: z.string().optional(),
|
|
21
|
-
kind: z.string().optional(),
|
|
22
|
-
tags: z.array(z.string()).optional(),
|
|
23
|
-
source: z.string().optional(),
|
|
24
|
-
sourceUrl: z.string().optional(),
|
|
25
|
-
sourceType: z.string().optional(),
|
|
26
|
-
externalSourceType: z.string().optional(),
|
|
27
|
-
sourceQuestionId: z.string().optional(),
|
|
28
|
-
methodology: z.string().optional(),
|
|
29
|
-
informationAsymmetry: z.string().optional(),
|
|
30
|
-
sourceDescription: z.string().optional(),
|
|
31
|
-
targetId: z.string().optional(),
|
|
32
|
-
targetNodeId: z.string().optional(),
|
|
33
|
-
linkedBeliefNodeId: z.string().optional(),
|
|
34
|
-
evidenceRelation: z.enum(["supports", "contradicts"]).optional(),
|
|
35
|
-
confidence: z.number().optional(),
|
|
36
|
-
weight: z.number().optional(),
|
|
37
|
-
reasoning: z.string().optional(),
|
|
38
|
-
rationale: z.string(),
|
|
39
|
-
metadata: jsonRecordSchema.optional(),
|
|
40
|
-
trustedBypassAccessCheck: z.boolean().optional()
|
|
41
|
-
}).passthrough();
|
|
42
|
-
var createEvidenceInputSchema = createEvidenceInputSchemaBase.refine(
|
|
43
|
-
(input) => Boolean(input.text ?? input.canonicalText),
|
|
44
|
-
{
|
|
45
|
-
message: "create_evidence requires text",
|
|
46
|
-
path: ["text"]
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
function compactRecord(input) {
|
|
50
|
-
return Object.fromEntries(
|
|
51
|
-
Object.entries(input).filter(([, value]) => value !== void 0)
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
function isRecord(value) {
|
|
55
|
-
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
56
|
-
}
|
|
57
|
-
function recordValue(value) {
|
|
58
|
-
return isRecord(value) ? value : {};
|
|
59
|
-
}
|
|
60
|
-
var createEvidenceProjection = defineProjection({
|
|
61
|
-
contractName: "create_evidence",
|
|
62
|
-
inputSchema: createEvidenceInputSchema,
|
|
63
|
-
project: (input) => {
|
|
64
|
-
const text = input.text ?? input.canonicalText;
|
|
65
|
-
const weight = typeof input.weight === "number" ? input.weight : void 0;
|
|
66
|
-
return compactRecord({
|
|
67
|
-
projectId: input.projectId,
|
|
68
|
-
topicId: input.topicId,
|
|
69
|
-
text,
|
|
70
|
-
title: input.title ?? text,
|
|
71
|
-
content: input.content ?? text,
|
|
72
|
-
contentType: input.contentType,
|
|
73
|
-
kind: input.kind,
|
|
74
|
-
tags: input.tags,
|
|
75
|
-
sourceType: input.sourceType,
|
|
76
|
-
externalSourceType: input.externalSourceType,
|
|
77
|
-
sourceUrl: input.sourceUrl ?? input.source,
|
|
78
|
-
sourceQuestionId: input.sourceQuestionId,
|
|
79
|
-
methodology: input.methodology,
|
|
80
|
-
informationAsymmetry: input.informationAsymmetry,
|
|
81
|
-
sourceDescription: input.sourceDescription,
|
|
82
|
-
metadata: compactRecord({
|
|
83
|
-
...recordValue(input.metadata),
|
|
84
|
-
source: input.source,
|
|
85
|
-
targetId: input.targetId,
|
|
86
|
-
targetNodeId: input.targetNodeId,
|
|
87
|
-
weight,
|
|
88
|
-
reasoning: input.reasoning,
|
|
89
|
-
rationale: input.rationale
|
|
90
|
-
}),
|
|
91
|
-
linkedBeliefNodeId: input.linkedBeliefNodeId ?? input.targetNodeId ?? input.targetId,
|
|
92
|
-
evidenceRelation: input.evidenceRelation ?? (weight === void 0 ? void 0 : weight < 0 ? "contradicts" : "supports"),
|
|
93
|
-
confidence: input.confidence ?? (weight === void 0 ? void 0 : Math.min(1, Math.max(0, Math.abs(weight)))),
|
|
94
|
-
rationale: input.rationale,
|
|
95
|
-
trustedBypassAccessCheck: input.trustedBypassAccessCheck ?? true
|
|
96
|
-
});
|
|
97
|
-
},
|
|
98
|
-
convexArgsValidator: v.object({
|
|
99
|
-
projectId: v.optional(v.string()),
|
|
100
|
-
topicId: v.optional(v.string()),
|
|
101
|
-
text: v.string(),
|
|
102
|
-
title: v.optional(v.string()),
|
|
103
|
-
content: v.optional(v.string()),
|
|
104
|
-
contentType: v.optional(v.string()),
|
|
105
|
-
kind: v.optional(v.string()),
|
|
106
|
-
tags: v.optional(v.array(v.string())),
|
|
107
|
-
sourceType: v.optional(v.string()),
|
|
108
|
-
externalSourceType: v.optional(v.string()),
|
|
109
|
-
sourceUrl: v.optional(v.string()),
|
|
110
|
-
sourceQuestionId: v.optional(v.string()),
|
|
111
|
-
methodology: v.optional(v.string()),
|
|
112
|
-
informationAsymmetry: v.optional(v.string()),
|
|
113
|
-
sourceDescription: v.optional(v.string()),
|
|
114
|
-
metadata: v.optional(v.record(v.string(), v.any())),
|
|
115
|
-
linkedBeliefNodeId: v.optional(v.string()),
|
|
116
|
-
evidenceRelation: v.optional(
|
|
117
|
-
v.union(
|
|
118
|
-
v.literal("supports"),
|
|
119
|
-
v.literal("contradicts")
|
|
120
|
-
)
|
|
121
|
-
),
|
|
122
|
-
confidence: v.optional(v.number()),
|
|
123
|
-
rationale: v.string(),
|
|
124
|
-
trustedBypassAccessCheck: v.optional(v.boolean())
|
|
125
|
-
})
|
|
126
|
-
});
|
|
127
|
-
var beliefStatusSchema = z.enum(["active", "superseded", "archived", "unscored", "scored"]).optional().describe("Filter by belief lifecycle or scoring status");
|
|
128
|
-
var listBeliefsInputSchema = z.object({
|
|
129
|
-
topicId: z.string().describe("Topic scope"),
|
|
130
|
-
worktreeId: z.string().optional().describe("Filter to worktree scope"),
|
|
131
|
-
status: beliefStatusSchema,
|
|
132
|
-
minConfidence: z.number().optional().describe("Minimum confidence threshold"),
|
|
133
|
-
limit: z.number().optional().describe("Maximum results"),
|
|
134
|
-
includeEdgeAssociated: z.boolean().optional().describe("Include beliefs associated to the topic through edges")
|
|
135
|
-
});
|
|
136
|
-
function kernelStatus(status) {
|
|
137
|
-
return status === "active" || status === "superseded" || status === "archived" ? status : void 0;
|
|
138
|
-
}
|
|
139
|
-
function compactRecord2(input) {
|
|
140
|
-
return Object.fromEntries(
|
|
141
|
-
Object.entries(input).filter(([, value]) => value !== void 0)
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
var listBeliefsProjection = defineProjection({
|
|
145
|
-
contractName: "list_beliefs",
|
|
146
|
-
inputSchema: listBeliefsInputSchema,
|
|
147
|
-
project: (input) => compactRecord2({
|
|
148
|
-
topicId: input.topicId,
|
|
149
|
-
status: kernelStatus(input.status),
|
|
150
|
-
limit: input.limit,
|
|
151
|
-
includeEdgeAssociated: input.includeEdgeAssociated
|
|
152
|
-
}),
|
|
153
|
-
convexArgsValidator: v.object({
|
|
154
|
-
topicId: v.string(),
|
|
155
|
-
status: v.optional(
|
|
156
|
-
v.union(
|
|
157
|
-
v.literal("active"),
|
|
158
|
-
v.literal("superseded"),
|
|
159
|
-
v.literal("archived")
|
|
160
|
-
)
|
|
161
|
-
),
|
|
162
|
-
limit: v.optional(v.number()),
|
|
163
|
-
includeEdgeAssociated: v.optional(v.boolean())
|
|
164
|
-
})
|
|
165
|
-
});
|
|
166
|
-
var taskStatusSchema = z.enum(["todo", "in_progress", "blocked", "done"]).optional().describe("Filter by task status");
|
|
167
|
-
var listTasksInputSchema = z.object({
|
|
168
|
-
topicId: z.string().optional().describe("Topic scope"),
|
|
169
|
-
worktreeId: z.string().optional().describe("Alias for linkedWorktreeId"),
|
|
170
|
-
linkedWorktreeId: z.string().optional().describe("Filter to tasks linked to this worktree"),
|
|
171
|
-
status: taskStatusSchema,
|
|
172
|
-
limit: z.number().optional().describe("Maximum results")
|
|
173
|
-
}).refine(
|
|
174
|
-
(input) => Boolean(input.topicId || input.worktreeId || input.linkedWorktreeId),
|
|
175
|
-
{
|
|
176
|
-
message: "topicId or worktreeId is required"
|
|
177
|
-
}
|
|
178
|
-
);
|
|
179
|
-
function compactRecord3(input) {
|
|
180
|
-
return Object.fromEntries(
|
|
181
|
-
Object.entries(input).filter(([, value]) => value !== void 0)
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
var listTasksProjection = defineProjection({
|
|
185
|
-
contractName: "list_tasks",
|
|
186
|
-
inputSchema: listTasksInputSchema,
|
|
187
|
-
project: (input) => compactRecord3({
|
|
188
|
-
topicId: input.topicId,
|
|
189
|
-
status: input.status,
|
|
190
|
-
userId: void 0,
|
|
191
|
-
limit: input.limit,
|
|
192
|
-
linkedWorktreeId: input.linkedWorktreeId ?? input.worktreeId
|
|
193
|
-
}),
|
|
194
|
-
convexArgsValidator: v.object({
|
|
195
|
-
topicId: v.optional(v.string()),
|
|
196
|
-
status: v.optional(
|
|
197
|
-
v.union(
|
|
198
|
-
v.literal("todo"),
|
|
199
|
-
v.literal("in_progress"),
|
|
200
|
-
v.literal("blocked"),
|
|
201
|
-
v.literal("done")
|
|
202
|
-
)
|
|
203
|
-
),
|
|
204
|
-
limit: v.optional(v.number()),
|
|
205
|
-
linkedWorktreeId: v.optional(v.string())
|
|
206
|
-
})
|
|
207
|
-
});
|
|
208
|
-
var confidenceTriggerSchema = z.enum([
|
|
209
|
-
"evidence_added",
|
|
210
|
-
"evidence_removed",
|
|
211
|
-
"contradiction_resolved",
|
|
212
|
-
"agent_assessment",
|
|
213
|
-
"worktree_outcome",
|
|
214
|
-
"worktree_completed",
|
|
215
|
-
"contradiction_detected",
|
|
216
|
-
"answer_recorded",
|
|
217
|
-
"fusion",
|
|
218
|
-
"discount",
|
|
219
|
-
"deduction",
|
|
220
|
-
"backfill_synthetic"
|
|
221
|
-
]);
|
|
222
|
-
var provenanceSchema = z.object({
|
|
223
|
-
evidence: z.string().optional(),
|
|
224
|
-
question: z.string().optional(),
|
|
225
|
-
answer: z.string().optional(),
|
|
226
|
-
contradiction: z.string().optional(),
|
|
227
|
-
worktree: z.string().optional()
|
|
228
|
-
});
|
|
229
|
-
var slOpinionProjectionSchema = z.object({
|
|
230
|
-
belief: z.number(),
|
|
231
|
-
disbelief: z.number(),
|
|
232
|
-
uncertainty: z.number(),
|
|
233
|
-
baseRate: z.number()
|
|
234
|
-
});
|
|
235
|
-
var modulateConfidenceInputObjectSchema = z.object({
|
|
236
|
-
nodeId: z.string().optional(),
|
|
237
|
-
beliefNodeId: z.string().optional(),
|
|
238
|
-
worktreeId: z.string().optional(),
|
|
239
|
-
opinion: slOpinionProjectionSchema.optional(),
|
|
240
|
-
belief: z.number().optional(),
|
|
241
|
-
disbelief: z.number().optional(),
|
|
242
|
-
uncertainty: z.number().optional(),
|
|
243
|
-
baseRate: z.number().optional(),
|
|
244
|
-
trigger: confidenceTriggerSchema,
|
|
245
|
-
provenance: provenanceSchema.optional(),
|
|
246
|
-
triggeringEvidenceId: z.string().optional(),
|
|
247
|
-
triggeringQuestionId: z.string().optional(),
|
|
248
|
-
triggeringAnswerId: z.string().optional(),
|
|
249
|
-
triggeringContradictionId: z.string().optional(),
|
|
250
|
-
triggeringWorktreeId: z.string().optional(),
|
|
251
|
-
rationale: z.string(),
|
|
252
|
-
trustedBypassAccessCheck: z.boolean().optional()
|
|
253
|
-
});
|
|
254
|
-
var modulateConfidenceInputSchema = modulateConfidenceInputObjectSchema.superRefine((input, ctx) => {
|
|
255
|
-
if (hasProvenance(input)) {
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
ctx.addIssue({
|
|
259
|
-
code: z.ZodIssueCode.custom,
|
|
260
|
-
message: "modulate_confidence requires evidence, question, answer, contradiction, or worktree provenance",
|
|
261
|
-
path: ["provenance"]
|
|
262
|
-
});
|
|
263
|
-
});
|
|
264
|
-
var modulateConfidenceProjection = defineProjection({
|
|
265
|
-
contractName: "modulate_confidence",
|
|
266
|
-
inputSchema: modulateConfidenceInputSchema,
|
|
267
|
-
project: (input) => {
|
|
268
|
-
const nodeId = input.beliefNodeId ?? input.nodeId;
|
|
269
|
-
if (!nodeId) {
|
|
270
|
-
throw new Error("modulate_confidence requires beliefNodeId or nodeId");
|
|
271
|
-
}
|
|
272
|
-
const opinion = input.opinion ?? {
|
|
273
|
-
belief: requireNumber(input.belief, "belief"),
|
|
274
|
-
disbelief: requireNumber(input.disbelief, "disbelief"),
|
|
275
|
-
uncertainty: requireNumber(input.uncertainty, "uncertainty"),
|
|
276
|
-
baseRate: requireNumber(input.baseRate, "baseRate")
|
|
277
|
-
};
|
|
278
|
-
assertProvenance(input);
|
|
279
|
-
return {
|
|
280
|
-
nodeId,
|
|
281
|
-
worktreeId: input.worktreeId,
|
|
282
|
-
belief: opinion.belief,
|
|
283
|
-
disbelief: opinion.disbelief,
|
|
284
|
-
uncertainty: opinion.uncertainty,
|
|
285
|
-
baseRate: opinion.baseRate,
|
|
286
|
-
trigger: input.trigger === "answer_recorded" ? "agent_assessment" : input.trigger,
|
|
287
|
-
triggeringEvidenceId: input.provenance?.evidence ?? input.triggeringEvidenceId,
|
|
288
|
-
triggeringQuestionId: input.provenance?.question ?? input.triggeringQuestionId,
|
|
289
|
-
triggeringAnswerId: input.provenance?.answer ?? input.triggeringAnswerId,
|
|
290
|
-
triggeringContradictionId: input.provenance?.contradiction ?? input.triggeringContradictionId,
|
|
291
|
-
triggeringWorktreeId: input.provenance?.worktree ?? input.triggeringWorktreeId,
|
|
292
|
-
rationale: input.rationale,
|
|
293
|
-
trustedBypassAccessCheck: input.trustedBypassAccessCheck ?? true
|
|
294
|
-
};
|
|
295
|
-
},
|
|
296
|
-
convexArgsValidator: v.object({
|
|
297
|
-
nodeId: v.string(),
|
|
298
|
-
worktreeId: v.optional(v.string()),
|
|
299
|
-
belief: v.number(),
|
|
300
|
-
disbelief: v.number(),
|
|
301
|
-
uncertainty: v.number(),
|
|
302
|
-
baseRate: v.number(),
|
|
303
|
-
trigger: v.union(
|
|
304
|
-
v.literal("evidence_added"),
|
|
305
|
-
v.literal("evidence_removed"),
|
|
306
|
-
v.literal("worktree_completed"),
|
|
307
|
-
v.literal("contradiction_detected"),
|
|
308
|
-
v.literal("contradiction_resolved"),
|
|
309
|
-
v.literal("agent_assessment"),
|
|
310
|
-
v.literal("worktree_outcome"),
|
|
311
|
-
v.literal("fusion"),
|
|
312
|
-
v.literal("discount"),
|
|
313
|
-
v.literal("deduction"),
|
|
314
|
-
v.literal("backfill_synthetic")
|
|
315
|
-
),
|
|
316
|
-
triggeringEvidenceId: v.optional(v.string()),
|
|
317
|
-
triggeringQuestionId: v.optional(v.string()),
|
|
318
|
-
triggeringAnswerId: v.optional(v.string()),
|
|
319
|
-
triggeringContradictionId: v.optional(v.string()),
|
|
320
|
-
triggeringWorktreeId: v.optional(v.string()),
|
|
321
|
-
rationale: v.string(),
|
|
322
|
-
trustedBypassAccessCheck: v.optional(v.boolean())
|
|
323
|
-
})
|
|
324
|
-
});
|
|
325
|
-
function requireNumber(value, field) {
|
|
326
|
-
if (value === void 0) {
|
|
327
|
-
throw new Error(`modulate_confidence requires ${field}`);
|
|
328
|
-
}
|
|
329
|
-
return value;
|
|
330
|
-
}
|
|
331
|
-
function assertProvenance(input) {
|
|
332
|
-
if (!hasProvenance(input)) {
|
|
333
|
-
throw new Error(
|
|
334
|
-
"modulate_confidence requires evidence, question, answer, contradiction, or worktree provenance"
|
|
335
|
-
);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
function hasProvenance(input) {
|
|
339
|
-
return input.trigger === "backfill_synthetic" || Boolean(input.provenance && Object.values(input.provenance).some(Boolean)) || Boolean(input.triggeringEvidenceId) || Boolean(input.triggeringQuestionId) || Boolean(input.triggeringAnswerId) || Boolean(input.triggeringContradictionId) || Boolean(input.triggeringWorktreeId);
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
// src/projections/index.ts
|
|
343
|
-
var projections = {
|
|
344
|
-
create_evidence: createEvidenceProjection,
|
|
345
|
-
list_beliefs: listBeliefsProjection,
|
|
346
|
-
list_tasks: listTasksProjection,
|
|
347
|
-
modulate_confidence: modulateConfidenceProjection
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
export { createEvidenceProjection, defineProjection, listBeliefsProjection, listTasksProjection, modulateConfidenceProjection, projections };
|
|
351
|
-
//# sourceMappingURL=index.js.map
|
|
352
|
-
//# sourceMappingURL=index.js.map
|