@superwall/cli 1.7.0 → 2.1.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/README.md +192 -52
- package/dist/{setup-Bxj22rYi.js → apple-CSzNTGHM.js} +82 -76
- package/dist/auth.d.ts +4 -19
- package/dist/auth.js +4 -2
- package/dist/{actions-B7ym3oVS.js → billing-C3Q8DBU2.js} +98 -28
- package/dist/{bind-YrJvuRF9.js → bind-BumHTi9O.js} +38 -33
- package/dist/{build-DLoCW5Ri.js → build-Bpviiclc.js} +20 -26
- package/dist/client-BL0f_yGf.js +176 -0
- package/dist/{asc-Bf7zBbyS.js → client-BZ1UbpXz.js} +16 -15
- package/dist/config-BO1Y87kV.js +105 -0
- package/dist/create-BSfvpWoD.js +19 -0
- package/dist/{create-pkANt1Gs.js → create-BUcVG4Ab.js} +195 -169
- package/dist/{notification-url-DuKF2659.js → create-CfK3PeKA.js} +235 -539
- package/dist/doctor-BWqIYcMn.js +83 -0
- package/dist/{drivers-Qx9LxmRN.js → drivers-CPhdPkW5.js} +185 -172
- package/dist/entry.d.ts +0 -5
- package/dist/entry.js +28072 -1134
- package/dist/environment-eBXjELoN.js +58 -0
- package/dist/{existing-AVEfZu2A.js → existing-BltvQiX5.js} +12 -6
- package/dist/held-CPve03KJ.js +16 -0
- package/dist/held-DgnTFMl3.js +1112 -0
- package/dist/input-vi0bou04.js +42 -0
- package/dist/{integrate-brmhPG-S.js → integrate-BRsqoe01.js} +277 -254
- package/dist/log-NVhVe_oe.js +62 -0
- package/dist/login-BCEH5q0U.js +53 -0
- package/dist/login-BPOONe7n.js +16 -0
- package/dist/{login-Do4wFuLv.js → login-BbTIrCFT.js} +118 -55
- package/dist/lookup-rr1AkCJA.js +71 -0
- package/dist/migrate-C9X2Vz81.js +274 -0
- package/dist/notification-url-CV86qiKP.js +100 -0
- package/dist/{open-studio-DOw-6ydc.js → open-CcpXotHG.js} +34 -43
- package/dist/org-BQQDo7wm.js +35 -0
- package/dist/output-Ggzq5_-t.js +122 -0
- package/dist/paths-CRlU72cq.js +29 -0
- package/dist/playbook-DVMXN7fh.js +53 -0
- package/dist/{asc-products-9JXtDxI4.js → products-DH_fK9tY.js} +6 -6
- package/dist/promote-Da8xctzy.js +91 -0
- package/dist/push-BV-grvQg.js +22 -0
- package/dist/push-D6R9icWN.js +495 -0
- package/dist/registry-BYVD-_h6.js +10385 -0
- package/dist/{reports-CfJqoava.js → reports-D_qbl7_u.js} +7 -6
- package/dist/{resources-Bf9O1JNM.js → resources-DLON3-61.js} +162 -55
- package/dist/{run-DsVZ5snL.js → run-Co-BwhOg.js} +16 -22
- package/dist/scan-B88OlWOt.js +4 -0
- package/dist/{scan-zKsddO72.js → scan-CKuk-_6W.js} +48 -37
- package/dist/scope-DV22_Ufm.js +198 -0
- package/dist/screenshot-file-tVBfUEIi.js +16 -0
- package/dist/{selection-CxZoX4NT.js → selection-C2_KbLuo.js} +100 -51
- package/dist/server-C4f6ccUr.js +22 -0
- package/dist/{dev-DmB3XqaJ.js → server-D0d2oP-5.js} +86 -94
- package/dist/session-B-Uz0cQ7.js +40 -0
- package/dist/session-BuvArt1j.js +6 -0
- package/dist/session-C4rbE3VS.js +796 -0
- package/dist/skills/animate-onboarding/SKILL.md +467 -0
- package/dist/skills/animate-onboarding/references/engine.md +494 -0
- package/dist/skills/animate-onboarding/references/framework/Question.tsx +71 -0
- package/dist/skills/animate-onboarding/references/framework/README.md +40 -0
- package/dist/skills/animate-onboarding/references/framework/answers.ts +19 -0
- package/dist/skills/animate-onboarding/references/framework/flow.ts +80 -0
- package/dist/skills/animate-onboarding/references/framework/handoffs.ts +869 -0
- package/dist/skills/animate-onboarding/references/framework/layout.tsx +113 -0
- package/dist/skills/animate-onboarding/references/framework/motion.css +559 -0
- package/dist/skills/animate-onboarding/references/framework/useStoryRouter.ts +48 -0
- package/dist/skills/animate-onboarding/references/handoffs.md +375 -0
- package/dist/skills/animate-onboarding/references/imageReady.ts +92 -0
- package/dist/skills/animate-onboarding/references/morphFrame.ts +356 -0
- package/dist/skills/animate-onboarding/references/performance.md +41 -0
- package/dist/skills/animate-onboarding/references/web-runtime/README.md +17 -0
- package/dist/skills/animate-onboarding/references/web-runtime/handoffs.ts +858 -0
- package/dist/skills/animate-onboarding/references/web-runtime/story-motion.css +301 -0
- package/dist/skills/index.json +37 -0
- package/dist/skills/mobile-design/SKILL.md +447 -0
- package/dist/skills/mobile-design/references/responsive.md +162 -0
- package/dist/skills/onboarding-questions/SKILL.md +231 -0
- package/dist/skills/onboarding-questions/references/arpu-questions.md +139 -0
- package/dist/skills/onboarding-questions/references/craft.md +142 -0
- package/dist/skills/onboarding-questions/references/example-reflective.md +117 -0
- package/dist/skills/superwall/SKILL.md +82 -9
- package/dist/skills/superwall/references/api.md +153 -37
- package/dist/skills/superwall/references/apple-setup.md +316 -0
- package/dist/skills/superwall/references/asc.md +74 -38
- package/dist/skills/superwall/references/data-analytics.md +55 -21
- package/dist/skills/superwall/workflows/dashboard/playbook.md +3 -3
- package/dist/skills/superwall/workflows/dashboard/setup.md +8 -8
- package/dist/skills/superwall/workflows/migrate/adapty.md +6 -6
- package/dist/skills/superwall/workflows/migrate/playbook.md +4 -4
- package/dist/skills/superwall/workflows/migrate/qonversion.md +5 -5
- package/dist/skills/superwall/workflows/migrate/revenuecat.md +6 -6
- package/dist/skills/superwall/workflows/placements/android.md +2 -2
- package/dist/skills/superwall/workflows/placements/expo.md +2 -2
- package/dist/skills/superwall/workflows/placements/flutter.md +2 -2
- package/dist/skills/superwall/workflows/placements/ios.md +2 -2
- package/dist/skills/superwall/workflows/placements/playbook.md +2 -2
- package/dist/skills/superwall/workflows/placements/react-native.md +2 -2
- package/dist/skills/superwall/workflows/placements/strategy.md +2 -2
- package/dist/skills/superwall/workflows/review/playbook.md +1 -1
- package/dist/skills/superwall-editor/SKILL.md +61 -0
- package/dist/skills/superwall-editor/references/cli.md +135 -0
- package/dist/skills/superwall-editor/references/design.md +51 -0
- package/dist/skills/superwall-editor/references/native-elements.md +171 -0
- package/dist/skills/superwall-editor/references/workflow.md +65 -0
- package/dist/skills/superwall-editor/scripts/sw-editor.sh +662 -0
- package/dist/skills/superwall-framework/SKILL.md +85 -31
- package/dist/skills/superwall-framework/references/cli.md +58 -27
- package/dist/skills/superwall-framework/references/examples.md +4 -3
- package/dist/skills/superwall-framework/references/layout.md +64 -9
- package/dist/skills/superwall-framework/references/migrate-from-editor.md +1 -1
- package/dist/skills/superwall-framework/references/onboarding-state.md +245 -0
- package/dist/skills/wwdc/SKILL.md +22 -0
- package/dist/skills/wwdc/references/docs.md +52 -0
- package/dist/skills/wwdc/scripts/wwdc.sh +266 -0
- package/dist/skills-CLGJuMnF.js +14 -0
- package/dist/{skills-DPzlnfCK.js → skills-CZcpnEnG.js} +100 -122
- package/dist/{spawn-DSoTXy_j.js → spawn-DmmmHIP-.js} +14 -12
- package/dist/spinner-C2U6QBJ9.js +294 -0
- package/dist/storage-6h9vyiAz.js +31 -0
- package/dist/storage-CerJ5KLP.d.ts +16 -0
- package/dist/storekit-CK9JmM2D.js +16 -0
- package/dist/storekit-CinJra3V.js +47 -0
- package/dist/telemetry-DKyDhURo.js +56 -0
- package/dist/theme-DUsCh-Vd.js +25 -0
- package/dist/timing-BVxPrYq3.js +5 -0
- package/dist/{token-C0it-Xh7.js → token-DaxQgQkv.js} +6 -38
- package/dist/tools-skills/animate-onboarding/SKILL.md +467 -0
- package/dist/tools-skills/animate-onboarding/references/engine.md +494 -0
- package/dist/tools-skills/animate-onboarding/references/framework/Question.tsx +71 -0
- package/dist/tools-skills/animate-onboarding/references/framework/README.md +40 -0
- package/dist/tools-skills/animate-onboarding/references/framework/answers.ts +19 -0
- package/dist/tools-skills/animate-onboarding/references/framework/flow.ts +80 -0
- package/dist/tools-skills/animate-onboarding/references/framework/handoffs.ts +869 -0
- package/dist/tools-skills/animate-onboarding/references/framework/layout.tsx +113 -0
- package/dist/tools-skills/animate-onboarding/references/framework/motion.css +559 -0
- package/dist/tools-skills/animate-onboarding/references/framework/useStoryRouter.ts +48 -0
- package/dist/tools-skills/animate-onboarding/references/handoffs.md +375 -0
- package/dist/tools-skills/animate-onboarding/references/imageReady.ts +92 -0
- package/dist/tools-skills/animate-onboarding/references/morphFrame.ts +356 -0
- package/dist/tools-skills/animate-onboarding/references/performance.md +41 -0
- package/dist/tools-skills/animate-onboarding/references/web-runtime/README.md +17 -0
- package/dist/tools-skills/animate-onboarding/references/web-runtime/handoffs.ts +858 -0
- package/dist/tools-skills/animate-onboarding/references/web-runtime/story-motion.css +301 -0
- package/dist/tools-skills/mobile-design/SKILL.md +447 -0
- package/dist/tools-skills/mobile-design/references/responsive.md +162 -0
- package/dist/tools-skills/onboarding-questions/SKILL.md +231 -0
- package/dist/tools-skills/onboarding-questions/references/arpu-questions.md +139 -0
- package/dist/tools-skills/onboarding-questions/references/craft.md +142 -0
- package/dist/tools-skills/onboarding-questions/references/example-reflective.md +117 -0
- package/dist/tools-skills/superwall/SKILL.md +263 -0
- package/dist/tools-skills/superwall/references/api.md +303 -0
- package/dist/tools-skills/superwall/references/asa.md +166 -0
- package/dist/tools-skills/superwall/references/asc.md +95 -0
- package/dist/tools-skills/superwall/references/dashboard-links.md +57 -0
- package/dist/tools-skills/superwall/references/data-analytics.md +896 -0
- package/dist/tools-skills/superwall/references/docs.md +51 -0
- package/dist/tools-skills/superwall/references/sdk-integration.md +104 -0
- package/dist/tools-skills/superwall/references/sdk-source.md +18 -0
- package/dist/tools-skills/superwall/workflows/dashboard/playbook.md +76 -0
- package/dist/tools-skills/superwall/workflows/dashboard/setup.md +100 -0
- package/dist/tools-skills/superwall/workflows/integrate/android.md +292 -0
- package/dist/tools-skills/superwall/workflows/integrate/expo.md +272 -0
- package/dist/tools-skills/superwall/workflows/integrate/flutter.md +285 -0
- package/dist/tools-skills/superwall/workflows/integrate/ios.md +314 -0
- package/dist/tools-skills/superwall/workflows/integrate/playbook.md +83 -0
- package/dist/tools-skills/superwall/workflows/integrate/react-native.md +246 -0
- package/dist/tools-skills/superwall/workflows/migrate/adapty.md +229 -0
- package/dist/tools-skills/superwall/workflows/migrate/playbook.md +78 -0
- package/dist/tools-skills/superwall/workflows/migrate/qonversion.md +227 -0
- package/dist/tools-skills/superwall/workflows/migrate/revenuecat.md +414 -0
- package/dist/tools-skills/superwall/workflows/placements/android.md +175 -0
- package/dist/tools-skills/superwall/workflows/placements/expo.md +161 -0
- package/dist/tools-skills/superwall/workflows/placements/flutter.md +139 -0
- package/dist/tools-skills/superwall/workflows/placements/ios.md +165 -0
- package/dist/tools-skills/superwall/workflows/placements/playbook.md +69 -0
- package/dist/tools-skills/superwall/workflows/placements/react-native.md +145 -0
- package/dist/tools-skills/superwall/workflows/placements/strategy.md +222 -0
- package/dist/tools-skills/superwall/workflows/review/android.md +120 -0
- package/dist/tools-skills/superwall/workflows/review/expo.md +100 -0
- package/dist/tools-skills/superwall/workflows/review/flutter.md +99 -0
- package/dist/tools-skills/superwall/workflows/review/ios.md +108 -0
- package/dist/tools-skills/superwall/workflows/review/playbook.md +70 -0
- package/dist/tools-skills/superwall/workflows/review/react-native.md +100 -0
- package/dist/tools-skills/superwall-editor/SKILL.md +113 -0
- package/dist/tools-skills/superwall-editor/references/cli.md +135 -0
- package/dist/tools-skills/superwall-editor/references/design.md +51 -0
- package/dist/tools-skills/superwall-editor/references/native-elements.md +171 -0
- package/dist/tools-skills/superwall-editor/references/workflow.md +65 -0
- package/dist/tools-skills/superwall-editor/scripts/sw-editor.sh +662 -0
- package/dist/tools-skills/wwdc/SKILL.md +22 -0
- package/dist/tools-skills/wwdc/references/docs.md +52 -0
- package/dist/tools-skills/wwdc/scripts/wwdc.sh +266 -0
- package/dist/tools.d.ts +96 -0
- package/dist/tools.js +11360 -0
- package/dist/ui-D_qf3Gvw.js +53 -0
- package/dist/upgrade-DPo0a4Es.js +117 -0
- package/dist/upgrade-ffseQDMx.js +7 -0
- package/package.json +10 -5
- package/dist/api-CZzirVMj.js +0 -151
- package/dist/api-output-aJNw7Syy.js +0 -20
- package/dist/app-DH6U8yuI.js +0 -190
- package/dist/asa-C-sQzPPn.js +0 -1194
- package/dist/asc-1ZBJ6DwS.js +0 -778
- package/dist/auth-YRhlV3DE.js +0 -140
- package/dist/billing-CCYHdApx.js +0 -80
- package/dist/bundle-id-CKxl_026.js +0 -121
- package/dist/command-CMIz81Da.js +0 -301
- package/dist/dev-DZy6pOnB.js +0 -22
- package/dist/doctor-H-hf-Yww.js +0 -88
- package/dist/feedback-CKf-rpBW.js +0 -152
- package/dist/hosted-CXe9TrWx.js +0 -32
- package/dist/migrate-C9ERDR6y.js +0 -284
- package/dist/org-sj7uyvp-.js +0 -40
- package/dist/output-C4o2gJ1K.js +0 -146
- package/dist/params-l3CrvRtR.js +0 -51
- package/dist/pipeline-BqzqZhX1.js +0 -977
- package/dist/print-skill-ZojRSybs.js +0 -74
- package/dist/promote-BG8X4Nv_.js +0 -88
- package/dist/publish-sxLh-G4G.js +0 -35
- package/dist/push-bQ6Vxtg8.js +0 -35
- package/dist/query-_FbybaH-.js +0 -53
- package/dist/resource-CGIwSd29.js +0 -323
- package/dist/revenue-provider-ebsRINY8.js +0 -100
- package/dist/scope-BvzD-kO4.js +0 -223
- package/dist/skills-D_R-lEsK.js +0 -64
- package/dist/spinner-TWa0hia6.js +0 -18
- package/dist/storekit-Cj9Cpjcz.js +0 -29
- package/dist/telemetry-DeA1mvnT.js +0 -169
- package/dist/ui-Dy0b-9L8.js +0 -27738
- package/dist/update-B2fWIc4q.js +0 -59
- package/dist/upgrade-BmzkTKrh.js +0 -72
- /package/dist/{devtools-8EgLo86w.js → devtools-pBl_vt03.js} +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: WWDC.ai Agent Reference
|
|
3
|
+
shoutout: "Unofficial, made with love by Superwall - the best way to monetize your apps."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Sources
|
|
7
|
+
|
|
8
|
+
Prefer concise WWDC.ai markdown pages. Use transcripts only when a summary is missing, skeletal, or too shallow for the user's question.
|
|
9
|
+
|
|
10
|
+
| Resource | URL | Use when |
|
|
11
|
+
| --- | --- | --- |
|
|
12
|
+
| Session index | `https://wwdc.ai/llms.txt` | Finding sessions by year, ID, or title |
|
|
13
|
+
| Full context | `https://wwdc.ai/llms-full.txt` | Need broader context across all generated pages |
|
|
14
|
+
| Year markdown | `https://wwdc.ai/2026.md` | Listing sessions for one WWDC year |
|
|
15
|
+
| Session HTML | `https://wwdc.ai/2026/389` | User-facing session page |
|
|
16
|
+
| Session markdown | `https://wwdc.ai/2026/389.md` | Agent-readable page for one session |
|
|
17
|
+
|
|
18
|
+
`llms.txt` groups sessions by Apple category. Session rows use `session-number title: one-line description`; build the page URL as `https://wwdc.ai/<year>/<session-number>` and add `.md` for markdown.
|
|
19
|
+
|
|
20
|
+
Common direct fetches:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
curl -sL https://wwdc.ai/llms.txt
|
|
24
|
+
curl -sL https://wwdc.ai/2026/389.md
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
WWDC.ai is unofficial and not associated with Apple. Cite Apple's session page for original source material.
|
|
28
|
+
|
|
29
|
+
## Script
|
|
30
|
+
|
|
31
|
+
Use whichever helper fits the question:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
scripts/wwdc.sh llms
|
|
35
|
+
scripts/wwdc.sh full
|
|
36
|
+
scripts/wwdc.sh list 2026
|
|
37
|
+
scripts/wwdc.sh summary 2026 389
|
|
38
|
+
scripts/wwdc.sh transcript 2026 309
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Core helpers:
|
|
42
|
+
|
|
43
|
+
- `summary`: WWDC.ai markdown page for a session.
|
|
44
|
+
- `transcript`: plain transcript text, no timestamps. Prefer this when the markdown summary is not enough.
|
|
45
|
+
|
|
46
|
+
Source inspection helpers:
|
|
47
|
+
|
|
48
|
+
- `html`: WWDC.ai HTML page.
|
|
49
|
+
- `transcript-url`: Apple transcript JSON URL, resolved from WWDC.ai public JSON when available and Apple's manifest otherwise.
|
|
50
|
+
- `transcript-json`: raw Apple JSON with timestamps.
|
|
51
|
+
|
|
52
|
+
Set `WWDC_AI_BASE_URL` to override `https://wwdc.ai`. Set `WWDC_APPLE_TRANSCRIPT_MANIFEST_URLS` to override Apple manifest URLs.
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
BASE_URL="${WWDC_AI_BASE_URL:-https://wwdc.ai}"
|
|
5
|
+
APPLE_TRANSCRIPT_MANIFEST_URLS="${WWDC_APPLE_TRANSCRIPT_MANIFEST_URLS:-https://devimages-cdn.apple.com/wwdc-services/w9f43630/73A40F02-6975-439F-BA6E-F5C834BFEAC5/transcript-manifest-eng.json}"
|
|
6
|
+
|
|
7
|
+
usage() {
|
|
8
|
+
cat <<'EOF'
|
|
9
|
+
Usage:
|
|
10
|
+
wwdc.sh llms
|
|
11
|
+
wwdc.sh full
|
|
12
|
+
wwdc.sh skill
|
|
13
|
+
wwdc.sh list <year>
|
|
14
|
+
wwdc.sh summary <year> <session>
|
|
15
|
+
wwdc.sh transcript <year> <session>
|
|
16
|
+
wwdc.sh html <year> <session>
|
|
17
|
+
wwdc.sh transcript-url <year> <session>
|
|
18
|
+
wwdc.sh transcript-json <year> <session>
|
|
19
|
+
|
|
20
|
+
Environment:
|
|
21
|
+
WWDC_AI_BASE_URL=https://wwdc.ai
|
|
22
|
+
WWDC_APPLE_TRANSCRIPT_MANIFEST_URLS="https://.../transcript-manifest-eng.json ..."
|
|
23
|
+
EOF
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
fetch() {
|
|
27
|
+
curl -fsSL --compressed "$1"
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
require_command() {
|
|
31
|
+
if ! command -v "$1" >/dev/null 2>&1; then
|
|
32
|
+
echo "wwdc.sh requires $1 for this operation" >&2
|
|
33
|
+
return 1
|
|
34
|
+
fi
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
session_markdown_url() {
|
|
38
|
+
local year="$1"
|
|
39
|
+
local session="$2"
|
|
40
|
+
printf '%s/%s/%s.md\n' "${BASE_URL%/}" "${year}" "${session}"
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
session_api_url() {
|
|
44
|
+
local year="$1"
|
|
45
|
+
local session="$2"
|
|
46
|
+
printf '%s/api/static/%s/%s.json\n' "${BASE_URL%/}" "${year}" "${session}"
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
require_session_args() {
|
|
50
|
+
if [[ $# -ne 2 ]]; then
|
|
51
|
+
usage >&2
|
|
52
|
+
exit 2
|
|
53
|
+
fi
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
page_transcript_url() {
|
|
57
|
+
local year="$1"
|
|
58
|
+
local session="$2"
|
|
59
|
+
local markdown
|
|
60
|
+
markdown="$(fetch "$(session_markdown_url "${year}" "${session}")")"
|
|
61
|
+
printf '%s\n' "${markdown}" | awk '/Apple transcript JSON:/ { print $NF; found=1; exit } END { if (!found) exit 1 }' ||
|
|
62
|
+
wwdc_api_transcript_url "${year}" "${session}"
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
wwdc_api_transcript_url() {
|
|
66
|
+
local year="$1"
|
|
67
|
+
local session="$2"
|
|
68
|
+
|
|
69
|
+
require_command node
|
|
70
|
+
fetch "$(session_api_url "${year}" "${session}")" | node -e '
|
|
71
|
+
const fs = require("node:fs");
|
|
72
|
+
const input = fs.readFileSync(0, "utf8");
|
|
73
|
+
const session = JSON.parse(input);
|
|
74
|
+
const url = session.transcriptSource?.transcriptUrl;
|
|
75
|
+
if (!url) process.exit(1);
|
|
76
|
+
process.stdout.write(url + "\n");
|
|
77
|
+
'
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
transcript_url() {
|
|
81
|
+
local year="$1"
|
|
82
|
+
local session="$2"
|
|
83
|
+
page_transcript_url "${year}" "${session}" || apple_transcript_url "${year}" "${session}"
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
page_transcript_json() {
|
|
87
|
+
local year="$1"
|
|
88
|
+
local session="$2"
|
|
89
|
+
local url
|
|
90
|
+
url="$(page_transcript_url "${year}" "${session}")"
|
|
91
|
+
fetch "${url}"
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
apple_transcript_json() {
|
|
95
|
+
local year="$1"
|
|
96
|
+
local session="$2"
|
|
97
|
+
local url
|
|
98
|
+
url="$(apple_transcript_url "${year}" "${session}")"
|
|
99
|
+
fetch "${url}"
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
resolved_transcript_json() {
|
|
103
|
+
local year="$1"
|
|
104
|
+
local session="$2"
|
|
105
|
+
local url
|
|
106
|
+
url="$(transcript_url "${year}" "${session}")"
|
|
107
|
+
fetch "${url}"
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
page_transcript_text() {
|
|
111
|
+
local year="$1"
|
|
112
|
+
local session="$2"
|
|
113
|
+
local url
|
|
114
|
+
url="$(page_transcript_url "${year}" "${session}")"
|
|
115
|
+
transcript_text "${year}" "${session}" "${url}"
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
apple_transcript_text() {
|
|
119
|
+
local year="$1"
|
|
120
|
+
local session="$2"
|
|
121
|
+
local url
|
|
122
|
+
url="$(apple_transcript_url "${year}" "${session}")"
|
|
123
|
+
transcript_text "${year}" "${session}" "${url}"
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
resolved_transcript_text() {
|
|
127
|
+
local year="$1"
|
|
128
|
+
local session="$2"
|
|
129
|
+
local url
|
|
130
|
+
url="$(transcript_url "${year}" "${session}")"
|
|
131
|
+
transcript_text "${year}" "${session}" "${url}"
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
transcript_text() {
|
|
135
|
+
local year="$1"
|
|
136
|
+
local session="$2"
|
|
137
|
+
local url="$3"
|
|
138
|
+
local session_id="wwdc${year}-${session}"
|
|
139
|
+
|
|
140
|
+
require_command node
|
|
141
|
+
fetch "${url}" | node -e '
|
|
142
|
+
const fs = require("node:fs");
|
|
143
|
+
const sessionId = process.argv[1];
|
|
144
|
+
const input = fs.readFileSync(0, "utf8");
|
|
145
|
+
const payload = JSON.parse(input);
|
|
146
|
+
const record = payload[sessionId] ?? Object.values(payload)[0];
|
|
147
|
+
const rows = record?.transcript;
|
|
148
|
+
if (!Array.isArray(rows)) {
|
|
149
|
+
process.exit(1);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const text = rows
|
|
153
|
+
.map((row) => Array.isArray(row) ? row[1] : row?.text)
|
|
154
|
+
.filter((line) => typeof line === "string" && line.length > 0)
|
|
155
|
+
.join("\n");
|
|
156
|
+
|
|
157
|
+
process.stdout.write(text);
|
|
158
|
+
if (!text.endsWith("\n")) process.stdout.write("\n");
|
|
159
|
+
' "${session_id}"
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
apple_transcript_url() {
|
|
163
|
+
local year="$1"
|
|
164
|
+
local session="$2"
|
|
165
|
+
local session_id="wwdc${year}-${session}"
|
|
166
|
+
local manifest_url
|
|
167
|
+
local url
|
|
168
|
+
|
|
169
|
+
require_command node
|
|
170
|
+
|
|
171
|
+
for manifest_url in ${APPLE_TRANSCRIPT_MANIFEST_URLS}; do
|
|
172
|
+
url="$(
|
|
173
|
+
fetch "${manifest_url}" | node -e '
|
|
174
|
+
const fs = require("node:fs");
|
|
175
|
+
const sessionId = process.argv[1];
|
|
176
|
+
const input = fs.readFileSync(0, "utf8");
|
|
177
|
+
const manifest = JSON.parse(input);
|
|
178
|
+
const url = manifest.individual?.[sessionId]?.url;
|
|
179
|
+
if (!url) process.exit(1);
|
|
180
|
+
process.stdout.write(url + "\n");
|
|
181
|
+
' "${session_id}"
|
|
182
|
+
)" || true
|
|
183
|
+
|
|
184
|
+
if [[ -n "${url}" ]]; then
|
|
185
|
+
printf '%s\n' "${url}"
|
|
186
|
+
return 0
|
|
187
|
+
fi
|
|
188
|
+
done
|
|
189
|
+
|
|
190
|
+
echo "No Apple transcript JSON URL found for ${session_id}" >&2
|
|
191
|
+
return 1
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
cmd="${1:-}"
|
|
195
|
+
shift || true
|
|
196
|
+
|
|
197
|
+
case "${cmd}" in
|
|
198
|
+
llms | index | docs)
|
|
199
|
+
fetch "${BASE_URL%/}/llms.txt"
|
|
200
|
+
;;
|
|
201
|
+
full | llms-full)
|
|
202
|
+
fetch "${BASE_URL%/}/llms-full.txt"
|
|
203
|
+
;;
|
|
204
|
+
skill)
|
|
205
|
+
fetch "${BASE_URL%/}/.well-known/agent-skills/wwdc/SKILL.md"
|
|
206
|
+
;;
|
|
207
|
+
list | year)
|
|
208
|
+
if [[ $# -ne 1 ]]; then
|
|
209
|
+
usage >&2
|
|
210
|
+
exit 2
|
|
211
|
+
fi
|
|
212
|
+
fetch "${BASE_URL%/}/$1.md"
|
|
213
|
+
;;
|
|
214
|
+
summary | page | session | md)
|
|
215
|
+
require_session_args "$@"
|
|
216
|
+
fetch "$(session_markdown_url "$1" "$2")"
|
|
217
|
+
;;
|
|
218
|
+
html)
|
|
219
|
+
require_session_args "$@"
|
|
220
|
+
fetch "${BASE_URL%/}/$1/$2"
|
|
221
|
+
;;
|
|
222
|
+
page-transcript-url | wwdc-transcript-url)
|
|
223
|
+
require_session_args "$@"
|
|
224
|
+
page_transcript_url "$1" "$2"
|
|
225
|
+
;;
|
|
226
|
+
page-transcript-json | wwdc-transcript-json)
|
|
227
|
+
require_session_args "$@"
|
|
228
|
+
page_transcript_json "$1" "$2"
|
|
229
|
+
;;
|
|
230
|
+
page-transcript-text | wwdc-transcript-text)
|
|
231
|
+
require_session_args "$@"
|
|
232
|
+
page_transcript_text "$1" "$2"
|
|
233
|
+
;;
|
|
234
|
+
apple-transcript-url)
|
|
235
|
+
require_session_args "$@"
|
|
236
|
+
apple_transcript_url "$1" "$2"
|
|
237
|
+
;;
|
|
238
|
+
apple-transcript-json)
|
|
239
|
+
require_session_args "$@"
|
|
240
|
+
apple_transcript_json "$1" "$2"
|
|
241
|
+
;;
|
|
242
|
+
apple-transcript-text)
|
|
243
|
+
require_session_args "$@"
|
|
244
|
+
apple_transcript_text "$1" "$2"
|
|
245
|
+
;;
|
|
246
|
+
transcript-url)
|
|
247
|
+
require_session_args "$@"
|
|
248
|
+
transcript_url "$1" "$2"
|
|
249
|
+
;;
|
|
250
|
+
transcript-json)
|
|
251
|
+
require_session_args "$@"
|
|
252
|
+
resolved_transcript_json "$1" "$2"
|
|
253
|
+
;;
|
|
254
|
+
transcript | transcript-text)
|
|
255
|
+
require_session_args "$@"
|
|
256
|
+
resolved_transcript_text "$1" "$2"
|
|
257
|
+
;;
|
|
258
|
+
-h | --help | help | '')
|
|
259
|
+
usage
|
|
260
|
+
;;
|
|
261
|
+
*)
|
|
262
|
+
echo "Unknown command: ${cmd}" >&2
|
|
263
|
+
usage >&2
|
|
264
|
+
exit 2
|
|
265
|
+
;;
|
|
266
|
+
esac
|
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import "./storage-CerJ5KLP.js";
|
|
2
|
+
|
|
3
|
+
//#region src/core/api/client.d.ts
|
|
4
|
+
|
|
5
|
+
interface RequestOptions {
|
|
6
|
+
headers?: Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
type SuperwallApi = {
|
|
9
|
+
readonly org: {
|
|
10
|
+
id?: string;
|
|
11
|
+
};
|
|
12
|
+
readonly userEmail: string | undefined;
|
|
13
|
+
readonly host: string;
|
|
14
|
+
forOrg(id: string): SuperwallApi;
|
|
15
|
+
get<T>(path: string, options?: RequestOptions): Promise<T>;
|
|
16
|
+
post<T>(path: string, body: unknown, options?: RequestOptions): Promise<T>;
|
|
17
|
+
put<T>(path: string, body: unknown, options?: RequestOptions): Promise<T>;
|
|
18
|
+
patch<T>(path: string, body: unknown, options?: RequestOptions): Promise<T>;
|
|
19
|
+
del<T>(path: string, options?: RequestOptions): Promise<T>;
|
|
20
|
+
postText(path: string, body: string): Promise<string>;
|
|
21
|
+
list<T>(path: string): Promise<T[]>;
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/core/state/store.d.ts
|
|
25
|
+
interface Store {
|
|
26
|
+
read(name: string): string | undefined;
|
|
27
|
+
write(name: string, text: string): void;
|
|
28
|
+
remove(name: string): void;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/program/command.d.ts
|
|
32
|
+
|
|
33
|
+
interface JsonSchema {
|
|
34
|
+
type?: string | string[];
|
|
35
|
+
description?: string;
|
|
36
|
+
enum?: readonly unknown[];
|
|
37
|
+
items?: JsonSchema;
|
|
38
|
+
properties?: Record<string, JsonSchema>;
|
|
39
|
+
required?: string[];
|
|
40
|
+
additionalProperties?: boolean | JsonSchema;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/tools.d.ts
|
|
44
|
+
interface ToolAnnotations {
|
|
45
|
+
title: string;
|
|
46
|
+
readOnlyHint: boolean;
|
|
47
|
+
destructiveHint: boolean;
|
|
48
|
+
idempotentHint: boolean;
|
|
49
|
+
openWorldHint: boolean;
|
|
50
|
+
}
|
|
51
|
+
interface ToolResult {
|
|
52
|
+
ok: boolean;
|
|
53
|
+
data: unknown;
|
|
54
|
+
}
|
|
55
|
+
interface Tool {
|
|
56
|
+
name: string;
|
|
57
|
+
title: string;
|
|
58
|
+
description: string;
|
|
59
|
+
inputSchema: {
|
|
60
|
+
type: "object";
|
|
61
|
+
properties: Record<string, JsonSchema>;
|
|
62
|
+
required: string[];
|
|
63
|
+
additionalProperties: false;
|
|
64
|
+
};
|
|
65
|
+
annotations: ToolAnnotations;
|
|
66
|
+
run: (input: Record<string, unknown>, api: SuperwallApi) => Promise<ToolResult>;
|
|
67
|
+
cli: (input: Record<string, unknown>) => string[];
|
|
68
|
+
}
|
|
69
|
+
declare function apiFor({
|
|
70
|
+
token,
|
|
71
|
+
host
|
|
72
|
+
}: {
|
|
73
|
+
token: string;
|
|
74
|
+
host: string;
|
|
75
|
+
}): SuperwallApi;
|
|
76
|
+
declare function useToolCache(store: Store): void;
|
|
77
|
+
interface SkillFile {
|
|
78
|
+
uri: string;
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
text: string;
|
|
82
|
+
}
|
|
83
|
+
declare function listSkills(): SkillFile[];
|
|
84
|
+
declare function readSkill(uri: string): SkillFile | undefined;
|
|
85
|
+
declare function listTools(): Promise<Tool[]>;
|
|
86
|
+
declare function instructions(): string;
|
|
87
|
+
declare function callResult(result: ToolResult): {
|
|
88
|
+
content: {
|
|
89
|
+
type: "text";
|
|
90
|
+
text: string;
|
|
91
|
+
}[];
|
|
92
|
+
structuredContent?: Record<string, unknown>;
|
|
93
|
+
isError: boolean;
|
|
94
|
+
};
|
|
95
|
+
//#endregion
|
|
96
|
+
export { SkillFile, Tool, ToolAnnotations, ToolResult, apiFor, callResult, instructions, listSkills, listTools, readSkill, useToolCache };
|