@proposit/proposit-core 0.11.1 → 0.12.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 (142) hide show
  1. package/README.md +117 -57
  2. package/dist/cli/commands/arguments.d.ts.map +1 -1
  3. package/dist/cli/commands/arguments.js +13 -16
  4. package/dist/cli/commands/arguments.js.map +1 -1
  5. package/dist/cli/commands/axioms.d.ts +3 -0
  6. package/dist/cli/commands/axioms.d.ts.map +1 -0
  7. package/dist/cli/commands/axioms.js +91 -0
  8. package/dist/cli/commands/axioms.js.map +1 -0
  9. package/dist/cli/commands/citations.d.ts.map +1 -1
  10. package/dist/cli/commands/citations.js +27 -25
  11. package/dist/cli/commands/citations.js.map +1 -1
  12. package/dist/cli/commands/claims.d.ts.map +1 -1
  13. package/dist/cli/commands/claims.js +35 -5
  14. package/dist/cli/commands/claims.js.map +1 -1
  15. package/dist/cli/commands/parse.d.ts.map +1 -1
  16. package/dist/cli/commands/parse.js +3 -4
  17. package/dist/cli/commands/parse.js.map +1 -1
  18. package/dist/cli/commands/premises.d.ts.map +1 -1
  19. package/dist/cli/commands/premises.js +8 -7
  20. package/dist/cli/commands/premises.js.map +1 -1
  21. package/dist/cli/commands/render.d.ts.map +1 -1
  22. package/dist/cli/commands/render.js +43 -18
  23. package/dist/cli/commands/render.js.map +1 -1
  24. package/dist/cli/engine.d.ts.map +1 -1
  25. package/dist/cli/engine.js +11 -4
  26. package/dist/cli/engine.js.map +1 -1
  27. package/dist/cli/import.d.ts.map +1 -1
  28. package/dist/cli/import.js +27 -3
  29. package/dist/cli/import.js.map +1 -1
  30. package/dist/cli/router.d.ts.map +1 -1
  31. package/dist/cli/router.js +1 -0
  32. package/dist/cli/router.js.map +1 -1
  33. package/dist/cli/schemata.d.ts +30 -0
  34. package/dist/cli/schemata.d.ts.map +1 -1
  35. package/dist/cli/schemata.js +37 -0
  36. package/dist/cli/schemata.js.map +1 -1
  37. package/dist/cli/storage/libraries.d.ts +7 -2
  38. package/dist/cli/storage/libraries.d.ts.map +1 -1
  39. package/dist/cli/storage/libraries.js +25 -6
  40. package/dist/cli/storage/libraries.js.map +1 -1
  41. package/dist/cli/storage/migrate-v0.10.js +3 -3
  42. package/dist/cli/storage/migrate-v0.10.js.map +1 -1
  43. package/dist/cli/storage/migrate-v0.12.d.ts +24 -0
  44. package/dist/cli/storage/migrate-v0.12.d.ts.map +1 -0
  45. package/dist/cli/storage/migrate-v0.12.js +141 -0
  46. package/dist/cli/storage/migrate-v0.12.js.map +1 -0
  47. package/dist/cli.js +2 -0
  48. package/dist/cli.js.map +1 -1
  49. package/dist/extensions/basics/schemata.d.ts +1 -1
  50. package/dist/extensions/ieee/citation-claim.d.ts +1 -1
  51. package/dist/lib/consts.d.ts.map +1 -1
  52. package/dist/lib/consts.js +13 -4
  53. package/dist/lib/consts.js.map +1 -1
  54. package/dist/lib/core/argument-engine.d.ts +20 -7
  55. package/dist/lib/core/argument-engine.d.ts.map +1 -1
  56. package/dist/lib/core/argument-engine.js +79 -10
  57. package/dist/lib/core/argument-engine.js.map +1 -1
  58. package/dist/lib/core/argument-library.d.ts +11 -13
  59. package/dist/lib/core/argument-library.d.ts.map +1 -1
  60. package/dist/lib/core/argument-library.js +7 -23
  61. package/dist/lib/core/argument-library.js.map +1 -1
  62. package/dist/lib/core/claim-axiom-library.d.ts +38 -0
  63. package/dist/lib/core/claim-axiom-library.d.ts.map +1 -0
  64. package/dist/lib/core/claim-axiom-library.js +236 -0
  65. package/dist/lib/core/claim-axiom-library.js.map +1 -0
  66. package/dist/lib/core/claim-citation-library.d.ts +11 -12
  67. package/dist/lib/core/claim-citation-library.d.ts.map +1 -1
  68. package/dist/lib/core/claim-citation-library.js +111 -107
  69. package/dist/lib/core/claim-citation-library.js.map +1 -1
  70. package/dist/lib/core/claim-library.d.ts +1 -1
  71. package/dist/lib/core/evaluation/argument-evaluation.d.ts +13 -0
  72. package/dist/lib/core/evaluation/argument-evaluation.d.ts.map +1 -1
  73. package/dist/lib/core/evaluation/argument-evaluation.js +25 -1
  74. package/dist/lib/core/evaluation/argument-evaluation.js.map +1 -1
  75. package/dist/lib/core/fork.d.ts +4 -6
  76. package/dist/lib/core/fork.d.ts.map +1 -1
  77. package/dist/lib/core/fork.js +3 -8
  78. package/dist/lib/core/fork.js.map +1 -1
  79. package/dist/lib/core/interfaces/index.d.ts +1 -1
  80. package/dist/lib/core/interfaces/index.d.ts.map +1 -1
  81. package/dist/lib/core/interfaces/library.interfaces.d.ts +65 -60
  82. package/dist/lib/core/interfaces/library.interfaces.d.ts.map +1 -1
  83. package/dist/lib/core/managed-derivation-premise-engine.d.ts +35 -21
  84. package/dist/lib/core/managed-derivation-premise-engine.d.ts.map +1 -1
  85. package/dist/lib/core/managed-derivation-premise-engine.js +95 -76
  86. package/dist/lib/core/managed-derivation-premise-engine.js.map +1 -1
  87. package/dist/lib/core/proposit-core.d.ts +19 -14
  88. package/dist/lib/core/proposit-core.d.ts.map +1 -1
  89. package/dist/lib/core/proposit-core.js +95 -39
  90. package/dist/lib/core/proposit-core.js.map +1 -1
  91. package/dist/lib/index.d.ts +2 -1
  92. package/dist/lib/index.d.ts.map +1 -1
  93. package/dist/lib/index.js +2 -1
  94. package/dist/lib/index.js.map +1 -1
  95. package/dist/lib/parsing/argument-parser.d.ts +2 -2
  96. package/dist/lib/parsing/argument-parser.d.ts.map +1 -1
  97. package/dist/lib/parsing/argument-parser.js +6 -6
  98. package/dist/lib/parsing/argument-parser.js.map +1 -1
  99. package/dist/lib/parsing/prompt-builder.d.ts.map +1 -1
  100. package/dist/lib/parsing/prompt-builder.js +7 -5
  101. package/dist/lib/parsing/prompt-builder.js.map +1 -1
  102. package/dist/lib/parsing/schemata.d.ts +4 -4
  103. package/dist/lib/parsing/schemata.d.ts.map +1 -1
  104. package/dist/lib/parsing/schemata.js +1 -0
  105. package/dist/lib/parsing/schemata.js.map +1 -1
  106. package/dist/lib/schemata/claim-axiom.d.ts +11 -0
  107. package/dist/lib/schemata/claim-axiom.d.ts.map +1 -0
  108. package/dist/lib/schemata/claim-axiom.js +9 -0
  109. package/dist/lib/schemata/claim-axiom.js.map +1 -0
  110. package/dist/lib/schemata/claim-citation.d.ts +4 -4
  111. package/dist/lib/schemata/claim-citation.d.ts.map +1 -1
  112. package/dist/lib/schemata/claim-citation.js +3 -19
  113. package/dist/lib/schemata/claim-citation.js.map +1 -1
  114. package/dist/lib/schemata/claim-connection.d.ts +11 -0
  115. package/dist/lib/schemata/claim-connection.d.ts.map +1 -0
  116. package/dist/lib/schemata/claim-connection.js +25 -0
  117. package/dist/lib/schemata/claim-connection.js.map +1 -0
  118. package/dist/lib/schemata/claim.d.ts +1 -1
  119. package/dist/lib/schemata/claim.d.ts.map +1 -1
  120. package/dist/lib/schemata/claim.js +6 -2
  121. package/dist/lib/schemata/claim.js.map +1 -1
  122. package/dist/lib/schemata/import.d.ts +2 -2
  123. package/dist/lib/schemata/import.d.ts.map +1 -1
  124. package/dist/lib/schemata/import.js +5 -1
  125. package/dist/lib/schemata/import.js.map +1 -1
  126. package/dist/lib/schemata/index.d.ts +2 -0
  127. package/dist/lib/schemata/index.d.ts.map +1 -1
  128. package/dist/lib/schemata/index.js +2 -0
  129. package/dist/lib/schemata/index.js.map +1 -1
  130. package/dist/lib/types/checksum.d.ts +3 -1
  131. package/dist/lib/types/checksum.d.ts.map +1 -1
  132. package/dist/lib/types/evaluation.d.ts +12 -0
  133. package/dist/lib/types/evaluation.d.ts.map +1 -1
  134. package/dist/lib/types/validation.d.ts +13 -4
  135. package/dist/lib/types/validation.d.ts.map +1 -1
  136. package/dist/lib/types/validation.js +15 -3
  137. package/dist/lib/types/validation.js.map +1 -1
  138. package/dist/lib/utils/lookup.d.ts +10 -4
  139. package/dist/lib/utils/lookup.d.ts.map +1 -1
  140. package/dist/lib/utils/lookup.js +13 -7
  141. package/dist/lib/utils/lookup.js.map +1 -1
  142. package/package.json +1 -1
package/README.md CHANGED
@@ -184,13 +184,13 @@ const citationClaim = core.claims.create({
184
184
  text: "Aristotle, Categories, ~350 BCE",
185
185
  })
186
186
 
187
- // Cite the citation claim from the normal claim
188
- core.claimCitations.add({
187
+ // Cite the citation claim as supporting the normal claim
188
+ core.citations.add({
189
189
  id: "edge-1",
190
- citingClaimId: claim.id,
191
- citingClaimVersion: claim.version,
192
- sourceClaimId: citationClaim.id,
193
- sourceClaimVersion: citationClaim.version,
190
+ claimId: claim.id,
191
+ claimVersion: claim.version,
192
+ supportingClaimId: citationClaim.id,
193
+ supportingClaimVersion: citationClaim.version,
194
194
  })
195
195
 
196
196
  // Create an argument engine — libraries are wired automatically
@@ -212,23 +212,45 @@ const snapshot = core.snapshot()
212
212
  const restored = PropositCore.fromSnapshot(snapshot)
213
213
  ```
214
214
 
215
- `PropositCore` is designed for subclassing. All library fields (`claims`, `claimCitations`, `forks`, `arguments`) are public and readable. Pass pre-constructed library instances via `TPropositCoreOptions` to inject custom implementations.
215
+ `PropositCore` is designed for subclassing. All library fields (`claims`, `citations`, `axioms`, `forks`, `arguments`) are public and readable. Pass pre-constructed library instances via `TPropositCoreOptions` to inject custom implementations.
216
216
 
217
217
  ### No application metadata
218
218
 
219
219
  The core library does not deal in user IDs, timestamps, or display text. These are application-level concerns. The CLI adds some metadata (e.g., `createdAt`, `publishedAt`) for its own purposes, but the core schemas are intentionally minimal. Applications extend core entity types via generic parameters.
220
220
 
221
- ### Claims and citations
221
+ ### Claims, citations, and axioms
222
222
 
223
- Every claim in the unified `ClaimLibrary` carries an immutable `type: 'normal' | 'citation'` discriminator set at creation:
223
+ Every claim in the unified `ClaimLibrary` carries an immutable `type: 'normal' | 'citation' | 'axiomatic'` discriminator set at creation:
224
224
 
225
225
  - **Normal claims** (`type: 'normal'`) are primary-reasoning propositions referenced by an argument's variables.
226
226
  - **Citation claims** (`type: 'citation'`) represent external/cited content — papers, articles, URLs. They are the v0.10.0 unified replacement for the former separate `Source` entity. Application schemas (e.g. the IEEE extension) extend citation claims with structured reference data.
227
+ - **Axiomatic claims** (`type: 'axiomatic'`, added in v0.12.0) represent self-evident propositions invoked as the bottom-level "proof" of a derived claim's truth — propositions that hold by definition, by historical convention, or by logical necessity. Axiomatic claim-bound variables are forced to `true` during evaluation (see "Evaluation semantics by claim type" below). Application layers attach a reason discriminator via the open `additionalProperties` slot — for example, the CLI schema requires `reasonCode: 'true-by-definition' | 'historically-established' | 'logically-required'`.
227
228
 
228
- Citations between claims are managed by `ClaimCitationLibrary<TCitation>` — a standalone global class that stores directed edges in the global claim citation graph. Each citation pins both endpoints to specific claim versions (`citingClaimId@citingClaimVersion → sourceClaimId@sourceClaimVersion`). The source-side endpoint must reference a claim with `type: 'citation'`. Citations are immutable (create or delete, no update). `ClaimCitationLibrary` validates both endpoints, the source-side type, and global graph acyclicity on `add()`.
229
+ Two parallel **connection libraries** track the support edges between claims:
230
+
231
+ - `ClaimCitationLibrary<TCitation>` — stores citation connections (`claimId → supportingClaimId`). The supporting-side endpoint must reference a claim with `type: 'citation'`. `ClaimCitationLibrary` validates both endpoints, the supporting-side type, and global-graph acyclicity on `add()`.
232
+ - `ClaimAxiomLibrary<TAxiom>` (v0.12.0) — stores axiom-invocation connections (`claimId → supportingClaimId`). The supporting-side endpoint must reference a claim with `type: 'axiomatic'` and the dependent-side endpoint must reference a claim with `type: 'normal'`. `ClaimAxiomLibrary` skips cycle detection — cycles are structurally impossible because axiomatic claims cannot appear on the dependent side.
233
+
234
+ Both libraries implement a generic `TClaimConnectionLibraryManagement` interface (`add`, `remove`, `get`, `getAll`, `getConnectionsForClaim`, `filter`, `snapshot`, `validate`), so consumers can write code that works against either flavour.
235
+
236
+ Connections are immutable (create or delete, no update). Each connection pins both endpoints to specific claim versions. They live on `PropositCore` as `core.citations` and `core.axioms`.
229
237
 
230
238
  The `@proposit/proposit-core/extensions/ieee` subpath export provides `IEEECitationClaimSchema` — an extended citation-claim type with IEEE reference schemas covering 33 reference types.
231
239
 
240
+ ### Evaluation semantics by claim type
241
+
242
+ Claim-bound variables evaluate differently depending on the bound claim's type:
243
+
244
+ | Claim type | Evaluation behavior | Caller override |
245
+ | ----------- | ----------------------------------- | -------------------------------------------- |
246
+ | `normal` | Caller assigns; unassigned → `null` | Yes — standard |
247
+ | `citation` | Caller assigns; unassigned → `null` | Yes — standard |
248
+ | `axiomatic` | Forced to `true` | No — caller attempts are rejected pre-flight |
249
+
250
+ Citations and normal claims continue to require explicit assignment. Apps that want auto-`true` defaults for citations implement that policy at their own layer. Axiomatic claim-bound variables are forced to `true` by a pre-pass in `ArgumentEngine.evaluate` and `ArgumentEngine.checkValidity`; a caller assignment for an axiomatic-bound variable raises `AXIOM_VARIABLE_ASSIGNMENT_FORBIDDEN` before evaluation runs.
251
+
252
+ To express "this derivation should NOT be supported by this axiom," wrap the axiom's variable expression in the antecedent with `not` (`toggleNegation`). Because the axiom's value is fixed at `true`, the negated reference contributes `false` to its parent operator — the standard expression-tree negation, no new mechanism. The consequent variable expression is protected by `assertNotConsequentExpression` and cannot be negated.
253
+
232
254
  ### Derivation Premises
233
255
 
234
256
  As of v0.11.0, every premise carries an immutable `type` discriminator:
@@ -259,13 +281,13 @@ const citeA = core.claims.create({
259
281
  text: "Weather report, 2024",
260
282
  })
261
283
 
262
- // Add a citation edge: claim cites citeA as support
263
- core.claimCitations.add({
284
+ // Add a citation connection: claim is supported by citeA
285
+ core.citations.add({
264
286
  id: "edge-1",
265
- citingClaimId: claim.id,
266
- citingClaimVersion: claim.version,
267
- sourceClaimId: citeA.id,
268
- sourceClaimVersion: citeA.version,
287
+ claimId: claim.id,
288
+ claimVersion: claim.version,
289
+ supportingClaimId: citeA.id,
290
+ supportingClaimVersion: citeA.version,
269
291
  })
270
292
 
271
293
  const engine = core.arguments.create({
@@ -288,13 +310,13 @@ const { result: pm } = engine.createPremise({
288
310
  // (Requires a ManagedDerivationPremiseEngine instance)
289
311
  ```
290
312
 
291
- The `populateFromCitations` helper on `ManagedDerivationPremiseEngine` is the recommended way to build the antecedent from the global citation graph:
313
+ The `populateFromSupports` helper on `ManagedDerivationPremiseEngine` is the recommended way to build the antecedent from the combined citation + axiom support set (renamed from `populateFromCitations` in v0.12.0):
292
314
 
293
- - `n = 0` citations: no change (premise stays in naked-Q form)
294
- - `n = 1` citation: produces `IMPLIES(S1, Q)`
295
- - `n ≥ 2` citations: produces `IMPLIES(OR(S1, ..., Sn), Q)`
315
+ - `n = 0` supports: no change (premise stays in naked-Q form)
316
+ - `n = 1` support: produces `IMPLIES(S1, Q)`
317
+ - `n ≥ 2` supports: produces `IMPLIES(OR(S1, ..., Sn), Q)`
296
318
 
297
- `populateFromCitations` is one-shot: it rejects calls on premises that already have a non-empty antecedent. Delete and re-create the premise to repopulate.
319
+ The helper takes `(citationLib, axiomLib, argumentEngine)`. Citations are listed first, axioms second; source order preserved within each. `populateFromSupports` is one-shot it rejects calls on premises that already have a non-empty antecedent. Delete and re-create the premise to repopulate.
298
320
 
299
321
  ### Auto-variable creation
300
322
 
@@ -308,11 +330,11 @@ An argument can be **forked** via `PropositCore.forkArgument()` to create an ind
308
330
 
309
331
  - Creates a new argument with a new ID (version 0)
310
332
  - Assigns new UUIDs to all premises, expressions, and variables
311
- - Walks the citation graph from the source argument's claim-bound variables and clones every reachable claim (both `'normal'` and `'citation'`-typed) plus the citation edges between them
333
+ - Walks the combined citation + axiom connection graph from the source argument's claim-bound variables (a single BFS that consults both `core.citations` and `core.axioms` at each frontier pop) and clones every reachable claim (`'normal'`, `'citation'`, and `'axiomatic'`) plus both kinds of connections between them
312
334
  - Creates fork records in all five `ForkLibrary` namespaces (arguments, premises, expressions, variables, claims)
313
335
  - Remaps all internal references (expression parent chains, variable bindings, conclusion role, claim references)
314
336
  - Registers the new engine in `ArgumentLibrary`
315
- - Returns the new engine, a remap table, a claim remap map (covering both normal and citation claims), and the argument fork record
337
+ - Returns the new engine, a remap table, a claim remap map (covering normal, citation, and axiomatic claims), and the argument fork record
316
338
 
317
339
  The forked argument is fully independent — mutations don't affect the source. Fork-aware diffing is automatic via `PropositCore.diffArguments()`, which uses `ForkLibrary` records as entity matchers rather than ID-based pairing.
318
340
 
@@ -806,21 +828,21 @@ The engine enforces structural invariants at two levels: **construction-time** (
806
828
 
807
829
  ### Premises — prevented at construction time
808
830
 
809
- | Invalid construction | What happens / error code |
810
- | --------------------------------------------------------------------------------------- | ------------------------------------------------------ |
811
- | Duplicate premise ID | Throws |
812
- | Adding a second root expression (`parentId: null`) to a premise | Throws |
813
- | `createPremise({ type: "derivation" })` without `derivedClaimId` | Throws — `CREATE_DERIVATION_REQUIRES_DERIVED_CLAIM_ID` |
814
- | `createPremise({ type: "derivation", derivedClaimId })` when claim not in library | Throws — `CREATE_DERIVATION_CLAIM_NOT_FOUND` |
815
- | `ManagedDerivationPremiseEngine` constructed on a non-derivation premise | Throws — `DERIVATION_TYPE_MISMATCH` |
816
- | `ManagedDerivationPremiseEngine.fromSnapshot` on a structurally invalid tree | Throws — `DERIVATION_STRUCTURE_INVALID` |
817
- | Removing or negating the consequent expression on a managed derivation premise | Throws — `DERIVATION_CONSEQUENT_LOCKED` |
818
- | Updating the consequent variable ID or operator on a managed derivation premise | Throws — `DERIVATION_CONSEQUENT_LOCKED` |
819
- | Inserting an expression into the consequent slot of a managed derivation premise | Throws — `DERIVATION_CONSEQUENT_LOCKED` |
820
- | Swapping root operator to `and`/`or`/`not` on a managed derivation premise | Throws — `DERIVATION_ROOT_OPERATOR_INVALID` |
821
- | `populateFromCitations` on a derivation premise that already has a non-empty antecedent | Throws — `DERIVATION_ANTECEDENT_NON_EMPTY` |
822
- | `ensureClaimBoundVariable(claimId)` when the claim is not in the library | Throws — `CLAIM_NOT_FOUND` |
823
- | Restoring a pre-v0.11 snapshot whose premises lack the `type` field | Throws — `LEGACY_PREMISE_MISSING_TYPE` |
831
+ | Invalid construction | What happens / error code |
832
+ | -------------------------------------------------------------------------------------- | ------------------------------------------------------ |
833
+ | Duplicate premise ID | Throws |
834
+ | Adding a second root expression (`parentId: null`) to a premise | Throws |
835
+ | `createPremise({ type: "derivation" })` without `derivedClaimId` | Throws — `CREATE_DERIVATION_REQUIRES_DERIVED_CLAIM_ID` |
836
+ | `createPremise({ type: "derivation", derivedClaimId })` when claim not in library | Throws — `CREATE_DERIVATION_CLAIM_NOT_FOUND` |
837
+ | `ManagedDerivationPremiseEngine` constructed on a non-derivation premise | Throws — `DERIVATION_TYPE_MISMATCH` |
838
+ | `ManagedDerivationPremiseEngine.fromSnapshot` on a structurally invalid tree | Throws — `DERIVATION_STRUCTURE_INVALID` |
839
+ | Removing or negating the consequent expression on a managed derivation premise | Throws — `DERIVATION_CONSEQUENT_LOCKED` |
840
+ | Updating the consequent variable ID or operator on a managed derivation premise | Throws — `DERIVATION_CONSEQUENT_LOCKED` |
841
+ | Inserting an expression into the consequent slot of a managed derivation premise | Throws — `DERIVATION_CONSEQUENT_LOCKED` |
842
+ | Swapping root operator to `and`/`or`/`not` on a managed derivation premise | Throws — `DERIVATION_ROOT_OPERATOR_INVALID` |
843
+ | `populateFromSupports` on a derivation premise that already has a non-empty antecedent | Throws — `DERIVATION_ANTECEDENT_NON_EMPTY` |
844
+ | `ensureClaimBoundVariable(claimId)` when the claim is not in the library | Throws — `CLAIM_NOT_FOUND` |
845
+ | Restoring a pre-v0.11 snapshot whose premises lack the `type` field | Throws — `LEGACY_PREMISE_MISSING_TYPE` |
824
846
 
825
847
  ### Premises — detected by validation
826
848
 
@@ -840,17 +862,25 @@ The engine enforces structural invariants at two levels: **construction-time** (
840
862
  | Same variable ID used with multiple symbols across premises | `ARGUMENT_VARIABLE_ID_SYMBOL_MISMATCH` |
841
863
  | Same variable symbol used with multiple IDs across premises | `ARGUMENT_VARIABLE_SYMBOL_AMBIGUOUS` |
842
864
 
843
- ### Claims and citations — prevented at construction time
844
-
845
- | Invalid construction | What happens / error code |
846
- | ------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
847
- | Updating a claim's `type` field after creation | Throws — `CLAIM_TYPE_IMMUTABLE` |
848
- | Restoring a pre-v0.10 snapshot whose claims lack the `type` field | Throws — `LEGACY_CLAIM_MISSING_TYPE` |
849
- | Adding a citation whose `id` already exists | Throws — `CITATION_DUPLICATE_ID` |
850
- | Adding a citation whose `citingClaimId@citingClaimVersion` is not in the lookup | Throws — `CITATION_CITING_REF_NOT_FOUND` |
851
- | Adding a citation whose `sourceClaimId@sourceClaimVersion` is not in the lookup | Throws — `CITATION_SOURCE_REF_NOT_FOUND` |
852
- | Source-side claim of a citation has `type !== 'citation'` | Throws — `CITATION_SOURCE_NOT_CITATION_TYPE` |
853
- | Citation that would create a cycle in the global claim-citation graph | Throws — `CITATION_CYCLE_DETECTED` (ID-only — versions don't disambiguate) |
865
+ ### Claims, citations, and axioms — prevented at construction time
866
+
867
+ | Invalid construction | What happens / error code |
868
+ | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
869
+ | Updating a claim's `type` field after creation | Throws — `CLAIM_TYPE_IMMUTABLE` |
870
+ | Restoring a pre-v0.10 snapshot whose claims lack the `type` field | Throws — `LEGACY_CLAIM_MISSING_TYPE` |
871
+ | Adding a citation whose `id` already exists | Throws — `CITATION_DUPLICATE_ID` |
872
+ | Adding a citation whose `claimId@claimVersion` is not in the lookup | Throws — `CITATION_CLAIM_REF_NOT_FOUND` |
873
+ | Adding a citation whose `supportingClaimId@supportingClaimVersion` is not in the lookup | Throws — `CITATION_SUPPORTING_REF_NOT_FOUND` |
874
+ | Supporting-side claim of a citation has `type !== 'citation'` | Throws — `CITATION_SUPPORTING_NOT_CITATION_TYPE` |
875
+ | Citation that would create a cycle in the global claim-citation graph | Throws — `CITATION_CYCLE_DETECTED` (ID-only — versions don't disambiguate) |
876
+ | Adding an axiom connection whose `id` already exists | Throws — `AXIOM_DUPLICATE_ID` |
877
+ | Adding an axiom connection whose `claimId@claimVersion` is not in the lookup | Throws — `AXIOM_CLAIM_REF_NOT_FOUND` |
878
+ | Adding an axiom connection whose `supportingClaimId@supportingClaimVersion` is not in lookup | Throws — `AXIOM_SUPPORTING_REF_NOT_FOUND` |
879
+ | Supporting-side claim of an axiom connection has `type !== 'axiomatic'` | Throws — `AXIOM_SUPPORTING_NOT_AXIOMATIC_TYPE` |
880
+ | Dependent-side claim of an axiom connection has `type !== 'normal'` | Throws — `AXIOM_CLAIM_NOT_NORMAL_TYPE` |
881
+ | Caller passes an assignment for an axiomatic-bound variable to `evaluate` or `checkValidity` | Throws — `AXIOM_VARIABLE_ASSIGNMENT_FORBIDDEN` (use `toggleNegation` to reject the axiom in the antecedent instead) |
882
+ | Restoring a pre-v0.12 snapshot whose citation-library wrapper or entities use legacy fields | Throws — `LEGACY_CLAIM_CITATION_SHAPE` (run the v0.12 CLI migration) |
883
+ | Restoring a pre-v0.12 `PropositCore` snapshot that lacks an `axioms` slot | Throws — `LEGACY_MISSING_AXIOM_SLOT` (run the v0.12 CLI migration) |
854
884
 
855
885
  ### Removal cascades
856
886
 
@@ -935,19 +965,48 @@ proposit-core arguments delete [--all] [--confirm] <id> Delete an argument or
935
965
  proposit-core arguments publish <id> Publish latest version, prepare new draft
936
966
  proposit-core arguments parse [text] [options] Parse natural language into an argument via LLM
937
967
  proposit-core arguments import <yaml_file> Import an argument from YAML
938
- proposit-core claims list [--json] List all claims (citation-typed claims tagged [citation])
968
+ proposit-core claims list [--json] List all claims (citation tagged [citation]; axiomatic tagged [axiom: <reasonCode>])
939
969
  proposit-core claims show <claim_id> [--json] Show all versions of a claim
940
- proposit-core claims add [--type <t>] [--title <t>] [--body <b>] Create a new claim ('normal' default; 'citation' for cited content)
941
- proposit-core claims update <claim_id> [--title <t>] [--body <b>] Update claim metadata (type is immutable)
970
+ proposit-core claims add [--type <t>] [--reason <code>] [--title <t>] [--body <b>] Create a new claim ('normal' default; 'citation' for cited content; 'axiomatic' requires --reason)
971
+ proposit-core claims update <claim_id> [--title <t>] [--body <b>] Update claim metadata (type and reasonCode are immutable)
942
972
  proposit-core claims freeze <claim_id> Freeze current version
943
- proposit-core citations list [--json] List all citation edges
973
+ proposit-core citations list [--json] List all citation connections
944
974
  proposit-core citations show <citation_id> [--json] Show a single citation
945
- proposit-core citations add <citing_claim_id> <source_claim_id> Add a citation edge (source must be type=citation)
946
- proposit-core citations unlink <citation_id> Remove a citation edge
975
+ proposit-core citations add --claim-id <id> --supporting-claim-id <id> Add a citation connection (supporting claim must be type=citation)
976
+ proposit-core citations remove <citation_id> Remove a citation connection
977
+ proposit-core axioms list [--json] List all axiom connections
978
+ proposit-core axioms show <connection_id> [--json] Show a single axiom connection
979
+ proposit-core axioms add --claim-id <id> --axiom-id <id> Add an axiom connection (supporting claim must be type=axiomatic; dependent must be type=normal)
980
+ proposit-core axioms remove <connection_id> Remove an axiom connection
947
981
  ```
948
982
 
983
+ > **Breaking change in v0.12.0.** The `citations` command group switched from positional arguments + `unlink` to flag arguments + `remove`, matching the new `axioms` group and the renamed schema fields. Scripts that used `citations add <citing_claim_id> <source_claim_id>` or `citations unlink <id>` need to update to `citations add --claim-id <id> --supporting-claim-id <id>` and `citations remove <id>`.
984
+
949
985
  By default `delete` removes only the latest version. Pass `--all` to remove the argument entirely. Both `delete` and `delete-unused` prompt for confirmation unless `--confirm` is supplied.
950
986
 
987
+ ### Axiomatic claims
988
+
989
+ Axiomatic claims (v0.12.0) represent self-evident propositions invoked as the bottom-level support for a derived claim — propositions that hold by definition, by historical convention, or by logical necessity. Create one with the `--type axiomatic` flag plus a required `--reason <code>` from one of the three preset reason codes:
990
+
991
+ - `true-by-definition` — the proposition is part of how a term is defined.
992
+ - `historically-established` — the proposition is treated as fact by long-standing convention.
993
+ - `logically-required` — the proposition follows from logical structure alone.
994
+
995
+ ```bash
996
+ proposit-core claims add --type axiomatic --reason true-by-definition \
997
+ --title "All bachelors are unmarried"
998
+ ```
999
+
1000
+ The `reasonCode` is set at creation time and is immutable — `claims update` rejects `--reason` as an unknown option. Listings tag axiomatic claims with `[axiom: <reasonCode>]`.
1001
+
1002
+ Use the `axioms` command group to wire an axiomatic claim into a normal claim's support set. The supporting endpoint must be `type=axiomatic`; the dependent endpoint must be `type=normal`. There is no acyclicity check — axiomatic claims cannot appear on the dependent side, so cycles are structurally impossible.
1003
+
1004
+ ```bash
1005
+ proposit-core axioms add --claim-id <normal-claim-id> --axiom-id <axiomatic-claim-id>
1006
+ ```
1007
+
1008
+ Axiomatic claim-bound variables are forced to `true` at evaluation time. Passing an explicit assignment for one to `analysis evaluate` raises `AXIOM_VARIABLE_ASSIGNMENT_FORBIDDEN` before the evaluator runs. To express "this derivation should not be supported by this axiom," wrap the axiom's variable expression in the antecedent with `not`.
1009
+
951
1010
  ### Version-scoped commands
952
1011
 
953
1012
  All commands below are scoped to a specific argument version:
@@ -975,8 +1034,9 @@ Renders the full argument with metadata. Output includes:
975
1034
  - **Argument header** — title and description
976
1035
  - **Premises** — one per line with formula display string and title (if present); conclusion marked with `*`
977
1036
  - **Variables** — symbol and bound claim title (or premise binding)
978
- - **Claims** — ID, version, frozen status, type (`normal` or `citation`), title, and body
979
- - **Citations** — edges between claims (citing -> source), with both endpoints pinned to specific versions
1037
+ - **Claims** — ID, version, frozen status, type (`normal`, `citation`, or `axiomatic`), title, and body
1038
+ - **Citations** — connections between claims (`claimId supportingClaimId`), with both endpoints pinned to specific versions
1039
+ - **Axioms** — axiom-invocation connections from a normal claim to an axiomatic claim, also pinned to specific versions
980
1040
 
981
1041
  Display strings use standard logical notation (¬ ∧ ∨ → ↔).
982
1042
 
@@ -1 +1 @@
1
- {"version":3,"file":"arguments.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/arguments.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAkCnC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmN/D"}
1
+ {"version":3,"file":"arguments.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/arguments.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAgCnC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAoN/D"}
@@ -5,8 +5,6 @@ import { Command } from "commander";
5
5
  import { importArgumentFromYaml } from "../import.js";
6
6
  import { getVersionDir } from "../config.js";
7
7
  import { hydratePropositCore, hydrateEngine, persistEngine, persistCore, } from "../engine.js";
8
- import { ClaimLibrary } from "../../lib/core/claim-library.js";
9
- import { ClaimCitationLibrary } from "../../lib/core/claim-citation-library.js";
10
8
  import { errorExit, printJson, printLine, requireConfirmation, } from "../output.js";
11
9
  import { copyVersionDir, deleteArgumentDir, deleteVersionDir, latestVersionNumber, listArgumentIds, listVersionNumbers, readArgumentMeta, readVersionMeta, writeArgumentMeta, writeVersionMeta, } from "../storage/arguments.js";
12
10
  import { writeVariables } from "../storage/variables.js";
@@ -49,21 +47,20 @@ export function registerArgumentCommands(program) {
49
47
  catch (error) {
50
48
  errorExit(error instanceof Error ? error.message : String(error));
51
49
  }
52
- // Merge new libraries into existing global libraries
50
+ // Merge the imported claims and citations into the existing
51
+ // global libraries so they survive persistence. The engine's own
52
+ // claim/citation libraries are throwaway buffers — only the
53
+ // PropositCore's libraries are written to disk by `persistCore`.
53
54
  const existing = await hydratePropositCore();
54
- const _mergedClaims = ClaimLibrary.fromSnapshot({
55
- claims: [
56
- ...existing.claims.snapshot().claims,
57
- ...result.claimLibrary.snapshot().claims,
58
- ],
59
- });
60
- const _mergedCitations = ClaimCitationLibrary.fromSnapshot({
61
- claimCitations: [
62
- ...existing.claimCitations.snapshot().claimCitations,
63
- ...result.claimCitationLibrary.snapshot()
64
- .claimCitations,
65
- ],
66
- }, _mergedClaims);
55
+ for (const claim of result.claimLibrary.snapshot().claims) {
56
+ const { version: _v, frozen: _f, checksum: _c, ...createInput } = claim;
57
+ existing.claims.create(createInput);
58
+ }
59
+ for (const citation of result.claimCitationLibrary.snapshot()
60
+ .connections) {
61
+ const { checksum: _c, ...addInput } = citation;
62
+ existing.citations.add(addInput);
63
+ }
67
64
  await persistEngine(result.engine);
68
65
  await persistCore(existing);
69
66
  printLine(result.engine.getArgument().id);
@@ -1 +1 @@
1
- {"version":3,"file":"arguments.js","sourceRoot":"","sources":["../../../src/cli/commands/arguments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,MAAM,kBAAkB,CAAA;AACjC,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EACH,mBAAmB,EACnB,aAAa,EACb,aAAa,EACb,WAAW,GACd,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAA;AAC/E,OAAO,EACH,SAAS,EACT,SAAS,EACT,SAAS,EACT,mBAAmB,GACtB,MAAM,cAAc,CAAA;AACrB,OAAO,EACH,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,GACnB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,UAAU,wBAAwB,CAAC,OAAgB;IACrD,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAA;IAEzE,IAAI,CAAC,OAAO,CAAC,8BAA8B,CAAC;SACvC,WAAW,CAAC,uBAAuB,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a,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QAClC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAA;QACvB,SAAS,CAAC,aAAa,CAAC,CAAA;IAC5B,CAAC,CAAC,CAAA;IAEN,oBAAoB,CAAC,IAAI,CAAC,CAAA;AAC9B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ export declare function registerAxiomCommands(program: Command): void;
3
+ //# sourceMappingURL=axioms.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axioms.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/axioms.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAInC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAoG5D"}
@@ -0,0 +1,91 @@
1
+ import { randomUUID } from "node:crypto";
2
+ import { Command } from "commander";
3
+ import { hydratePropositCore, persistCore } from "../engine.js";
4
+ import { errorExit, printJson, printLine } from "../output.js";
5
+ export function registerAxiomCommands(program) {
6
+ const axioms = program
7
+ .command("axioms")
8
+ .description("Manage global claim-axiom library");
9
+ axioms
10
+ .command("list")
11
+ .description("List all axiom connections")
12
+ .option("--json", "Output as JSON")
13
+ .action(async (opts) => {
14
+ const core = await hydratePropositCore();
15
+ const all = core.axioms.getAll();
16
+ if (opts.json) {
17
+ printJson(all);
18
+ }
19
+ else {
20
+ for (const axiom of all) {
21
+ printLine(`${axiom.id} | ${axiom.claimId}@${axiom.claimVersion} <- ${axiom.supportingClaimId}@${axiom.supportingClaimVersion}`);
22
+ }
23
+ }
24
+ });
25
+ axioms
26
+ .command("show <connection_id>")
27
+ .description("Show a single axiom connection")
28
+ .option("--json", "Output as JSON")
29
+ .action(async (connectionId, opts) => {
30
+ const core = await hydratePropositCore();
31
+ const axiom = core.axioms.get(connectionId);
32
+ if (!axiom) {
33
+ errorExit(`Axiom connection "${connectionId}" not found.`);
34
+ }
35
+ if (opts.json) {
36
+ printJson(axiom);
37
+ }
38
+ else {
39
+ printLine(`id: ${axiom.id}`);
40
+ printLine(`claimId: ${axiom.claimId}`);
41
+ printLine(`claimVersion: ${axiom.claimVersion}`);
42
+ printLine(`supportingClaimId: ${axiom.supportingClaimId}`);
43
+ printLine(`supportingClaimVersion: ${axiom.supportingClaimVersion}`);
44
+ }
45
+ });
46
+ axioms
47
+ .command("add")
48
+ .description("Add an axiom connection between two claims (supporting claim must be an axiomatic-typed claim, dependent claim must be a normal-typed claim)")
49
+ .requiredOption("--claim-id <id>", "Claim ID being supported (must have type='normal')")
50
+ .requiredOption("--axiom-id <id>", "Axiomatic claim ID providing support (must have type='axiomatic')")
51
+ .action(async (opts) => {
52
+ const core = await hydratePropositCore();
53
+ const claim = core.claims.getCurrent(opts.claimId);
54
+ if (!claim) {
55
+ errorExit(`Claim "${opts.claimId}" not found.`);
56
+ }
57
+ const axiomClaim = core.claims.getCurrent(opts.axiomId);
58
+ if (!axiomClaim) {
59
+ errorExit(`Claim "${opts.axiomId}" not found.`);
60
+ }
61
+ let connection;
62
+ try {
63
+ connection = core.axioms.add({
64
+ id: randomUUID(),
65
+ claimId: claim.id,
66
+ claimVersion: claim.version,
67
+ supportingClaimId: axiomClaim.id,
68
+ supportingClaimVersion: axiomClaim.version,
69
+ });
70
+ }
71
+ catch (error) {
72
+ errorExit(error instanceof Error ? error.message : String(error));
73
+ }
74
+ await persistCore(core);
75
+ printLine(connection.id);
76
+ });
77
+ axioms
78
+ .command("remove <connection_id>")
79
+ .description("Remove an axiom connection")
80
+ .action(async (connectionId) => {
81
+ const core = await hydratePropositCore();
82
+ const axiom = core.axioms.get(connectionId);
83
+ if (!axiom) {
84
+ errorExit(`Axiom connection "${connectionId}" not found.`);
85
+ }
86
+ core.axioms.remove(connectionId);
87
+ await persistCore(core);
88
+ printLine("success");
89
+ });
90
+ }
91
+ //# sourceMappingURL=axioms.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axioms.js","sourceRoot":"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@@ -1 +1 @@
1
- {"version":3,"file":"citations.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/citations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAInC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA0F/D"}
1
+ {"version":3,"file":"citations.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/citations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAInC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA0G/D"}
@@ -12,13 +12,13 @@ export function registerCitationCommands(program) {
12
12
  .option("--json", "Output as JSON")
13
13
  .action(async (opts) => {
14
14
  const core = await hydratePropositCore();
15
- const all = core.claimCitations.getAll();
15
+ const all = core.citations.getAll();
16
16
  if (opts.json) {
17
17
  printJson(all);
18
18
  }
19
19
  else {
20
20
  for (const citation of all) {
21
- printLine(`${citation.id} | ${citation.citingClaimId}@${citation.citingClaimVersion} -> ${citation.sourceClaimId}@${citation.sourceClaimVersion}`);
21
+ printLine(`${citation.id} | ${citation.claimId}@${citation.claimVersion} -> ${citation.supportingClaimId}@${citation.supportingClaimVersion}`);
22
22
  }
23
23
  }
24
24
  });
@@ -28,7 +28,7 @@ export function registerCitationCommands(program) {
28
28
  .option("--json", "Output as JSON")
29
29
  .action(async (citationId, opts) => {
30
30
  const core = await hydratePropositCore();
31
- const citation = core.claimCitations.get(citationId);
31
+ const citation = core.citations.get(citationId);
32
32
  if (!citation) {
33
33
  errorExit(`Citation "${citationId}" not found.`);
34
34
  }
@@ -36,34 +36,36 @@ export function registerCitationCommands(program) {
36
36
  printJson(citation);
37
37
  }
38
38
  else {
39
- printLine(`id: ${citation.id}`);
40
- printLine(`citingClaimId: ${citation.citingClaimId}`);
41
- printLine(`citingClaimVersion: ${citation.citingClaimVersion}`);
42
- printLine(`sourceClaimId: ${citation.sourceClaimId}`);
43
- printLine(`sourceClaimVersion: ${citation.sourceClaimVersion}`);
39
+ printLine(`id: ${citation.id}`);
40
+ printLine(`claimId: ${citation.claimId}`);
41
+ printLine(`claimVersion: ${citation.claimVersion}`);
42
+ printLine(`supportingClaimId: ${citation.supportingClaimId}`);
43
+ printLine(`supportingClaimVersion: ${citation.supportingClaimVersion}`);
44
44
  }
45
45
  });
46
46
  citations
47
- .command("add <citing_claim_id> <source_claim_id>")
48
- .description("Add a citation edge between two claims (source must be a citation-typed claim)")
49
- .action(async (citingClaimId, sourceClaimId) => {
47
+ .command("add")
48
+ .description("Add a citation edge between two claims (supporting claim must be a citation-typed claim)")
49
+ .requiredOption("--claim-id <id>", "Claim ID being supported (dependent)")
50
+ .requiredOption("--supporting-claim-id <id>", "Supporting (cited) claim ID")
51
+ .action(async (opts) => {
50
52
  const core = await hydratePropositCore();
51
- const citingClaim = core.claims.getCurrent(citingClaimId);
52
- if (!citingClaim) {
53
- errorExit(`Claim "${citingClaimId}" not found.`);
53
+ const claim = core.claims.getCurrent(opts.claimId);
54
+ if (!claim) {
55
+ errorExit(`Claim "${opts.claimId}" not found.`);
54
56
  }
55
- const sourceClaim = core.claims.getCurrent(sourceClaimId);
56
- if (!sourceClaim) {
57
- errorExit(`Claim "${sourceClaimId}" not found.`);
57
+ const supportingClaim = core.claims.getCurrent(opts.supportingClaimId);
58
+ if (!supportingClaim) {
59
+ errorExit(`Claim "${opts.supportingClaimId}" not found.`);
58
60
  }
59
61
  let citation;
60
62
  try {
61
- citation = core.claimCitations.add({
63
+ citation = core.citations.add({
62
64
  id: randomUUID(),
63
- citingClaimId: citingClaim.id,
64
- citingClaimVersion: citingClaim.version,
65
- sourceClaimId: sourceClaim.id,
66
- sourceClaimVersion: sourceClaim.version,
65
+ claimId: claim.id,
66
+ claimVersion: claim.version,
67
+ supportingClaimId: supportingClaim.id,
68
+ supportingClaimVersion: supportingClaim.version,
67
69
  });
68
70
  }
69
71
  catch (error) {
@@ -73,15 +75,15 @@ export function registerCitationCommands(program) {
73
75
  printLine(citation.id);
74
76
  });
75
77
  citations
76
- .command("unlink <citation_id>")
78
+ .command("remove <citation_id>")
77
79
  .description("Remove a citation edge")
78
80
  .action(async (citationId) => {
79
81
  const core = await hydratePropositCore();
80
- const citation = core.claimCitations.get(citationId);
82
+ const citation = core.citations.get(citationId);
81
83
  if (!citation) {
82
84
  errorExit(`Citation "${citationId}" not found.`);
83
85
  }
84
- core.claimCitations.remove(citationId);
86
+ core.citations.remove(citationId);
85
87
  await persistCore(core);
86
88
  printLine("success");
87
89
  });
@@ -1 +1 @@
1
- {"version":3,"file":"citations.js","sourceRoot":"","sources":["../../../src/cli/commands/citations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE9D,MAAM,UAAU,wBAAwB,CAAC,OAAgB;IACrD,MAAM,SAAS,GAAG,OAAO;SACpB,OAAO,CAAC,WAAW,CAAC;SACpB,WAAW,CAAC,sCAAsC,CAAC,CAAA;IAExD,SAAS;SACJ,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,oBAAoB,CAAC;SACjC,MAAM,CAAC,QAAQ,EAAE,gBAAgB,CAAC;SAClC,MAAM,CAAC,KAAK,EAAE,IAAwB,EAAE,EAAE;QACvC,MAAM,IAAI,GAAG,MAAM,mBAAmB,EAAE,CAAA;QACxC,MAAM,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,CAAA;QACxC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACZ,SAAS,CAAC,GAAG,CAAC,CAAA;QAClB,CAAC;aAAM,CAAC;YACJ,KAAK,MAAM,QAAQ,IAAI,G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AAE,CAAA;QACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;QAC/C,IAAI,CAAC,QAAQ,EAAE,CAAC;YACZ,SAAS,CAAC,aAAa,UAAU,cAAc,CAAC,CAAA;QACpD,CAAC;QACD,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;QACjC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAA;QACvB,SAAS,CAAC,SAAS,CAAC,CAAA;IACxB,CAAC,CAAC,CAAA;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"claims.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/claims.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAInC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsJ5D"}
1
+ {"version":3,"file":"claims.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/claims.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAQnC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAuM5D"}