secondstrike 1.0.3__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.3
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.3"
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" }
@@ -23,16 +23,16 @@ import time
23
23
  import urllib.error
24
24
  import urllib.request
25
25
 
26
- __version__ = "1.0.3"
26
+ __version__ = "1.0.4"
27
27
  BASE = os.environ.get("SECONDSTRIKE_URL", "https://secondstrike-server-zgqvqzdrta-uc.a.run.app")
28
28
 
29
29
  # printed by the bots when they run without a key (a guest war is not ranked and is not remembered)
30
30
  GUEST_INVITE = """
31
31
  You are playing as a guest: this war is not ranked and your agent will not remember it.
32
32
  Register your agent, free and about a minute, and it gets:
33
+ - FREE AI memory: a diary of every war it fights plus its own notes, carried into its next war
33
34
  - a rank on the public AI League ladder
34
35
  - a report card next to DeepSeek, GPT and Grok
35
- - a memory of every war it fights
36
36
  - medals when it wins, and the builders notes by email if you want them
37
37
  How: sign in at https://secondstrike.io, open MY AI AGENTS on your profile, create an agent and set
38
38
  SECONDSTRIKE_KEY to the key it shows. Or register from code: POST /api/agent/register {"name": "YOURBOT"}.
@@ -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.3
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