timoneer 0.0.1 → 0.0.2

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/bin/timoneer.js CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { main } from "../src/main.ts";
2
+ // Self-reference: resolves to src/main.ts in development (--conditions=source)
3
+ // and to dist/main.js once published. Node does not strip types under node_modules.
4
+ import { main } from "timoneer/main";
3
5
 
4
6
  process.exitCode = await main(process.argv.slice(2));
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare function main(argv: string[]): Promise<number>;
package/dist/main.js ADDED
@@ -0,0 +1,27 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { ENGINE_NAME } from "@timoneer/core";
3
+ const VERSION = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).version;
4
+ const USAGE = `${ENGINE_NAME} — steer a fleet of coding agents from the helm
5
+
6
+ timoneer help this message
7
+ timoneer version engine version
8
+
9
+ Pre-alpha: the engine is being built. See backlog/ for what comes next.
10
+ `;
11
+ export async function main(argv) {
12
+ const [command = "help"] = argv;
13
+ switch (command) {
14
+ case "version":
15
+ console.log(VERSION);
16
+ return 0;
17
+ case "help":
18
+ case "--help":
19
+ case "-h":
20
+ console.log(USAGE);
21
+ return 0;
22
+ default:
23
+ console.error(`unknown command: ${command}\n\n${USAGE}`);
24
+ return 2;
25
+ }
26
+ }
27
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,GAAW,IAAI,CAAC,KAAK,CAChC,YAAY,CAAC,IAAI,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAClE,CAAC,OAAO,CAAC;AAEV,MAAM,KAAK,GAAG,GAAG,WAAW;;;;;;CAM3B,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,IAAI,CAAC,IAAc;IACvC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC;IAChC,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,SAAS;YACZ,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YACrB,OAAO,CAAC,CAAC;QACX,KAAK,MAAM,CAAC;QACZ,KAAK,QAAQ,CAAC;QACd,KAAK,IAAI;YACP,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,OAAO,CAAC,CAAC;QACX;YACE,OAAO,CAAC,KAAK,CAAC,oBAAoB,OAAO,OAAO,KAAK,EAAE,CAAC,CAAC;YACzD,OAAO,CAAC,CAAC;IACb,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "timoneer",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Steer a fleet of coding agents from the helm. Pre-alpha: the engine is being built.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -11,7 +11,7 @@
11
11
  "node": ">=24"
12
12
  },
13
13
  "dependencies": {
14
- "@timoneer/core": "0.0.1"
14
+ "@timoneer/core": "0.0.2"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
@@ -28,10 +28,22 @@
28
28
  ],
29
29
  "files": [
30
30
  "bin",
31
- "src",
31
+ "dist",
32
32
  "README.md"
33
33
  ],
34
34
  "publishConfig": {
35
35
  "access": "public"
36
+ },
37
+ "exports": {
38
+ "./main": {
39
+ "source": "./src/main.ts",
40
+ "types": "./dist/main.d.ts",
41
+ "default": "./dist/main.js"
42
+ },
43
+ "./package.json": "./package.json"
44
+ },
45
+ "scripts": {
46
+ "build": "rm -rf dist && tsc -p tsconfig.build.json",
47
+ "prepack": "npm run build"
36
48
  }
37
49
  }
package/src/main.ts DELETED
@@ -1,31 +0,0 @@
1
- import { readFileSync } from "node:fs";
2
- import { ENGINE_NAME } from "@timoneer/core";
3
-
4
- const VERSION: string = JSON.parse(
5
- readFileSync(new URL("../package.json", import.meta.url), "utf8"),
6
- ).version;
7
-
8
- const USAGE = `${ENGINE_NAME} — steer a fleet of coding agents from the helm
9
-
10
- timoneer help this message
11
- timoneer version engine version
12
-
13
- Pre-alpha: the engine is being built. See backlog/ for what comes next.
14
- `;
15
-
16
- export async function main(argv: string[]): Promise<number> {
17
- const [command = "help"] = argv;
18
- switch (command) {
19
- case "version":
20
- console.log(VERSION);
21
- return 0;
22
- case "help":
23
- case "--help":
24
- case "-h":
25
- console.log(USAGE);
26
- return 0;
27
- default:
28
- console.error(`unknown command: ${command}\n\n${USAGE}`);
29
- return 2;
30
- }
31
- }