create-agentmark 0.10.8 → 1.0.0
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/index.d.ts +105 -1
- package/dist/index.js +296 -2409
- package/dist/index.js.map +1 -1
- package/package.json +5 -6
- package/dist/utils/examples/templates/index.d.ts +0 -111
- package/dist/utils/examples/templates/index.js +0 -809
- package/dist/utils/examples/templates/index.js.map +0 -1
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
interface AdapterConfig {
|
|
2
|
-
/** npm package name for the adapter */
|
|
3
|
-
package: string;
|
|
4
|
-
/** Additional npm packages required by this adapter */
|
|
5
|
-
dependencies: string[];
|
|
6
|
-
/** Class names used in generated code */
|
|
7
|
-
classes: {
|
|
8
|
-
modelRegistry: string;
|
|
9
|
-
webhookHandler: string;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
declare const createAdapterConfig: (provider: string) => Record<string, AdapterConfig>;
|
|
13
|
-
declare function getAdapterConfig(adapter: string, provider: string): AdapterConfig;
|
|
14
|
-
|
|
15
|
-
declare const getIndexFileContent: (adapter?: string, deploymentMode?: "cloud" | "static") => string;
|
|
16
|
-
|
|
17
|
-
declare const getEnvFileContent: (_modelProvider: string, apiKey?: string, adapter?: string, deploymentMode?: "cloud" | "static") => string;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Type definitions for existing repository initialization.
|
|
21
|
-
* These types support project detection, conflict resolution, and package manager handling.
|
|
22
|
-
*/
|
|
23
|
-
/** Supported package managers for TypeScript projects */
|
|
24
|
-
type PackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun';
|
|
25
|
-
/** Configuration for a specific package manager */
|
|
26
|
-
interface PackageManagerConfig {
|
|
27
|
-
/** Package manager name */
|
|
28
|
-
name: PackageManager;
|
|
29
|
-
/** Lock file that indicates this package manager is in use */
|
|
30
|
-
lockFile: string;
|
|
31
|
-
/** Command to install all dependencies */
|
|
32
|
-
installCmd: string;
|
|
33
|
-
/** Command to add a production dependency */
|
|
34
|
-
addCmd: string;
|
|
35
|
-
/** Command to add a dev dependency */
|
|
36
|
-
addDevCmd: string;
|
|
37
|
-
/** Command prefix for running scripts (e.g., 'npm run', 'yarn') */
|
|
38
|
-
runCmd: string;
|
|
39
|
-
}
|
|
40
|
-
/** Information about a detected Python virtual environment */
|
|
41
|
-
interface PythonVenvInfo {
|
|
42
|
-
/** Absolute path to the venv directory */
|
|
43
|
-
path: string;
|
|
44
|
-
/** Relative name (e.g., '.venv' or 'venv') */
|
|
45
|
-
name: string;
|
|
46
|
-
/** Platform-specific activate command */
|
|
47
|
-
activateCmd: string;
|
|
48
|
-
/** Platform-specific pip path */
|
|
49
|
-
pipPath: string;
|
|
50
|
-
}
|
|
51
|
-
/** Type of file for determining merge strategy */
|
|
52
|
-
type FileType = 'config' | 'source' | 'directory' | 'dotfile';
|
|
53
|
-
/** Resolution strategy for a conflicting file */
|
|
54
|
-
type ConflictStrategy = 'merge' | 'append' | 'prompt' | 'skip';
|
|
55
|
-
/** Represents a file that may conflict with AgentMark initialization */
|
|
56
|
-
interface ConflictFile {
|
|
57
|
-
/** Relative path from project root */
|
|
58
|
-
path: string;
|
|
59
|
-
/** Type of file for determining merge strategy */
|
|
60
|
-
type: FileType;
|
|
61
|
-
/** Recommended resolution strategy */
|
|
62
|
-
strategy: ConflictStrategy;
|
|
63
|
-
}
|
|
64
|
-
/** Detected information about an existing project */
|
|
65
|
-
interface ProjectInfo {
|
|
66
|
-
/** Whether any project indicators were found */
|
|
67
|
-
isExistingProject: boolean;
|
|
68
|
-
/** Detected project type */
|
|
69
|
-
type: 'typescript' | 'python' | 'unknown';
|
|
70
|
-
/** Detected package manager (for TypeScript projects) */
|
|
71
|
-
packageManager: PackageManagerConfig;
|
|
72
|
-
/** Files that exist and may conflict */
|
|
73
|
-
conflictingFiles: ConflictFile[];
|
|
74
|
-
/** Whether the agentmark/ directory already exists */
|
|
75
|
-
hasAgentmarkDir: boolean;
|
|
76
|
-
/** Whether an existing Python venv was detected */
|
|
77
|
-
pythonVenv: PythonVenvInfo | null;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
declare const setupPackageJson: (targetPath?: string, deploymentMode?: "cloud" | "static", projectInfo?: ProjectInfo | null) => void;
|
|
81
|
-
declare const installDependencies: (modelProvider: string, targetPath?: string, adapter?: string, deploymentMode?: "cloud" | "static", packageManager?: PackageManagerConfig | null) => void;
|
|
82
|
-
|
|
83
|
-
declare const getTsConfigContent: () => object;
|
|
84
|
-
|
|
85
|
-
declare const getAnimalDrawingPrompt: () => string;
|
|
86
|
-
|
|
87
|
-
declare const getCustomerSupportPrompt: (model: string) => string;
|
|
88
|
-
|
|
89
|
-
declare const getPartyPlannerPrompt: (model: string) => string;
|
|
90
|
-
|
|
91
|
-
declare const getStoryTellerPrompt: () => string;
|
|
92
|
-
|
|
93
|
-
declare const getAnimalDataset: () => string;
|
|
94
|
-
declare const getCustomerQueryDataset: () => string;
|
|
95
|
-
declare const getPartyDataset: () => string;
|
|
96
|
-
declare const getStoryDataset: () => string;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Creates example prompt files and returns the list of model IDs they use.
|
|
100
|
-
* The returned array is the authoritative source for `builtInModels` in agentmark.json —
|
|
101
|
-
* it reflects exactly which models were written, so the two can never drift apart.
|
|
102
|
-
*/
|
|
103
|
-
declare const createExamplePrompts: (model: string, targetPath?: string, adapter?: string) => string[];
|
|
104
|
-
|
|
105
|
-
declare const getClientConfigContent: (options: {
|
|
106
|
-
provider: string;
|
|
107
|
-
adapter: string;
|
|
108
|
-
deploymentMode?: "cloud" | "static";
|
|
109
|
-
}) => string;
|
|
110
|
-
|
|
111
|
-
export { type AdapterConfig, createAdapterConfig, createExamplePrompts, getAdapterConfig, getAnimalDataset, getAnimalDrawingPrompt, getClientConfigContent, getCustomerQueryDataset, getCustomerSupportPrompt, getEnvFileContent, getIndexFileContent, getPartyDataset, getPartyPlannerPrompt, getStoryDataset, getStoryTellerPrompt, getTsConfigContent, installDependencies, setupPackageJson };
|