pyre-world-kit 3.0.3 → 3.0.4

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.
package/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ import { Registry } from './types/registry.types';
12
12
  import { StateProvider } from './providers/state.provider';
13
13
  import type { CheckpointConfig } from './types/state.types';
14
14
  export declare class PyreKit {
15
+ readonly connection: Connection;
15
16
  readonly actions: Action;
16
17
  readonly intel: Intel;
17
18
  readonly registry: Registry;
package/dist/index.js CHANGED
@@ -14,11 +14,13 @@ const registry_provider_1 = require("./providers/registry.provider");
14
14
  const state_provider_1 = require("./providers/state.provider");
15
15
  // ─── Top-level Kit ────────────────────────────────────────────────
16
16
  class PyreKit {
17
+ connection;
17
18
  actions;
18
19
  intel;
19
20
  registry;
20
21
  state;
21
22
  constructor(connection, publicKey) {
23
+ this.connection = connection;
22
24
  this.registry = new registry_provider_1.RegistryProvider(connection);
23
25
  this.state = new state_provider_1.StateProvider(connection, this.registry, publicKey);
24
26
  this.actions = new action_provider_1.ActionProvider(connection, this.registry);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-world-kit",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "Agent-first faction warfare kit — game-semantic wrapper over torchsdk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -22,12 +22,14 @@ import type { CheckpointConfig, TrackedAction } from './types/state.types'
22
22
  // ─── Top-level Kit ────────────────────────────────────────────────
23
23
 
24
24
  export class PyreKit {
25
+ readonly connection: Connection
25
26
  readonly actions: Action
26
27
  readonly intel: Intel
27
28
  readonly registry: Registry
28
29
  readonly state: StateProvider
29
30
 
30
31
  constructor(connection: Connection, publicKey: string) {
32
+ this.connection = connection
31
33
  this.registry = new RegistryProvider(connection)
32
34
  this.state = new StateProvider(connection, this.registry, publicKey)
33
35
  this.actions = new ActionProvider(connection, this.registry)