Milestone 0: import zappier billing, Verae middleware, and Zapier research
Compose-ready workspace: packages/zappier (rate card, portal, Stripe), packages/verae-zapier-middleware (timestamp + NATS), packages/verae-zapier (CLI app), vendor/zapier-platform, and research/zapier vendor corpus. Gate 0 structure checks pass. Product code and research are not yet wired.
This commit is contained in:
commit
b4150c8250
1364 changed files with 6814366 additions and 0 deletions
56
research/zapier/scripts/zapier-status.sh
Executable file
56
research/zapier/scripts/zapier-status.sh
Executable file
|
|
@ -0,0 +1,56 @@
|
|||
#!/bin/sh
|
||||
# Print coding-set readiness: tunnel, CLIs, Mongo ping, login files.
|
||||
set -u
|
||||
ROOT="$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)"
|
||||
export PATH="$HOME/.npm-global/bin:$PATH"
|
||||
if [ -f "$HOME/.mcp-env" ]; then
|
||||
# shellcheck disable=SC1091
|
||||
. "$HOME/.mcp-env"
|
||||
fi
|
||||
|
||||
ok() { printf ' ok %s\n' "$1"; }
|
||||
bad() { printf ' FAIL %s\n' "$1"; }
|
||||
|
||||
echo "workspace: $ROOT"
|
||||
|
||||
if nc -z 127.0.0.1 27017 2>/dev/null; then
|
||||
ok "127.0.0.1:27017 listening"
|
||||
else
|
||||
bad "127.0.0.1:27017 not listening (run scripts/ensure-mongo-tunnel.sh)"
|
||||
fi
|
||||
|
||||
if command -v zapier-platform >/dev/null 2>&1; then
|
||||
ok "zapier-platform $(zapier-platform --version 2>/dev/null | head -1 | tr -d '* ' )"
|
||||
else
|
||||
bad "zapier-platform not on PATH (source scripts/dev-env.sh)"
|
||||
fi
|
||||
|
||||
if command -v zapier-sdk >/dev/null 2>&1; then
|
||||
ok "zapier-sdk $(zapier-sdk --version 2>/dev/null)"
|
||||
else
|
||||
bad "zapier-sdk not on PATH"
|
||||
fi
|
||||
|
||||
if [ -f "$HOME/.zapierrc" ]; then
|
||||
ok "~/.zapierrc (platform CLI logged in)"
|
||||
else
|
||||
bad "~/.zapierrc missing — run: zapier-platform login"
|
||||
fi
|
||||
|
||||
if [ -n "${ZAPIER_MONGO_URI:-}" ]; then
|
||||
if command -v mongosh >/dev/null 2>&1; then
|
||||
n="$(mongosh --quiet "$ZAPIER_MONGO_URI" --eval 'db.getSiblingDB("zapier").platform_reference.estimatedDocumentCount()' 2>/dev/null || true)"
|
||||
if [ -n "$n" ]; then
|
||||
ok "mongo platform_reference=$n"
|
||||
else
|
||||
bad "mongosh could not count platform_reference"
|
||||
fi
|
||||
else
|
||||
ok "ZAPIER_MONGO_URI set (mongosh not installed locally)"
|
||||
fi
|
||||
else
|
||||
bad "ZAPIER_MONGO_URI unset (source ~/.mcp-env)"
|
||||
fi
|
||||
|
||||
echo "resume: $ROOT/scripts/restart-grok.sh"
|
||||
echo "playbook: db.platform_reference.findOne({ kind: 'guide', key: 'build-new-connector' })"
|
||||
Loading…
Add table
Add a link
Reference in a new issue