@lucern/sdk 0.2.0-alpha.2 → 0.2.0-alpha.4
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/README.md +572 -166
- package/dist/index.js +26 -98
- package/dist/index.js.map +1 -1
- package/dist/packages/sdk/src/contracts/api-enums.contract.d.ts +50 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5364,164 +5364,92 @@ function createLucernClient(config = {}) {
|
|
|
5364
5364
|
}
|
|
5365
5365
|
|
|
5366
5366
|
// src/contracts/api-enums.contract.ts
|
|
5367
|
+
var BELIEF_STATUSES = [
|
|
5368
|
+
"assumption",
|
|
5369
|
+
"hypothesis",
|
|
5370
|
+
"belief",
|
|
5371
|
+
"fact"
|
|
5372
|
+
];
|
|
5367
5373
|
var FORK_REASONS = [
|
|
5368
5374
|
"refinement",
|
|
5369
|
-
// Belief text evolved based on new understanding
|
|
5370
5375
|
"contradiction_response",
|
|
5371
|
-
// Created in response to a detected contradiction
|
|
5372
5376
|
"scope_change",
|
|
5373
|
-
// Belief scope narrowed or broadened
|
|
5374
5377
|
"confidence_collapse",
|
|
5375
|
-
// Confidence dropped below viability threshold
|
|
5376
5378
|
"manual"
|
|
5377
|
-
// User-initiated fork without specific trigger
|
|
5378
5379
|
];
|
|
5379
5380
|
var CONFIDENCE_TRIGGERS = [
|
|
5380
5381
|
"evidence_added",
|
|
5381
|
-
// New evidence bore on the belief
|
|
5382
5382
|
"contradiction_detected",
|
|
5383
|
-
// A contradiction was flagged involving this belief
|
|
5384
5383
|
"merge_outcome",
|
|
5385
|
-
|
|
5384
|
+
"worktree_outcome",
|
|
5386
5385
|
"manual",
|
|
5387
|
-
// User manually adjusted confidence
|
|
5388
5386
|
"decay"
|
|
5389
|
-
// Time-based confidence erosion
|
|
5390
5387
|
];
|
|
5391
|
-
var
|
|
5392
|
-
"
|
|
5393
|
-
|
|
5394
|
-
"
|
|
5395
|
-
|
|
5396
|
-
"
|
|
5397
|
-
|
|
5388
|
+
var EPISTEMIC_EDGE_TYPES = [
|
|
5389
|
+
"supports",
|
|
5390
|
+
"informs",
|
|
5391
|
+
"depends_on",
|
|
5392
|
+
"derived_from",
|
|
5393
|
+
"contains",
|
|
5394
|
+
"tests"
|
|
5395
|
+
];
|
|
5396
|
+
var STRUCTURAL_EDGE_TYPES = [
|
|
5397
|
+
"supersedes",
|
|
5398
|
+
"responds_to",
|
|
5399
|
+
"belongs_to",
|
|
5400
|
+
"relates_to_thesis"
|
|
5401
|
+
];
|
|
5402
|
+
var EDGE_TYPES = [
|
|
5403
|
+
...EPISTEMIC_EDGE_TYPES,
|
|
5404
|
+
...STRUCTURAL_EDGE_TYPES
|
|
5398
5405
|
];
|
|
5399
5406
|
var REASONING_METHODS = [
|
|
5400
5407
|
"deductive",
|
|
5401
|
-
// Logically entailed
|
|
5402
5408
|
"inductive",
|
|
5403
|
-
// Generalized from instances
|
|
5404
5409
|
"abductive",
|
|
5405
|
-
// Best explanation inference
|
|
5406
5410
|
"analogical",
|
|
5407
|
-
// Reasoning by analogy
|
|
5408
5411
|
"empirical"
|
|
5409
|
-
// Direct observation/measurement
|
|
5410
5412
|
];
|
|
5411
5413
|
var DEFEAT_TYPES = [
|
|
5412
5414
|
"rebuts",
|
|
5413
|
-
// Direct contradiction — reasons for the negation
|
|
5414
5415
|
"undercuts",
|
|
5415
|
-
// Breaks the inference link between evidence and belief
|
|
5416
5416
|
"undermines"
|
|
5417
|
-
// Attacks a premise the belief depends on
|
|
5418
5417
|
];
|
|
5419
5418
|
var CONTRADICTION_SEVERITIES = [
|
|
5420
5419
|
"low",
|
|
5421
|
-
// Minor tension, may not require action
|
|
5422
5420
|
"medium",
|
|
5423
|
-
// Moderate conflict, should be investigated
|
|
5424
5421
|
"high",
|
|
5425
|
-
// Significant contradiction, likely needs resolution
|
|
5426
5422
|
"critical"
|
|
5427
|
-
// Blocks progress — must be addressed before judgment
|
|
5428
5423
|
];
|
|
5429
5424
|
var CONTRADICTION_STATUSES = [
|
|
5430
5425
|
"unresolved",
|
|
5431
|
-
// Open conflict — may persist indefinitely
|
|
5432
5426
|
"resolved",
|
|
5433
|
-
// Conflict addressed (one belief forked, archived, or confidence adjusted)
|
|
5434
5427
|
"accepted"
|
|
5435
|
-
// Explicitly accepted as irreconcilable — both beliefs maintained
|
|
5436
5428
|
];
|
|
5437
5429
|
var MERGE_OUTCOMES = [
|
|
5438
5430
|
"validated",
|
|
5439
|
-
// Beliefs confirmed — clean merge to main
|
|
5440
5431
|
"invalidated",
|
|
5441
|
-
// Defeat recorded — confidence collapsed (merge with revert)
|
|
5442
5432
|
"forked",
|
|
5443
|
-
// Beliefs split into competing versions (fork from merge point)
|
|
5444
5433
|
"inconclusive"
|
|
5445
|
-
// Insufficient evidence — stashed (git stash)
|
|
5446
5434
|
];
|
|
5447
5435
|
var WORKTREE_PHASES = [
|
|
5448
5436
|
"hypothesis",
|
|
5449
|
-
// Form testable claims (write the code — commits)
|
|
5450
5437
|
"investigation",
|
|
5451
|
-
// Collect evidence (run the tests — more commits)
|
|
5452
5438
|
"evaluation",
|
|
5453
|
-
// Update credences (review the results — amend as needed)
|
|
5454
5439
|
"resolution"
|
|
5455
|
-
// Determine outcome (merge to main, fork, or stash)
|
|
5456
|
-
];
|
|
5457
|
-
var BRANCH_STATUSES = [
|
|
5458
|
-
"dormant",
|
|
5459
|
-
// Branch exists but no active worktree (no one investigating)
|
|
5460
|
-
"active",
|
|
5461
|
-
// At least one worktree is investigating this branch
|
|
5462
|
-
"archived"
|
|
5463
|
-
// Branch retired — no longer a relevant thematic container
|
|
5464
|
-
];
|
|
5465
|
-
var PULL_REQUEST_STATUSES = [
|
|
5466
|
-
"pending_review",
|
|
5467
|
-
// PR opened — awaiting reviewer feedback
|
|
5468
|
-
"changes_requested",
|
|
5469
|
-
// Reviewer requests changes before merge
|
|
5470
|
-
"approved",
|
|
5471
|
-
// Approved — ready to merge
|
|
5472
|
-
"blocked"
|
|
5473
|
-
// Blocked — cannot merge until contradiction is resolved
|
|
5474
5440
|
];
|
|
5475
5441
|
var EPISTEMIC_LAYERS = [
|
|
5476
5442
|
"L1",
|
|
5477
|
-
// Source — the given (vendored deps)
|
|
5478
5443
|
"L2",
|
|
5479
|
-
// Evidence — the interpreted (test suite)
|
|
5480
5444
|
"L3",
|
|
5481
|
-
// Belief — the structural (source files)
|
|
5482
5445
|
"L4"
|
|
5483
|
-
// Judgment — the committed (release tags)
|
|
5484
5446
|
];
|
|
5485
5447
|
var JUDGMENT_TYPES = [
|
|
5486
|
-
"
|
|
5487
|
-
// Judgment that a thesis is mature
|
|
5448
|
+
"thesis",
|
|
5488
5449
|
"thesis_maturity",
|
|
5489
|
-
// Judgment that a thesis is ready for IC presentation
|
|
5490
5450
|
"contradiction_ruling",
|
|
5491
|
-
// Judgment on how to handle an irreconcilable contradiction
|
|
5492
5451
|
"scope_determination",
|
|
5493
|
-
// Judgment that defines or redefines investigation scope
|
|
5494
5452
|
"confidence_ruling"
|
|
5495
|
-
// Judgment that overrides automated confidence for policy reasons
|
|
5496
|
-
];
|
|
5497
|
-
var INTEGRATION_EDGE_TYPES = [
|
|
5498
|
-
// Support relations
|
|
5499
|
-
"informs",
|
|
5500
|
-
// Evidence bears on a belief (weight = direction/strength)
|
|
5501
|
-
"grounds",
|
|
5502
|
-
// Source provides raw basis for evidence
|
|
5503
|
-
"answers",
|
|
5504
|
-
// Evidence or belief resolves a question
|
|
5505
|
-
// Defeat relations (Pollock)
|
|
5506
|
-
"contradicts",
|
|
5507
|
-
// Rebuts — direct contradiction
|
|
5508
|
-
"weakened_by",
|
|
5509
|
-
// Undercuts — breaks inference link
|
|
5510
|
-
"undermined_by",
|
|
5511
|
-
// Undermines — attacks a premise
|
|
5512
|
-
// Structural relations
|
|
5513
|
-
"depends_on",
|
|
5514
|
-
// Belief B requires Belief A
|
|
5515
|
-
"cascades_to",
|
|
5516
|
-
// If A collapses, B collapses
|
|
5517
|
-
"supersedes",
|
|
5518
|
-
// New version replaces old (lineage)
|
|
5519
|
-
"in_tension_with",
|
|
5520
|
-
// Unresolved conflict
|
|
5521
|
-
"implies",
|
|
5522
|
-
// Question raises another question
|
|
5523
|
-
"tests"
|
|
5524
|
-
// Question tests a belief
|
|
5525
5453
|
];
|
|
5526
5454
|
|
|
5527
5455
|
// ../../lucern/contracts/src/lens-workflow.contract.ts
|
|
@@ -8961,6 +8889,6 @@ function getControlObjectOwnershipCase(kind, caseKey) {
|
|
|
8961
8889
|
);
|
|
8962
8890
|
}
|
|
8963
8891
|
|
|
8964
|
-
export { ACTIVATE_WORKTREE, ADD_EVIDENCE, ADD_WORKTREE, ANSWER_QUESTION, APPLY_LENS_TO_TOPIC, APPLY_ONTOLOGY, ARCHIVE_BELIEF, ARCHIVE_ONTOLOGY, ARCHIVE_QUESTION, BELIEF_STATUSES, BISECT_CONFIDENCE,
|
|
8892
|
+
export { ACTIVATE_WORKTREE, ADD_EVIDENCE, ADD_WORKTREE, ANSWER_QUESTION, APPLY_LENS_TO_TOPIC, APPLY_ONTOLOGY, ARCHIVE_BELIEF, ARCHIVE_ONTOLOGY, ARCHIVE_QUESTION, BELIEF_STATUSES, BISECT_CONFIDENCE, CANONICAL_WORKFLOW_DEFINITIONS, CHECK_PERMISSION, COMPILE_CONTEXT, COMPLETE_TASK, CONFIDENCE_TRIGGERS, CONTRADICTION_SEVERITIES, CONTRADICTION_STATUSES, CONTROL_OBJECT_BLAST_RADII, CONTROL_OBJECT_EDIT_SURFACES, CONTROL_OBJECT_INHERITANCE_RULES, CONTROL_OBJECT_KINDS, CONTROL_OBJECT_OWNERSHIP_CONTRACT, CONTROL_OBJECT_OWNERSHIP_MATRIX, CONTROL_OBJECT_OWNERSHIP_ROWS, CONTROL_OBJECT_OWNER_SCOPES, CREATE_ANSWER, CREATE_BELIEF, CREATE_EDGE, CREATE_EPISTEMIC_CONTRACT, CREATE_EVIDENCE, CREATE_LENS, CREATE_ONTOLOGY, CREATE_ONTOLOGY_VERSION, CREATE_QUESTION, CREATE_TASK, CREATE_TOPIC, CustomToolRegistryError, DEFAULT_TIER_APPROVAL_MODE, DEFAULT_WORKFLOW_AUTO_FIX_POLICY, DEFEAT_TYPES, DEPRECATE_ONTOLOGY_VERSION, DETECT_CONFIRMATION_BIAS, EDGE_TYPES, EPISTEMIC_EDGE_TYPES, EPISTEMIC_LAYERS, EXECUTE_DEEP_RESEARCH, FILTER_BY_PERMISSION, FIND_CONTRADICTIONS, FIND_MISSING_QUESTIONS, FLAG_CONTRADICTION, FORK_BELIEF, FORK_REASONS, GET_ANSWER, GET_AUDIT_TRAIL, GET_BELIEF, GET_CHANGE_HISTORY, GET_CODE_CONTEXT, GET_CONFIDENCE_HISTORY, GET_EVIDENCE, GET_FAILURE_LOG, GET_FALSIFICATION_QUESTIONS, GET_GRAPH_GAPS, GET_GRAPH_NEIGHBORHOOD, GET_GRAPH_STRUCTURE_ANALYSIS, GET_HIGH_PRIORITY_QUESTIONS, GET_OBSERVATION_CONTEXT, GET_ONTOLOGY, GET_QUESTION, GET_TOPIC, GET_TOPIC_COVERAGE, GET_TOPIC_TREE, GIT_SEMANTIC_REQUIRED_TOOLS, IDENTITY_WHOAMI, INGEST_OBSERVATION, JUDGMENT_TYPES, LINK_EVIDENCE, LINK_EVIDENCE_TO_BELIEF, LINK_EVIDENCE_TO_QUESTION, LIST_ALL_WORKTREES, LIST_BELIEFS, LIST_EVIDENCE, LIST_LENSES, LIST_ONTOLOGIES, LIST_QUESTIONS, LIST_TASKS, LIST_TOPICS, LIST_WORKTREES, LUCERN_SDK_VERSION, LucernApiError, MANAGE_WRITE_POLICY, MATCH_ENTITY_TYPE, MCP_TOOL_CONTRACTS, MERGE, MERGE_OUTCOMES, MODULATE_CONFIDENCE, MORNING_BRIEF_WORKFLOW_ID, NIGHTLY_RECONCILIATION_WORKFLOW_ID, OPEN_PULL_REQUEST, PUBLISH_ONTOLOGY_VERSION, PUSH, QUERY_LINEAGE, REASONING_METHODS, RECORD_ATTEMPT, RECORD_JUDGMENT, REFINE_BELIEF, REFINE_QUESTION, REMOVE_LENS_FROM_TOPIC, RESOLVE_EFFECTIVE_ONTOLOGY, SEARCH_BELIEFS, SEARCH_EVIDENCE, SEARCH_RESOURCES, SEARCH_SOURCES, STRUCTURAL_EDGE_TYPES, TRACE_ENTITY_IMPACT, TRAVERSE_GRAPH, UPDATE_ONTOLOGY, UPDATE_QUESTION_STATUS, UPDATE_TASK, UPDATE_TOPIC, UPDATE_WORKTREE_METADATA, UPDATE_WORKTREE_TARGETS, WORKFLOW_ACTION_KINDS, WORKFLOW_APPROVAL_MODES, WORKFLOW_AUTO_FIX_MODES, WORKFLOW_HOOK_EVENTS, WORKFLOW_INTEGRITY_CHECKS, WORKFLOW_MUTATION_TIERS, WORKFLOW_OUTPUT_KINDS, WORKFLOW_PROOF_ARTIFACT_KINDS, WORKFLOW_RUNTIME_SCHEMA_VERSION, WORKFLOW_RUN_STATUSES, WORKFLOW_STAFFING_HINTS, WORKFLOW_TRIGGER_KINDS, WORKTREE_PHASES, clearRegisteredCustomTools, createAdminClient, createAnswersClient, createAudiencesClient, createAuditClient, createBeliefsClient, createContextClient, createDecisionsClient, createGatewayRequestClient, createGraphClient, createHarnessClient, createIdentityClient, createLearningClient, createLucernClient, createMcpParityClient, createOntologyClient, createPacksClient, createPolicyClient, createReportsClient, createSchemaClient, createTopicsClient, createWorkflowClient, getControlObjectOwnershipCase, getRegisteredCustomTool, invokeRegisteredCustomTool, listControlObjectOwnershipCases, listRegisteredCustomTools, randomIdempotencyKey, registerCustomTool, toQueryString, unregisterCustomTool, validateGitSemantics };
|
|
8965
8893
|
//# sourceMappingURL=index.js.map
|
|
8966
8894
|
//# sourceMappingURL=index.js.map
|