create-plico 0.1.0 → 0.1.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/README.md +4 -4
- package/dist/files.js +12 -7
- package/dist/scaffold.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# create-plico
|
|
2
2
|
|
|
3
|
-
Scaffold generator for the internal-ops starter project.
|
|
3
|
+
Scaffold generator for the internal-ops starter project. Part of [Plico](https://github.com/ITZSHOAIB/plico).
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
|
-
- `
|
|
8
|
-
- `
|
|
7
|
+
- `npm create plico@latest my-plico`
|
|
8
|
+
- `npx create-plico` asks for the folder name
|
|
9
9
|
- `create-plico --help` prints usage and `create-plico --version` prints the version. Any other argument that starts with `-` is rejected, so a typo never becomes a directory name.
|
|
10
10
|
|
|
11
11
|
`create-plico my-plico --provider anthropic|openai|google|openai-compatible` configures a model and writes the matching `.env.example` and adapter dependency. The interactive flow asks for the provider; without `--provider`, a non-interactive run configures none. The scaffold also writes a `package.json` with `dev`, `validate` and `eval` scripts, `@plico-ai/cli` as a dev dependency, and a `.gitignore` for `.plico/` and `.env`.
|
|
12
12
|
|
|
13
|
-
The generated scaffold includes the required Plico project files and directories so it is immediately valid and can complete `plico run --dry`
|
|
13
|
+
The generated scaffold includes the required Plico project files and directories so it is immediately valid and can complete `plico run --dry` and pass `plico eval` (it ships `evals/smoke.script.json`) after `npm install`.
|
package/dist/files.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { PROVIDER_SETUP } from "./providers.js";
|
|
2
|
+
/** Matches the adapter ranges `@plico-ai/runtime` accepts as optional peer dependencies. */
|
|
3
|
+
const ADAPTER_RANGE = "^4.0.0";
|
|
2
4
|
export function configFile(projectName, provider) {
|
|
3
5
|
const setup = provider ? PROVIDER_SETUP[provider] : undefined;
|
|
4
6
|
return [
|
|
@@ -36,7 +38,10 @@ export function packageFile(version, provider) {
|
|
|
36
38
|
validate: "plico validate .",
|
|
37
39
|
eval: "plico eval .",
|
|
38
40
|
},
|
|
39
|
-
dependencies: {
|
|
41
|
+
dependencies: {
|
|
42
|
+
"@plico-ai/sdk": `^${version}`,
|
|
43
|
+
...(adapter ? { [adapter]: ADAPTER_RANGE } : {}),
|
|
44
|
+
},
|
|
40
45
|
devDependencies: { "@plico-ai/cli": `^${version}` },
|
|
41
46
|
}, null, 2)}\n`;
|
|
42
47
|
}
|
|
@@ -110,12 +115,12 @@ export function toolsReadmeFile() {
|
|
|
110
115
|
].join("\n");
|
|
111
116
|
}
|
|
112
117
|
export function smokeEvalFile() {
|
|
113
|
-
return
|
|
114
|
-
"
|
|
115
|
-
"",
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
return `${JSON.stringify({
|
|
119
|
+
description: "Scripted smoke case. It needs no model and no key, so it passes in CI. Replace the steps with calls to your own tools.",
|
|
120
|
+
script: [{ type: "assistant.output", content: "The project boots." }],
|
|
121
|
+
expect: { status: "completed", outputContains: "boots" },
|
|
122
|
+
}, null, 2)}
|
|
123
|
+
`;
|
|
119
124
|
}
|
|
120
125
|
export function memoryReadmeFile() {
|
|
121
126
|
return [
|
package/dist/scaffold.js
CHANGED
|
@@ -18,7 +18,7 @@ export async function createInternalOpsScaffold(options) {
|
|
|
18
18
|
await mkdir(join(projectPaths.directories.skills, "triage"), { recursive: true });
|
|
19
19
|
await writeFile(join(projectPaths.directories.skills, "triage", "SKILL.md"), triageSkillFile(), "utf8");
|
|
20
20
|
await writeFile(join(projectPaths.directories.tools, "readme.md"), toolsReadmeFile(), "utf8");
|
|
21
|
-
await writeFile(join(projectPaths.directories.evals, "smoke.
|
|
21
|
+
await writeFile(join(projectPaths.directories.evals, "smoke.script.json"), smokeEvalFile(), "utf8");
|
|
22
22
|
await writeFile(join(projectPaths.directories.memory, "README.md"), memoryReadmeFile(), "utf8");
|
|
23
23
|
await writeFile(join(projectPaths.directories.artifacts, "README.md"), artifactsReadmeFile(), "utf8");
|
|
24
24
|
await writeFile(join(root, "README.md"), projectReadmeFile(projectName), "utf8");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-plico",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Scaffold a Plico agent project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://plico.sohab.dev",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@clack/prompts": "^1.6.0",
|
|
43
|
-
"@plico-ai/core": "0.1.
|
|
43
|
+
"@plico-ai/core": "0.1.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@plico-ai/runtime": "0.1.
|
|
46
|
+
"@plico-ai/runtime": "0.1.1"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=22.18.0"
|