@tablation/crew 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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +4 -0
  3. package/bin/crew +29 -0
  4. package/package.json +17 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Brad Choate
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -4,6 +4,10 @@ A standing team of headless agents that picks work off a
4
4
  [Tablation](https://tablation.com) board, does it on a machine you control,
5
5
  and reports back on the board.
6
6
 
7
+ **Documentation: <https://crew.tablation.dev>** — start with
8
+ [Getting started](https://crew.tablation.dev/getting-started). The source is in
9
+ `docs/`.
10
+
7
11
  Each **seat** is a row in the board's Crew table that happens to be a robot,
8
12
  with a brief (`prompts/<promptSet>/`, see "Prompt sets" below) and a slice
9
13
  of the queue. A seat is named in that table and answers to that name, in the
package/bin/crew ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+ // crew — the runner. See src/cli.ts.
3
+ //
4
+ // Runs the built output when it exists, and falls back to running TypeScript
5
+ // directly so a checkout works without a build step. The bash runner this
6
+ // replaces is kept as bin/crew-legacy.sh until cutover is done.
7
+ import { existsSync } from 'node:fs';
8
+ import { dirname, join } from 'node:path';
9
+ import { fileURLToPath, pathToFileURL } from 'node:url';
10
+
11
+ const here = dirname(fileURLToPath(import.meta.url));
12
+ const built = join(here, '..', 'dist', 'cli.js');
13
+ const source = join(here, '..', 'src', 'cli.ts');
14
+
15
+ // CREW_FROM_SOURCE=1 skips the bundle even when one exists. crew's own test
16
+ // suite sets it on every CLI it spawns (test/helpers/crew-bin.ts): dist/ is
17
+ // rebuilt by the release's build hook, which runs AFTER the test gate, so
18
+ // without this the gate exercises the previous release's bundle (CREW-988).
19
+ const fromSource = process.env.CREW_FROM_SOURCE === '1' && existsSync(source);
20
+
21
+ if (existsSync(built) && !fromSource) {
22
+ await import(pathToFileURL(built).href);
23
+ } else if (existsSync(source)) {
24
+ // Node >=22.18 strips types natively; older needs --experimental-strip-types.
25
+ await import(pathToFileURL(source).href);
26
+ } else {
27
+ console.error('crew: no dist/cli.js and no src/cli.ts — is this a complete checkout?');
28
+ process.exit(1);
29
+ }
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "@tablation/crew",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A standing team of headless agents that picks work off a Tablation board, does it on a machine you control, and reports back.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/rightdesign/crew.git"
10
+ },
11
+ "homepage": "https://github.com/rightdesign/crew#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/rightdesign/crew/issues"
14
+ },
7
15
  "publishConfig": {
8
16
  "access": "public"
9
17
  },
@@ -15,9 +23,11 @@
15
23
  },
16
24
  "files": [
17
25
  "dist",
26
+ "bin",
18
27
  "prompts",
19
28
  "crew.example.yaml",
20
- "README.md"
29
+ "README.md",
30
+ "LICENSE"
21
31
  ],
22
32
  "dependencies": {
23
33
  "@modelcontextprotocol/sdk": "^1.30.0",
@@ -30,13 +40,16 @@
30
40
  "@types/node": "^22.10.0",
31
41
  "tsup": "^8.3.5",
32
42
  "tsx": "^4.23.12",
33
- "typescript": "^5.7.3"
43
+ "typescript": "^5.7.3",
44
+ "vitepress": "^1.6.4"
34
45
  },
35
46
  "scripts": {
36
47
  "build": "tsup src/cli.ts --format esm --clean",
37
48
  "build:binaries": "scripts/build-binaries.sh",
38
49
  "dev": "tsx src/cli.ts",
39
50
  "test": "node --test --experimental-strip-types test/*.test.ts",
40
- "typecheck": "tsc --noEmit"
51
+ "typecheck": "tsc --noEmit",
52
+ "docs:dev": "vitepress dev docs",
53
+ "docs:build": "vitepress build docs"
41
54
  }
42
55
  }