@pablopunk/tau 0.0.0-stage → 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 (69) hide show
  1. package/dist/auth-storage-Dk3CUY3q.js +1814 -0
  2. package/dist/bin.js +23 -0
  3. package/dist/cli-entry-DcDpQ30L.js +13 -0
  4. package/dist/client-C91-b2CL.js +1 -0
  5. package/dist/client-y2WkNuZj.js +7977 -0
  6. package/dist/dist-BFP19NOO.js +432 -0
  7. package/dist/dist-Bh1bQHZA.js +38890 -0
  8. package/dist/dist-Cq73_r65.js +3 -0
  9. package/dist/esm-CMGh_WhC.js +9446 -0
  10. package/dist/execute-BeGXhU1O.js +1757 -0
  11. package/dist/fake-claude-connectors-DSP9UC8d.js +1 -0
  12. package/dist/fake-claude-connectors-sDLeP10T.js +107 -0
  13. package/dist/fake-claude-sdk-CvqW_1iQ.js +571 -0
  14. package/dist/fake-claude-thread-script-2iHHwUZM.js +48 -0
  15. package/dist/last-exit-write-ksHeHGrC.js +9 -0
  16. package/dist/latest-version-di9hD7cY.js +106 -0
  17. package/dist/lib-DIX7q_HJ.js +1460 -0
  18. package/dist/machines-behind-BjGgmSs_.js +257 -0
  19. package/dist/main-D-Tg9b5Y.js +1610 -0
  20. package/dist/manager-B_WHbb1U.js +589 -0
  21. package/dist/names-cTrEXB6w.js +35 -0
  22. package/dist/node-BpwblPFP.js +56269 -0
  23. package/dist/pdfjs-nTcHjDPT.js +69856 -0
  24. package/dist/photon_rs-DBr7W_rK.js +4252 -0
  25. package/dist/promise.try-CAAOYvMP.js +1426 -0
  26. package/dist/readability-DsDNO63a.js +1670 -0
  27. package/dist/real-deps-f96UmLBz.js +89 -0
  28. package/dist/rolldown-runtime-1p2KPIdQ.js +44 -0
  29. package/dist/runtime-i-oEtgAl.js +2721 -0
  30. package/dist/sdk-missing-CHbVbY1G.js +10 -0
  31. package/dist/sdk-port-BGw9ORUR.js +215 -0
  32. package/dist/serve-Cmy0rUWr.js +2932 -0
  33. package/dist/serve-Dmzn5V0l.js +1 -0
  34. package/dist/service-command-C74K0saj.js +34 -0
  35. package/dist/service-command-DqcstJ8e.js +1 -0
  36. package/dist/shell-CQa4e7rx.js +643 -0
  37. package/dist/skills/builtin/tau/SKILL.md +51 -0
  38. package/dist/src-DO9LUlhi.js +44088 -0
  39. package/dist/streamableHttp-BBaRYV9h.js +1 -0
  40. package/dist/streamableHttp-DPAoMlJd.js +1931 -0
  41. package/dist/tool-DBZK2lci.js +14335 -0
  42. package/dist/tool-server-BjP37EJg.js +40 -0
  43. package/dist/turndown.cjs-Bo1xLg2S.js +15620 -0
  44. package/dist/turndown.cjs-jpUF50AR.js +3 -0
  45. package/dist/types-C4M3CRp2.js +7592 -0
  46. package/dist/undici-8cI97lnP.js +27110 -0
  47. package/dist/wait-for-lock-B1Qx8GWg.js +1 -0
  48. package/dist/wait-for-lock-CrSl2mi1.js +25 -0
  49. package/dist/watchdog.js +47 -0
  50. package/dist/web/dist/assets/addon-fit-DIOBYJe3.js +1 -0
  51. package/dist/web/dist/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  52. package/dist/web/dist/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  53. package/dist/web/dist/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  54. package/dist/web/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  55. package/dist/web/dist/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  56. package/dist/web/dist/assets/index-BktLKZHR.js +108 -0
  57. package/dist/web/dist/assets/index-D_Aa3Oou.css +2 -0
  58. package/dist/web/dist/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
  59. package/dist/web/dist/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
  60. package/dist/web/dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  61. package/dist/web/dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  62. package/dist/web/dist/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
  63. package/dist/web/dist/assets/wght-DMLdVLkb.css +1 -0
  64. package/dist/web/dist/assets/xterm-BrP-ENHg.css +1 -0
  65. package/dist/web/dist/assets/xterm-CerOhKYV.js +16 -0
  66. package/dist/web/dist/favicon.svg +14 -0
  67. package/dist/web/dist/index.html +25 -0
  68. package/package.json +53 -4
  69. package/README.md +0 -3
@@ -0,0 +1,89 @@
1
+ import { n as readRunningInstance } from "./src-DO9LUlhi.js";
2
+ import { a as realLifecycleDeps, d as discoverServer, l as processEnv, t as fetchLinkedMachines, u as callRoute } from "./machines-behind-BjGgmSs_.js";
3
+ import { i as spawnCommand, n as fetchLatestVersion } from "./latest-version-di9hD7cY.js";
4
+ import { existsSync, readFileSync, realpathSync } from "node:fs";
5
+ import { join } from "node:path";
6
+ import { createInterface } from "node:readline/promises";
7
+ //#region src/update/ancestors.ts
8
+ const MAX_DEPTH = 64;
9
+ /** Best effort (POSIX): the pids above this process, from `ps -o ppid= -p`. */
10
+ async function ancestorPidsOf(run, start = process.pid) {
11
+ const pids = [];
12
+ let current = start;
13
+ for (let depth = 0; depth < MAX_DEPTH; depth++) {
14
+ const result = await run("ps", [
15
+ "-o",
16
+ "ppid=",
17
+ "-p",
18
+ String(current)
19
+ ], {
20
+ stdio: "capture",
21
+ timeoutMs: 5e3
22
+ });
23
+ const parent = Number(result.stdout.trim());
24
+ if (result.code !== 0 || !Number.isInteger(parent) || parent <= 1 || pids.includes(parent)) break;
25
+ pids.push(parent);
26
+ current = parent;
27
+ }
28
+ return pids;
29
+ }
30
+ //#endregion
31
+ //#region src/update/real-deps.ts
32
+ const POLL_MS = 500;
33
+ const POLL_DEADLINE_MS = 6e4;
34
+ async function pollForVersion(home, version) {
35
+ const deadline = Date.now() + POLL_DEADLINE_MS;
36
+ for (;;) {
37
+ const instance = await readRunningInstance(home);
38
+ if (instance?.version === version || Date.now() >= deadline) return instance;
39
+ await new Promise((resolve) => setTimeout(resolve, POLL_MS));
40
+ }
41
+ }
42
+ async function ask(question) {
43
+ const rl = createInterface({
44
+ input: process.stdin,
45
+ output: process.stdout
46
+ });
47
+ try {
48
+ return /^y(es)?$/i.test((await rl.question(`${question} [y/N] `)).trim());
49
+ } finally {
50
+ rl.close();
51
+ }
52
+ }
53
+ async function realUpdateDeps() {
54
+ const base = await realLifecycleDeps();
55
+ const entry = process.argv[1] === void 0 ? "" : realpathSync(process.argv[1]);
56
+ return {
57
+ ...base,
58
+ err: (message) => console.error(message),
59
+ runCommand: spawnCommand,
60
+ latestVersion: () => fetchLatestVersion(spawnCommand, process.execPath),
61
+ listConversations: async (home) => {
62
+ const env = {
63
+ ...processEnv(),
64
+ home
65
+ };
66
+ const server = await discoverServer(env);
67
+ return await callRoute(server, "listAllConversations", {}, env);
68
+ },
69
+ confirm: ask,
70
+ isTty: Boolean(process.stdin.isTTY && process.stdout.isTTY),
71
+ env: process.env,
72
+ execPath: process.execPath,
73
+ entry,
74
+ realpath: realpathSync,
75
+ readPackageVersion: (dir) => {
76
+ try {
77
+ return JSON.parse(readFileSync(join(dir, "package.json"), "utf8")).version;
78
+ } catch {
79
+ return;
80
+ }
81
+ },
82
+ ancestorPids: process.platform === "win32" ? void 0 : () => ancestorPidsOf(spawnCommand),
83
+ pollInstance: pollForVersion,
84
+ hasHubFile: (home) => existsSync(join(home, "hub.json")),
85
+ linkedMachines: fetchLinkedMachines
86
+ };
87
+ }
88
+ //#endregion
89
+ export { realUpdateDeps };
@@ -0,0 +1,44 @@
1
+ import { createRequire } from "node:module";
2
+ //#region \0rolldown/runtime.js
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __esmMin = (fn, res, err) => () => {
10
+ if (err) throw err[0];
11
+ try {
12
+ return fn && (res = fn(fn = 0)), res;
13
+ } catch (e) {
14
+ throw err = [e], e;
15
+ }
16
+ };
17
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
18
+ var __exportAll = (all, no_symbols) => {
19
+ let target = {};
20
+ for (var name in all) __defProp(target, name, {
21
+ get: all[name],
22
+ enumerable: true
23
+ });
24
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
25
+ return target;
26
+ };
27
+ var __copyProps = (to, from, except, desc) => {
28
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
29
+ key = keys[i];
30
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
31
+ get: ((k) => from[k]).bind(null, key),
32
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
33
+ });
34
+ }
35
+ return to;
36
+ };
37
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
38
+ value: mod,
39
+ enumerable: true
40
+ }) : target, mod));
41
+ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
42
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
43
+ //#endregion
44
+ export { __toCommonJS as a, __require as i, __esmMin as n, __toESM as o, __exportAll as r, __commonJSMin as t };