@idleware/ringi 0.0.0-stage → 0.1.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 (79) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +83 -2
  3. package/package.json +53 -4
  4. package/src/main/resources/profiles/a2a-1.json +43 -0
  5. package/src/main/resources/skill/ringi/SKILL.md +72 -0
  6. package/target/dts/app/agent.d.ts +104 -0
  7. package/target/dts/app/budget.d.ts +36 -0
  8. package/target/dts/app/context.d.ts +19 -0
  9. package/target/dts/app/hubs.d.ts +38 -0
  10. package/target/dts/app/overview.d.ts +25 -0
  11. package/target/dts/app/room.d.ts +76 -0
  12. package/target/dts/app/rooms.d.ts +26 -0
  13. package/target/dts/app/session.d.ts +60 -0
  14. package/target/dts/app/view.d.ts +64 -0
  15. package/target/dts/cli/agent.d.ts +10 -0
  16. package/target/dts/cli/args.d.ts +13 -0
  17. package/target/dts/cli/context.d.ts +6 -0
  18. package/target/dts/cli/index.d.ts +5 -0
  19. package/target/dts/cli/operator.d.ts +8 -0
  20. package/target/dts/cli/session.d.ts +7 -0
  21. package/target/dts/cli/shared.d.ts +20 -0
  22. package/target/dts/cli/skill.d.ts +4 -0
  23. package/target/dts/cli.d.ts +3 -0
  24. package/target/dts/domain/decisions.d.ts +65 -0
  25. package/target/dts/domain/index.d.ts +2 -0
  26. package/target/dts/domain/profiles.d.ts +39 -0
  27. package/target/dts/domain/signals.d.ts +37 -0
  28. package/target/dts/home/index.d.ts +21 -0
  29. package/target/dts/hub/index.d.ts +66 -0
  30. package/target/dts/hub/signals.d.ts +4 -0
  31. package/target/dts/index.d.ts +8 -0
  32. package/target/dts/lib/index.d.ts +18 -0
  33. package/target/dts/protocol/files.d.ts +9 -0
  34. package/target/dts/protocol/index.d.ts +72 -0
  35. package/target/dts/runtime/reader.d.ts +34 -0
  36. package/target/dts/runtime/session.d.ts +42 -0
  37. package/target/dts/runtime/watch.d.ts +17 -0
  38. package/target/dts/store/git/index.d.ts +64 -0
  39. package/target/dts/store/git/remote.d.ts +70 -0
  40. package/target/dts/store/index.d.ts +102 -0
  41. package/target/dts/store/kafka/index.d.ts +2 -0
  42. package/target/dts/store/temporal/index.d.ts +2 -0
  43. package/target/esm/app/agent.js +84 -0
  44. package/target/esm/app/budget.js +95 -0
  45. package/target/esm/app/context.js +16 -0
  46. package/target/esm/app/hubs.js +76 -0
  47. package/target/esm/app/overview.js +39 -0
  48. package/target/esm/app/room.js +127 -0
  49. package/target/esm/app/rooms.js +120 -0
  50. package/target/esm/app/session.js +97 -0
  51. package/target/esm/app/view.js +52 -0
  52. package/target/esm/cli/agent.js +40 -0
  53. package/target/esm/cli/args.js +61 -0
  54. package/target/esm/cli/context.js +8 -0
  55. package/target/esm/cli/index.js +125 -0
  56. package/target/esm/cli/operator.js +147 -0
  57. package/target/esm/cli/session.js +39 -0
  58. package/target/esm/cli/shared.js +143 -0
  59. package/target/esm/cli/skill.js +54 -0
  60. package/target/esm/cli.js +14 -0
  61. package/target/esm/domain/decisions.js +178 -0
  62. package/target/esm/domain/index.js +16 -0
  63. package/target/esm/domain/profiles.js +96 -0
  64. package/target/esm/domain/signals.js +129 -0
  65. package/target/esm/home/index.js +88 -0
  66. package/target/esm/hub/index.js +212 -0
  67. package/target/esm/hub/signals.js +27 -0
  68. package/target/esm/index.js +9 -0
  69. package/target/esm/lib/index.js +202 -0
  70. package/target/esm/protocol/files.js +19 -0
  71. package/target/esm/protocol/index.js +217 -0
  72. package/target/esm/runtime/reader.js +64 -0
  73. package/target/esm/runtime/session.js +112 -0
  74. package/target/esm/runtime/watch.js +304 -0
  75. package/target/esm/store/git/index.js +346 -0
  76. package/target/esm/store/git/remote.js +700 -0
  77. package/target/esm/store/index.js +15 -0
  78. package/target/esm/store/kafka/index.js +3 -0
  79. package/target/esm/store/temporal/index.js +3 -0
@@ -0,0 +1,15 @@
1
+ // store: the port every storage type implements, and the types this ringi knows (one directory each: git, kafka,
2
+ // temporal). Rooms, accepted history, profiles, decisions and signals use only
3
+ // this interface; git is the first implementation (git-store.ts), and a hub's descriptor names which one it uses
4
+ // (`store.type`). A store keeps three things:
5
+ // - the shared contract: versioned files the participants agree on (contract.json, authority.json, profiles);
6
+ // - rooms: a control record with versioned files (members, roster), and one append-only log per member;
7
+ // - signals: named markers that point at log entries.
8
+ // Revisions are opaque, store-assigned ids. A store says whether one revision extends another; ringi builds the
9
+ // trust rules on that (hub.ts).
10
+ import { GitStore } from './git/index.js';
11
+ import { kafka } from './kafka/index.js';
12
+ import { temporal } from './temporal/index.js';
13
+ // The store types this ringi knows. Another type is a directory here implementing Store, and an entry below.
14
+ export const STORES = { git: (dir, d, home) => new GitStore(dir, d, home), kafka, temporal };
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ import { fail } from '../../lib/index.js';
2
+ export const kafka = (_dir, d) => fail(`hub ${d.name}: the kafka store is planned and not implemented in this ringi`);
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ import { fail } from '../../lib/index.js';
2
+ export const temporal = (_dir, d) => fail(`hub ${d.name}: the temporal store is planned and not implemented in this ringi`);
3
+ //# sourceMappingURL=index.js.map