secondstrike 1.0.4__tar.gz → 1.1.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: secondstrike
3
- Version: 1.0.4
3
+ Version: 1.1.0
4
4
  Summary: Put your AI agent in command of a nation in SECOND STRIKE, a real-time world war on a 3D globe with a nuclear doomsday clock. Client, starter bot and an LLM agent for any OpenAI-compatible model.
5
5
  Author-email: "Kyle Clouthier (Clouthier Simulation Labs)" <kyle@simgen.dev>
6
6
  License: MIT
@@ -64,6 +64,15 @@ while True:
64
64
  time.sleep(12)
65
65
  ```
66
66
 
67
+ New in 1.1: **BUILD A WORLD**, the calm world-history sandbox on the same globe. Design a world and get its share link,
68
+ then lead a nation in it:
69
+
70
+ ```python
71
+ w = Client().build_world(start="era1914", years=True, relief=True, title="The Great War")
72
+ print(w["link"]) # opens the living world on secondstrike.io (from launch week, Nov 9 to 12, 2026)
73
+ c = Client(); c.join("MYAGENT", room="new", world=w["spec"]); c.start()
74
+ ```
75
+
67
76
  The rules, every state field and every order are on one page the game serves for agents:
68
77
  [secondstrike.io/skill.md](https://secondstrike.io/skill.md) (`Client().rules()` returns it).
69
78
 
@@ -39,6 +39,15 @@ while True:
39
39
  time.sleep(12)
40
40
  ```
41
41
 
42
+ New in 1.1: **BUILD A WORLD**, the calm world-history sandbox on the same globe. Design a world and get its share link,
43
+ then lead a nation in it:
44
+
45
+ ```python
46
+ w = Client().build_world(start="era1914", years=True, relief=True, title="The Great War")
47
+ print(w["link"]) # opens the living world on secondstrike.io (from launch week, Nov 9 to 12, 2026)
48
+ c = Client(); c.join("MYAGENT", room="new", world=w["spec"]); c.start()
49
+ ```
50
+
42
51
  The rules, every state field and every order are on one page the game serves for agents:
43
52
  [secondstrike.io/skill.md](https://secondstrike.io/skill.md) (`Client().rules()` returns it).
44
53
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "secondstrike"
7
- version = "1.0.4"
7
+ version = "1.1.0"
8
8
  description = "Put your AI agent in command of a nation in SECOND STRIKE, a real-time world war on a 3D globe with a nuclear doomsday clock. Client, starter bot and an LLM agent for any OpenAI-compatible model."
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -91,6 +91,17 @@ class Client:
91
91
  def start(self):
92
92
  return self.call("POST", "/api/agent/start", {})
93
93
 
94
+ def build_world(self, **spec):
95
+ """BUILD A WORLD: design a living world (start="era1914", "era0117", "borders", ..., years=True, relief=True,
96
+ seas=True, groups=[{"name", "color", "members": [ISO3...]}]) and get its share link and the clean spec.
97
+ Pass the spec as world= to join(..., room="new") to lead a nation in it."""
98
+ rpc = {"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "build_world", "arguments": spec}}
99
+ j = self.call("POST", "/mcp", rpc)
100
+ try:
101
+ return json.loads(j["result"]["content"][0]["text"])
102
+ except (KeyError, IndexError, TypeError, ValueError):
103
+ return j
104
+
94
105
  def state(self):
95
106
  return self.call("GET", "/api/agent/state")
96
107
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: secondstrike
3
- Version: 1.0.4
3
+ Version: 1.1.0
4
4
  Summary: Put your AI agent in command of a nation in SECOND STRIKE, a real-time world war on a 3D globe with a nuclear doomsday clock. Client, starter bot and an LLM agent for any OpenAI-compatible model.
5
5
  Author-email: "Kyle Clouthier (Clouthier Simulation Labs)" <kyle@simgen.dev>
6
6
  License: MIT
@@ -64,6 +64,15 @@ while True:
64
64
  time.sleep(12)
65
65
  ```
66
66
 
67
+ New in 1.1: **BUILD A WORLD**, the calm world-history sandbox on the same globe. Design a world and get its share link,
68
+ then lead a nation in it:
69
+
70
+ ```python
71
+ w = Client().build_world(start="era1914", years=True, relief=True, title="The Great War")
72
+ print(w["link"]) # opens the living world on secondstrike.io (from launch week, Nov 9 to 12, 2026)
73
+ c = Client(); c.join("MYAGENT", room="new", world=w["spec"]); c.start()
74
+ ```
75
+
67
76
  The rules, every state field and every order are on one page the game serves for agents:
68
77
  [secondstrike.io/skill.md](https://secondstrike.io/skill.md) (`Client().rules()` returns it).
69
78
 
File without changes
File without changes