@hitch42/applet 0.1.1-beta.22 → 0.1.1-beta.24

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 (35) hide show
  1. package/dist/applet.js +17 -17
  2. package/dist/{auth-DuMRqSGe.js → auth-DGCFAqPX.js} +3 -5
  3. package/dist/build-C3LFcX0i.js +1 -0
  4. package/dist/{build-FAQSHJgm.js → build-Cnh7Owss.js} +2 -2
  5. package/dist/{ci-oWlUJKm9.js → ci-PuUsFgnN.js} +2 -2
  6. package/dist/client/react/markdown.js +1 -1
  7. package/dist/client/react.js +1 -1
  8. package/dist/{deploy-BM55ZoSp.js → deploy-oCP6VmLT.js} +10 -10
  9. package/dist/{device-CZWWckCq.js → device-CcsD_wOD.js} +2 -2
  10. package/dist/{generate-DNgO44RO.js → generate-DIgN2KC4.js} +6 -6
  11. package/dist/generate-cwMuaQE9.js +1 -0
  12. package/dist/{generated-agents-BUnJ0FQA.js → generated-agents-XYtnda2w.js} +1 -1
  13. package/dist/{git-credential-CU7-Erzs.js → git-credential-CK0sHQ5a.js} +1 -1
  14. package/dist/git-deploy-CCVbXqbO.js +1 -0
  15. package/dist/{git-deploy-C12nMNB6.js → git-deploy-Cz-FCa93.js} +4 -4
  16. package/dist/{git-migration-CIq-sN61.js → git-migration-BIw2cVoP.js} +6 -6
  17. package/dist/{init-BD5mC_9L.js → init-CAyEoy4P.js} +9 -9
  18. package/dist/{load-config-Cffvj-aM.js → load-config-0lXPytAo.js} +1 -1
  19. package/dist/{login-BWZKo7Ui.js → login-ChKZbUOt.js} +3 -3
  20. package/dist/{logs-glCVHI-8.js → logs-C4QXSsBW.js} +3 -3
  21. package/dist/{markdown-BA_XzFxq.js → markdown-DLdJOJ59.js} +2 -0
  22. package/dist/{parent-Zx8Eg1Ki.js → parent-BGZHFiDn.js} +3 -3
  23. package/dist/parent-QxKvaC2E.js +1 -0
  24. package/dist/{project-DZGk765E.js → project-BRwNCUCi.js} +4 -4
  25. package/dist/{schedules-CSUb84e2.js → schedules-CThe3MC1.js} +2 -2
  26. package/dist/{source-hash-BbvtRaus.js → source-hash-Bp8v9JY1.js} +1 -1
  27. package/dist/{store-E5NhITHl.js → store-Dq9l7Qmw.js} +7 -16
  28. package/dist/{variables-CgZstC7I.js → variables-Cpd05u5N.js} +2 -2
  29. package/dist/vite.js +5 -5
  30. package/dist/{workspace-CtIKSgMD.js → workspace-BRRW36wG.js} +1 -1
  31. package/package.json +6 -6
  32. package/dist/build-C7hi2yg4.js +0 -1
  33. package/dist/generate-DG9vVkBO.js +0 -1
  34. package/dist/git-deploy-CNz6mxiF.js +0 -1
  35. package/dist/parent-D52Kxp8U.js +0 -1
package/dist/applet.js CHANGED
@@ -76,7 +76,7 @@ async function main() {
76
76
  if (process.argv[2] === "git-credential") {
77
77
  const args = process.argv.slice(3);
78
78
  if (args[0] !== "--instance" || args.length !== 3) throw new Error("Use applet git-credential --instance <url> <get|store|erase>.");
79
- await (await import("./git-credential-CU7-Erzs.js")).runGitCredential(args[2] ?? "", args[1]);
79
+ await (await import("./git-credential-CK0sHQ5a.js")).runGitCredential(args[2] ?? "", args[1]);
80
80
  return;
81
81
  }
82
82
  const { positionals, values } = parseArgs({
@@ -109,19 +109,19 @@ async function main() {
109
109
  strict: true
110
110
  });
111
111
  if ((positionals.length === 2 || positionals.length === 3) && positionals[0] === "clone" && Object.keys(values).every((key) => key === "message")) {
112
- await (await import("./git-deploy-CNz6mxiF.js")).runClone(positionals[1], positionals[2], values.message);
112
+ await (await import("./git-deploy-CCVbXqbO.js")).runClone(positionals[1], positionals[2], values.message);
113
113
  return;
114
114
  }
115
115
  if (positionals.length === 1 && positionals[0] === "logout" && Object.keys(values).length === 0) {
116
- await (await import("./login-BWZKo7Ui.js")).runLogout();
116
+ await (await import("./login-ChKZbUOt.js")).runLogout();
117
117
  return;
118
118
  }
119
119
  if (positionals.length === 1 && positionals[0] === "login" && Object.keys(values).every((key) => key === "no-browser")) {
120
- await (await import("./login-BWZKo7Ui.js")).runLogin({ noBrowser: values["no-browser"] });
120
+ await (await import("./login-ChKZbUOt.js")).runLogin({ noBrowser: values["no-browser"] });
121
121
  return;
122
122
  }
123
123
  if (positionals.length === 1 && positionals[0] === "parent" && Object.keys(values).length === 0) {
124
- await (await import("./parent-D52Kxp8U.js")).runParent();
124
+ await (await import("./parent-QxKvaC2E.js")).runParent();
125
125
  return;
126
126
  }
127
127
  if (values["no-browser"] !== void 0) throw new Error(usage);
@@ -130,33 +130,33 @@ async function main() {
130
130
  const noLogFlags = values.run === void 0 && values.filter === void 0 && values.level === void 0 && values.limit === void 0 && values.live === void 0 && values.search === void 0 && values.since === void 0;
131
131
  const noModeFlags = values["client-only"] === void 0 && values["server-only"] === void 0;
132
132
  if (positionals.length === 1 && positionals[0] === "bootstrap" && noModeFlags && noGitFlags && noVariableFlags && noLogFlags && values.dist === void 0) {
133
- await (await import("./init-BD5mC_9L.js")).runBootstrap({
133
+ await (await import("./init-CAyEoy4P.js")).runBootstrap({
134
134
  message: values.message,
135
135
  install: values["no-install"] !== true
136
136
  });
137
137
  return;
138
138
  }
139
139
  if (positionals.length === 1 && positionals[0] === "generate" && values["no-install"] === void 0 && noModeFlags && noGitFlags && noVariableFlags && noLogFlags && values.message === void 0 && values.dist === void 0) {
140
- await (await import("./generate-DG9vVkBO.js")).runGenerate();
140
+ await (await import("./generate-cwMuaQE9.js")).runGenerate();
141
141
  return;
142
142
  }
143
143
  if (positionals.length === 1 && positionals[0] === "build" && values["no-install"] === void 0 && noModeFlags && noGitFlags && noVariableFlags && noLogFlags && values.message === void 0 && values.dist === void 0) {
144
- await (await import("./build-C7hi2yg4.js")).runBuild();
144
+ await (await import("./build-C3LFcX0i.js")).runBuild();
145
145
  return;
146
146
  }
147
147
  if (positionals.length === 1 && positionals[0] === "deploy" && values["no-install"] === void 0 && noModeFlags && noGitFlags && noVariableFlags && noLogFlags) {
148
- await (await import("./deploy-BM55ZoSp.js")).runDeploy({
148
+ await (await import("./deploy-oCP6VmLT.js")).runDeploy({
149
149
  message: values.message,
150
150
  dist: values.dist
151
151
  });
152
152
  return;
153
153
  }
154
154
  if (positionals.length === 2 && positionals[0] === "rollback" && values.message === void 0 && values.dist === void 0 && values["no-install"] === void 0 && noModeFlags && noGitFlags && noVariableFlags && noLogFlags) {
155
- await (await import("./deploy-BM55ZoSp.js")).runRollback(positionals[1]);
155
+ await (await import("./deploy-oCP6VmLT.js")).runRollback(positionals[1]);
156
156
  return;
157
157
  }
158
158
  if (positionals.length === 2 && positionals[0] === "init" && noModeFlags && noVariableFlags && noLogFlags) {
159
- await (await import("./init-BD5mC_9L.js")).runInit(positionals[1], {
159
+ await (await import("./init-CAyEoy4P.js")).runInit(positionals[1], {
160
160
  commit: values["no-commit"] !== true,
161
161
  git: values["no-git"] !== true,
162
162
  install: values["no-install"] !== true
@@ -164,7 +164,7 @@ async function main() {
164
164
  return;
165
165
  }
166
166
  if (positionals.length === 2 && positionals[0] === "new" && noGitFlags && noVariableFlags && noLogFlags) {
167
- await (await import("./init-BD5mC_9L.js")).runNew({
167
+ await (await import("./init-CAyEoy4P.js")).runNew({
168
168
  code: positionals[1],
169
169
  message: values.message,
170
170
  clientOnly: values["client-only"],
@@ -174,7 +174,7 @@ async function main() {
174
174
  return;
175
175
  }
176
176
  if ((positionals.length === 1 || positionals.length === 2) && positionals[0] === "logs" && values["no-install"] === void 0 && noModeFlags && noGitFlags && noVariableFlags) {
177
- await (await import("./logs-glCVHI-8.js")).runLogs({
177
+ await (await import("./logs-C4QXSsBW.js")).runLogs({
178
178
  code: positionals[1],
179
179
  filter: values.filter,
180
180
  run: values.run,
@@ -187,14 +187,14 @@ async function main() {
187
187
  return;
188
188
  }
189
189
  if (positionals.length === 3 && positionals[0] === "schedules" && positionals[1] === "run" && values["no-install"] === void 0 && noModeFlags && noGitFlags && noLogFlags && values.secret === void 0) {
190
- await (await import("./schedules-CSUb84e2.js")).runSchedule({
190
+ await (await import("./schedules-CThe3MC1.js")).runSchedule({
191
191
  code: positionals[2],
192
192
  yes: values.yes
193
193
  });
194
194
  return;
195
195
  }
196
196
  if ((positionals.length === 3 || positionals.length === 4) && positionals[0] === "variables" && positionals[1] === "set" && values["no-install"] === void 0 && noModeFlags && noGitFlags && noLogFlags) {
197
- await (await import("./variables-CgZstC7I.js")).runVariablesSet({
197
+ await (await import("./variables-Cpd05u5N.js")).runVariablesSet({
198
198
  key: positionals[2],
199
199
  secret: values.secret,
200
200
  value: positionals[3],
@@ -203,11 +203,11 @@ async function main() {
203
203
  return;
204
204
  }
205
205
  if (positionals.length === 2 && positionals[0] === "variables" && positionals[1] === "list" && values["no-install"] === void 0 && noModeFlags && noGitFlags && noVariableFlags && noLogFlags) {
206
- await (await import("./variables-CgZstC7I.js")).runVariablesList();
206
+ await (await import("./variables-Cpd05u5N.js")).runVariablesList();
207
207
  return;
208
208
  }
209
209
  if (positionals.length === 3 && positionals[0] === "variables" && positionals[1] === "delete" && values["no-install"] === void 0 && noModeFlags && noGitFlags && values.secret === void 0 && noLogFlags) {
210
- await (await import("./variables-CgZstC7I.js")).runVariablesDelete({
210
+ await (await import("./variables-Cpd05u5N.js")).runVariablesDelete({
211
211
  key: positionals[2],
212
212
  yes: values.yes
213
213
  });
@@ -1,9 +1,7 @@
1
- import { a as configureKeyring, d as rejectEnvironmentKey, i as bearerToken, l as organizationInstanceUrl, m as resolveInstanceUrl, p as resolveAuthForOrg, r as LoginRequiredError, t as AuthenticationError, u as readCredentialStore } from "./store-E5NhITHl.js";
2
- import { n as parseMe, t as loginWithDevice } from "./device-CZWWckCq.js";
3
- import "./workspace-CtIKSgMD.js";
4
- import { Entry, findCredentials } from "@napi-rs/keyring";
1
+ import { c as organizationInstanceUrl, f as resolveAuthForOrg, i as bearerToken, l as readCredentialStore, p as resolveInstanceUrl, r as LoginRequiredError, t as AuthenticationError, u as rejectEnvironmentKey } from "./store-Dq9l7Qmw.js";
2
+ import { n as parseMe, t as loginWithDevice } from "./device-CcsD_wOD.js";
3
+ import "./workspace-BRRW36wG.js";
5
4
  // src/auth.ts
6
- configureKeyring(Entry, findCredentials);
7
5
  async function fetchWithOrgAuth(orgCode, request) {
8
6
  return withOrgAuth(orgCode, async (organizationUrl, accessToken) => {
9
7
  const response = await request(organizationUrl, accessToken);
@@ -0,0 +1 @@
1
+ export { i as runBuild } from "./build-Cnh7Owss.js";
@@ -1,5 +1,5 @@
1
- import { n as findAppletRoot } from "./workspace-CtIKSgMD.js";
2
- import { a as prepareAppletProjects, i as prepareAppletProject } from "./project-DZGk765E.js";
1
+ import { n as findAppletRoot } from "./workspace-BRRW36wG.js";
2
+ import { a as prepareAppletProjects, i as prepareAppletProject } from "./project-BRwNCUCi.js";
3
3
  import { rm } from "node:fs/promises";
4
4
  import { resolve } from "node:path";
5
5
  import { spawn } from "node:child_process";
@@ -1,5 +1,5 @@
1
- import { m as resolveInstanceUrl } from "./store-E5NhITHl.js";
2
- import { o as userAgent } from "./project-DZGk765E.js";
1
+ import { p as resolveInstanceUrl } from "./store-Dq9l7Qmw.js";
2
+ import { o as userAgent } from "./project-BRwNCUCi.js";
3
3
  // src/ci.ts
4
4
  function githubActionsContext() {
5
5
  const env = process.env;
@@ -1 +1 @@
1
- export { t as Markdown } from "../../markdown-BA_XzFxq.js";
1
+ export { t as Markdown } from "../../markdown-DLdJOJ59.js";
@@ -1,3 +1,3 @@
1
- import { t as Markdown } from "../markdown-BA_XzFxq.js";
1
+ import { t as Markdown } from "../markdown-DLdJOJ59.js";
2
2
  import { t as MarkdownEditor } from "../markdown-editor-CaUuphfc.js";
3
3
  export { Markdown, MarkdownEditor };
@@ -1,13 +1,13 @@
1
- import { a as findWorkspaceRoot, n as findAppletRoot, o as isRootLayout, r as findParentRoot, s as readWorkspaceConfig } from "./workspace-CtIKSgMD.js";
2
- import { n as fetchWithOrgAuth, r as orgUsesHitchGit, t as canCheckHitchGit } from "./auth-DuMRqSGe.js";
3
- import { n as loadAppletSourceDefinition } from "./load-config-Cffvj-aM.js";
4
- import { i as prepareAppletProject } from "./project-DZGk765E.js";
5
- import { a as loadGitHubActionsSources, n as githubActionsContext, t as fetchWithGitHubActions } from "./ci-oWlUJKm9.js";
6
- import { n as buildPreparedApplet, r as prepareWorkspaceBuild, t as buildApplet } from "./build-FAQSHJgm.js";
7
- import { n as gitEnvironment, r as sourceHashes, t as SourceHashUnavailableError } from "./source-hash-BbvtRaus.js";
8
- import { a as prepareGitDeploy, o as pushStagedCommit, s as refreshHitchMain, t as deployErrorMessage } from "./git-deploy-C12nMNB6.js";
9
- import { n as childApplets, r as childHasChanges } from "./parent-Zx8Eg1Ki.js";
10
- import { n as migrateWorkspace } from "./git-migration-CIq-sN61.js";
1
+ import { a as findWorkspaceRoot, n as findAppletRoot, o as isRootLayout, r as findParentRoot, s as readWorkspaceConfig } from "./workspace-BRRW36wG.js";
2
+ import { n as fetchWithOrgAuth, r as orgUsesHitchGit, t as canCheckHitchGit } from "./auth-DGCFAqPX.js";
3
+ import { n as loadAppletSourceDefinition } from "./load-config-0lXPytAo.js";
4
+ import { i as prepareAppletProject } from "./project-BRwNCUCi.js";
5
+ import { a as loadGitHubActionsSources, n as githubActionsContext, t as fetchWithGitHubActions } from "./ci-PuUsFgnN.js";
6
+ import { n as buildPreparedApplet, r as prepareWorkspaceBuild, t as buildApplet } from "./build-Cnh7Owss.js";
7
+ import { n as gitEnvironment, r as sourceHashes, t as SourceHashUnavailableError } from "./source-hash-Bp8v9JY1.js";
8
+ import { a as prepareGitDeploy, o as pushStagedCommit, s as refreshHitchMain, t as deployErrorMessage } from "./git-deploy-Cz-FCa93.js";
9
+ import { n as childApplets, r as childHasChanges } from "./parent-BGZHFiDn.js";
10
+ import { n as migrateWorkspace } from "./git-migration-BIw2cVoP.js";
11
11
  import { createRequire } from "node:module";
12
12
  import { existsSync } from "node:fs";
13
13
  import { readFile, readdir } from "node:fs/promises";
@@ -1,7 +1,7 @@
1
- import { c as normalizeInstanceUrl, d as rejectEnvironmentKey, g as saveOAuthCredentials, l as organizationInstanceUrl, o as credentialStorageMessage, t as AuthenticationError, u as readCredentialStore } from "./store-E5NhITHl.js";
1
+ import { a as credentialStorageMessage, c as organizationInstanceUrl, h as saveOAuthCredentials, l as readCredentialStore, s as normalizeInstanceUrl, t as AuthenticationError, u as rejectEnvironmentKey } from "./store-Dq9l7Qmw.js";
2
2
  import { spawn } from "node:child_process";
3
3
  import readline from "node:readline/promises";
4
- // ../shared/auth/src/device.mts
4
+ // ../shared/auth/src/device.ts
5
5
  const CLIENT_ID = "hitch-cli-oauth";
6
6
  const DEVICE_GRANT = "urn:ietf:params:oauth:grant-type:device_code";
7
7
  function defaultOpenUrl(url) {
@@ -1,9 +1,9 @@
1
- import { l as organizationInstanceUrl, m as resolveInstanceUrl } from "./store-E5NhITHl.js";
2
- import { n as findAppletRoot } from "./workspace-CtIKSgMD.js";
3
- import { n as fetchWithOrgAuth } from "./auth-DuMRqSGe.js";
4
- import { t as loadAppletConfig } from "./load-config-Cffvj-aM.js";
5
- import { i as prepareAppletProject, o as userAgent } from "./project-DZGk765E.js";
6
- import { i as loadGitHubActionsBuildInputs, n as githubActionsContext, r as hitchResponseError } from "./ci-oWlUJKm9.js";
1
+ import { c as organizationInstanceUrl, p as resolveInstanceUrl } from "./store-Dq9l7Qmw.js";
2
+ import { n as findAppletRoot } from "./workspace-BRRW36wG.js";
3
+ import { n as fetchWithOrgAuth } from "./auth-DGCFAqPX.js";
4
+ import { t as loadAppletConfig } from "./load-config-0lXPytAo.js";
5
+ import { i as prepareAppletProject, o as userAgent } from "./project-BRwNCUCi.js";
6
+ import { i as loadGitHubActionsBuildInputs, n as githubActionsContext, r as hitchResponseError } from "./ci-PuUsFgnN.js";
7
7
  import { createRequire } from "node:module";
8
8
  import { isContractProcedure, minifyContractRouter } from "@orpc/contract";
9
9
  import { randomUUID } from "node:crypto";
@@ -0,0 +1 @@
1
+ export { r as runGenerate } from "./generate-DIgN2KC4.js";
@@ -1,4 +1,4 @@
1
- import { r as findParentRoot } from "./workspace-CtIKSgMD.js";
1
+ import { r as findParentRoot } from "./workspace-BRRW36wG.js";
2
2
  import { createHash, randomUUID } from "node:crypto";
3
3
  import { fileURLToPath } from "node:url";
4
4
  import { existsSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import { l as organizationInstanceUrl, p as resolveAuthForOrg, r as LoginRequiredError, t as AuthenticationError } from "./store-E5NhITHl.js";
1
+ import { c as organizationInstanceUrl, f as resolveAuthForOrg, r as LoginRequiredError, t as AuthenticationError } from "./store-Dq9l7Qmw.js";
2
2
  // src/git-credential.ts
3
3
  function parseGitCredentialHost(input, instanceUrl) {
4
4
  const host = input.split(/\r?\n/).find((line) => line.startsWith("host="))?.slice(5);
@@ -0,0 +1 @@
1
+ export { c as runClone } from "./git-deploy-Cz-FCa93.js";
@@ -1,8 +1,8 @@
1
- import { m as resolveInstanceUrl } from "./store-E5NhITHl.js";
2
- import { a as findWorkspaceRoot, o as isRootLayout, r as findParentRoot, t as SDK_VERSION_PATTERN } from "./workspace-CtIKSgMD.js";
3
- import { i as withOrgAuth } from "./auth-DuMRqSGe.js";
1
+ import { p as resolveInstanceUrl } from "./store-Dq9l7Qmw.js";
2
+ import { a as findWorkspaceRoot, o as isRootLayout, r as findParentRoot, t as SDK_VERSION_PATTERN } from "./workspace-BRRW36wG.js";
3
+ import { i as withOrgAuth } from "./auth-DGCFAqPX.js";
4
4
  import { n as ORG_CODE_PATTERN, t as APPLET_CODE_PATTERN } from "./manifest-patterns-BfxqImlp.js";
5
- import { n as gitEnvironment } from "./source-hash-BbvtRaus.js";
5
+ import { n as gitEnvironment } from "./source-hash-Bp8v9JY1.js";
6
6
  import { n as stagedSecretPaths, t as StagedSecretsError } from "./git-safety-Ck3X7jvA.js";
7
7
  import { existsSync } from "node:fs";
8
8
  import { readFile } from "node:fs/promises";
@@ -1,10 +1,10 @@
1
- import { n as generatedAgentContents, r as writeGeneratedAgents } from "./generated-agents-BUnJ0FQA.js";
2
- import { a as findWorkspaceRoot, n as findAppletRoot, o as isRootLayout, s as readWorkspaceConfig } from "./workspace-CtIKSgMD.js";
3
- import { r as orgUsesHitchGit, t as canCheckHitchGit } from "./auth-DuMRqSGe.js";
4
- import { n as loadAppletSourceDefinition } from "./load-config-Cffvj-aM.js";
5
- import { c as writeGitignore, r as loadPackageManifest } from "./project-DZGk765E.js";
1
+ import { n as generatedAgentContents, r as writeGeneratedAgents } from "./generated-agents-XYtnda2w.js";
2
+ import { a as findWorkspaceRoot, n as findAppletRoot, o as isRootLayout, s as readWorkspaceConfig } from "./workspace-BRRW36wG.js";
3
+ import { r as orgUsesHitchGit, t as canCheckHitchGit } from "./auth-DGCFAqPX.js";
4
+ import { n as loadAppletSourceDefinition } from "./load-config-0lXPytAo.js";
5
+ import { c as writeGitignore, r as loadPackageManifest } from "./project-BRwNCUCi.js";
6
6
  import { n as stagedSecretPaths, t as StagedSecretsError } from "./git-safety-Ck3X7jvA.js";
7
- import { o as gitLocal } from "./parent-Zx8Eg1Ki.js";
7
+ import { o as gitLocal } from "./parent-BGZHFiDn.js";
8
8
  import fs from "node:fs";
9
9
  import fs$1 from "node:fs/promises";
10
10
  import { basename, dirname, posix, resolve, sep } from "node:path";
@@ -1,13 +1,13 @@
1
- import { r as writeGeneratedAgents } from "./generated-agents-BUnJ0FQA.js";
2
- import { f as resolveAuth, m as resolveInstanceUrl, p as resolveAuthForOrg } from "./store-E5NhITHl.js";
3
- import { a as findWorkspaceRoot, i as findWorkspaceConfig, o as isRootLayout, r as findParentRoot, s as readWorkspaceConfig } from "./workspace-CtIKSgMD.js";
4
- import { r as orgUsesHitchGit, t as canCheckHitchGit } from "./auth-DuMRqSGe.js";
5
- import { n as loadAppletSourceDefinition } from "./load-config-Cffvj-aM.js";
6
- import { r as runGenerate } from "./generate-DNgO44RO.js";
1
+ import { r as writeGeneratedAgents } from "./generated-agents-XYtnda2w.js";
2
+ import { d as resolveAuth, f as resolveAuthForOrg, p as resolveInstanceUrl } from "./store-Dq9l7Qmw.js";
3
+ import { a as findWorkspaceRoot, i as findWorkspaceConfig, o as isRootLayout, r as findParentRoot, s as readWorkspaceConfig } from "./workspace-BRRW36wG.js";
4
+ import { r as orgUsesHitchGit, t as canCheckHitchGit } from "./auth-DGCFAqPX.js";
5
+ import { n as loadAppletSourceDefinition } from "./load-config-0lXPytAo.js";
6
+ import { r as runGenerate } from "./generate-DIgN2KC4.js";
7
7
  import { n as ORG_CODE_PATTERN, t as APPLET_CODE_PATTERN } from "./manifest-patterns-BfxqImlp.js";
8
- import { l as writeRootSupport, n as loadCliManifest, r as loadPackageManifest, s as writeAppletSupport, t as assertWorkspaceCli, u as writeWorkspaceSupport } from "./project-DZGk765E.js";
9
- import { n as childApplets } from "./parent-Zx8Eg1Ki.js";
10
- import { t as migrateIfEnabled } from "./git-migration-CIq-sN61.js";
8
+ import { l as writeRootSupport, n as loadCliManifest, r as loadPackageManifest, s as writeAppletSupport, t as assertWorkspaceCli, u as writeWorkspaceSupport } from "./project-BRwNCUCi.js";
9
+ import { n as childApplets } from "./parent-BGZHFiDn.js";
10
+ import { t as migrateIfEnabled } from "./git-migration-BIw2cVoP.js";
11
11
  import { access, cp, mkdir, readdir, writeFile } from "node:fs/promises";
12
12
  import { relative, resolve } from "node:path";
13
13
  import { spawn } from "node:child_process";
@@ -1,4 +1,4 @@
1
- import { c as validateRootManifest, i as findWorkspaceConfig, n as findAppletRoot, o as isRootLayout } from "./workspace-CtIKSgMD.js";
1
+ import { c as validateRootManifest, i as findWorkspaceConfig, n as findAppletRoot, o as isRootLayout } from "./workspace-BRRW36wG.js";
2
2
  import { n as ORG_CODE_PATTERN, t as APPLET_CODE_PATTERN } from "./manifest-patterns-BfxqImlp.js";
3
3
  import { z } from "zod";
4
4
  import { existsSync } from "node:fs";
@@ -1,6 +1,6 @@
1
- import { c as normalizeInstanceUrl, h as revokeOAuthCredentials, m as resolveInstanceUrl, s as deleteCredentials, t as AuthenticationError, u as readCredentialStore } from "./store-E5NhITHl.js";
2
- import { t as loginWithDevice } from "./device-CZWWckCq.js";
3
- import { i as findWorkspaceConfig } from "./workspace-CtIKSgMD.js";
1
+ import { l as readCredentialStore, m as revokeOAuthCredentials, o as deleteCredentials, p as resolveInstanceUrl, s as normalizeInstanceUrl, t as AuthenticationError } from "./store-Dq9l7Qmw.js";
2
+ import { t as loginWithDevice } from "./device-CcsD_wOD.js";
3
+ import { i as findWorkspaceConfig } from "./workspace-BRRW36wG.js";
4
4
  // src/login.ts
5
5
  async function runLogin(options) {
6
6
  if (process.env.HITCH_API_KEY !== void 0) throw new AuthenticationError("HITCH_API_KEY is set — unset it to manage stored logins.");
@@ -1,6 +1,6 @@
1
- import { s as readWorkspaceConfig } from "./workspace-CtIKSgMD.js";
2
- import { n as fetchWithOrgAuth } from "./auth-DuMRqSGe.js";
3
- import { o as resolveWorkspaceOrg, t as loadAppletConfig } from "./load-config-Cffvj-aM.js";
1
+ import { s as readWorkspaceConfig } from "./workspace-BRRW36wG.js";
2
+ import { n as fetchWithOrgAuth } from "./auth-DGCFAqPX.js";
3
+ import { o as resolveWorkspaceOrg, t as loadAppletConfig } from "./load-config-0lXPytAo.js";
4
4
  import { t as APPLET_CODE_PATTERN } from "./manifest-patterns-BfxqImlp.js";
5
5
  import { z } from "zod";
6
6
  // src/logs.ts
@@ -70,6 +70,7 @@ function HitchImage({ src, alt, files, node: _node, ...props }) {
70
70
  }
71
71
  });
72
72
  }
73
+ const LINK_SAFETY = { enabled: false };
73
74
  function Markdown({ children, files, className }) {
74
75
  const rehypePlugins = useMemo(withHitchFileProtocol, []);
75
76
  const components = useMemo(() => ({ img: (props) => /* @__PURE__ */ jsx(HitchImage, {
@@ -79,6 +80,7 @@ function Markdown({ children, files, className }) {
79
80
  return /* @__PURE__ */ jsx(Streamdown, {
80
81
  className,
81
82
  components,
83
+ linkSafety: LINK_SAFETY,
82
84
  rehypePlugins,
83
85
  urlTransform: (url, key, node) => url.startsWith("hitch-file://") ? url : defaultUrlTransform(url, key, node),
84
86
  children
@@ -1,6 +1,6 @@
1
- import { r as writeGeneratedAgents } from "./generated-agents-BUnJ0FQA.js";
2
- import { a as findWorkspaceRoot, o as isRootLayout, r as findParentRoot } from "./workspace-CtIKSgMD.js";
3
- import { n as gitEnvironment } from "./source-hash-BbvtRaus.js";
1
+ import { r as writeGeneratedAgents } from "./generated-agents-XYtnda2w.js";
2
+ import { a as findWorkspaceRoot, o as isRootLayout, r as findParentRoot } from "./workspace-BRRW36wG.js";
3
+ import { n as gitEnvironment } from "./source-hash-Bp8v9JY1.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { readdir, writeFile } from "node:fs/promises";
6
6
  import { dirname, resolve } from "node:path";
@@ -0,0 +1 @@
1
+ export { i as runParent } from "./parent-BGZHFiDn.js";
@@ -1,7 +1,7 @@
1
- import { r as writeGeneratedAgents, t as GENERATED_SKILLS } from "./generated-agents-BUnJ0FQA.js";
2
- import { l as organizationInstanceUrl, n as DEFAULT_INSTANCE_URL } from "./store-E5NhITHl.js";
3
- import { a as findWorkspaceRoot, n as findAppletRoot, o as isRootLayout, s as readWorkspaceConfig } from "./workspace-CtIKSgMD.js";
4
- import { n as loadAppletSourceDefinition, r as appletMountPath } from "./load-config-Cffvj-aM.js";
1
+ import { r as writeGeneratedAgents, t as GENERATED_SKILLS } from "./generated-agents-XYtnda2w.js";
2
+ import { c as organizationInstanceUrl, n as DEFAULT_INSTANCE_URL } from "./store-Dq9l7Qmw.js";
3
+ import { a as findWorkspaceRoot, n as findAppletRoot, o as isRootLayout, s as readWorkspaceConfig } from "./workspace-BRRW36wG.js";
4
+ import { n as loadAppletSourceDefinition, r as appletMountPath } from "./load-config-0lXPytAo.js";
5
5
  import { z } from "zod";
6
6
  import { existsSync } from "node:fs";
7
7
  import { cp, mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
@@ -1,5 +1,5 @@
1
- import { n as findAppletRoot } from "./workspace-CtIKSgMD.js";
2
- import { t as loadAppletConfig } from "./load-config-Cffvj-aM.js";
1
+ import { n as findAppletRoot } from "./workspace-BRRW36wG.js";
2
+ import { t as loadAppletConfig } from "./load-config-0lXPytAo.js";
3
3
  import { t as question } from "./prompt-CW98R-Un.js";
4
4
  import { RPCLink } from "@orpc/client/fetch";
5
5
  import { readFile } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { a as findWorkspaceRoot } from "./workspace-CtIKSgMD.js";
1
+ import { a as findWorkspaceRoot } from "./workspace-BRRW36wG.js";
2
2
  import { createHash } from "node:crypto";
3
3
  import { lstat, readlink } from "node:fs/promises";
4
4
  import { dirname, relative, resolve, sep } from "node:path";
@@ -2,7 +2,8 @@ import { randomUUID } from "node:crypto";
2
2
  import fs from "node:fs/promises";
3
3
  import { dirname, join } from "node:path";
4
4
  import { homedir } from "node:os";
5
- // ../shared/auth/src/lock.mts
5
+ import { Entry, findCredentials } from "@napi-rs/keyring";
6
+ // ../shared/auth/src/lock.ts
6
7
  const LOCK_AGE = 3e4;
7
8
  function canTakeOverRefreshLock(age) {
8
9
  return age > LOCK_AGE;
@@ -44,7 +45,7 @@ async function withFileLock(path, action) {
44
45
  }
45
46
  throw new AuthenticationError("Timed out while waiting for the credential lock.");
46
47
  }
47
- // ../shared/auth/src/oauth.mts
48
+ // ../shared/auth/src/oauth.ts
48
49
  const CLIENT_ID = "hitch-cli-oauth";
49
50
  const REFRESH_GRANT = "refresh_token";
50
51
  async function saveOAuthCredentials(instanceUrl, credentials, refreshToken) {
@@ -124,7 +125,7 @@ async function revokeOAuthCredentials(instanceUrl, credentials, warn = console.w
124
125
  await removeOAuthCredentials(instanceUrl, credentials.orgCode);
125
126
  }
126
127
  }
127
- // ../shared/auth/src/store.mts
128
+ // ../shared/auth/src/store.ts
128
129
  const DEFAULT_INSTANCE_URL = "https://app.hitch42.com";
129
130
  var AuthenticationError = class extends Error {};
130
131
  var LoginRequiredError = class extends AuthenticationError {
@@ -133,21 +134,12 @@ var LoginRequiredError = class extends AuthenticationError {
133
134
  }
134
135
  };
135
136
  let selectedStore;
136
- let keyringClass;
137
- let findKeyringCredentials;
138
- function configureKeyring(entryClass, findCredentials) {
139
- keyringClass = entryClass;
140
- findKeyringCredentials = findCredentials;
141
- selectedStore = void 0;
142
- }
143
137
  function keyringEntry(account) {
144
- if (keyringClass === void 0) throw new Error("Keyring is not configured.");
145
138
  const options = process.platform === "linux" ? { linux: { store: "secret-service" } } : void 0;
146
- return new keyringClass("hitch", account, options);
139
+ return new Entry("hitch", account, options);
147
140
  }
148
141
  function credentialStorage() {
149
142
  if (selectedStore !== void 0) return selectedStore;
150
- if (keyringClass === void 0) throw new Error("Keyring is not configured.");
151
143
  selectedStore = (process.platform === "linux" || process.platform === "darwin" || process.platform === "win32" ? ["secret"] : []).find((candidate) => {
152
144
  const probe = `__probe__${randomUUID()}`;
153
145
  try {
@@ -173,8 +165,7 @@ function account(instanceUrl, orgCode) {
173
165
  return `${normalizeInstanceUrl(instanceUrl)} ${orgCode}`;
174
166
  }
175
167
  function listKeyringCredentials() {
176
- if (findKeyringCredentials === void 0) throw new Error("Keyring listing is not configured.");
177
- return findKeyringCredentials("hitch").filter(({ account }) => account !== "__index__");
168
+ return findCredentials("hitch").filter(({ account }) => account !== "__index__");
178
169
  }
179
170
  function readKeychainCredential(instanceUrl, orgCode) {
180
171
  const value = keyringEntry(account(instanceUrl, orgCode)).getPassword();
@@ -445,4 +436,4 @@ async function updateFileCredentialStore(path, update) {
445
436
  }
446
437
  });
447
438
  }
448
- export { configureKeyring as a, normalizeInstanceUrl as c, rejectEnvironmentKey as d, resolveAuth as f, saveOAuthCredentials as g, revokeOAuthCredentials as h, bearerToken as i, organizationInstanceUrl as l, resolveInstanceUrl as m, DEFAULT_INSTANCE_URL as n, credentialStorageMessage as o, resolveAuthForOrg as p, LoginRequiredError as r, deleteCredentials as s, AuthenticationError as t, readCredentialStore as u };
439
+ export { credentialStorageMessage as a, organizationInstanceUrl as c, resolveAuth as d, resolveAuthForOrg as f, saveOAuthCredentials as h, bearerToken as i, readCredentialStore as l, revokeOAuthCredentials as m, DEFAULT_INSTANCE_URL as n, deleteCredentials as o, resolveInstanceUrl as p, LoginRequiredError as r, normalizeInstanceUrl as s, AuthenticationError as t, rejectEnvironmentKey as u };
@@ -1,5 +1,5 @@
1
- import { n as fetchWithOrgAuth } from "./auth-DuMRqSGe.js";
2
- import { t as loadAppletConfig } from "./load-config-Cffvj-aM.js";
1
+ import { n as fetchWithOrgAuth } from "./auth-DGCFAqPX.js";
2
+ import { t as loadAppletConfig } from "./load-config-0lXPytAo.js";
3
3
  import { t as question } from "./prompt-CW98R-Un.js";
4
4
  import { z } from "zod";
5
5
  // src/variables.ts
package/dist/vite.js CHANGED
@@ -2,11 +2,11 @@ import { t as pruneContract } from "./contract-D9LCNGjD.js";
2
2
  import { a as openQueryCacheDatabase } from "./query-cache-DQJy45RT.js";
3
3
  import { d as HITCH_SESSION_HEADER, f as HITCH_USER_HEADER } from "./headers-BcEMIVCo.js";
4
4
  import { a as workflowOutcomeSchema, n as runWorkflowJournal } from "./workflow-engine-CyyaVENo.js";
5
- import { r as writeGeneratedAgents } from "./generated-agents-BUnJ0FQA.js";
6
- import { d as rejectEnvironmentKey, i as bearerToken, l as organizationInstanceUrl, m as resolveInstanceUrl, p as resolveAuthForOrg } from "./store-E5NhITHl.js";
7
- import { c as validateRootManifest, o as isRootLayout } from "./workspace-CtIKSgMD.js";
8
- import { a as appletSourceDefinitionSchema, i as appletReleaseManifest, o as resolveWorkspaceOrg, r as appletMountPath } from "./load-config-Cffvj-aM.js";
9
- import { a as writeRegisterDeclaration, c as writeAppletRoot, d as writeServerEntry, i as syncContract, l as writeClientEntry, n as routesModuleSource, u as writeManifestGen } from "./generate-DNgO44RO.js";
5
+ import { r as writeGeneratedAgents } from "./generated-agents-XYtnda2w.js";
6
+ import { c as organizationInstanceUrl, f as resolveAuthForOrg, i as bearerToken, p as resolveInstanceUrl, u as rejectEnvironmentKey } from "./store-Dq9l7Qmw.js";
7
+ import { c as validateRootManifest, o as isRootLayout } from "./workspace-BRRW36wG.js";
8
+ import { a as appletSourceDefinitionSchema, i as appletReleaseManifest, o as resolveWorkspaceOrg, r as appletMountPath } from "./load-config-0lXPytAo.js";
9
+ import { a as writeRegisterDeclaration, c as writeAppletRoot, d as writeServerEntry, i as syncContract, l as writeClientEntry, n as routesModuleSource, u as writeManifestGen } from "./generate-DIgN2KC4.js";
10
10
  import { t as APPLET_CODE_PATTERN } from "./manifest-patterns-BfxqImlp.js";
11
11
  import { z } from "zod";
12
12
  import { randomUUID } from "node:crypto";
@@ -2,7 +2,7 @@ import { createRequire, registerHooks } from "node:module";
2
2
  import { pathToFileURL } from "node:url";
3
3
  import fs from "node:fs";
4
4
  import { basename, dirname, resolve } from "node:path";
5
- // ../shared/auth/src/workspace.mts
5
+ // ../shared/auth/src/workspace.ts
6
6
  const ORG_CODE_PATTERN = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
7
7
  const require = createRequire(import.meta.url);
8
8
  var WorkspaceValidationError = class extends Error {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitch42/applet",
3
- "version": "0.1.1-beta.22",
3
+ "version": "0.1.1-beta.24",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "applet": "./dist/applet.js"
@@ -55,10 +55,10 @@
55
55
  }
56
56
  },
57
57
  "dependencies": {
58
- "@cloudflare/vite-plugin": "^1.51.1",
58
+ "@cloudflare/vite-plugin": "^1.66.0",
59
59
  "@fontsource-variable/geist-mono": "^5.3.0",
60
60
  "@fontsource-variable/inter": "^5.3.0",
61
- "@hey-api/openapi-ts": "0.0.0-next-20260824173136",
61
+ "@hey-api/openapi-ts": "0.0.0-next-20260930190945",
62
62
  "@napi-rs/keyring": "2.1.2",
63
63
  "@orpc/client": "^1.15.0",
64
64
  "@orpc/contract": "^1.15.0",
@@ -67,8 +67,8 @@
67
67
  "@react-aria/optimize-locales-plugin": "^2.1.0",
68
68
  "@tailwindcss/vite": "^4.3.0",
69
69
  "@tanstack/react-query-persist-client": "5.101.4",
70
- "@tanstack/router-cli": "^1.167.24",
71
- "@tanstack/router-plugin": "^1.168.23",
70
+ "@tanstack/router-cli": "^1.167.46",
71
+ "@tanstack/router-plugin": "^1.168.48",
72
72
  "@telnyx/webrtc": "^2.27.10",
73
73
  "@tiptap/core": "^3.30.3",
74
74
  "@tiptap/extension-image": "^3.30.3",
@@ -101,7 +101,7 @@
101
101
  "peerDependencies": {
102
102
  "@orpc/server": "^1.15.0",
103
103
  "@tanstack/react-query": "5.101.4",
104
- "@tanstack/react-router": "^1.170.18",
104
+ "@tanstack/react-router": "^1.170.46",
105
105
  "@types/node": "^24",
106
106
  "@types/react": "^19.2.0",
107
107
  "@types/react-dom": "^19.2.0",
@@ -1 +0,0 @@
1
- export { i as runBuild } from "./build-FAQSHJgm.js";
@@ -1 +0,0 @@
1
- export { r as runGenerate } from "./generate-DNgO44RO.js";
@@ -1 +0,0 @@
1
- export { c as runClone } from "./git-deploy-C12nMNB6.js";
@@ -1 +0,0 @@
1
- export { i as runParent } from "./parent-Zx8Eg1Ki.js";