@lapxo/head 0.1.4 → 0.1.6

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 (55) hide show
  1. package/README.md +6 -4
  2. package/TARGET.bound +204 -29
  3. package/dist/src/ahead/budget.d.ts +6 -0
  4. package/dist/src/ahead/budget.js +11 -0
  5. package/dist/src/ahead/fold.d.ts +2 -0
  6. package/dist/src/ahead/fold.js +19 -0
  7. package/dist/src/ahead/read.d.ts +10 -0
  8. package/dist/src/ahead/read.js +18 -0
  9. package/dist/src/answers/answered.d.ts +4 -0
  10. package/dist/src/answers/answered.js +22 -0
  11. package/dist/src/claims/claim.d.ts +9 -0
  12. package/dist/src/claims/claim.js +40 -0
  13. package/dist/src/compile/pin.js +2 -6
  14. package/dist/src/core/answer.d.ts +1 -0
  15. package/dist/src/core/device.d.ts +1 -4
  16. package/dist/src/core/device.js +2 -5
  17. package/dist/src/core/package.js +4 -3
  18. package/dist/src/flows/act.d.ts +1 -5
  19. package/dist/src/flows/act.js +1 -5
  20. package/dist/src/flows/call.d.ts +2 -9
  21. package/dist/src/flows/call.js +13 -13
  22. package/dist/src/flows/read.d.ts +1 -7
  23. package/dist/src/flows/read.js +26 -31
  24. package/dist/src/index.js +16 -7
  25. package/dist/src/kept/kept.d.ts +30 -0
  26. package/dist/src/kept/kept.js +20 -0
  27. package/dist/src/links/inspect.d.ts +9 -0
  28. package/dist/src/links/inspect.js +44 -0
  29. package/dist/src/links/link.d.ts +7 -0
  30. package/dist/src/links/link.js +25 -0
  31. package/dist/src/marks/compare.d.ts +9 -0
  32. package/dist/src/marks/compare.js +48 -0
  33. package/dist/src/onboard/first.js +1 -1
  34. package/dist/src/places/admit.js +1 -1
  35. package/dist/src/places/found.js +5 -9
  36. package/dist/src/ports/adapters/request.d.ts +1 -0
  37. package/dist/src/ports/adapters/request.js +2 -2
  38. package/dist/src/ports/bound.d.ts +7 -8
  39. package/dist/src/ports/bound.js +27 -17
  40. package/dist/src/ports/documents.js +1 -1
  41. package/dist/src/ports/reading.d.ts +8 -0
  42. package/dist/src/ports/reading.js +14 -0
  43. package/dist/src/ports/spare.js +1 -1
  44. package/dist/src/ports/warm.js +1 -2
  45. package/dist/src/sources/connect.js +3 -1
  46. package/dist/src/tools/claim.d.ts +1 -0
  47. package/dist/src/tools/claim.js +1 -0
  48. package/dist/src/tools/look.js +5 -5
  49. package/dist/src/use/named.d.ts +12 -0
  50. package/dist/src/use/named.js +25 -0
  51. package/dist/src/verbs/ask.d.ts +1 -9
  52. package/dist/src/verbs/ask.js +4 -11
  53. package/dist/src/verbs/card.d.ts +2 -2
  54. package/dist/src/verbs/card.js +3 -3
  55. package/package.json +3 -3
@@ -3,8 +3,8 @@ import { LOCK } from '@lapxo/topos/wire';
3
3
  import { baseOf, standingOr } from "../core/answer.js";
4
4
  import { valueOf } from "../core/lock.js";
5
5
  /**
6
- * The card an act is made on: the place's standing as bound folds it, with the reads it kept set aside, and the keys this
7
- * device acts with. Anything landed, a grant withdrawn or a key admitted or changed moves it; a read never does. A folder
6
+ * The card an act is made on: the place's standing as bound folds it, with the reads it kept and the uses they named set
7
+ * aside, and the keys this device acts with. Anything landed, a grant withdrawn or a key admitted or changed moves it; a read never does. A folder
8
8
  * that holds no place yet has the card of nothing.
9
9
  */
10
10
  export const cardAt = async (context, place) => {
@@ -12,5 +12,5 @@ export const cardAt = async (context, place) => {
12
12
  if ('said' in held)
13
13
  return held;
14
14
  const read = `${valueOf(context.lock, 'receipt/at')}:`, keys = ['head', 'person'].map((role) => context.device(role) ?? '');
15
- return { card: createHash('sha256').update([baseOf(held.lines.filter((l) => !l.at?.startsWith(read))), ...keys].join('\n')).digest('hex').slice(0, 16) };
15
+ return { card: createHash('sha256').update([baseOf(held.lines.filter((l) => !l.at?.startsWith(read) && !l.scope?.startsWith(`${valueOf(context.lock, 'use/family')}/`))), ...keys].join('\n')).digest('hex').slice(0, 16) };
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lapxo/head",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "An MCP server that folds: it runs bound as a process, hands a model what bound printed, and lands what it read as receipts.",
6
6
  "license": "MIT",
@@ -26,8 +26,8 @@
26
26
  "test": "node --test test/*.test.ts && node --test --test-concurrency=1 test/time/*.test.ts"
27
27
  },
28
28
  "dependencies": {
29
- "@lapxo/bound": "0.2.1",
30
- "@lapxo/topos": "0.2.0",
29
+ "@lapxo/bound": "0.2.5",
30
+ "@lapxo/topos": "0.2.1",
31
31
  "@modelcontextprotocol/sdk": "1.32.1"
32
32
  },
33
33
  "devDependencies": {