@lucern/contracts 0.3.0-alpha.6 → 0.3.0-alpha.7

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 (93) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{dsl-BgpoVOVQ.d.ts → dsl-djCRfuWC.d.ts} +1 -1
  3. package/dist/dsl.d.ts +1 -1
  4. package/dist/dsl.js +1 -4
  5. package/dist/dsl.js.map +1 -1
  6. package/dist/{edge-policy-manifest-DpmTtjmm.d.ts → edge-policy-manifest-Byv6cQPP.d.ts} +1 -1
  7. package/dist/function-registry/beliefs.js +73 -10
  8. package/dist/function-registry/beliefs.js.map +1 -1
  9. package/dist/function-registry/coding.js +73 -10
  10. package/dist/function-registry/coding.js.map +1 -1
  11. package/dist/function-registry/context.js +78 -12
  12. package/dist/function-registry/context.js.map +1 -1
  13. package/dist/function-registry/contracts.js +73 -10
  14. package/dist/function-registry/contracts.js.map +1 -1
  15. package/dist/function-registry/coordination.js +73 -10
  16. package/dist/function-registry/coordination.js.map +1 -1
  17. package/dist/function-registry/edges.js +73 -10
  18. package/dist/function-registry/edges.js.map +1 -1
  19. package/dist/function-registry/evidence.js +77 -11
  20. package/dist/function-registry/evidence.js.map +1 -1
  21. package/dist/function-registry/graph.js +73 -10
  22. package/dist/function-registry/graph.js.map +1 -1
  23. package/dist/function-registry/helpers.d.ts +3 -3
  24. package/dist/function-registry/helpers.js +73 -10
  25. package/dist/function-registry/helpers.js.map +1 -1
  26. package/dist/function-registry/identity.js +73 -10
  27. package/dist/function-registry/identity.js.map +1 -1
  28. package/dist/function-registry/index.d.ts +2 -2
  29. package/dist/function-registry/index.js +76 -13
  30. package/dist/function-registry/index.js.map +1 -1
  31. package/dist/function-registry/judgments.js +73 -10
  32. package/dist/function-registry/judgments.js.map +1 -1
  33. package/dist/function-registry/legacy.js +73 -10
  34. package/dist/function-registry/legacy.js.map +1 -1
  35. package/dist/function-registry/lenses.js +73 -10
  36. package/dist/function-registry/lenses.js.map +1 -1
  37. package/dist/function-registry/manifest.d.ts +1 -1
  38. package/dist/function-registry/ontologies.js +73 -10
  39. package/dist/function-registry/ontologies.js.map +1 -1
  40. package/dist/function-registry/pipeline.js +73 -10
  41. package/dist/function-registry/pipeline.js.map +1 -1
  42. package/dist/function-registry/questions.js +73 -10
  43. package/dist/function-registry/questions.js.map +1 -1
  44. package/dist/function-registry/tasks.d.ts +17 -17
  45. package/dist/function-registry/tasks.js +117 -12
  46. package/dist/function-registry/tasks.js.map +1 -1
  47. package/dist/function-registry/topics.js +73 -10
  48. package/dist/function-registry/topics.js.map +1 -1
  49. package/dist/function-registry/types.d.ts +1 -1
  50. package/dist/function-registry/worktrees.js +81 -13
  51. package/dist/function-registry/worktrees.js.map +1 -1
  52. package/dist/function-registry-input-audit.js +4 -2
  53. package/dist/function-registry-input-audit.js.map +1 -1
  54. package/dist/index.d.ts +5 -5
  55. package/dist/index.js +100 -12
  56. package/dist/index.js.map +1 -1
  57. package/dist/infisical-runtime.contract.js +5 -0
  58. package/dist/infisical-runtime.contract.js.map +1 -1
  59. package/dist/lens-filter.contract.js +4 -3
  60. package/dist/lens-filter.contract.js.map +1 -1
  61. package/dist/lens-workflow.contract.js +4 -3
  62. package/dist/lens-workflow.contract.js.map +1 -1
  63. package/dist/manifests/edge-policy-manifest.d.ts +1 -1
  64. package/dist/manifests/infisical-runtime-manifest.js +5 -0
  65. package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
  66. package/dist/manifests/tenant-client-manifest.d.ts +20 -1
  67. package/dist/manifests/tenant-client-manifest.js +23 -0
  68. package/dist/manifests/tenant-client-manifest.js.map +1 -1
  69. package/dist/projections/check-convex-args-shape.js +4 -1
  70. package/dist/projections/check-convex-args-shape.js.map +1 -1
  71. package/dist/projections/create-evidence.projection.js +4 -1
  72. package/dist/projections/create-evidence.projection.js.map +1 -1
  73. package/dist/projections/index.js +4 -1
  74. package/dist/projections/index.js.map +1 -1
  75. package/dist/schema-helpers/enumValidation.js +2 -5
  76. package/dist/schema-helpers/enumValidation.js.map +1 -1
  77. package/dist/schema-helpers/spine/nodes/decision.js +2 -1
  78. package/dist/schema-helpers/spine/nodes/decision.js.map +1 -1
  79. package/dist/schema-helpers/spine/tables/epistemicNodes.js +27 -27
  80. package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -1
  81. package/dist/sdk-methods.contract.d.ts +1 -1
  82. package/dist/{sdk-tools.contract-Ng8ULxjr.d.ts → sdk-tools.contract-Ci8bkoai.d.ts} +2 -2
  83. package/dist/sdk-tools.contract.d.ts +2 -2
  84. package/dist/sdk-tools.contract.js +72 -7
  85. package/dist/sdk-tools.contract.js.map +1 -1
  86. package/dist/tenant-client.contract.d.ts +20 -1
  87. package/dist/tenant-client.contract.js +23 -0
  88. package/dist/tenant-client.contract.js.map +1 -1
  89. package/dist/{tool-contracts-CYXVPN4K.d.ts → tool-contracts-B4iWhejG.d.ts} +1 -1
  90. package/dist/tool-contracts.d.ts +1 -1
  91. package/dist/tool-contracts.js +72 -7
  92. package/dist/tool-contracts.js.map +1 -1
  93. package/package.json +1 -1
@@ -22,11 +22,11 @@ export { codingContracts } from './coding.js';
22
22
  export { legacyContracts } from './legacy.js';
23
23
  import 'zod';
24
24
  import '../defineFunction-DO97DKs4.js';
25
- import '../tool-contracts-CYXVPN4K.js';
25
+ import '../tool-contracts-B4iWhejG.js';
26
26
 
27
27
  declare const ALL_FUNCTION_CONTRACTS: readonly FunctionContract[];
28
28
  declare const FUNCTION_SURFACE_CONTRACTS: readonly FunctionContract[];
29
29
  declare const FUNCTION_CONTRACTS_BY_NAME: Map<string, FunctionContract>;
30
- declare function getFunctionContract(name: string): FunctionContract | undefined;
30
+ declare const getFunctionContract: (name: string) => FunctionContract | undefined;
31
31
 
32
32
  export { ALL_FUNCTION_CONTRACTS, FUNCTION_CONTRACTS_BY_NAME, FUNCTION_SURFACE_CONTRACTS, FunctionContract, getFunctionContract };
@@ -464,9 +464,16 @@ var ADD_WORKTREE = {
464
464
  },
465
465
  projectId: {
466
466
  type: "string",
467
- description: "Legacy topicId alias"
467
+ description: "Legacy topicId alias or resolver hint"
468
+ },
469
+ topicId: {
470
+ type: "string",
471
+ description: "Optional topic scope hint for resolver validation"
472
+ },
473
+ topicHint: {
474
+ type: "string",
475
+ description: "Natural-language topic hint for automatic topic resolution"
468
476
  },
469
- topicId: { type: "string", description: "Optional topic scope hint" },
470
477
  branchId: {
471
478
  type: "string",
472
479
  description: "The branch this worktree investigates"
@@ -564,6 +571,22 @@ var ADD_WORKTREE = {
564
571
  type: "string",
565
572
  description: "Optional domain pack whose shaping hooks should influence generated questions and tasks"
566
573
  },
574
+ tags: {
575
+ type: "array",
576
+ description: "Additional topic-resolution tags for the worktree"
577
+ },
578
+ touchedPaths: {
579
+ type: "array",
580
+ description: "File paths used as topic-resolution signals"
581
+ },
582
+ sourceRef: {
583
+ type: "string",
584
+ description: "Source reference used as a topic-resolution signal"
585
+ },
586
+ sourceKind: {
587
+ type: "string",
588
+ description: "Source kind used as a topic-resolution signal"
589
+ },
567
590
  campaign: {
568
591
  type: "number",
569
592
  description: "Top-level pipeline campaign number. Campaigns define the outer execution slice."
@@ -601,7 +624,7 @@ var ADD_WORKTREE = {
601
624
  description: "Timestamp when worktree metadata was last reconciled"
602
625
  }
603
626
  },
604
- required: ["title", "topicId"],
627
+ required: ["title"],
605
628
  response: {
606
629
  description: "The created worktree",
607
630
  fields: {
@@ -2304,18 +2327,60 @@ var CREATE_TASK = {
2304
2327
  name: "create_task",
2305
2328
  description: "Create an execution task tied to the reasoning state. Like `git task` \u2014 tracks concrete work items (calls to make, data to gather, analyses to run) linked to questions, beliefs, or worktrees.",
2306
2329
  parameters: {
2307
- title: { type: "string", description: "Task description" },
2330
+ title: { type: "string", description: "Task title" },
2308
2331
  topicId: { type: "string", description: "Topic scope" },
2332
+ description: {
2333
+ type: "string",
2334
+ description: "Long-form task description"
2335
+ },
2309
2336
  taskType: {
2310
2337
  type: "string",
2311
- description: "Type: research, interview, analysis, data_collection",
2312
- enum: ["research", "interview", "analysis", "data_collection"]
2338
+ description: "Task taxonomy",
2339
+ enum: [
2340
+ "general",
2341
+ "find_evidence",
2342
+ "verify_claim",
2343
+ "research",
2344
+ "review",
2345
+ "interview",
2346
+ "analysis",
2347
+ "track_metrics"
2348
+ ]
2349
+ },
2350
+ priority: {
2351
+ type: "string",
2352
+ description: "Priority",
2353
+ enum: ["urgent", "high", "medium", "low"]
2354
+ },
2355
+ status: {
2356
+ type: "string",
2357
+ description: "Initial status (defaults to todo)",
2358
+ enum: ["todo", "in_progress", "blocked", "done"]
2359
+ },
2360
+ linkedWorktreeId: {
2361
+ type: "string",
2362
+ description: "Worktree this task belongs to"
2363
+ },
2364
+ linkedBeliefId: {
2365
+ type: "string",
2366
+ description: "Belief this task supports"
2313
2367
  },
2314
2368
  linkedQuestionId: {
2315
2369
  type: "string",
2316
2370
  description: "Question this task addresses"
2317
2371
  },
2318
- linkedWorktreeId: { type: "string", description: "Worktree scope" }
2372
+ assigneeId: {
2373
+ type: "string",
2374
+ description: "Principal assigned to the task"
2375
+ },
2376
+ dueDate: {
2377
+ type: "number",
2378
+ description: "Due date as epoch milliseconds"
2379
+ },
2380
+ tags: {
2381
+ type: "array",
2382
+ description: "Free-form string tags"
2383
+ }
2319
2384
  },
2320
2385
  required: ["title"],
2321
2386
  response: {
@@ -4438,9 +4503,7 @@ function mcpContractFromArgsSchema(base, args, contractName) {
4438
4503
  required: converted.filter(([, field]) => field.required).map(([fieldName]) => fieldName)
4439
4504
  };
4440
4505
  }
4441
- function defineFunctionContract(contract) {
4442
- return contract;
4443
- }
4506
+ var defineFunctionContract = (contract) => contract;
4444
4507
  function classifyContract(contract, surfaceClass) {
4445
4508
  return {
4446
4509
  ...contract,
@@ -4600,9 +4663,9 @@ var FUNCTION_SURFACE_CONTRACTS = ALL_FUNCTION_CONTRACTS;
4600
4663
  var FUNCTION_CONTRACTS_BY_NAME = new Map(
4601
4664
  ALL_FUNCTION_CONTRACTS.map((contract) => [contract.name, contract])
4602
4665
  );
4603
- function getFunctionContract(name) {
4604
- return FUNCTION_CONTRACTS_BY_NAME.get(name);
4605
- }
4666
+ var getFunctionContract = FUNCTION_CONTRACTS_BY_NAME.get.bind(
4667
+ FUNCTION_CONTRACTS_BY_NAME
4668
+ );
4606
4669
 
4607
4670
  export { ALL_FUNCTION_CONTRACTS, DUPLICATE_OPERATION_NAMES, FORBIDDEN_APPLICATION_OPERATION_NAMES, FUNCTION_CONTRACTS_BY_NAME, FUNCTION_SURFACE_CONTRACTS, LEGACY_COMPAT_OPERATION_NAMES, LUCERN_OPERATION_MANIFEST, MCP_ANALYSIS_PLATFORM_OPERATION_NAMES, MCP_ANALYSIS_TENANT_OPERATION_NAMES, MCP_AUTOMATION_OPERATION_NAMES, MCP_CORE_OPERATION_NAMES, MCP_GOVERNANCE_PLATFORM_OPERATION_NAMES, MCP_GOVERNANCE_TENANT_OPERATION_NAMES, MCP_ONLY_INTERNAL_OPERATION_NAMES, MCP_WORKFLOW_PLATFORM_OPERATION_NAMES, MCP_WORKFLOW_TENANT_OPERATION_NAMES, PLATFORM_INTERNAL_OPERATION_NAMES, PLATFORM_PUBLIC_OPERATION_NAMES, SDK_ONLY_OPERATION_NAMES, TENANT_PUBLIC_OPERATION_NAMES, argsSchemaFromMcpContract, assertSurfaceCoverage, authUserId, classifyContract, compactRecord, defineFunctionContract, getFunctionContract, inputSchemaFromMcpContract, jsonObjectSchema, recordValue, surfaceContract, surfaceEnabled, surfaceIntentGateViolations, surfaceMcpContract, withCreatedBy, withUserId };
4608
4671
  //# sourceMappingURL=index.js.map