@secondlayer/cli 0.2.3 → 0.2.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/dist/cli.js +21346 -445
- package/dist/cli.js.map +205 -9
- package/dist/index.d.ts +5 -80
- package/dist/index.js +6 -2336
- package/dist/index.js.map +5 -16
- package/dist/plugin-manager.js +20 -2
- package/dist/plugin-manager.js.map +3 -3
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ interface ResolvedContract {
|
|
|
49
49
|
abi: any;
|
|
50
50
|
source: "api" | "local";
|
|
51
51
|
}
|
|
52
|
+
type ConfigDefiner = (config: StacksConfig) => StacksConfig;
|
|
52
53
|
/**
|
|
53
54
|
* Core plugin interface that all plugins must implement
|
|
54
55
|
*/
|
|
@@ -207,6 +208,9 @@ interface HookResult<T = any> {
|
|
|
207
208
|
/** Plugin that executed the hook */
|
|
208
209
|
plugin: string;
|
|
209
210
|
}
|
|
211
|
+
declare function defineConfig(config: StacksConfig): StacksConfig;
|
|
212
|
+
declare function defineConfig(definer: ConfigDefiner): ConfigDefiner;
|
|
213
|
+
import { ClarityContract, ClarityFunction, ClarityType, ContractCallParams, ReadOnlyCallParams } from "@secondlayer/clarity-types";
|
|
210
214
|
/**
|
|
211
215
|
* Core plugin manager that orchestrates plugin execution
|
|
212
216
|
*/
|
|
@@ -269,83 +273,4 @@ declare class PluginManager {
|
|
|
269
273
|
*/
|
|
270
274
|
private createUtils;
|
|
271
275
|
}
|
|
272
|
-
|
|
273
|
-
/** Path to Clarinet.toml file */
|
|
274
|
-
path?: string;
|
|
275
|
-
/** Include only specific contracts */
|
|
276
|
-
include?: string[];
|
|
277
|
-
/** Exclude specific contracts */
|
|
278
|
-
exclude?: string[];
|
|
279
|
-
/** Enable debug output */
|
|
280
|
-
debug?: boolean;
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* Clarinet plugin factory
|
|
284
|
-
*/
|
|
285
|
-
declare const clarinet: PluginFactory<ClarinetPluginOptions>;
|
|
286
|
-
/**
|
|
287
|
-
* Utility function to check if a Clarinet project exists
|
|
288
|
-
*/
|
|
289
|
-
declare function hasClarinetProject(path?: string): Promise<boolean>;
|
|
290
|
-
interface ActionsPluginOptions {
|
|
291
|
-
/** Include only specific contracts */
|
|
292
|
-
include?: string[];
|
|
293
|
-
/** Exclude specific contracts */
|
|
294
|
-
exclude?: string[];
|
|
295
|
-
/** Include only specific functions */
|
|
296
|
-
includeFunctions?: string[];
|
|
297
|
-
/** Exclude specific functions */
|
|
298
|
-
excludeFunctions?: string[];
|
|
299
|
-
/** Enable debug output */
|
|
300
|
-
debug?: boolean;
|
|
301
|
-
}
|
|
302
|
-
/**
|
|
303
|
-
* Actions plugin factory
|
|
304
|
-
*/
|
|
305
|
-
declare const actions: PluginFactory<ActionsPluginOptions>;
|
|
306
|
-
/**
|
|
307
|
-
* React plugin configuration options
|
|
308
|
-
*/
|
|
309
|
-
interface ReactPluginOptions extends PluginOptions {
|
|
310
|
-
/**
|
|
311
|
-
* Hooks to exclude from generation (both generic and contract-specific)
|
|
312
|
-
* By default, all hooks are generated
|
|
313
|
-
*/
|
|
314
|
-
exclude?: string[];
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* React plugin factory
|
|
318
|
-
*/
|
|
319
|
-
declare const react: PluginFactory<ReactPluginOptions>;
|
|
320
|
-
interface TestingPluginOptions {
|
|
321
|
-
/** Include only specific contracts */
|
|
322
|
-
include?: string[];
|
|
323
|
-
/** Exclude specific contracts */
|
|
324
|
-
exclude?: string[];
|
|
325
|
-
/** Output path for generated testing helpers (default: ./src/generated/testing.ts) */
|
|
326
|
-
out?: string;
|
|
327
|
-
/** Include private function helpers (default: false) */
|
|
328
|
-
includePrivate?: boolean;
|
|
329
|
-
/** Enable debug output */
|
|
330
|
-
debug?: boolean;
|
|
331
|
-
}
|
|
332
|
-
declare const testing: PluginFactory<TestingPluginOptions>;
|
|
333
|
-
interface BasePluginOptions {
|
|
334
|
-
/** Include only specific contracts/functions */
|
|
335
|
-
include?: string[];
|
|
336
|
-
/** Exclude specific contracts/functions */
|
|
337
|
-
exclude?: string[];
|
|
338
|
-
/** Enable debug output */
|
|
339
|
-
debug?: boolean;
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* Utility function to filter contracts/functions based on include/exclude options
|
|
343
|
-
*/
|
|
344
|
-
declare function filterByOptions<T extends {
|
|
345
|
-
name: string
|
|
346
|
-
}>(items: T[], options?: BasePluginOptions): T[];
|
|
347
|
-
/**
|
|
348
|
-
* Utility function to create a simple plugin
|
|
349
|
-
*/
|
|
350
|
-
declare function createPlugin(name: string, version: string, implementation: Partial<StacksCodegenPlugin>): StacksCodegenPlugin;
|
|
351
|
-
export { testing, react, hasClarinetProject, filterByOptions, createPlugin, clarinet, actions, TestingPluginOptions, StacksCodegenPlugin, ReactPluginOptions, PluginUtils, PluginOptions, PluginManager, PluginFactory, PluginContext, Logger, GenerateContext, ClarinetPluginOptions, BasePluginOptions, ActionsPluginOptions };
|
|
276
|
+
export { defineConfig, UserConfig, StacksConfig, StacksCodegenPlugin, ResolvedConfig, ReadOnlyCallParams, ProcessedContract, PluginUtils, PluginOptions, PluginManager, PluginFactory, PluginContext, OutputType, NetworkName, Logger, GeneratedOutput, GenerateContext, ContractSource, ContractConfig, ContractCallParams, ClarityType, ClarityFunction, ClarityContract };
|