Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/agent/actions/integrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const integrateAction: AgentAction = {
3. Implement the SDK following the platform playbook below, stage by stage, fetching the listed docs pages before writing each stage's code.
4. If a build command exists for this project, build to verify it compiles. Fix what you broke; do not chase pre-existing failures.

--- PLATFORM PLAYBOOK (from the adapty-sdk-integration skill) ---
--- PLATFORM PLAYBOOK (from the adapty-integration skill) ---

${platformReference}`
},
Expand Down
4 changes: 2 additions & 2 deletions src/lib/agent/actions/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ ${
: ''
}\n`
}
--- MIGRATION PLAYBOOK (from the adapty-sdk-integration skill) ---
--- MIGRATION PLAYBOOK (from the adapty-integration skill) ---

${migrationReference || '(not available - state this in ADAPTY_SETUP.md and map conservatively: create nothing you cannot verify.)'}

--- PLATFORM PLAYBOOK (from the adapty-sdk-integration skill) ---
--- PLATFORM PLAYBOOK (from the adapty-integration skill) ---

${platformReference}`
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/agent/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function installSkill(): Promise<void> {
spin.stop(
installed
? 'Adapty skill installed - your agent can now handle Adapty tasks in any session.'
: 'Skill install skipped - run `npx skills add adaptyteam/adapty-sdk-integration-skill` to add it manually.',
: 'Skill install skipped - run `npx skills add adaptyteam/adapty-skills` to add it manually.',
)
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib/agent/skill-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import type {Platform} from '../project/scan.js'

/**
* Skill content is NOT vendored into this package - the single source of
* truth is the adapty-sdk-integration-skill repo. Files are fetched from
* truth is the adapty-skills repo. Files are fetched from
* GitHub raw at run time; set ADAPTY_SKILL_DIR to a local checkout of the
* skill directory (the one containing SKILL.md) to develop against local
* edits.
*/
const RAW_BASE =
'https://raw.githubusercontent.com/adaptyteam/adapty-sdk-integration-skill/main/skills/adapty-sdk-integration'
'https://raw.githubusercontent.com/adaptyteam/adapty-skills/main/skills/adapty-integration'

function stripFrontmatter(md: string): string {
const lines = md.split('\n')
Expand Down
4 changes: 2 additions & 2 deletions src/lib/agent/skills-install.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {spawn} from 'node:child_process'

/**
* Install the adapty-sdk-integration skill into the user's coding agents
* Install the adapty-integration skill into the user's coding agents
* (Claude Code, Codex, Cursor, ...) via the `skills` CLI, so the agent knows
* Adapty in every future session - not just this run. Same source repo the
* integrate prompt is built from.
*/
const SKILL_SOURCE = 'adaptyteam/adapty-sdk-integration-skill'
const SKILL_SOURCE = 'adaptyteam/adapty-skills'

export function installAgentSkills(): Promise<boolean> {
return new Promise((resolve) => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/agent/telemetry.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* One event per agent-driven command run (integrate, migrate, ...), sent to
* the same feedback endpoint the adapty-sdk-integration skill uses (Slack +
* the same feedback endpoint the adapty-integration skill uses (Slack +
* Airtable behind it), so CLI and skill sessions land in one funnel.
* Fire-and-forget: never blocks the command for more than 3s, never surfaces
* an error.
Expand Down
2 changes: 1 addition & 1 deletion src/lib/project/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@

/**
* Detect the mobile framework of the project at `dir`. Signals mirror the
* adapty-sdk-integration skill's Phase 1 table. Only the top level is
* adapty-integration skill's Phase 1 table. Only the top level is
* inspected - monorepos should pass the app directory explicitly.
*/
export async function scanProject(dir: string): Promise<DetectedProject | null> {

Check warning on line 51 in src/lib/project/scan.ts

View workflow job for this annotation

GitHub Actions / unit-tests (ubuntu-latest, lts/*)

Async function 'scanProject' has a complexity of 22. Maximum allowed is 20

Check warning on line 51 in src/lib/project/scan.ts

View workflow job for this annotation

GitHub Actions / unit-tests (windows-latest, lts/-1)

Async function 'scanProject' has a complexity of 22. Maximum allowed is 20

Check warning on line 51 in src/lib/project/scan.ts

View workflow job for this annotation

GitHub Actions / unit-tests (ubuntu-latest, lts/-1)

Async function 'scanProject' has a complexity of 22. Maximum allowed is 20

Check warning on line 51 in src/lib/project/scan.ts

View workflow job for this annotation

GitHub Actions / unit-tests (windows-latest, lts/*)

Async function 'scanProject' has a complexity of 22. Maximum allowed is 20
const topLevel = await entries(dir)
const has = (name: string): boolean => topLevel.includes(name)
const pkg = has('package.json') ? await readJson(join(dir, 'package.json')) : null
Expand Down
Loading