agentpacks 1.7.6 → 1.7.8
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 +69 -742
- package/dist/api.d.ts +15 -15
- package/dist/api.js +2706 -2706
- package/dist/cli/export-cmd.js +364 -364
- package/dist/cli/generate.js +1409 -1409
- package/dist/cli/import-cmd.js +249 -249
- package/dist/cli/info.js +31 -31
- package/dist/cli/init.js +6 -6
- package/dist/cli/install.js +141 -141
- package/dist/cli/login.js +31 -31
- package/dist/cli/models-explain.js +514 -514
- package/dist/cli/pack/create.js +6 -6
- package/dist/cli/pack/enable.js +2 -2
- package/dist/cli/pack/list.js +362 -362
- package/dist/cli/pack/validate.js +119 -119
- package/dist/cli/publish.js +42 -42
- package/dist/cli/search.js +31 -31
- package/dist/core/config.js +3 -3
- package/dist/core/feature-merger.d.ts +5 -5
- package/dist/core/feature-merger.js +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +633 -633
- package/dist/core/lockfile.js +1 -1
- package/dist/core/metarepo.js +3 -3
- package/dist/core/pack-loader.d.ts +6 -6
- package/dist/core/pack-loader.js +362 -362
- package/dist/core/profile-resolver.d.ts +1 -1
- package/dist/exporters/cursor-plugin.d.ts +12 -0
- package/dist/exporters/cursor-plugin.js +46 -46
- package/dist/exporters/index.d.ts +1 -1
- package/dist/exporters/index.js +46 -46
- package/dist/features/agents.js +4 -4
- package/dist/features/commands.js +4 -4
- package/dist/features/hooks.js +4 -4
- package/dist/features/index.d.ts +8 -8
- package/dist/features/index.js +350 -350
- package/dist/features/mcp.js +4 -4
- package/dist/features/models.js +4 -4
- package/dist/features/plugins.js +5 -5
- package/dist/features/rules.js +4 -4
- package/dist/features/skills.js +5 -5
- package/dist/importers/claude-code.js +6 -6
- package/dist/importers/cursor.js +7 -7
- package/dist/importers/opencode.js +7 -7
- package/dist/importers/rulesync.js +7 -7
- package/dist/index.js +2674 -2674
- package/dist/node/api.js +2706 -2706
- package/dist/node/cli/export-cmd.js +364 -364
- package/dist/node/cli/generate.js +1409 -1409
- package/dist/node/cli/import-cmd.js +249 -249
- package/dist/node/cli/info.js +31 -31
- package/dist/node/cli/init.js +6 -6
- package/dist/node/cli/install.js +141 -141
- package/dist/node/cli/login.js +31 -31
- package/dist/node/cli/models-explain.js +514 -514
- package/dist/node/cli/pack/create.js +6 -6
- package/dist/node/cli/pack/enable.js +2 -2
- package/dist/node/cli/pack/list.js +362 -362
- package/dist/node/cli/pack/validate.js +119 -119
- package/dist/node/cli/publish.js +42 -42
- package/dist/node/cli/search.js +31 -31
- package/dist/node/core/config.js +3 -3
- package/dist/node/core/feature-merger.js +4 -4
- package/dist/node/core/index.js +633 -633
- package/dist/node/core/lockfile.js +1 -1
- package/dist/node/core/metarepo.js +3 -3
- package/dist/node/core/pack-loader.js +362 -362
- package/dist/node/exporters/cursor-plugin.js +46 -46
- package/dist/node/exporters/index.js +46 -46
- package/dist/node/features/agents.js +4 -4
- package/dist/node/features/commands.js +4 -4
- package/dist/node/features/hooks.js +4 -4
- package/dist/node/features/index.js +350 -350
- package/dist/node/features/mcp.js +4 -4
- package/dist/node/features/models.js +4 -4
- package/dist/node/features/plugins.js +5 -5
- package/dist/node/features/rules.js +4 -4
- package/dist/node/features/skills.js +5 -5
- package/dist/node/importers/claude-code.js +6 -6
- package/dist/node/importers/cursor.js +7 -7
- package/dist/node/importers/opencode.js +7 -7
- package/dist/node/importers/rulesync.js +7 -7
- package/dist/node/index.js +2674 -2674
- package/dist/node/sources/git.js +2 -2
- package/dist/node/sources/index.js +138 -138
- package/dist/node/sources/local.js +1 -1
- package/dist/node/sources/npm.js +3 -3
- package/dist/node/sources/registry.js +35 -35
- package/dist/node/targets/additional-targets.js +43 -43
- package/dist/node/targets/agents-md.js +4 -4
- package/dist/node/targets/claude-code.js +86 -86
- package/dist/node/targets/codex-cli.js +6 -6
- package/dist/node/targets/copilot.js +46 -46
- package/dist/node/targets/cursor.js +68 -68
- package/dist/node/targets/gemini-cli.js +25 -25
- package/dist/node/targets/generic-md-target.js +43 -43
- package/dist/node/targets/index.js +911 -911
- package/dist/node/targets/mistral-vibe.js +46 -46
- package/dist/node/targets/opencode.js +68 -68
- package/dist/node/targets/registry.js +911 -911
- package/dist/node/utils/credentials.js +2 -2
- package/dist/node/utils/filesystem.js +4 -4
- package/dist/node/utils/global.js +1 -1
- package/dist/node/utils/tarball.js +2 -2
- package/dist/sources/git.js +2 -2
- package/dist/sources/index.d.ts +6 -6
- package/dist/sources/index.js +138 -138
- package/dist/sources/local.js +1 -1
- package/dist/sources/npm.d.ts +3 -0
- package/dist/sources/npm.js +3 -3
- package/dist/sources/registry.js +35 -35
- package/dist/targets/additional-targets.js +43 -43
- package/dist/targets/agents-md.js +4 -4
- package/dist/targets/claude-code.js +86 -86
- package/dist/targets/codex-cli.js +6 -6
- package/dist/targets/copilot.js +46 -46
- package/dist/targets/cursor.js +68 -68
- package/dist/targets/gemini-cli.js +25 -25
- package/dist/targets/generic-md-target.js +43 -43
- package/dist/targets/index.d.ts +6 -6
- package/dist/targets/index.js +911 -911
- package/dist/targets/mistral-vibe.js +46 -46
- package/dist/targets/opencode.js +68 -68
- package/dist/targets/registry.js +911 -911
- package/dist/utils/credentials.js +2 -2
- package/dist/utils/filesystem.js +4 -4
- package/dist/utils/global.d.ts +3 -0
- package/dist/utils/global.js +1 -1
- package/dist/utils/tarball.js +2 -2
- package/package.json +5 -5
- package/templates/pack/models.json +36 -36
- package/templates/pack/pack.json +8 -8
- package/templates/workspace/agentpacks.jsonc +24 -24
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
4
|
// src/utils/credentials.ts
|
|
5
|
-
import { existsSync, readFileSync, writeFileSync
|
|
6
|
-
import { join, dirname } from "path";
|
|
5
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
7
6
|
import { homedir } from "os";
|
|
7
|
+
import { dirname, join } from "path";
|
|
8
8
|
var CONFIG_DIR = join(homedir(), ".config", "agentpacks");
|
|
9
9
|
var CREDENTIALS_FILE = join(CONFIG_DIR, "credentials.json");
|
|
10
10
|
function loadCredentials() {
|
package/dist/utils/filesystem.js
CHANGED
|
@@ -5,13 +5,13 @@ var __require = import.meta.require;
|
|
|
5
5
|
import {
|
|
6
6
|
existsSync,
|
|
7
7
|
mkdirSync,
|
|
8
|
-
readFileSync,
|
|
9
|
-
writeFileSync,
|
|
10
8
|
readdirSync,
|
|
9
|
+
readFileSync,
|
|
11
10
|
rmSync,
|
|
12
|
-
statSync
|
|
11
|
+
statSync,
|
|
12
|
+
writeFileSync
|
|
13
13
|
} from "fs";
|
|
14
|
-
import { dirname,
|
|
14
|
+
import { dirname, join, relative } from "path";
|
|
15
15
|
var GENERATED_HEADER_MD = "<!-- Generated by agentpacks. DO NOT EDIT. -->";
|
|
16
16
|
var GENERATED_HEADER_JSON = "// Generated by agentpacks. DO NOT EDIT.";
|
|
17
17
|
var GENERATED_HEADER_JS = "// Generated by agentpacks. DO NOT EDIT.";
|
package/dist/utils/global.d.ts
CHANGED
package/dist/utils/global.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
4
|
// src/utils/global.ts
|
|
5
|
+
import { existsSync } from "fs";
|
|
5
6
|
import { homedir } from "os";
|
|
6
7
|
import { join, resolve } from "path";
|
|
7
|
-
import { existsSync } from "fs";
|
|
8
8
|
function globalConfigDir() {
|
|
9
9
|
return resolve(process.env.AGENTPACKS_GLOBAL_DIR ?? join(homedir(), ".agentpacks"));
|
|
10
10
|
}
|
package/dist/utils/tarball.js
CHANGED
|
@@ -3,10 +3,10 @@ var __require = import.meta.require;
|
|
|
3
3
|
|
|
4
4
|
// src/utils/tarball.ts
|
|
5
5
|
import { execSync } from "child_process";
|
|
6
|
-
import { readFileSync, existsSync, mkdirSync, rmSync } from "fs";
|
|
7
|
-
import { join, resolve } from "path";
|
|
8
6
|
import { createHash } from "crypto";
|
|
7
|
+
import { existsSync, mkdirSync, readFileSync, rmSync } from "fs";
|
|
9
8
|
import { tmpdir } from "os";
|
|
9
|
+
import { join, resolve } from "path";
|
|
10
10
|
async function createTarball(packDir) {
|
|
11
11
|
const absDir = resolve(packDir);
|
|
12
12
|
const tmpFile = join(tmpdir(), `agentpacks-${Date.now()}.tgz`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentpacks",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Composable AI agent configuration manager. Pack-based rules, commands, skills, hooks, and MCP sync across OpenCode, Cursor, Claude Code, Codex, Gemini, Copilot, and more.",
|
|
6
6
|
"keywords": [
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"dev": "contractspec-bun-build dev",
|
|
28
28
|
"clean": "rimraf dist .turbo",
|
|
29
29
|
"lint": "bun lint:fix",
|
|
30
|
-
"lint:fix": "
|
|
31
|
-
"lint:check": "
|
|
30
|
+
"lint:fix": "biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .",
|
|
31
|
+
"lint:check": "biome check .",
|
|
32
32
|
"test": "bun test --pass-with-no-tests",
|
|
33
33
|
"prebuild": "contractspec-bun-build prebuild",
|
|
34
34
|
"typecheck": "tsc --noEmit"
|
|
@@ -479,8 +479,8 @@
|
|
|
479
479
|
"glob": "^13.0.6"
|
|
480
480
|
},
|
|
481
481
|
"devDependencies": {
|
|
482
|
-
"@contractspec/tool.typescript": "3.7.
|
|
483
|
-
"@contractspec/tool.bun": "3.7.
|
|
482
|
+
"@contractspec/tool.typescript": "3.7.8",
|
|
483
|
+
"@contractspec/tool.bun": "3.7.8",
|
|
484
484
|
"typescript": "^5.9.3"
|
|
485
485
|
},
|
|
486
486
|
"publishConfig": {
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
"$schema": "https://agentpacks.dev/schemas/models.json",
|
|
3
|
+
"default": "anthropic/claude-sonnet-4-6",
|
|
4
|
+
"small": "anthropic/claude-haiku-3.5",
|
|
5
|
+
"profiles": {
|
|
6
|
+
"quality": {
|
|
7
|
+
"description": "Maximum quality — use the strongest available model",
|
|
8
|
+
"default": "anthropic/claude-opus-4-6",
|
|
9
|
+
"small": "anthropic/claude-sonnet-4-6"
|
|
10
|
+
},
|
|
11
|
+
"budget": {
|
|
12
|
+
"description": "Cost-efficient — use smaller models where possible",
|
|
13
|
+
"default": "anthropic/claude-haiku-3.5",
|
|
14
|
+
"small": "anthropic/claude-haiku-3.5"
|
|
15
|
+
},
|
|
16
|
+
"fast": {
|
|
17
|
+
"description": "Low-latency — prioritize speed over depth",
|
|
18
|
+
"default": "anthropic/claude-haiku-3.5",
|
|
19
|
+
"small": "anthropic/claude-haiku-3.5"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"providers": {
|
|
23
|
+
"anthropic": {
|
|
24
|
+
"models": {
|
|
25
|
+
"claude-opus-4-6": {
|
|
26
|
+
"options": {
|
|
27
|
+
"budgetTokens": 10000
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"claude-sonnet-4-6": {
|
|
31
|
+
"options": {
|
|
32
|
+
"budgetTokens": 5000
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
38
|
}
|
package/templates/pack/pack.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
"name": "{{name}}",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "{{description}}",
|
|
5
|
+
"tags": [],
|
|
6
|
+
"dependencies": [],
|
|
7
|
+
"conflicts": [],
|
|
8
|
+
"targets": ["*"],
|
|
9
|
+
"features": ["*"]
|
|
10
10
|
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
2
|
+
"$schema": "https://unpkg.com/agentpacks/schema.json",
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
// Active packs (local directories, npm packages, or git repos)
|
|
5
|
+
"packs": ["./packs/default"],
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
// Packs to disable (override)
|
|
8
|
+
"disabled": [],
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
// Target AI tools to generate configs for
|
|
11
|
+
"targets": [
|
|
12
|
+
"opencode",
|
|
13
|
+
"cursor",
|
|
14
|
+
"claudecode",
|
|
15
|
+
"geminicli",
|
|
16
|
+
"codexcli",
|
|
17
|
+
"copilot"
|
|
18
|
+
],
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
// Features to generate ("*" for all, or per-target object)
|
|
21
|
+
"features": ["*"],
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
// Repository mode: "repo" | "monorepo" | "metarepo"
|
|
24
|
+
"mode": "repo",
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
// Base directories (for monorepo mode)
|
|
27
|
+
"baseDirs": ["."],
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
// Generate global (user-scope) configs
|
|
30
|
+
"global": false,
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
// Delete existing generated files before regenerating
|
|
33
|
+
"delete": true
|
|
34
34
|
}
|