@aephia/atlas-kit 0.0.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 (279) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +124 -0
  3. package/dist/bindings.d.ts +11 -0
  4. package/dist/bindings.d.ts.map +1 -0
  5. package/dist/bindings.js +11 -0
  6. package/dist/bindings.js.map +1 -0
  7. package/dist/cargo/actions/index.d.ts +122 -0
  8. package/dist/cargo/actions/index.d.ts.map +1 -0
  9. package/dist/cargo/actions/index.js +526 -0
  10. package/dist/cargo/actions/index.js.map +1 -0
  11. package/dist/cargo/index.d.ts +77 -0
  12. package/dist/cargo/index.d.ts.map +1 -0
  13. package/dist/cargo/index.js +102 -0
  14. package/dist/cargo/index.js.map +1 -0
  15. package/dist/claim-stakes/index.d.ts +64 -0
  16. package/dist/claim-stakes/index.d.ts.map +1 -0
  17. package/dist/claim-stakes/index.js +97 -0
  18. package/dist/claim-stakes/index.js.map +1 -0
  19. package/dist/client/context.d.ts +21 -0
  20. package/dist/client/context.d.ts.map +1 -0
  21. package/dist/client/context.js +1374 -0
  22. package/dist/client/context.js.map +1 -0
  23. package/dist/client/contracts.d.ts +671 -0
  24. package/dist/client/contracts.d.ts.map +1 -0
  25. package/dist/client/contracts.js +2 -0
  26. package/dist/client/contracts.js.map +1 -0
  27. package/dist/client/deployments.d.ts +3 -0
  28. package/dist/client/deployments.d.ts.map +1 -0
  29. package/dist/client/deployments.js +2 -0
  30. package/dist/client/deployments.js.map +1 -0
  31. package/dist/client/errors.d.ts +227 -0
  32. package/dist/client/errors.d.ts.map +1 -0
  33. package/dist/client/errors.js +288 -0
  34. package/dist/client/errors.js.map +1 -0
  35. package/dist/client/index.d.ts +7 -0
  36. package/dist/client/index.d.ts.map +1 -0
  37. package/dist/client/index.js +5 -0
  38. package/dist/client/index.js.map +1 -0
  39. package/dist/client/lifecycle.d.ts +4 -0
  40. package/dist/client/lifecycle.d.ts.map +1 -0
  41. package/dist/client/lifecycle.js +10 -0
  42. package/dist/client/lifecycle.js.map +1 -0
  43. package/dist/client/provider-errors.d.ts +9 -0
  44. package/dist/client/provider-errors.d.ts.map +1 -0
  45. package/dist/client/provider-errors.js +12 -0
  46. package/dist/client/provider-errors.js.map +1 -0
  47. package/dist/client/reconciliation.d.ts +10 -0
  48. package/dist/client/reconciliation.d.ts.map +1 -0
  49. package/dist/client/reconciliation.js +9 -0
  50. package/dist/client/reconciliation.js.map +1 -0
  51. package/dist/client/refs.d.ts +23 -0
  52. package/dist/client/refs.d.ts.map +1 -0
  53. package/dist/client/refs.js +12 -0
  54. package/dist/client/refs.js.map +1 -0
  55. package/dist/combat/index.d.ts +256 -0
  56. package/dist/combat/index.d.ts.map +1 -0
  57. package/dist/combat/index.js +222 -0
  58. package/dist/combat/index.js.map +1 -0
  59. package/dist/crafting/index.d.ts +308 -0
  60. package/dist/crafting/index.d.ts.map +1 -0
  61. package/dist/crafting/index.js +400 -0
  62. package/dist/crafting/index.js.map +1 -0
  63. package/dist/factions/index.d.ts +292 -0
  64. package/dist/factions/index.d.ts.map +1 -0
  65. package/dist/factions/index.js +334 -0
  66. package/dist/factions/index.js.map +1 -0
  67. package/dist/fleets/actions/index.d.ts +200 -0
  68. package/dist/fleets/actions/index.d.ts.map +1 -0
  69. package/dist/fleets/actions/index.js +854 -0
  70. package/dist/fleets/actions/index.js.map +1 -0
  71. package/dist/fleets/index.d.ts +100 -0
  72. package/dist/fleets/index.d.ts.map +1 -0
  73. package/dist/fleets/index.js +124 -0
  74. package/dist/fleets/index.js.map +1 -0
  75. package/dist/identity/index.d.ts +225 -0
  76. package/dist/identity/index.d.ts.map +1 -0
  77. package/dist/identity/index.js +341 -0
  78. package/dist/identity/index.js.map +1 -0
  79. package/dist/index.d.ts +401 -0
  80. package/dist/index.d.ts.map +1 -0
  81. package/dist/index.js +519 -0
  82. package/dist/index.js.map +1 -0
  83. package/dist/internal/c4/adapter.d.ts +6 -0
  84. package/dist/internal/c4/adapter.d.ts.map +1 -0
  85. package/dist/internal/c4/adapter.js +2 -0
  86. package/dist/internal/c4/adapter.js.map +1 -0
  87. package/dist/internal/c4/bindings.d.ts +4 -0
  88. package/dist/internal/c4/bindings.d.ts.map +1 -0
  89. package/dist/internal/c4/bindings.js +4 -0
  90. package/dist/internal/c4/bindings.js.map +1 -0
  91. package/dist/internal/c4/character-modifier.d.ts +5 -0
  92. package/dist/internal/c4/character-modifier.d.ts.map +1 -0
  93. package/dist/internal/c4/character-modifier.js +100 -0
  94. package/dist/internal/c4/character-modifier.js.map +1 -0
  95. package/dist/internal/c4/claim-stake.d.ts +140 -0
  96. package/dist/internal/c4/claim-stake.d.ts.map +1 -0
  97. package/dist/internal/c4/claim-stake.js +205 -0
  98. package/dist/internal/c4/claim-stake.js.map +1 -0
  99. package/dist/internal/c4/combat.d.ts +98 -0
  100. package/dist/internal/c4/combat.d.ts.map +1 -0
  101. package/dist/internal/c4/combat.js +232 -0
  102. package/dist/internal/c4/combat.js.map +1 -0
  103. package/dist/internal/c4/crafting.d.ts +170 -0
  104. package/dist/internal/c4/crafting.d.ts.map +1 -0
  105. package/dist/internal/c4/crafting.js +387 -0
  106. package/dist/internal/c4/crafting.js.map +1 -0
  107. package/dist/internal/c4/factions.d.ts +248 -0
  108. package/dist/internal/c4/factions.d.ts.map +1 -0
  109. package/dist/internal/c4/factions.js +589 -0
  110. package/dist/internal/c4/factions.js.map +1 -0
  111. package/dist/internal/c4/fleet-crew-binding.d.ts +12 -0
  112. package/dist/internal/c4/fleet-crew-binding.d.ts.map +1 -0
  113. package/dist/internal/c4/fleet-crew-binding.js +51 -0
  114. package/dist/internal/c4/fleet-crew-binding.js.map +1 -0
  115. package/dist/internal/c4/fleet.d.ts +310 -0
  116. package/dist/internal/c4/fleet.d.ts.map +1 -0
  117. package/dist/internal/c4/fleet.js +393 -0
  118. package/dist/internal/c4/fleet.js.map +1 -0
  119. package/dist/internal/c4/game.d.ts +192 -0
  120. package/dist/internal/c4/game.d.ts.map +1 -0
  121. package/dist/internal/c4/game.js +396 -0
  122. package/dist/internal/c4/game.js.map +1 -0
  123. package/dist/internal/c4/identity.d.ts +193 -0
  124. package/dist/internal/c4/identity.d.ts.map +1 -0
  125. package/dist/internal/c4/identity.js +180 -0
  126. package/dist/internal/c4/identity.js.map +1 -0
  127. package/dist/internal/c4/loot-layout.d.ts +20 -0
  128. package/dist/internal/c4/loot-layout.d.ts.map +1 -0
  129. package/dist/internal/c4/loot-layout.js +29 -0
  130. package/dist/internal/c4/loot-layout.js.map +1 -0
  131. package/dist/internal/c4/loyalty.d.ts +102 -0
  132. package/dist/internal/c4/loyalty.d.ts.map +1 -0
  133. package/dist/internal/c4/loyalty.js +318 -0
  134. package/dist/internal/c4/loyalty.js.map +1 -0
  135. package/dist/internal/c4/market.d.ts +112 -0
  136. package/dist/internal/c4/market.d.ts.map +1 -0
  137. package/dist/internal/c4/market.js +247 -0
  138. package/dist/internal/c4/market.js.map +1 -0
  139. package/dist/internal/c4/pda.d.ts +6 -0
  140. package/dist/internal/c4/pda.d.ts.map +1 -0
  141. package/dist/internal/c4/pda.js +45 -0
  142. package/dist/internal/c4/pda.js.map +1 -0
  143. package/dist/internal/c4/profile-faction.d.ts +14 -0
  144. package/dist/internal/c4/profile-faction.d.ts.map +1 -0
  145. package/dist/internal/c4/profile-faction.js +69 -0
  146. package/dist/internal/c4/profile-faction.js.map +1 -0
  147. package/dist/internal/c4/rewards.d.ts +135 -0
  148. package/dist/internal/c4/rewards.d.ts.map +1 -0
  149. package/dist/internal/c4/rewards.js +305 -0
  150. package/dist/internal/c4/rewards.js.map +1 -0
  151. package/dist/internal/c4/scanning.d.ts +85 -0
  152. package/dist/internal/c4/scanning.d.ts.map +1 -0
  153. package/dist/internal/c4/scanning.js +180 -0
  154. package/dist/internal/c4/scanning.js.map +1 -0
  155. package/dist/internal/c4/starbase.d.ts +186 -0
  156. package/dist/internal/c4/starbase.d.ts.map +1 -0
  157. package/dist/internal/c4/starbase.js +259 -0
  158. package/dist/internal/c4/starbase.js.map +1 -0
  159. package/dist/internal/c4/world.d.ts +294 -0
  160. package/dist/internal/c4/world.d.ts.map +1 -0
  161. package/dist/internal/c4/world.js +417 -0
  162. package/dist/internal/c4/world.js.map +1 -0
  163. package/dist/internal/cargo.d.ts +65 -0
  164. package/dist/internal/cargo.d.ts.map +1 -0
  165. package/dist/internal/cargo.js +46 -0
  166. package/dist/internal/cargo.js.map +1 -0
  167. package/dist/internal/claim-stake.d.ts +31 -0
  168. package/dist/internal/claim-stake.d.ts.map +1 -0
  169. package/dist/internal/claim-stake.js +20 -0
  170. package/dist/internal/claim-stake.js.map +1 -0
  171. package/dist/internal/fleet.d.ts +165 -0
  172. package/dist/internal/fleet.d.ts.map +1 -0
  173. package/dist/internal/fleet.js +179 -0
  174. package/dist/internal/fleet.js.map +1 -0
  175. package/dist/internal/game-context.d.ts +4 -0
  176. package/dist/internal/game-context.d.ts.map +1 -0
  177. package/dist/internal/game-context.js +9 -0
  178. package/dist/internal/game-context.js.map +1 -0
  179. package/dist/internal/immutable-tree.d.ts +5 -0
  180. package/dist/internal/immutable-tree.d.ts.map +1 -0
  181. package/dist/internal/immutable-tree.js +47 -0
  182. package/dist/internal/immutable-tree.js.map +1 -0
  183. package/dist/internal/json.d.ts +7 -0
  184. package/dist/internal/json.d.ts.map +1 -0
  185. package/dist/internal/json.js +33 -0
  186. package/dist/internal/json.js.map +1 -0
  187. package/dist/internal/planning/authorization-adapter.d.ts +63 -0
  188. package/dist/internal/planning/authorization-adapter.d.ts.map +1 -0
  189. package/dist/internal/planning/authorization-adapter.js +222 -0
  190. package/dist/internal/planning/authorization-adapter.js.map +1 -0
  191. package/dist/internal/read-meta.d.ts +84 -0
  192. package/dist/internal/read-meta.d.ts.map +1 -0
  193. package/dist/internal/read-meta.js +28 -0
  194. package/dist/internal/read-meta.js.map +1 -0
  195. package/dist/internal/resolved-snapshot.d.ts +3 -0
  196. package/dist/internal/resolved-snapshot.d.ts.map +1 -0
  197. package/dist/internal/resolved-snapshot.js +11 -0
  198. package/dist/internal/resolved-snapshot.js.map +1 -0
  199. package/dist/internal/zink/provider.d.ts +9 -0
  200. package/dist/internal/zink/provider.d.ts.map +1 -0
  201. package/dist/internal/zink/provider.js +213 -0
  202. package/dist/internal/zink/provider.js.map +1 -0
  203. package/dist/loyalty/index.d.ts +195 -0
  204. package/dist/loyalty/index.d.ts.map +1 -0
  205. package/dist/loyalty/index.js +289 -0
  206. package/dist/loyalty/index.js.map +1 -0
  207. package/dist/markets/index.d.ts +195 -0
  208. package/dist/markets/index.d.ts.map +1 -0
  209. package/dist/markets/index.js +232 -0
  210. package/dist/markets/index.js.map +1 -0
  211. package/dist/mining/index.d.ts +156 -0
  212. package/dist/mining/index.d.ts.map +1 -0
  213. package/dist/mining/index.js +236 -0
  214. package/dist/mining/index.js.map +1 -0
  215. package/dist/planning/assembly.d.ts +42 -0
  216. package/dist/planning/assembly.d.ts.map +1 -0
  217. package/dist/planning/assembly.js +141 -0
  218. package/dist/planning/assembly.js.map +1 -0
  219. package/dist/planning/composition.d.ts +4 -0
  220. package/dist/planning/composition.d.ts.map +1 -0
  221. package/dist/planning/composition.js +76 -0
  222. package/dist/planning/composition.js.map +1 -0
  223. package/dist/planning/execution.d.ts +93 -0
  224. package/dist/planning/execution.d.ts.map +1 -0
  225. package/dist/planning/execution.js +549 -0
  226. package/dist/planning/execution.js.map +1 -0
  227. package/dist/planning/index.d.ts +219 -0
  228. package/dist/planning/index.d.ts.map +1 -0
  229. package/dist/planning/index.js +375 -0
  230. package/dist/planning/index.js.map +1 -0
  231. package/dist/planning/plan-instances.d.ts +3 -0
  232. package/dist/planning/plan-instances.d.ts.map +1 -0
  233. package/dist/planning/plan-instances.js +8 -0
  234. package/dist/planning/plan-instances.js.map +1 -0
  235. package/dist/planning/plan-sequence-checkpoint.d.ts +154 -0
  236. package/dist/planning/plan-sequence-checkpoint.d.ts.map +1 -0
  237. package/dist/planning/plan-sequence-checkpoint.js +449 -0
  238. package/dist/planning/plan-sequence-checkpoint.js.map +1 -0
  239. package/dist/planning/plan-sequence-execution.d.ts +72 -0
  240. package/dist/planning/plan-sequence-execution.d.ts.map +1 -0
  241. package/dist/planning/plan-sequence-execution.js +410 -0
  242. package/dist/planning/plan-sequence-execution.js.map +1 -0
  243. package/dist/planning/plan-sequence.d.ts +244 -0
  244. package/dist/planning/plan-sequence.d.ts.map +1 -0
  245. package/dist/planning/plan-sequence.js +264 -0
  246. package/dist/planning/plan-sequence.js.map +1 -0
  247. package/dist/planning/simulation.d.ts +50 -0
  248. package/dist/planning/simulation.d.ts.map +1 -0
  249. package/dist/planning/simulation.js +69 -0
  250. package/dist/planning/simulation.js.map +1 -0
  251. package/dist/registry/combat.d.ts +5 -0
  252. package/dist/registry/combat.d.ts.map +1 -0
  253. package/dist/registry/combat.js +7 -0
  254. package/dist/registry/combat.js.map +1 -0
  255. package/dist/registry/index.d.ts +138 -0
  256. package/dist/registry/index.d.ts.map +1 -0
  257. package/dist/registry/index.js +397 -0
  258. package/dist/registry/index.js.map +1 -0
  259. package/dist/rewards/index.d.ts +202 -0
  260. package/dist/rewards/index.d.ts.map +1 -0
  261. package/dist/rewards/index.js +290 -0
  262. package/dist/rewards/index.js.map +1 -0
  263. package/dist/scanning/index.d.ts +185 -0
  264. package/dist/scanning/index.d.ts.map +1 -0
  265. package/dist/scanning/index.js +207 -0
  266. package/dist/scanning/index.js.map +1 -0
  267. package/dist/starbases/actions/index.d.ts +60 -0
  268. package/dist/starbases/actions/index.d.ts.map +1 -0
  269. package/dist/starbases/actions/index.js +245 -0
  270. package/dist/starbases/actions/index.js.map +1 -0
  271. package/dist/starbases/index.d.ts +165 -0
  272. package/dist/starbases/index.d.ts.map +1 -0
  273. package/dist/starbases/index.js +213 -0
  274. package/dist/starbases/index.js.map +1 -0
  275. package/dist/world/index.d.ts +180 -0
  276. package/dist/world/index.d.ts.map +1 -0
  277. package/dist/world/index.js +265 -0
  278. package/dist/world/index.js.map +1 -0
  279. package/package.json +140 -0
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,124 @@
1
+ # @aephia/atlas-kit
2
+
3
+ [![npm version](https://img.shields.io/npm/v/%40aephia%2Fatlas-kit)](https://www.npmjs.com/package/@aephia/atlas-kit)
4
+
5
+ Community-maintained TypeScript SDK for Star Atlas SAGE C4 on the z.ink chain:
6
+ gameplay-oriented reads, fully translated game state, inert action Plans, and
7
+ typed, remedy-oriented errors.
8
+
9
+ > [!IMPORTANT] This is an unofficial community project. It is not maintained by
10
+ > ATMTA or the Star Atlas development team.
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ npm install @aephia/atlas-kit @solana/kit@^6.1.0
16
+ ```
17
+
18
+ `@solana/kit` is a peer dependency. Do not confuse this package with the
19
+ `@staratlas/sage` package, which targets the previous version of the game and is
20
+ API-incompatible with SAGE C4.
21
+
22
+ ## Quickstart
23
+
24
+ The batteries-included client returns already-loaded entity views:
25
+
26
+ <!-- example: illustrative -->
27
+
28
+ ```ts
29
+ import { createSageClient } from '@aephia/atlas-kit';
30
+ import { createSolanaRpc } from '@solana/kit';
31
+
32
+ const rpc = createSolanaRpc('https://testnet-rpc.z.ink');
33
+ const sage = createSageClient({ cluster: 'zink-ptr', rpc });
34
+
35
+ const character = await sage.characters.forProfile(profileAddress);
36
+ const fleets = await character.fleets.all();
37
+ const fleet = fleets[0];
38
+ if (!fleet) throw new Error('The Profile has no Fleets.');
39
+
40
+ console.log(fleet.name); // a trimmed string, not a padded byte array
41
+ console.log(fleet.state); // a discriminated union with named fields
42
+ console.log(fleet.ships); // registry-resolved ship summaries
43
+ ```
44
+
45
+ Size-sensitive applications import only the capability entries they need — a
46
+ galaxy-map application importing `@aephia/atlas-kit/world` ships no fleet, market, or
47
+ crafting code:
48
+
49
+ <!-- example: illustrative -->
50
+
51
+ ```ts
52
+ import { createSageContext } from '@aephia/atlas-kit/client';
53
+ import { getStarSystems } from '@aephia/atlas-kit/world';
54
+
55
+ const ctx = createSageContext({ cluster: 'zink-ptr', rpc });
56
+ const systems = await getStarSystems(ctx);
57
+ ```
58
+
59
+ ## Entry points
60
+
61
+ | Entry point | Purpose |
62
+ | -------------------------------- | ------------------------------------------------------------ |
63
+ | `@aephia/atlas-kit` | Loaded traversal across selected gameplay domains |
64
+ | `@aephia/atlas-kit/bindings` | Raw generated C4 clients as an explicit escape hatch |
65
+ | `@aephia/atlas-kit/cargo` | Cargo definitions, pods, inventory, and capacity |
66
+ | `@aephia/atlas-kit/cargo/actions` | Fleet/Starbase and within-Fleet cargo transfer planning |
67
+ | `@aephia/atlas-kit/claim-stakes` | Claim Stake reads, discovery, lifecycle, and production |
68
+ | `@aephia/atlas-kit/client` | Context, cache, provenance, subscriptions, and errors |
69
+ | `@aephia/atlas-kit/combat` | Combat configuration, Fleet combat state, Loot, and Outlaws |
70
+ | `@aephia/atlas-kit/crafting` | Recipes, Crafting Habs, Processes, and production state |
71
+ | `@aephia/atlas-kit/factions` | Faction identity, economics, diplomacy, and territory |
72
+ | `@aephia/atlas-kit/fleets` | Fleets, composition, movement state, and relationships |
73
+ | `@aephia/atlas-kit/fleets/actions` | Inspectable Fleet movement and arrival-settlement planners |
74
+ | `@aephia/atlas-kit/identity` | Wallet, Profile, Character, progression, and research reads |
75
+ | `@aephia/atlas-kit/loyalty` | Loyalty epochs, contributions, banks, and lifecycle |
76
+ | `@aephia/atlas-kit/markets` | Local Market orders, maker state, and discovery |
77
+ | `@aephia/atlas-kit/mining` | Deposits, active mining, extraction, and cargo outputs |
78
+ | `@aephia/atlas-kit/planning` | Inert Plans, assembly, signer-free simulation, and execution |
79
+ | `@aephia/atlas-kit/scanning` | Scan patterns, cooldowns, stats, and Character state |
80
+ | `@aephia/atlas-kit/rewards` | ATLAS reward configuration, treasuries, and commitments |
81
+ | `@aephia/atlas-kit/starbases` | Player-local Starbase state, facilities, and upgrades |
82
+ | `@aephia/atlas-kit/starbases/actions` | Address-only StarbasePlayer registration planning |
83
+ | `@aephia/atlas-kit/world` | Game, regions, systems, bodies, and world projections |
84
+
85
+ ## Scope and guarantees
86
+
87
+ - **Bounded write interaction.** The planning entry creates and combines
88
+ inspectable signer-free data, then assembles it after fetching one recent
89
+ blockhash through the optional write transport. Execution accepts external Kit
90
+ signers, re-checks freshness before signing, submits exactly once, confirms to
91
+ a typed outcome, and invalidates affected cache entries only on confirmed
92
+ success. No signer or key material is retained by the context. The Fleet
93
+ actions entries plan all five bounded movement transitions, Fleet arrival
94
+ settlement, and D048's focused cargo/Starbase transfers without write RPC;
95
+ `simulatePlan` accepts only an address-valued assembly policy and never
96
+ invokes a signer. Remaining capability planners do not ship yet. Treat every
97
+ unknown outcome as possibly submitted and never retry it automatically;
98
+ execution can incur fees or move assets.
99
+ - **Validated.** Every account read is checked for program owner, discriminator,
100
+ and shape before decoding; indexer results are hints until verified against
101
+ direct chain state.
102
+ - **Translated.** No raw binding shapes: names are strings, enums are
103
+ string-literal unions, ATLAS amounts carry unit-explicit fields with raw
104
+ `bigint` precision preserved, and every snapshot is `JSON.stringify`-safe.
105
+ - **AI-legible.** Every public symbol ships a compiling TSDoc example, and the
106
+ repository publishes `llms.txt` / `llms-full.txt` artifacts.
107
+
108
+ ## Releases and changelog
109
+
110
+ Versions are released automatically from Conventional Commits; every release
111
+ publishes generated notes on the
112
+ [GitHub releases page](https://github.com/Aephia/atlas-kit/releases) and appends
113
+ to the repository
114
+ [CHANGELOG](https://github.com/Aephia/atlas-kit/blob/main/CHANGELOG.md).
115
+
116
+ ## Documentation
117
+
118
+ Full documentation, architecture, and the consumer agent guide live in the
119
+ [repository](https://github.com/Aephia/atlas-kit): see `docs/PUBLIC_API.md` and
120
+ `docs/CONSUMER_AGENT_GUIDE.md`.
121
+
122
+ ## License
123
+
124
+ [Apache-2.0](./LICENSE). Copyright Aephia contributors.
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Raw generated SAGE C4 bindings escape hatch.
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * import { playerProfile, profileFaction, sage } from '@aephia/atlas-kit/bindings';
7
+ * void [playerProfile, profileFaction, sage];
8
+ * ```
9
+ */
10
+ export { playerProfile, profileFaction, sage } from './internal/c4/bindings.js';
11
+ //# sourceMappingURL=bindings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bindings.d.ts","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Raw generated SAGE C4 bindings escape hatch.
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * import { playerProfile, profileFaction, sage } from '@aephia/atlas-kit/bindings';
7
+ * void [playerProfile, profileFaction, sage];
8
+ * ```
9
+ */
10
+ export { playerProfile, profileFaction, sage } from './internal/c4/bindings.js';
11
+ //# sourceMappingURL=bindings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bindings.js","sourceRoot":"","sources":["../src/bindings.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,122 @@
1
+ import { type Address } from '@solana/kit';
2
+ import type { SageContext } from '../../client/contracts.js';
3
+ import type { EntityRef } from '../../client/refs.js';
4
+ import type { ResolvedFleetAccountData } from '../../internal/fleet.js';
5
+ import { type PlanAuthorization } from '../../internal/planning/authorization-adapter.js';
6
+ import { type Plan } from '../../planning/index.js';
7
+ export type { PlanAuthorization };
8
+ /** Inputs for one explicit Fleet/player-Starbase cargo transfer.
9
+ *
10
+ * Every quantity is a positive raw on-chain `bigint`. Ammo and fuel are bounded
11
+ * by signed i64 because direction is encoded by sign; cargo-hold quantities use
12
+ * unsigned u64 and cargo ids use unsigned u16.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * declare const authorization: PlanAuthorization;
17
+ * const options: PlanFleetTransferCargoAtStarbaseOptions = {
18
+ * authorization,
19
+ * direction: 'toFleet',
20
+ * amounts: {
21
+ * ammo: 25n,
22
+ * cargoHold: [{ cargoId: 3, amount: 2n }],
23
+ * },
24
+ * };
25
+ * ```
26
+ */
27
+ export interface PlanFleetTransferCargoAtStarbaseOptions {
28
+ readonly authorization: PlanAuthorization;
29
+ readonly direction: 'toFleet' | 'toStarbase';
30
+ readonly amounts: {
31
+ readonly ammo?: bigint;
32
+ readonly fuel?: bigint;
33
+ readonly cargoHold?: readonly {
34
+ readonly cargoId: number;
35
+ readonly amount: bigint;
36
+ }[];
37
+ };
38
+ }
39
+ /** Inputs for moving one exact cargo quantity between two pods in one Fleet.
40
+ *
41
+ * The amount is a positive raw on-chain unsigned-u64 `bigint`; the cargo id is
42
+ * an unsigned-u16 integer. Pod names select the Fleet snapshot's nested ammo,
43
+ * fuel, or cargo-hold inventory without accepting CargoPod account addresses.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * declare const authorization: PlanAuthorization;
48
+ * const options: PlanFleetTransferCargoWithinFleetOptions = {
49
+ * amount: 5n,
50
+ * authorization,
51
+ * cargoId: 2,
52
+ * from: 'ammo',
53
+ * to: 'cargoHold',
54
+ * };
55
+ * ```
56
+ */
57
+ export interface PlanFleetTransferCargoWithinFleetOptions {
58
+ readonly authorization: PlanAuthorization;
59
+ readonly from: 'ammo' | 'fuel' | 'cargoHold';
60
+ readonly to: 'ammo' | 'fuel' | 'cargoHold';
61
+ readonly cargoId: number;
62
+ readonly amount: bigint;
63
+ }
64
+ interface FleetSnapshot extends Omit<ResolvedFleetAccountData, 'ownerProfile'> {
65
+ readonly kind: 'fleet';
66
+ readonly address: Address;
67
+ readonly ownerProfile: EntityRef<'profile'>;
68
+ toJSON(): unknown;
69
+ }
70
+ /** Plans one bidirectional Fleet/player-Starbase cargo transfer without signing or RPC writes.
71
+ *
72
+ * The caller supplies only gameplay direction and positive raw-unit quantities.
73
+ * Planning directly re-reads the Fleet, canonical Character, and derived
74
+ * StarbasePlayer; checks known source balances (aggregated by cargo id for the
75
+ * shared Starbase inventory) and, when loading the Fleet, exact
76
+ * ammo/fuel/cargo capacity; and returns one inspectable instruction. The chain
77
+ * remains authoritative for state races, crew normalization, faction
78
+ * policy, Profile permission bits including `MANAGE_FLEET_CARGO`, and program
79
+ * arithmetic. Starbase destination capacity is not inferred because the
80
+ * shipped StarbasePlayer read exposes no total-capacity field.
81
+ *
82
+ * @example
83
+ * ```ts
84
+ * declare const ctx: SageContext;
85
+ * declare const fleet: FleetSnapshot;
86
+ * declare const authorization: PlanAuthorization;
87
+ * const plan = await planFleetTransferCargoAtStarbase(ctx, fleet, {
88
+ * authorization,
89
+ * direction: 'toStarbase',
90
+ * amounts: { fuel: 10n },
91
+ * });
92
+ * console.log(plan.describe());
93
+ * ```
94
+ */
95
+ export declare function planFleetTransferCargoAtStarbase(ctx: SageContext, fleet: FleetSnapshot, input: PlanFleetTransferCargoAtStarbaseOptions): Promise<Plan>;
96
+ /** Plans one exact cargo transfer between two nested pods in one Fleet.
97
+ *
98
+ * The caller supplies pod names, one unsigned-u16 cargo id, and one positive
99
+ * raw unsigned-u64 amount. Planning uses only the supplied Fleet snapshot for
100
+ * pod identities, resolved cargo ids, balances, and ammo/fuel/cargo-hold
101
+ * capacity. It accepts idle, docked, and Claim Stake transfer states and
102
+ * returns one signer-free, inspectable instruction. The chain remains
103
+ * authoritative for state races, Profile permission bits including
104
+ * `MANAGE_FLEET_CARGO`, and program arithmetic.
105
+ *
106
+ * @example
107
+ * ```ts
108
+ * declare const ctx: SageContext;
109
+ * declare const fleet: FleetSnapshot;
110
+ * declare const authorization: PlanAuthorization;
111
+ * const plan = await planFleetTransferCargoWithinFleet(ctx, fleet, {
112
+ * amount: 5n,
113
+ * authorization,
114
+ * cargoId: fleet.ammo.id,
115
+ * from: 'ammo',
116
+ * to: 'cargoHold',
117
+ * });
118
+ * console.log(plan.describe());
119
+ * ```
120
+ */
121
+ export declare function planFleetTransferCargoWithinFleet(ctx: SageContext, fleet: FleetSnapshot, input: PlanFleetTransferCargoWithinFleetOptions): Promise<Plan>;
122
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cargo/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAIzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAiBtD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAIL,KAAK,iBAAiB,EACvB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAEL,KAAK,IAAI,EAEV,MAAM,yBAAyB,CAAC;AAGjC,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,uCAAuC;IACtD,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;IAC1C,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,YAAY,CAAC;IAC7C,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS;YAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;YACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;SACzB,EAAE,CAAC;KACL,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,wCAAwC;IACvD,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC;IAC7C,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC;IAC3C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAOD,UAAU,aAAc,SAAQ,IAAI,CAAC,wBAAwB,EAAE,cAAc,CAAC;IAC5E,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,YAAY,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC5C,MAAM,IAAI,OAAO,CAAC;CACnB;AAmdD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,gCAAgC,CACpD,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,uCAAuC,GAC7C,OAAO,CAAC,IAAI,CAAC,CAoNf;AAmID;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,iCAAiC,CACrD,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,wCAAwC,GAC9C,OAAO,CAAC,IAAI,CAAC,CAyDf"}