sponge-ai 0.2.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.
- package/bin/sponge +15 -0
- package/package.json +20 -0
package/bin/sponge
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Sponge npm wrapper — delegates to the Python sponge CLI.
|
|
3
|
+
set -e
|
|
4
|
+
|
|
5
|
+
if command -v sponge &>/dev/null; then
|
|
6
|
+
exec sponge "$@"
|
|
7
|
+
fi
|
|
8
|
+
|
|
9
|
+
echo "sponge not found — installing via pip …" >&2
|
|
10
|
+
pip install sponge-ai 2>/dev/null || pip3 install sponge-ai 2>/dev/null || {
|
|
11
|
+
echo "❌ Failed to install. Make sure Python 3.12+ and pip are installed." >&2
|
|
12
|
+
exit 1
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
exec sponge "$@"
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sponge-ai",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Cost-optimal AI agent harness — use the best model, pay the least",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/ihgoa501-stack/sponge.git"
|
|
9
|
+
},
|
|
10
|
+
"keywords": ["ai", "agent", "llm", "cost", "claude", "coding"],
|
|
11
|
+
"bin": {
|
|
12
|
+
"sponge": "./bin/sponge"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"postinstall": "pip install sponge-ai 2>/dev/null || pip3 install sponge-ai 2>/dev/null || echo '⚠️ pip not found — sponge requires Python 3.12+ and pip'"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"bin/sponge"
|
|
19
|
+
]
|
|
20
|
+
}
|