@desplega.ai/agent-swarm 1.64.0 → 1.64.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/package.json +2 -1
- package/src/tests/package-publish.test.ts +41 -0
- package/tsconfig.json +49 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@desplega.ai/agent-swarm",
|
|
3
|
-
"version": "1.64.
|
|
3
|
+
"version": "1.64.1",
|
|
4
4
|
"description": "Multi-agent orchestration for Claude Code, Codex, Gemini CLI, and other AI coding assistants",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "desplega.sh <contact@desplega.sh>",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"src/",
|
|
26
|
+
"tsconfig.json",
|
|
26
27
|
"plugin/commands/",
|
|
27
28
|
"plugin/agents/",
|
|
28
29
|
"plugin/skills/",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { afterAll, describe, expect, setDefaultTimeout, test } from "bun:test";
|
|
2
|
+
import { execSync } from "node:child_process";
|
|
3
|
+
import { mkdtempSync, rmSync } from "node:fs";
|
|
4
|
+
import { tmpdir } from "node:os";
|
|
5
|
+
import { join } from "node:path";
|
|
6
|
+
|
|
7
|
+
const REPO_ROOT = join(import.meta.dir, "../..");
|
|
8
|
+
const tempDir = mkdtempSync(join(tmpdir(), "agent-swarm-pack-"));
|
|
9
|
+
|
|
10
|
+
setDefaultTimeout(30_000);
|
|
11
|
+
|
|
12
|
+
afterAll(() => {
|
|
13
|
+
rmSync(tempDir, { force: true, recursive: true });
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe("published package", () => {
|
|
17
|
+
test("version command works from an unpacked tarball", () => {
|
|
18
|
+
const tarballPath = join(tempDir, "agent-swarm.tgz");
|
|
19
|
+
const unpackDir = join(tempDir, "unpacked");
|
|
20
|
+
|
|
21
|
+
execSync(`bun pm pack --filename ${JSON.stringify(tarballPath)}`, {
|
|
22
|
+
cwd: REPO_ROOT,
|
|
23
|
+
stdio: "pipe",
|
|
24
|
+
});
|
|
25
|
+
execSync(
|
|
26
|
+
`mkdir -p ${JSON.stringify(unpackDir)} && tar -xzf ${JSON.stringify(tarballPath)} -C ${JSON.stringify(unpackDir)}`,
|
|
27
|
+
{
|
|
28
|
+
cwd: REPO_ROOT,
|
|
29
|
+
stdio: "pipe",
|
|
30
|
+
},
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
const output = execSync(`bun ./package/src/cli.tsx version`, {
|
|
34
|
+
cwd: unpackDir,
|
|
35
|
+
encoding: "utf-8",
|
|
36
|
+
stdio: "pipe",
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
expect(output).toContain("agent-swarm v");
|
|
40
|
+
});
|
|
41
|
+
});
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// Environment setup & latest features
|
|
4
|
+
"lib": ["ESNext"],
|
|
5
|
+
"types": ["bun"],
|
|
6
|
+
"target": "ESNext",
|
|
7
|
+
"module": "Preserve",
|
|
8
|
+
"moduleDetection": "force",
|
|
9
|
+
"jsx": "react-jsx",
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
|
|
12
|
+
// Bundler mode
|
|
13
|
+
"moduleResolution": "bundler",
|
|
14
|
+
"allowImportingTsExtensions": true,
|
|
15
|
+
|
|
16
|
+
// Path aliases
|
|
17
|
+
"baseUrl": ".",
|
|
18
|
+
"paths": {
|
|
19
|
+
"@/*": ["src/*"]
|
|
20
|
+
},
|
|
21
|
+
"verbatimModuleSyntax": true,
|
|
22
|
+
"noEmit": true,
|
|
23
|
+
|
|
24
|
+
// Best practices
|
|
25
|
+
"strict": true,
|
|
26
|
+
"skipLibCheck": true,
|
|
27
|
+
"noFallthroughCasesInSwitch": true,
|
|
28
|
+
"noUncheckedIndexedAccess": true,
|
|
29
|
+
"noImplicitOverride": true,
|
|
30
|
+
|
|
31
|
+
// Some stricter flags (disabled by default)
|
|
32
|
+
"noUnusedLocals": false,
|
|
33
|
+
"noUnusedParameters": false,
|
|
34
|
+
"noPropertyAccessFromIndexSignature": false
|
|
35
|
+
},
|
|
36
|
+
"exclude": [
|
|
37
|
+
"ui",
|
|
38
|
+
"new-ui",
|
|
39
|
+
"templates-ui",
|
|
40
|
+
"landing",
|
|
41
|
+
"node_modules",
|
|
42
|
+
"scripts",
|
|
43
|
+
"src/tests",
|
|
44
|
+
"work",
|
|
45
|
+
"logs",
|
|
46
|
+
"plugin",
|
|
47
|
+
"docs-site"
|
|
48
|
+
]
|
|
49
|
+
}
|