Skip to content
Closed
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
3 changes: 1 addition & 2 deletions src/commands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { requireAuth } from '../lib/credentials.js';
import { handleError, getRootOpts, CLIError } from '../lib/errors.js';
import { outputJson } from '../lib/output.js';
import { readEnvFile } from '../lib/env.js';
import { installSkills, reportCliUsage } from '../lib/skills.js';
import { installSkills } from '../lib/skills.js';
import { captureEvent, shutdownAnalytics } from '../lib/analytics.js';
import { deployProject } from './deployments/deploy.js';
import type { ProjectConfig } from '../types.js';
Expand Down Expand Up @@ -324,7 +324,6 @@ export function registerCreateCommand(program: Command): void {

// Install agent skills
await installSkills(json);
await reportCliUsage('cli.create', true, 6);

// 7. Install npm dependencies (template projects only)
if (hasTemplate) {
Expand Down
2 changes: 0 additions & 2 deletions src/commands/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ossFetch } from '../lib/api/oss.js';
import { requireAuth } from '../lib/credentials.js';
import { handleError, getRootOpts } from '../lib/errors.js';
import { outputJson, outputTable } from '../lib/output.js';
import { reportCliUsage } from '../lib/skills.js';

const FEATURES = ['db', 'storage', 'functions', 'auth', 'ai', 'realtime'] as const;
const LANGUAGES = ['typescript', 'swift', 'kotlin', 'rest-api'] as const;
Expand All @@ -27,7 +26,6 @@ Examples:
try {
await requireAuth();

await reportCliUsage('cli.docs', true);
// No args → list all docs
if (!feature) {
await listDocs(json);
Expand Down
6 changes: 1 addition & 5 deletions src/commands/projects/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { getGlobalConfig, saveGlobalConfig, saveProjectConfig } from '../../lib/
import { requireAuth } from '../../lib/credentials.js';
import { handleError, getRootOpts, CLIError } from '../../lib/errors.js';
import { outputJson, outputSuccess } from '../../lib/output.js';
import { installSkills, reportCliUsage } from '../../lib/skills.js';
import { installSkills } from '../../lib/skills.js';
import type { ProjectConfig } from '../../types.js';

function buildOssHost(appkey: string, region: string): string {
Expand Down Expand Up @@ -62,7 +62,6 @@ export function registerProjectLinkCommand(program: Command): void {

// Install agent skills
await installSkills(json);
await reportCliUsage('cli.link_direct', true, 6);

// Report agent-connected event (best-effort)
try {
Expand All @@ -73,7 +72,6 @@ export function registerProjectLinkCommand(program: Command): void {
} catch { /* ignore */ }
return;
} catch (err) {
await reportCliUsage('cli.link_direct', false);
handleError(err, json);
}
}
Expand Down Expand Up @@ -168,14 +166,12 @@ export function registerProjectLinkCommand(program: Command): void {

// Install agent skills
await installSkills(json);
await reportCliUsage('cli.link', true, 6);

// Report agent-connected event (best-effort)
try {
await reportAgentConnected({ project_id: project.id }, apiUrl);
} catch { /* ignore */ }
} catch (err) {
await reportCliUsage('cli.link', false);
handleError(err, json);
}
});
Expand Down
Loading