@kokorolx/ai-sandbox-wrapper 3.4.3-beta.2 → 3.4.3

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,60 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- dockerfile_snippet() {
5
- cat <<'SNIPPET'
6
- # open-design is a service-type tool (long-running daemon)
7
- # It uses its own upstream image, not ai-base
8
- # This snippet is included for convention only; the base image builder
9
- # does NOT inline open-design (it runs as a separate container)
10
- SNIPPET
11
- }
12
-
13
- if [[ "${SNIPPET_MODE:-}" == "1" ]]; then
14
- return 0 2>/dev/null || exit 0
15
- fi
16
-
17
- TOOL="open-design"
18
- # NOTE: upstream vanjayak/open-design currently publishes only the 'latest' tag (as of 2026-05).
19
- # When upstream starts publishing version tags (e.g., 0.8.0-preview), pin via OPEN_DESIGN_IMAGE_TAG
20
- # or OPEN_DESIGN_IMAGE to avoid breaking changes.
21
- OPEN_DESIGN_IMAGE_TAG="${OPEN_DESIGN_IMAGE_TAG:-latest}"
22
- OPEN_DESIGN_IMAGE="${OPEN_DESIGN_IMAGE:-docker.io/vanjayak/open-design:${OPEN_DESIGN_IMAGE_TAG}}"
23
- OPEN_DESIGN_VERSION="${OPEN_DESIGN_VERSION:-${OPEN_DESIGN_IMAGE_TAG}}"
24
-
25
- echo "Installing $TOOL (Open Design daemon — long-running HTTP service)..."
26
- echo " Upstream image: $OPEN_DESIGN_IMAGE"
27
-
28
- mkdir -p "dockerfiles/$TOOL"
29
- mkdir -p "$HOME/.ai-sandbox/tools/$TOOL/home"
30
-
31
- # Generate Dockerfile (idempotent — overwrites existing)
32
- cat > "dockerfiles/$TOOL/Dockerfile" <<EOF
33
- FROM $OPEN_DESIGN_IMAGE
34
-
35
- # Force daemon to bind on all interfaces inside the container.
36
- # Bearer token auth (OD_API_TOKEN env) protects the daemon.
37
- ENV OD_BIND_HOST=0.0.0.0
38
-
39
- # Document the port (publishing is controlled by ai-run --expose)
40
- EXPOSE 7456
41
-
42
- # Daemon entrypoint is provided by upstream image (do not override)
43
- EOF
44
-
45
- # Build image
46
- echo "Building Docker image for $TOOL..."
47
- docker build ${DOCKER_NO_CACHE:+--no-cache} -t "ai-$TOOL:latest" "dockerfiles/$TOOL"
48
-
49
- echo "✅ $TOOL installed (Open Design daemon)"
50
- echo ""
51
- echo "Features:"
52
- echo " ✓ Long-running HTTP daemon (port 7456 inside container)"
53
- echo " ✓ Bearer token auth (OD_API_TOKEN)"
54
- echo " ✓ Persistent state via named volume (ai-open-design-data)"
55
- echo " ✓ Internal-only by default (use --expose to publish to host)"
56
- echo ""
57
- echo "Usage:"
58
- echo " ai-run open-design init # one-time: generate token, network, volume"
59
- echo " ai-run open-design start # boot daemon"
60
- echo " ai-run open-design status # check health"
@@ -1,186 +0,0 @@
1
- ---
2
- name: dd-pup
3
- description: "Datadog CLI (pup) for AI agents. OAuth2 auth with token refresh. Query logs, metrics, monitors, traces, and more."
4
- compatibility: "OpenCode with pup binary installed"
5
- metadata:
6
- author: datadog-labs
7
- version: "1.0.0"
8
- repository: https://github.com/DataDog/pup
9
- ---
10
-
11
- # pup (Datadog CLI)
12
-
13
- Pup CLI for Datadog API operations. Supports OAuth2 and API key auth.
14
-
15
- ## Quick Reference
16
-
17
- | Task | Command |
18
- |------|---------|
19
- | Search error logs | `pup logs search --query "status:error" --from 1h` |
20
- | List monitors | `pup monitors list` |
21
- | Create downtime | `pup downtime create --file downtime.json` |
22
- | Find slow traces | `pup traces search --query="@duration:>500000000" --from="1h"` |
23
- | List incidents | `pup incidents list` |
24
- | Query metrics | `pup metrics query --query "avg:system.cpu.user{*}"` |
25
- | List hosts | `pup infrastructure hosts list` |
26
- | Check SLOs | `pup slos list` |
27
- | On-call teams | `pup on-call teams list` |
28
- | Security signals | `pup security signals list --query "*" --from 24h` |
29
- | Check auth | `pup auth status` |
30
- | Refresh token | `pup auth refresh` |
31
-
32
- ## Prerequisites
33
-
34
- ```bash
35
- # Install pup via Homebrew (recommended)
36
- brew tap datadog-labs/pack
37
- brew install pup
38
-
39
- # Or build from source
40
- cargo install --git https://github.com/DataDog/pup
41
- ```
42
-
43
- ## Auth
44
-
45
- ```bash
46
- pup auth login # OAuth2 browser flow (recommended)
47
- pup auth status # Check token validity
48
- pup auth refresh # Refresh expired token (no browser)
49
- pup auth logout # Clear credentials
50
- ```
51
-
52
- **⚠️ Tokens expire (~1 hour)**. If a command fails with 401/403:
53
- ```bash
54
- pup auth refresh # Try refresh first
55
- pup auth login # If refresh fails, full re-auth
56
- ```
57
-
58
- ### Headless/CI (no browser)
59
-
60
- ```bash
61
- export DD_API_KEY=your-api-key
62
- export DD_APP_KEY=your-app-key
63
- export DD_SITE=datadoghq.com # or datadoghq.eu, etc.
64
- ```
65
-
66
- ## Command Reference
67
-
68
- ### Monitors
69
-
70
- ```bash
71
- pup monitors list --limit 10
72
- pup monitors list --tags "env:prod"
73
- pup monitors get 12345
74
- pup monitors search --query "High CPU"
75
- pup monitors create --file monitor.json
76
- pup monitors delete 12345
77
- ```
78
-
79
- ### Logs
80
-
81
- ```bash
82
- pup logs search --query "status:error" --from 1h
83
- pup logs search --query "service:payment-api" --from 1h --limit 100
84
- pup logs aggregate --query "service:api" --compute count --from 1h
85
- ```
86
-
87
- ### Metrics
88
-
89
- ```bash
90
- pup metrics query --query "avg:system.cpu.user{*}" --from 1h
91
- pup metrics list --filter "system.*"
92
- ```
93
-
94
- ### APM / Services
95
-
96
- ```bash
97
- pup apm services list --env production
98
- pup apm services stats --env production
99
- pup apm dependencies list --env production
100
- ```
101
-
102
- ### Traces
103
-
104
- ```bash
105
- pup traces search --query="service:api-gateway" --from="1h"
106
- pup traces search --query="service:api @duration:>1000000000" --from="1h"
107
- pup traces aggregate --query="service:api" --compute="avg(@duration)" --group-by="resource_name" --from="1h"
108
- ```
109
-
110
- ### Infrastructure / Hosts
111
-
112
- ```bash
113
- pup infrastructure hosts list
114
- pup infrastructure hosts list --filter "env:prod"
115
- ```
116
-
117
- ### Dashboards
118
-
119
- ```bash
120
- pup dashboards list
121
- pup dashboards get abc-123
122
- pup dashboards create --file dashboard.json
123
- ```
124
-
125
- ### SLOs
126
-
127
- ```bash
128
- pup slos list
129
- pup slos get slo-123
130
- pup slos status slo-123 --from 30d --to now
131
- ```
132
-
133
- ### Security
134
-
135
- ```bash
136
- pup security signals list --query "*" --from 24h
137
- pup security rules list
138
- ```
139
-
140
- ### Live Debugger
141
-
142
- ```bash
143
- pup debugger context my-svc --env prod
144
- pup symdb search --service my-svc --query MyController --view probe-locations
145
- pup debugger probes create --service my-svc --env prod \
146
- --probe-location "com.example.MyController:handleRequest" \
147
- --capture "request.id" --ttl 1h
148
- pup debugger probes watch --fields "message,captures,timestamp" --timeout 60
149
- ```
150
-
151
- ## Subcommand Discovery
152
-
153
- ```bash
154
- pup --help # List all commands
155
- pup <cmd> --help # Command-specific help
156
- pup agent schema # Machine-readable output
157
- ```
158
-
159
- ## Error Handling
160
-
161
- | Error | Cause | Fix |
162
- |-------|-------|-----|
163
- | 401 Unauthorized | Token expired | `pup auth refresh` |
164
- | 403 Forbidden | Missing scope | Check app key permissions |
165
- | 404 Not Found | Wrong ID/resource | Verify resource exists |
166
- | Rate limited | Too many requests | Add delays between calls |
167
-
168
- ## Sites
169
-
170
- | Site | `DD_SITE` value |
171
- |------|-----------------|
172
- | US1 (default) | `datadoghq.com` |
173
- | US3 | `us3.datadoghq.com` |
174
- | US5 | `us5.datadoghq.com` |
175
- | EU1 | `datadoghq.eu` |
176
- | AP1 | `ap1.datadoghq.com` |
177
- | US1-FED | `ddog-gov.com` |
178
-
179
- ## Detection
180
-
181
- Before using pup commands, verify it's installed:
182
- ```bash
183
- pup --version
184
- ```
185
-
186
- If `pup` is not found, skip this skill.