@gitroll/tacitt-cli 0.0.0-stage → 0.2.0

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 (142) hide show
  1. package/README.md +84 -2
  2. package/bin/INDEX.md +9 -0
  3. package/bin/tacitt.cjs +16 -0
  4. package/dist/agent-setup-B8DAiQ6Z.mjs +71 -0
  5. package/dist/agent-setup-worker.mjs +56 -0
  6. package/dist/cli.mjs +1442 -0
  7. package/dist/codex-title-worker.mjs +215 -0
  8. package/dist/configured-preview-worker.mjs +133 -0
  9. package/dist/configured-session-worker.mjs +117 -0
  10. package/dist/frame-waS5FnN5.mjs +84 -0
  11. package/dist/heap-1FYhGds4.mjs +75 -0
  12. package/dist/heap-BHcvxWCw.mjs +7265 -0
  13. package/dist/inspection-worker.mjs +57 -0
  14. package/dist/job-J3NFw3MH.mjs +194 -0
  15. package/dist/locate-U3-nkird.mjs +10670 -0
  16. package/dist/messages-D3m3bhva.mjs +40 -0
  17. package/dist/model-BJdTLNjT.mjs +41 -0
  18. package/dist/operation-executor.mjs +181 -0
  19. package/dist/preview-worker.mjs +22 -0
  20. package/dist/privacy-validator.mjs +46 -0
  21. package/dist/query-BA0XCwnR.mjs +14869 -0
  22. package/dist/run-BeLHsZWb.mjs +916 -0
  23. package/dist/session-process.mjs +90 -0
  24. package/dist/src-B5SArpVY.mjs +6601 -0
  25. package/dist/src-CC95LYYp.mjs +12985 -0
  26. package/dist/src-k0Ya1Bri.mjs +16422 -0
  27. package/dist/store-database-worker.mjs +14 -0
  28. package/dist/web/THIRD_PARTY_LICENSES.md +388 -0
  29. package/dist/web/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
  30. package/dist/web/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
  31. package/dist/web/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
  32. package/dist/web/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
  33. package/dist/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
  34. package/dist/web/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
  35. package/dist/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
  36. package/dist/web/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
  37. package/dist/web/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  38. package/dist/web/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  39. package/dist/web/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
  40. package/dist/web/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
  41. package/dist/web/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
  42. package/dist/web/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
  43. package/dist/web/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
  44. package/dist/web/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
  45. package/dist/web/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
  46. package/dist/web/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
  47. package/dist/web/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
  48. package/dist/web/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
  49. package/dist/web/assets/ibm-plex-sans-cyrillic-400-normal-BTotfTJu.woff +0 -0
  50. package/dist/web/assets/ibm-plex-sans-cyrillic-400-normal-DZqxrq2p.woff2 +0 -0
  51. package/dist/web/assets/ibm-plex-sans-cyrillic-500-normal-ByOcLdNv.woff +0 -0
  52. package/dist/web/assets/ibm-plex-sans-cyrillic-500-normal-CocWQlwt.woff2 +0 -0
  53. package/dist/web/assets/ibm-plex-sans-cyrillic-600-normal-71GNu3SW.woff2 +0 -0
  54. package/dist/web/assets/ibm-plex-sans-cyrillic-600-normal-BGq0mW3O.woff +0 -0
  55. package/dist/web/assets/ibm-plex-sans-cyrillic-700-normal-D_uavGvn.woff2 +0 -0
  56. package/dist/web/assets/ibm-plex-sans-cyrillic-700-normal-RFb1v-CK.woff +0 -0
  57. package/dist/web/assets/ibm-plex-sans-cyrillic-ext-400-normal-Dsrv2Tcn.woff +0 -0
  58. package/dist/web/assets/ibm-plex-sans-cyrillic-ext-400-normal-g30qAdWV.woff2 +0 -0
  59. package/dist/web/assets/ibm-plex-sans-cyrillic-ext-500-normal-Cs5J6C77.woff2 +0 -0
  60. package/dist/web/assets/ibm-plex-sans-cyrillic-ext-500-normal-DB5PtV2g.woff +0 -0
  61. package/dist/web/assets/ibm-plex-sans-cyrillic-ext-600-normal-Bz0x94Yp.woff +0 -0
  62. package/dist/web/assets/ibm-plex-sans-cyrillic-ext-600-normal-DUMzJB7m.woff2 +0 -0
  63. package/dist/web/assets/ibm-plex-sans-cyrillic-ext-700-normal-BmRLXWpJ.woff2 +0 -0
  64. package/dist/web/assets/ibm-plex-sans-cyrillic-ext-700-normal-DCQwxkRk.woff +0 -0
  65. package/dist/web/assets/ibm-plex-sans-greek-400-normal-D9ESIMu3.woff +0 -0
  66. package/dist/web/assets/ibm-plex-sans-greek-400-normal-_efipK4i.woff2 +0 -0
  67. package/dist/web/assets/ibm-plex-sans-greek-500-normal-CuWXN6rf.woff +0 -0
  68. package/dist/web/assets/ibm-plex-sans-greek-500-normal-JMMifIXV.woff2 +0 -0
  69. package/dist/web/assets/ibm-plex-sans-greek-600-normal-D-CqTdkO.woff +0 -0
  70. package/dist/web/assets/ibm-plex-sans-greek-600-normal-DzTrcv_p.woff2 +0 -0
  71. package/dist/web/assets/ibm-plex-sans-greek-700-normal-CkZN0sRy.woff +0 -0
  72. package/dist/web/assets/ibm-plex-sans-greek-700-normal-wyJ6jzdA.woff2 +0 -0
  73. package/dist/web/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
  74. package/dist/web/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
  75. package/dist/web/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2 +0 -0
  76. package/dist/web/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff +0 -0
  77. package/dist/web/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
  78. package/dist/web/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
  79. package/dist/web/assets/ibm-plex-sans-latin-700-normal-Bth3BMcD.woff +0 -0
  80. package/dist/web/assets/ibm-plex-sans-latin-700-normal-Bxkt5Cjx.woff2 +0 -0
  81. package/dist/web/assets/ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2 +0 -0
  82. package/dist/web/assets/ibm-plex-sans-latin-ext-400-normal-RBey6euL.woff +0 -0
  83. package/dist/web/assets/ibm-plex-sans-latin-ext-500-normal-D0aIdm-b.woff +0 -0
  84. package/dist/web/assets/ibm-plex-sans-latin-ext-500-normal-DakdToA3.woff2 +0 -0
  85. package/dist/web/assets/ibm-plex-sans-latin-ext-600-normal-DIrixKbi.woff +0 -0
  86. package/dist/web/assets/ibm-plex-sans-latin-ext-600-normal-DOrvGEcy.woff2 +0 -0
  87. package/dist/web/assets/ibm-plex-sans-latin-ext-700-normal-DZH6Xh-4.woff +0 -0
  88. package/dist/web/assets/ibm-plex-sans-latin-ext-700-normal-aMgXseD4.woff2 +0 -0
  89. package/dist/web/assets/ibm-plex-sans-vietnamese-400-normal-DG4YqDda.woff2 +0 -0
  90. package/dist/web/assets/ibm-plex-sans-vietnamese-400-normal-fK1oJ5dG.woff +0 -0
  91. package/dist/web/assets/ibm-plex-sans-vietnamese-500-normal-BEb3_waV.woff +0 -0
  92. package/dist/web/assets/ibm-plex-sans-vietnamese-500-normal-e4dixQRQ.woff2 +0 -0
  93. package/dist/web/assets/ibm-plex-sans-vietnamese-600-normal-DgdngZtN.woff +0 -0
  94. package/dist/web/assets/ibm-plex-sans-vietnamese-600-normal-DpPYBSTl.woff2 +0 -0
  95. package/dist/web/assets/ibm-plex-sans-vietnamese-700-normal-BV5B8Are.woff +0 -0
  96. package/dist/web/assets/ibm-plex-sans-vietnamese-700-normal-CkEo6LDy.woff2 +0 -0
  97. package/dist/web/assets/index-Bjos73wK.js +67 -0
  98. package/dist/web/assets/index-Bl4C2b2_.css +1 -0
  99. package/dist/web/index.html +14 -0
  100. package/package.json +56 -3
  101. package/skills/INDEX.md +9 -0
  102. package/skills/tacitt/INDEX.md +11 -0
  103. package/skills/tacitt/SKILL.md +44 -0
  104. package/skills/tacitt/references/INDEX.md +15 -0
  105. package/skills/tacitt/references/b-method.md +22 -0
  106. package/skills/tacitt/references/bootstrap.md +109 -0
  107. package/skills/tacitt/references/classification.md +83 -0
  108. package/skills/tacitt/references/commands.md +147 -0
  109. package/skills/tacitt/references/journey.md +54 -0
  110. package/skills/tacitt/references/parallel-review.md +64 -0
  111. package/skills/tacitt/references/send.md +30 -0
  112. package/skills/tacitt/scripts/INDEX.md +43 -0
  113. package/skills/tacitt/scripts/answer.mjs +278 -0
  114. package/skills/tacitt/scripts/describe.mjs +55 -0
  115. package/skills/tacitt/scripts/journey-card-consolidation.d.mts +17 -0
  116. package/skills/tacitt/scripts/journey-card-consolidation.mjs +209 -0
  117. package/skills/tacitt/scripts/journey-classification-metadata.d.mts +16 -0
  118. package/skills/tacitt/scripts/journey-classification-metadata.mjs +111 -0
  119. package/skills/tacitt/scripts/journey-classification-progress.mjs +195 -0
  120. package/skills/tacitt/scripts/journey-classification-tasks.d.mts +18 -0
  121. package/skills/tacitt/scripts/journey-classification-tasks.mjs +345 -0
  122. package/skills/tacitt/scripts/journey-classification-validation.d.mts +20 -0
  123. package/skills/tacitt/scripts/journey-classification-validation.mjs +240 -0
  124. package/skills/tacitt/scripts/journey-classification.mjs +145 -0
  125. package/skills/tacitt/scripts/journey-consolidation-submit.mjs +227 -0
  126. package/skills/tacitt/scripts/journey-consolidation.d.mts +14 -0
  127. package/skills/tacitt/scripts/journey-consolidation.mjs +227 -0
  128. package/skills/tacitt/scripts/journey-scan-timing.mjs +143 -0
  129. package/skills/tacitt/scripts/journey-state.d.mts +43 -0
  130. package/skills/tacitt/scripts/journey-state.mjs +294 -0
  131. package/skills/tacitt/scripts/journey-tasks.d.mts +26 -0
  132. package/skills/tacitt/scripts/journey-tasks.mjs +185 -0
  133. package/skills/tacitt/scripts/journey.d.mts +40 -0
  134. package/skills/tacitt/scripts/journey.mjs +592 -0
  135. package/skills/tacitt/scripts/local-cli.d.mts +18 -0
  136. package/skills/tacitt/scripts/local-cli.mjs +116 -0
  137. package/skills/tacitt/scripts/privacy-validator.mjs +10369 -0
  138. package/skills/tacitt/scripts/review-stream-client.d.mts +22 -0
  139. package/skills/tacitt/scripts/review-stream-client.mjs +194 -0
  140. package/skills/tacitt/scripts/review.d.mts +87 -0
  141. package/skills/tacitt/scripts/review.mjs +1610 -0
  142. package/skills/tacitt/scripts/verify-cli.mjs +10 -0
package/README.md CHANGED
@@ -1,3 +1,85 @@
1
- # Temporary Holding Version
1
+ # SessPilot
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Local session review and export through the public npm package. Requires Node.js
4
+ `>=24.19.0 <25`, npm and connectivity to the npm registry. Consumers do not need npm
5
+ login or organization membership.
6
+
7
+ This release integrates B privacy analysis with the native Ray review journey and
8
+ configured v5 export, published on both `latest` and `next`. Before any reading, the
9
+ agent groups sessions into Works by repository (linked worktrees fold into their
10
+ repository) named after the project, proposes a project type for each Work and lets
11
+ you leave whole types out; Dropped Works are not read. Older cached credentials
12
+ require a fresh Identity sign-in.
13
+
14
+ This release uses storage schema 20, Journey format 8 and review contract 5. State
15
+ from older previews, including 0.2.0, rc.1 and the b candidates, is preserved and is not
16
+ automatically migrated or imported; use a fresh, separate state directory for a
17
+ new review and retain the pinned CLI for older tasks. Installing or updating the
18
+ Skill does not reset task state. Resetting control state does not erase private
19
+ review payload files: their bodies remain locally readable, and a fresh store
20
+ does not discover or import them.
21
+
22
+ Windows verification remains partly advisory: some automated account and lifecycle
23
+ checks still time out. Prefer macOS or Linux.
24
+
25
+ Start the Manual static browser journey:
26
+
27
+ ```sh
28
+ npx --yes @gitroll/tacitt-cli@latest
29
+ ```
30
+
31
+ Install or deliberately update both Codex and Claude user Skills:
32
+
33
+ ```sh
34
+ npx --yes @gitroll/tacitt-cli@latest skill.install
35
+ ```
36
+
37
+ Add `--agent codex` or `--agent claude` to select a client. Add `--scope project`
38
+ from a workspace to install there instead. After installation, the terminal shows
39
+ the next step: enter `$tacitt` in a fresh Codex conversation or `/tacitt`
40
+ in Claude Code. The Skill prepares its exact matching CLI
41
+ through npx; no global SessPilot installation is necessary. Existing loaded tasks
42
+ keep that release; a later deliberate install affects new invocations. Retain the
43
+ recorded exact invocation when resuming a previous task after an agent restart.
44
+
45
+ The human hint uses stderr and only lists the installed clients. Stdout remains
46
+ JSON; explicit `--input` keeps the machine interface without a hint. Installation
47
+ itself starts no scan.
48
+
49
+ The agent handles the conversation-led journey. One Allow in chat authorizes B review through the current App's model provider. The
50
+ provider receives locally cleaned original text **before privacy masking**:
51
+ complete main user and assistant text and retained tool results. Tool-call
52
+ arguments, children, setup files and other source metadata receive static
53
+ processing; images are not analyzed. Reading starts only after consent. Every decision is made in the
54
+ conversation; the right panel is a read-only view of progress, Works, actual output
55
+ previews and Send scope. Only official sign-in opens a browser page.
56
+
57
+ Each direct category answer applies once. Certain/protected content stays hidden;
58
+ delegated choices are attributed to the agent for the current run. Complete reading,
59
+ verified ZIP preview and Work review precede Send; a ready subset requires explicit scope
60
+ confirmation. Send uses official Identity, uploads the confirmed primary and
61
+ follows its actual assessment into the owner's current Passport. Local export
62
+ remains available before upload. The standalone Manual journey uses its existing
63
+ static browser interface.
64
+
65
+ You can limit a category answer to the current review. It remains your own choice
66
+ without changing preferences saved for later runs. An established current-only
67
+ limit survives later answers; ask explicitly to remember it for future runs.
68
+
69
+ The CLI and installed Skill pin the same exact version for the entire journey.
70
+ Local ZIP success does not establish deployment compatibility or a completed
71
+ assessment. Verify the target service's v5 support before using Send. Codex and
72
+ Claude native App acceptance are separate checks; success in one does not verify
73
+ the other. Local-only requests stop before Identity sign-in or upload.
74
+
75
+ Updates only replace verified managed Skill files and preserve prior release
76
+ references. Unmanaged or edited Skill collisions are reported for explicit review;
77
+ state, dictionaries, source logs and existing ZIPs are not reset by installation.
78
+ Package acquisition, network or version-verification failures stop setup before
79
+ dependent session work.
80
+
81
+ Bundled Web dependency notices are included in
82
+ `dist/web/THIRD_PARTY_LICENSES.md`. SessPilot's own package license metadata remains
83
+ `UNLICENSED`.
84
+
85
+ Source, requirements and release evidence: [gitroll-dev/tacitt-cli](https://github.com/gitroll-dev/tacitt-cli).
package/bin/INDEX.md ADDED
@@ -0,0 +1,9 @@
1
+ # Executable prerequisite index
2
+
3
+ > Audience: contributors and reviewers
4
+ > Ownership: root-maintained distribution boundary
5
+
6
+ | Entry | Kind | Responsibility |
7
+ | ------------------------ | --------------- | -------------------------------------------------------------------------------------------------- |
8
+ | [INDEX.md](INDEX.md) | Directory index | Navigates the minimal executable boundary. |
9
+ | [tacitt.cjs](tacitt.cjs) | Executable shim | Checks supported Node before loading the packaged ESM CLI and emits safe startup failure guidance. |
package/bin/tacitt.cjs ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ // This boundary must parse before loading Node24-only application modules.
3
+ const [major, minor] = process.versions.node.split('.').map(Number)
4
+ if (major !== 24 || minor < 19) {
5
+ process.stderr.write(
6
+ 'SessPilot requires Node.js >=24.19.0 <25. Install a supported Node24 release and retry.\n',
7
+ )
8
+ process.exitCode = 1
9
+ } else {
10
+ import('../dist/cli.mjs').catch(() => {
11
+ process.stderr.write(
12
+ 'SESS_PILOT_STARTUP_FAILED. Reinstall the selected package release and retry.\n',
13
+ )
14
+ process.exitCode = 1
15
+ })
16
+ }
@@ -0,0 +1,71 @@
1
+ import "./locate-U3-nkird.mjs";
2
+ import "./src-CC95LYYp.mjs";
3
+ import { z } from "zod";
4
+ import { Worker } from "node:worker_threads";
5
+ //#region apps/cli/src/agent-setup/index.ts
6
+ const listingSchema = z.object({
7
+ files: z.array(z.object({
8
+ key: z.string().regex(/^[a-f0-9]{64}$/u),
9
+ category: z.enum([
10
+ "project",
11
+ "local",
12
+ "user",
13
+ "memory"
14
+ ]),
15
+ path: z.string().nullable(),
16
+ text: z.string(),
17
+ truncated: z.boolean(),
18
+ withheld: z.boolean()
19
+ })).max(256).readonly(),
20
+ incomplete: z.boolean()
21
+ });
22
+ const messageSchema = z.discriminatedUnion("kind", [z.object({
23
+ kind: z.literal("result"),
24
+ listing: listingSchema
25
+ }), z.object({
26
+ kind: z.literal("error"),
27
+ code: z.enum(["PROCESSING_PROTECTED_CUSTOM_TERM", "PREVIEW_WITHHELD"])
28
+ })]);
29
+ /** The worker stops scanning at 20 seconds; this ceiling also covers startup and redaction. */
30
+ const requestMilliseconds = 3e4;
31
+ /** Lists agent setup files in a fresh worker so source scans never block the host loop. */
32
+ function createAgentSetupPort(workerUrl, environment) {
33
+ return { list: async (request, signal) => {
34
+ if (signal.aborted) throw new Error("PREVIEW_CANCELED");
35
+ const worker = new Worker(workerUrl, {
36
+ workerData: {
37
+ request,
38
+ environment
39
+ },
40
+ stdout: true,
41
+ stderr: true,
42
+ resourceLimits: {
43
+ maxOldGenerationSizeMb: 256,
44
+ maxYoungGenerationSizeMb: 32
45
+ }
46
+ });
47
+ worker.stdout.resume();
48
+ worker.stderr.resume();
49
+ const done = Promise.withResolvers();
50
+ const abort = () => done.reject(/* @__PURE__ */ new Error("PREVIEW_CANCELED"));
51
+ const timer = setTimeout(() => done.reject(/* @__PURE__ */ new Error("PREVIEW_TIMEOUT")), requestMilliseconds);
52
+ signal.addEventListener("abort", abort, { once: true });
53
+ worker.on("message", (message) => {
54
+ const parsed = messageSchema.safeParse(message);
55
+ if (!parsed.success) done.reject(/* @__PURE__ */ new Error("PREVIEW_WITHHELD"));
56
+ else if (parsed.data.kind === "error") done.reject(new Error(parsed.data.code));
57
+ else done.resolve(parsed.data.listing);
58
+ });
59
+ worker.on("error", () => done.reject(/* @__PURE__ */ new Error("PREVIEW_WITHHELD")));
60
+ worker.on("exit", () => done.reject(/* @__PURE__ */ new Error("PREVIEW_WITHHELD")));
61
+ try {
62
+ return await done.promise;
63
+ } finally {
64
+ clearTimeout(timer);
65
+ signal.removeEventListener("abort", abort);
66
+ await worker.terminate();
67
+ }
68
+ } };
69
+ }
70
+ //#endregion
71
+ export { createAgentSetupPort as t };
@@ -0,0 +1,56 @@
1
+ import { q as listAgentSetup } from "./src-k0Ya1Bri.mjs";
2
+ import { rn as workspaceSchema, tn as sessionSchema, yn as createStaticProcessor } from "./locate-U3-nkird.mjs";
3
+ import { l as createNativeAdapters, u as createGitNameSeedProvider } from "./src-B5SArpVY.mjs";
4
+ import { ct as maximumAgentSetupSessions, ni as effectiveTreatmentSchema } from "./src-CC95LYYp.mjs";
5
+ import "./agent-setup-B8DAiQ6Z.mjs";
6
+ import { z } from "zod";
7
+ import { parentPort, workerData } from "node:worker_threads";
8
+ //#region apps/cli/src/agent-setup/worker.ts
9
+ const inputSchema = z.object({
10
+ request: z.object({
11
+ workspace: workspaceSchema,
12
+ sessions: z.array(z.object({
13
+ session: sessionSchema,
14
+ treatmentId: z.string().min(1).max(256)
15
+ })).max(maximumAgentSetupSessions),
16
+ treatments: z.array(effectiveTreatmentSchema).max(1e4),
17
+ customTerms: z.object({
18
+ revision: z.string().min(1).max(64),
19
+ terms: z.array(z.string().max(1024)).max(1e5)
20
+ }).optional()
21
+ }),
22
+ environment: z.object({
23
+ platform: z.enum(["posix", "windows"]),
24
+ userHome: z.string().optional(),
25
+ temporaryRoots: z.array(z.string())
26
+ })
27
+ });
28
+ function notify(message) {
29
+ parentPort?.postMessage(message);
30
+ }
31
+ try {
32
+ const data = workerData;
33
+ const input = inputSchema.parse(data);
34
+ const processing = {
35
+ adapters: createNativeAdapters(),
36
+ gitNames: createGitNameSeedProvider(),
37
+ processor: createStaticProcessor(),
38
+ environment: {
39
+ platform: input.environment.platform,
40
+ ...input.environment.userHome === void 0 ? {} : { userHome: input.environment.userHome },
41
+ temporaryRoots: input.environment.temporaryRoots
42
+ },
43
+ limits: { maxUnitMs: 2e3 }
44
+ };
45
+ notify({
46
+ kind: "result",
47
+ listing: await listAgentSetup(input.request, processing, new AbortController().signal)
48
+ });
49
+ } catch (error) {
50
+ notify({
51
+ kind: "error",
52
+ code: error instanceof Error && error.message === "PROCESSING_PROTECTED_CUSTOM_TERM" ? "PROCESSING_PROTECTED_CUSTOM_TERM" : "PREVIEW_WITHHELD"
53
+ });
54
+ }
55
+ //#endregion
56
+ export {};