autokap 1.6.2 → 1.6.3
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-config.js +69 -25
- package/dist/cli-contract.d.ts +19 -5
- package/dist/cli-contract.js +55 -151
- package/dist/cli-doctor.d.ts +0 -1
- package/dist/cli-doctor.js +15 -143
- package/dist/cli-runner.d.ts +1 -1
- package/dist/cli-runner.js +2 -2
- package/dist/cli.js +24 -1163
- package/dist/execution-schema.d.ts +3 -3
- package/dist/program-signing.d.ts +1 -1
- package/dist/skill-packaging.d.ts +0 -16
- package/dist/skill-packaging.js +1 -51
- package/dist/video-narration-schema.d.ts +1 -1
- package/package.json +2 -6
- package/readme.md +15 -12
- package/assets/skill/OPCODE-REFERENCE.md +0 -625
- package/assets/skill/README.md +0 -38
- package/assets/skill/SKILL.md +0 -590
- package/assets/skill/references/STANDARDS.md +0 -236
- package/assets/skill/references/examples.md +0 -88
- package/assets/skill/references/mock-data.md +0 -178
- package/dist/auth-capture.d.ts +0 -17
- package/dist/auth-capture.js +0 -199
- package/dist/cli-utils.d.ts +0 -5
- package/dist/cli-utils.js +0 -14
- package/dist/version-check.d.ts +0 -4
- package/dist/version-check.js +0 -102
|
@@ -1072,9 +1072,9 @@ export declare const PreconditionSpecSchema: z.ZodObject<{
|
|
|
1072
1072
|
httpOnly: z.ZodBoolean;
|
|
1073
1073
|
secure: z.ZodBoolean;
|
|
1074
1074
|
sameSite: z.ZodEnum<{
|
|
1075
|
-
Strict: "Strict";
|
|
1076
1075
|
Lax: "Lax";
|
|
1077
1076
|
None: "None";
|
|
1077
|
+
Strict: "Strict";
|
|
1078
1078
|
}>;
|
|
1079
1079
|
}, z.core.$strict>>;
|
|
1080
1080
|
origins: z.ZodArray<z.ZodObject<{
|
|
@@ -1221,9 +1221,9 @@ export declare const ExecutionProgramSchema: z.ZodObject<{
|
|
|
1221
1221
|
httpOnly: z.ZodBoolean;
|
|
1222
1222
|
secure: z.ZodBoolean;
|
|
1223
1223
|
sameSite: z.ZodEnum<{
|
|
1224
|
-
Strict: "Strict";
|
|
1225
1224
|
Lax: "Lax";
|
|
1226
1225
|
None: "None";
|
|
1226
|
+
Strict: "Strict";
|
|
1227
1227
|
}>;
|
|
1228
1228
|
}, z.core.$strict>>;
|
|
1229
1229
|
origins: z.ZodArray<z.ZodObject<{
|
|
@@ -4185,7 +4185,7 @@ export declare function safeParseProgramResult(data: unknown): z.ZodSafeParseRes
|
|
|
4185
4185
|
expires: number;
|
|
4186
4186
|
httpOnly: boolean;
|
|
4187
4187
|
secure: boolean;
|
|
4188
|
-
sameSite: "
|
|
4188
|
+
sameSite: "Lax" | "None" | "Strict";
|
|
4189
4189
|
}[];
|
|
4190
4190
|
origins: {
|
|
4191
4191
|
origin: string;
|
|
@@ -121,9 +121,9 @@ export declare const SignedExecutionProgramEnvelopeSchema: z.ZodObject<{
|
|
|
121
121
|
httpOnly: z.ZodBoolean;
|
|
122
122
|
secure: z.ZodBoolean;
|
|
123
123
|
sameSite: z.ZodEnum<{
|
|
124
|
-
Strict: "Strict";
|
|
125
124
|
Lax: "Lax";
|
|
126
125
|
None: "None";
|
|
126
|
+
Strict: "Strict";
|
|
127
127
|
}>;
|
|
128
128
|
}, z.core.$strict>>;
|
|
129
129
|
origins: z.ZodArray<z.ZodObject<{
|
|
@@ -1,28 +1,12 @@
|
|
|
1
1
|
export type SkillType = 'preset';
|
|
2
|
-
export type SkillAgent = 'claude' | 'codex' | 'cursor' | 'windsurf' | 'copilot';
|
|
3
2
|
export interface SkillPlaceholderOptions {
|
|
4
3
|
projectUrl?: string;
|
|
5
4
|
projectId?: string;
|
|
6
5
|
apiBaseUrl?: string;
|
|
7
6
|
}
|
|
8
|
-
export interface SkillExportResult {
|
|
9
|
-
mode: 'single-file' | 'bundle';
|
|
10
|
-
writtenPaths: string[];
|
|
11
|
-
}
|
|
12
7
|
export declare function resolveSkillAssetDir(): Promise<string>;
|
|
13
|
-
export declare function shouldInstallSkillBundle(params: {
|
|
14
|
-
agent?: string;
|
|
15
|
-
outputPath?: string;
|
|
16
|
-
type: SkillType;
|
|
17
|
-
}): boolean;
|
|
18
8
|
export declare function renderSkillSingleFile(params: {
|
|
19
9
|
type: SkillType;
|
|
20
10
|
agent?: string;
|
|
21
11
|
placeholders: SkillPlaceholderOptions;
|
|
22
12
|
}): Promise<string>;
|
|
23
|
-
export declare function writeSkillExport(params: {
|
|
24
|
-
type: SkillType;
|
|
25
|
-
agent?: string;
|
|
26
|
-
outputPath: string;
|
|
27
|
-
placeholders: SkillPlaceholderOptions;
|
|
28
|
-
}): Promise<SkillExportResult>;
|
package/dist/skill-packaging.js
CHANGED
|
@@ -17,6 +17,7 @@ const PRESET_SKILL_SOURCE = {
|
|
|
17
17
|
coreFile: 'SKILL.md',
|
|
18
18
|
references: [
|
|
19
19
|
{ relativePath: 'OPCODE-REFERENCE.md', title: 'Opcode Reference', anchor: 'reference-opcode-reference' },
|
|
20
|
+
{ relativePath: 'references/STANDARDS.md', title: 'Prompt Charter & Quality Standards', anchor: 'reference-prompt-standards' },
|
|
20
21
|
{ relativePath: 'references/mock-data.md', title: 'Mock Data Injection', anchor: 'reference-mock-data-injection' },
|
|
21
22
|
{ relativePath: 'references/examples.md', title: 'Complete Examples', anchor: 'reference-complete-examples' },
|
|
22
23
|
],
|
|
@@ -57,23 +58,6 @@ export async function resolveSkillAssetDir() {
|
|
|
57
58
|
}
|
|
58
59
|
throw new Error('Could not find assets/skill. Make sure the autokap package is installed correctly.');
|
|
59
60
|
}
|
|
60
|
-
function inferBundleInstall(outputPath) {
|
|
61
|
-
if (!outputPath)
|
|
62
|
-
return false;
|
|
63
|
-
const normalized = path.normalize(outputPath);
|
|
64
|
-
const parts = normalized.split(path.sep).filter(Boolean);
|
|
65
|
-
for (let index = 0; index < parts.length - 1; index += 1) {
|
|
66
|
-
if (parts[index] === '.agents' && parts[index + 1] === 'skills') {
|
|
67
|
-
return path.basename(normalized) === 'SKILL.md';
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
export function shouldInstallSkillBundle(params) {
|
|
73
|
-
if (params.agent?.toLowerCase() === 'codex')
|
|
74
|
-
return true;
|
|
75
|
-
return inferBundleInstall(params.outputPath);
|
|
76
|
-
}
|
|
77
61
|
async function readSkillFile(rootDir, relativePath, placeholders) {
|
|
78
62
|
const absolutePath = path.join(rootDir, relativePath);
|
|
79
63
|
const raw = await fs.readFile(absolutePath, 'utf-8');
|
|
@@ -122,38 +106,4 @@ export async function renderSkillSingleFile(params) {
|
|
|
122
106
|
}
|
|
123
107
|
return [core, ...bundledReferences].join('\n\n');
|
|
124
108
|
}
|
|
125
|
-
export async function writeSkillExport(params) {
|
|
126
|
-
const rootDir = await resolveSkillAssetDir();
|
|
127
|
-
const spec = getSkillSourceSpec(params.type);
|
|
128
|
-
if (shouldInstallSkillBundle({
|
|
129
|
-
agent: params.agent,
|
|
130
|
-
outputPath: params.outputPath,
|
|
131
|
-
type: params.type,
|
|
132
|
-
})) {
|
|
133
|
-
const destinationDir = path.dirname(params.outputPath);
|
|
134
|
-
const writtenPaths = [];
|
|
135
|
-
for (const relativePath of [spec.coreFile, ...spec.references.map((reference) => reference.relativePath)]) {
|
|
136
|
-
const absolutePath = path.join(destinationDir, relativePath);
|
|
137
|
-
const content = await readSkillFile(rootDir, relativePath, params.placeholders);
|
|
138
|
-
await fs.mkdir(path.dirname(absolutePath), { recursive: true });
|
|
139
|
-
await fs.writeFile(absolutePath, content, 'utf-8');
|
|
140
|
-
writtenPaths.push(absolutePath);
|
|
141
|
-
}
|
|
142
|
-
return {
|
|
143
|
-
mode: 'bundle',
|
|
144
|
-
writtenPaths,
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
const content = await renderSkillSingleFile({
|
|
148
|
-
type: params.type,
|
|
149
|
-
agent: params.agent,
|
|
150
|
-
placeholders: params.placeholders,
|
|
151
|
-
});
|
|
152
|
-
await fs.mkdir(path.dirname(params.outputPath), { recursive: true });
|
|
153
|
-
await fs.writeFile(params.outputPath, content, 'utf-8');
|
|
154
|
-
return {
|
|
155
|
-
mode: 'single-file',
|
|
156
|
-
writtenPaths: [params.outputPath],
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
109
|
//# sourceMappingURL=skill-packaging.js.map
|
|
@@ -147,9 +147,9 @@ export declare const VideoIngestPayloadSchema: z.ZodObject<{
|
|
|
147
147
|
httpOnly: z.ZodBoolean;
|
|
148
148
|
secure: z.ZodBoolean;
|
|
149
149
|
sameSite: z.ZodEnum<{
|
|
150
|
-
Strict: "Strict";
|
|
151
150
|
Lax: "Lax";
|
|
152
151
|
None: "None";
|
|
152
|
+
Strict: "Strict";
|
|
153
153
|
}>;
|
|
154
154
|
}, z.core.$strict>>;
|
|
155
155
|
origins: z.ZodArray<z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autokap",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "AI-powered CLI tool for capturing clean screenshots of websites",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -190,9 +190,6 @@
|
|
|
190
190
|
"bin": {
|
|
191
191
|
"autokap": "dist/cli.js"
|
|
192
192
|
},
|
|
193
|
-
"scripts": {
|
|
194
|
-
"postinstall": "node -e \"try{require('child_process').execSync('npx playwright install chromium',{stdio:'inherit'})}catch(e){console.warn('AutoKap: Playwright Chromium install failed. Run npx playwright install chromium manually.',e.message||'')}\""
|
|
195
|
-
},
|
|
196
193
|
"engines": {
|
|
197
194
|
"node": ">=20"
|
|
198
195
|
},
|
|
@@ -207,8 +204,7 @@
|
|
|
207
204
|
"assets/frames/MacBook*",
|
|
208
205
|
"assets/frames/Status*",
|
|
209
206
|
"assets/icons",
|
|
210
|
-
"assets/cursors"
|
|
211
|
-
"assets/skill"
|
|
207
|
+
"assets/cursors"
|
|
212
208
|
],
|
|
213
209
|
"keywords": [
|
|
214
210
|
"screenshot",
|
package/readme.md
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
# AutoKap
|
|
1
|
+
# AutoKap (backend package)
|
|
2
2
|
|
|
3
|
-
AI-powered website screenshot capture across every device, language, and
|
|
3
|
+
AI-powered website screenshot capture across every device, language, and
|
|
4
|
+
theme.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
This npm package (`autokap`) is the **backend** consumed by:
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
- the AutoKap Cloud Run service that handles
|
|
9
|
+
`npx autokap auto-recapture --cloud` jobs, and
|
|
10
|
+
- the official MCP server `@autokap/mcp`, which spawns the package as a
|
|
11
|
+
sub-process for local capture execution (`autokap_start_capture`).
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
**You probably do not need to install this package directly.** Wire your
|
|
14
|
+
IDE assistant to `@autokap/mcp` instead — see the per-IDE install guides
|
|
15
|
+
in the repository root README and the
|
|
16
|
+
[migration guide](https://github.com/autokap/autokap/blob/main/MIGRATION-v1-to-v2.md).
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
The advanced commands `autokap login`, `autokap run`, `autokap doctor`,
|
|
19
|
+
and `autokap auto-recapture` remain available for users who need a
|
|
20
|
+
scriptable backend (CI/CD, custom orchestrators).
|
|
18
21
|
|
|
19
22
|
## Recapture Cloud in CI/CD
|
|
20
23
|
|