@lucern/sdk 0.2.0-alpha.9 → 0.3.0-alpha.0

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.
Files changed (101) hide show
  1. package/README.md +6 -0
  2. package/dist/adminClient.d.ts +15 -9
  3. package/dist/adminClient.js.map +1 -1
  4. package/dist/audience/index.d.ts +38 -0
  5. package/dist/audience/index.js +110 -0
  6. package/dist/audience/index.js.map +1 -0
  7. package/dist/beliefs/index.d.ts +463 -0
  8. package/dist/beliefs/index.js +6694 -0
  9. package/dist/beliefs/index.js.map +1 -0
  10. package/dist/beliefs/lifecycle.d.ts +24 -0
  11. package/dist/beliefs/lifecycle.js +98 -0
  12. package/dist/beliefs/lifecycle.js.map +1 -0
  13. package/dist/beliefsClient.d.ts +91 -12
  14. package/dist/beliefsClient.js +176 -7
  15. package/dist/beliefsClient.js.map +1 -1
  16. package/dist/client-DAuKnDlx.d.ts +2547 -0
  17. package/dist/client.d.ts +31 -2377
  18. package/dist/client.js +783 -245
  19. package/dist/client.js.map +1 -1
  20. package/dist/contracts/api-enums.contract.d.ts +1 -1
  21. package/dist/contracts/api-enums.contract.js +8 -2
  22. package/dist/contracts/api-enums.contract.js.map +1 -1
  23. package/dist/contracts/index.d.ts +4 -2
  24. package/dist/contracts/index.js +118 -4282
  25. package/dist/contracts/index.js.map +1 -1
  26. package/dist/contracts/mcpTools.d.ts +2 -1
  27. package/dist/contracts/mcpTools.js +22 -2981
  28. package/dist/contracts/mcpTools.js.map +1 -1
  29. package/dist/contracts/sdk-tools.contract.d.ts +1 -2
  30. package/dist/contracts/sdk-tools.contract.js +1 -4132
  31. package/dist/contracts/sdk-tools.contract.js.map +1 -1
  32. package/dist/contracts/sdkTools.d.ts +1 -2
  33. package/dist/contracts/sdkTools.js +20 -4127
  34. package/dist/contracts/sdkTools.js.map +1 -1
  35. package/dist/contracts/tool-contracts.d.ts +1 -0
  36. package/dist/contracts/tool-contracts.js +3 -0
  37. package/dist/contracts/tool-contracts.js.map +1 -0
  38. package/dist/contradictions/index.d.ts +156 -0
  39. package/dist/contradictions/index.js +6688 -0
  40. package/dist/contradictions/index.js.map +1 -0
  41. package/dist/customTools.d.ts +1 -1
  42. package/dist/decisions/index.d.ts +66 -0
  43. package/dist/decisions/index.js +6690 -0
  44. package/dist/decisions/index.js.map +1 -0
  45. package/dist/edges/index.d.ts +202 -0
  46. package/dist/edges/index.js +6689 -0
  47. package/dist/edges/index.js.map +1 -0
  48. package/dist/events.js +7 -5
  49. package/dist/events.js.map +1 -1
  50. package/dist/evidence/index.d.ts +293 -0
  51. package/dist/evidence/index.js +6689 -0
  52. package/dist/evidence/index.js.map +1 -0
  53. package/dist/evidenceClient.d.ts +119 -0
  54. package/dist/evidenceClient.js +350 -0
  55. package/dist/evidenceClient.js.map +1 -0
  56. package/dist/gatewayFacades.d.ts +8 -10
  57. package/dist/gatewayFacades.js +54 -1
  58. package/dist/gatewayFacades.js.map +1 -1
  59. package/dist/identityClient.d.ts +3 -3
  60. package/dist/identityClient.js.map +1 -1
  61. package/dist/index.d.ts +7 -6
  62. package/dist/index.js +1092 -3294
  63. package/dist/index.js.map +1 -1
  64. package/dist/lenses/index.d.ts +192 -0
  65. package/dist/lenses/index.js +6688 -0
  66. package/dist/lenses/index.js.map +1 -0
  67. package/dist/nodes/index.d.ts +61 -0
  68. package/dist/nodes/index.js +6690 -0
  69. package/dist/nodes/index.js.map +1 -0
  70. package/dist/ontologies/index.d.ts +179 -0
  71. package/dist/ontologies/index.js +6691 -0
  72. package/dist/ontologies/index.js.map +1 -0
  73. package/dist/opinion.d.ts +11 -0
  74. package/dist/opinion.js +35 -0
  75. package/dist/opinion.js.map +1 -0
  76. package/dist/questions/index.d.ts +295 -0
  77. package/dist/questions/index.js +6691 -0
  78. package/dist/questions/index.js.map +1 -0
  79. package/dist/sdk-tools.contract-B4c1Zr1o.d.ts +22 -0
  80. package/dist/sourcesClient.d.ts +24 -0
  81. package/dist/{mcpParityClient.js → sourcesClient.js} +15 -192
  82. package/dist/sourcesClient.js.map +1 -0
  83. package/dist/tool-contracts-BUiL9P6z.d.ts +22 -0
  84. package/dist/topics/index.d.ts +66 -0
  85. package/dist/topics/index.js +6689 -0
  86. package/dist/topics/index.js.map +1 -0
  87. package/dist/types.d.ts +20 -1
  88. package/dist/worktrees/index.d.ts +208 -0
  89. package/dist/worktrees/index.js +6691 -0
  90. package/dist/worktrees/index.js.map +1 -0
  91. package/package.json +55 -3
  92. package/dist/contracts/mcp-tools.contract.d.ts +0 -1
  93. package/dist/contracts/mcp-tools.contract.js +0 -2986
  94. package/dist/contracts/mcp-tools.contract.js.map +0 -1
  95. package/dist/mcpParityClient.d.ts +0 -74
  96. package/dist/mcpParityClient.js.map +0 -1
  97. package/dist/mcpParitySurface.d.ts +0 -12
  98. package/dist/mcpParitySurface.js +0 -65
  99. package/dist/mcpParitySurface.js.map +0 -1
  100. package/dist/mcpTools-DPZxowDX.d.ts +0 -254
  101. package/dist/sdkTools-CwXJDACb.d.ts +0 -150
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { M as McpToolContract } from './mcpTools-DPZxowDX.js';
2
+ import { McpToolContract } from '@lucern/contracts/tool-contracts';
3
3
  import { JsonObject } from './types.js';
4
4
  import './contracts/workflow-runtime.contract.js';
5
5
  import './contracts/lens-workflow.contract.js';
@@ -0,0 +1,66 @@
1
+ import { PlatformGatewaySuccess } from '../coreClient.js';
2
+ import { RecordJudgmentResponse, GetJudgmentResponse, ListJudgmentsResponse, RecordJudgmentOutcomeResponse, JudgmentReadinessResponse, JudgmentCalibrationResponse, ListResult, PendingJudgmentOutcomeRecord, JudgmentTransitionAuditIntegrityResponse } from '../types.js';
3
+ import { RecordJudgmentInput, ListJudgmentsInput, RecordJudgmentOutcomeInput } from '../decisionsClient.js';
4
+ import { L as LucernClientConfig } from '../client-DAuKnDlx.js';
5
+ import * as sdkMethods_contract from '@lucern/contracts/sdk-methods.contract';
6
+ export { sdkMethods_contract as methodSchemas };
7
+ import * as toolContracts from '@lucern/contracts/tool-contracts';
8
+ export { toolContracts as toolSchemas };
9
+ import '../contracts/workflow-runtime.contract.js';
10
+ import '../contracts/lens-workflow.contract.js';
11
+ import '../contracts/lens-filter.contract.js';
12
+ import '../audiencesClient.js';
13
+ import '../schemaClient.js';
14
+ import '../harnessClient.js';
15
+ import '../identityClient.js';
16
+ import '../adminClient.js';
17
+ import '../controlObjectOwnership.js';
18
+ import '../beliefsClient.js';
19
+ import '../opinion.js';
20
+ import '../packsClient.js';
21
+ import '../customTools.js';
22
+ import 'zod';
23
+ import '../policyClient.js';
24
+ import '../ontologyClient.js';
25
+ import '../contextTypes.js';
26
+ import '../topicsClient.js';
27
+ import '../answersClient.js';
28
+ import '../auditClient.js';
29
+ import '../contextClient.js';
30
+ import '../evidenceClient.js';
31
+ import '../graphClient.js';
32
+ import '../learningClient.js';
33
+ import '../reportsClient.js';
34
+ import '../sourcesClient.js';
35
+ import '../workflowClient.js';
36
+
37
+ type DecisionsClientConfig = LucernClientConfig;
38
+ type DecisionsClient = ReturnType<typeof createDecisionsClient>;
39
+ declare function createDecisionsClient(config?: DecisionsClientConfig): {
40
+ createDecision: (input: RecordJudgmentInput) => Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
41
+ getDecision: (judgmentId: string) => Promise<PlatformGatewaySuccess<GetJudgmentResponse>>;
42
+ listDecisions: (query: Parameters<(query: ListJudgmentsInput) => Promise<PlatformGatewaySuccess<ListJudgmentsResponse>>>[0]) => Promise<PlatformGatewaySuccess<ListJudgmentsResponse>>;
43
+ recordDecisionOutcome: (judgmentId: string, input: Parameters<(judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>>[1]) => Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
44
+ updateDecisionOutcome: (judgmentId: string, input: Parameters<(judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>>[1]) => Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
45
+ getDecisionReadiness: (topicId: string) => Promise<PlatformGatewaySuccess<JudgmentReadinessResponse>>;
46
+ getDecisionCalibration: (topicId: string) => Promise<PlatformGatewaySuccess<JudgmentCalibrationResponse>>;
47
+ listPendingDecisionOutcomeReviews: (topicId: string) => Promise<PlatformGatewaySuccess<ListResult<PendingJudgmentOutcomeRecord, "reviews">>>;
48
+ raw: {
49
+ create(input: RecordJudgmentInput): Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
50
+ record(input: RecordJudgmentInput): Promise<PlatformGatewaySuccess<RecordJudgmentResponse>>;
51
+ list(query: Parameters<(query: ListJudgmentsInput) => Promise<PlatformGatewaySuccess<ListJudgmentsResponse>>>[0]): Promise<PlatformGatewaySuccess<ListJudgmentsResponse>>;
52
+ get(judgmentId: string): Promise<PlatformGatewaySuccess<GetJudgmentResponse>>;
53
+ recordOutcome(judgmentId: string, input: Parameters<(judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>>[1]): Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
54
+ updateOutcome(judgmentId: string, input: Parameters<(judgmentId: string, input: RecordJudgmentOutcomeInput, idempotencyKey?: string) => Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>>[1]): Promise<PlatformGatewaySuccess<RecordJudgmentOutcomeResponse>>;
55
+ readiness(topicId: string): Promise<PlatformGatewaySuccess<JudgmentReadinessResponse>>;
56
+ calibration(topicId: string): Promise<PlatformGatewaySuccess<JudgmentCalibrationResponse>>;
57
+ pendingOutcomeReview(topicId: string): Promise<PlatformGatewaySuccess<ListResult<PendingJudgmentOutcomeRecord, "reviews">>>;
58
+ transitionAuditIntegrity(args: {
59
+ topicId?: string;
60
+ judgmentId?: string;
61
+ includePassing?: boolean;
62
+ }): Promise<PlatformGatewaySuccess<JudgmentTransitionAuditIntegrityResponse>>;
63
+ };
64
+ };
65
+
66
+ export { type DecisionsClient, type DecisionsClientConfig, createDecisionsClient };