@spacemolt/lib 4.6.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.
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @spacemolt/lib — the TypeScript library for SpaceMolt.
3
+ *
4
+ * WebSocket-v2-first, multi-account, with local state caches updated from
5
+ * mutation deltas and server pushes. Library internals are regenerated from
6
+ * the server's published OpenAPI spec (`bun run generate`).
7
+ *
8
+ * This is the M0 surface: protocol types and the generated command/notification
9
+ * catalog. The runtime client (transport, accounts, state, events) lands in
10
+ * subsequent milestones.
11
+ */
12
+ export * from './protocol.js';
13
+ export { Account, type AccountOptions, type ReconnectOptions, type RegisterParams, type RegisterResult, type LoggedInPayload, } from './account.js';
14
+ export { SpacemoltClient, type SpacemoltClientOptions } from './client.js';
15
+ export { ClerkSource, mintWsToken, type ClerkPlayer, type ClerkSourceOptions, } from './auth/clerk.js';
16
+ export { type CredentialStore, type StoredAccount, type AuthCredentials, MemoryCredentialStore, } from './auth/credentials.js';
17
+ export { SpacemoltError, ConnectionClosedError, CLOSE_CODE, retryAfterMsFromClose } from './errors.js';
18
+ export { StateCache } from './state/cache.js';
19
+ export { MarketCache, type MarketBook, type MarketItem } from './state/market.js';
20
+ export { ObservationCache, type ObservationView, type ObservedPlayer, type CloakedContact, } from './state/observation.js';
21
+ export { TypedEmitter, EventStream } from './events/emitter.js';
22
+ export { type Commands, type CommandDispatch, buildCommands } from './generated/commands.gen.js';
23
+ export { CatalogCache, fetchCatalog, type Catalog, type CatalogEntry } from './data/catalog.js';
24
+ export { MapCache, fetchMap, httpBaseFromWs, type GalaxyMap, type MapSystem } from './data/map.js';
25
+ export { Socket, type SocketOptions, type WebSocketLike, type WebSocketFactory, } from './transport/socket.js';
26
+ export { ACTIONS, GENERATED_SPEC_VERSION } from './generated/actions.gen.js';
27
+ export type { ToolName, ActionName, ActionDef, ActionParam } from './generated/actions.gen.js';
28
+ export type * from './generated/openapi/types.gen.js';
29
+ export { TYPED_NOTIFICATION_TYPES, } from './generated/notifications.gen.js';
30
+ export type { NotificationPayloads, TypedNotificationType, } from './generated/notifications.gen.js';