saasfunnels 0.3.2 → 0.3.4
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 +10 -0
- package/dist/library.js +211555 -11
- package/dist/saasfunnels.js +935 -398
- package/dist/types/feature-setup.d.ts +2 -0
- package/dist/types/identity.d.ts +1 -1
- package/dist/types/mcp.d.ts +1 -1
- package/dist/types/setup-pricing.d.ts +21 -0
- package/dist/types/source-analysis.d.ts +15 -0
- package/dist/types/source-scope.d.ts +1 -0
- package/package.json +1 -1
|
@@ -75,6 +75,8 @@ export type FeatureSetupInput = {
|
|
|
75
75
|
fetch?: typeof fetch;
|
|
76
76
|
include?: string[];
|
|
77
77
|
manifestOnly: boolean;
|
|
78
|
+
/** Guided rescans replace machine findings; local generated files remain untouched. */
|
|
79
|
+
freshDiscovery?: boolean;
|
|
78
80
|
mappings?: Record<string, string>;
|
|
79
81
|
prompt?: (message: string) => Promise<string>;
|
|
80
82
|
reject?: string[];
|
package/dist/types/identity.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const SAASFUNNELS_CLI_NAME = "saasfunnels";
|
|
2
|
-
export declare const SAASFUNNELS_CLI_VERSION = "0.3.
|
|
2
|
+
export declare const SAASFUNNELS_CLI_VERSION = "0.3.4";
|
|
3
3
|
export declare const SAASFUNNELS_PRODUCT_NAME = "SaaSFunnels";
|
|
4
4
|
export declare const SAASFUNNELS_DEFAULT_API_BASE_URL = "https://app.saasfunnels.ai";
|
|
5
5
|
export declare const SAASFUNNELS_ENV: Readonly<{
|
package/dist/types/mcp.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ export type SaaSFunnelsMcpOptions = {
|
|
|
77
77
|
output?: Pick<NodeJS.WritableStream, "write">;
|
|
78
78
|
};
|
|
79
79
|
declare const mcpProtocolVersion = "2025-06-18";
|
|
80
|
-
declare const mcpServerVersion = "0.3.
|
|
80
|
+
declare const mcpServerVersion = "0.3.4";
|
|
81
81
|
export declare function saasFunnelsMcpResources(): McpResourceDefinition[];
|
|
82
82
|
export declare function readSaaSFunnelsMcpResource(uri: string, options?: SaaSFunnelsMcpOptions): string;
|
|
83
83
|
export declare function saasFunnelsMcpToolDefinitions({ allowFunnelTests, allowFunnelWrites, allowTestWrites, includeHostedAccountTools, }?: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type CatalogPrice = {
|
|
2
|
+
id: string;
|
|
3
|
+
lookupKey: string | null;
|
|
4
|
+
};
|
|
5
|
+
type Plan = {
|
|
6
|
+
key: string;
|
|
7
|
+
name: string;
|
|
8
|
+
features: Record<string, boolean | number | "unlimited">;
|
|
9
|
+
prices: {
|
|
10
|
+
key: string;
|
|
11
|
+
}[];
|
|
12
|
+
productKey?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare class PricingExtractionError extends Error {
|
|
15
|
+
readonly code: "no_declarations" | "needs_review";
|
|
16
|
+
constructor(code: "no_declarations" | "needs_review", message: string);
|
|
17
|
+
}
|
|
18
|
+
export declare function extractSetupPricing(source: string, kind: "json" | "yaml" | "typescript", catalogPrices?: readonly CatalogPrice[], options?: {
|
|
19
|
+
featuresOnly?: boolean;
|
|
20
|
+
}): Plan[];
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
export declare const nonProductPath: RegExp;
|
|
3
|
+
export declare function parseApplicationSource(path: string, source: string): ts.SourceFile;
|
|
4
|
+
export declare function isProductNode(node: ts.Node): boolean;
|
|
5
|
+
export declare function enclosingSymbol(node: ts.Node): string;
|
|
6
|
+
export declare function literalText(node: ts.Node | undefined): string | null;
|
|
7
|
+
export type NamedFeatureEvidence = {
|
|
8
|
+
key: string;
|
|
9
|
+
model: "boolean" | "limit";
|
|
10
|
+
kind: "server_enforcement" | "browser_presentation" | "usage_reporter" | "funnel_trigger";
|
|
11
|
+
line: number;
|
|
12
|
+
symbol: string;
|
|
13
|
+
reason: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function namedFeatureEvidence(path: string, source: string): NamedFeatureEvidence[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function repositorySourceScope(cwd: string): Promise<(_path: string) => boolean>;
|