@capgo/cli 8.96.1 → 8.97.1

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/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "8.96.1",
4
+ "version": "8.97.1",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -45,6 +45,8 @@ export interface CliPreflightOptions extends NoticeOutputOptions {
45
45
  * backend still enforces every rule on the real action.
46
46
  */
47
47
  export declare function runCliPreflight(client: CapgoClient, request: CliPreflightRequest, options?: CliPreflightOptions): Promise<CliPreflightResult | null>;
48
+ /** After a successful upload, agents get the trial next to the result they report, from that upload's own plan check. */
49
+ export declare function printAgentUploadTrialNote(result: CliPreflightResult | null): Promise<void>;
48
50
  /** Fail unless the org's 2FA policy lets this key act on it. */
49
51
  export declare function check2FAAccessForOrg(client: CapgoClient, orgId: string, silent?: boolean): Promise<void>;
50
52
  /** Fail unless the org plan allows usage (all metered actions); warns on unpaid trials. */
@@ -1,4 +1,5 @@
1
1
  import type { OptionsBase } from '../schemas/base';
2
+ import type { AgentTrial } from '../shared/agent-notices';
2
3
  export type AppTodoList = 'builder' | 'ota';
3
4
  interface AppTodoOptions extends Partial<OptionsBase> {
4
5
  list?: string;
@@ -46,6 +47,7 @@ export declare function getAppTodoSteps(progress: AppTodoProgress, list?: AppTod
46
47
  export declare function formatAppTodoList(appId: string, progress: AppTodoProgress, options?: {
47
48
  color?: boolean;
48
49
  list?: AppTodoList;
50
+ trial?: AgentTrial;
49
51
  }): string;
50
52
  export declare function getAppTodoNextStep(progress: AppTodoProgress, list?: AppTodoList): {
51
53
  action: string;
@@ -237,8 +237,8 @@ export declare const mcpObserveInputSchema: z.ZodObject<{
237
237
  routes: "routes";
238
238
  versions: "versions";
239
239
  }>>;
240
- action: z.ZodOptional<z.ZodString>;
241
240
  days: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<3>, z.ZodLiteral<7>, z.ZodLiteral<30>]>>;
241
+ action: z.ZodOptional<z.ZodString>;
242
242
  versionName: z.ZodOptional<z.ZodString>;
243
243
  }, z.core.$strip>;
244
244
  export declare const mcpRequestBuildInputSchema: z.ZodObject<{
@@ -1,4 +1,5 @@
1
1
  import type { AppTodoProgress } from '../app/todo';
2
+ import type { AgentTrial } from '../shared/agent-notices';
2
3
  export type LocalOnboardingStep = 'add_code' | 'add_updater';
3
4
  interface Billing {
4
5
  orgId: string;
@@ -16,14 +17,20 @@ export type SetupNotice = {
16
17
  title?: string;
17
18
  instruction?: string;
18
19
  action: string;
20
+ billing?: Billing;
19
21
  } | {
20
22
  kind: 'plan';
21
23
  completed: string[];
22
24
  billing: Billing;
25
+ } | {
26
+ kind: 'trial';
27
+ billing: Billing;
23
28
  });
24
29
  export declare function getSetupNotice(appId: string, progress: AppTodoProgress, webHost?: string): SetupNotice | undefined;
25
- /** Plans link for agents: during the trial it opens the console's "add a card" prompt directly. */
26
- export declare function agentPlansUrl(billing: Billing, now: number): string;
30
+ /** The org's active free trial from an `includeBilling` progress snapshot. */
31
+ export declare function getAgentTrial(progress: AppTodoProgress, webHost?: string, now?: number): AgentTrial | undefined;
32
+ /** Agents still see an active trial when no setup notice applies. */
33
+ export declare function getTrialNotice(appId: string, progress: AppTodoProgress, webHost?: string, now?: number): SetupNotice | undefined;
27
34
  export declare function formatSetupNotice(notice: SetupNotice | undefined, now?: number, agent?: boolean): string | undefined;
28
35
  export declare function reconcileSetupProgress(progress: AppTodoProgress, reported: readonly LocalOnboardingStep[]): AppTodoProgress;
29
36
  export {};