@pithy-sh/support 0.2.7 → 0.2.8

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.
@@ -1 +1 @@
1
- {"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../src/capability.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAGnE,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,0CAA0C,CAAC;AAC7F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAItE,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAGxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAO9E,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C,+FAA+F;AAC/F,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG;IAChD,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,2BAA2B;IAC3B,MAAM,EAAE,aAAa,CAAC;IACtB,8BAA8B;IAC9B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,0CAA0C;IAC1C,QAAQ,EAAE,oBAAoB,CAAC;IAC/B;;;;;OAKG;IACH,YAAY,EAAE,eAAe,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IACrD;;;;;;;;OAQG;IACH,IAAI,EAAE,SAAS,CAAC;CAC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kBAAkB,GAAG;IAChD,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,2BAA2B;IAC3B,MAAM,EAAE,aAAa,CAAC;IACtB,8BAA8B;IAC9B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,0CAA0C;IAC1C,QAAQ,EAAE,oBAAoB,CAAC;IAC/B;;;;;OAKG;IACH,YAAY,EAAE,eAAe,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IACrD;;;;;;;;OAQG;IACH,IAAI,EAAE,SAAS,CAAC;CACjB;AA4ED;;;;;GAKG;AACH,MAAM,WAAW,iBACf,SAAQ,UAAU,CAAC,eAAe,EAAE,kBAAkB,EAAE,SAAS,EAAE,OAAO,gBAAgB,CAAC;IAC3F,mCAAmC;IACnC,aAAa,EAAE,aAAa,CAAC;IAC7B,wGAAwG;IACxG,UAAU,EAAE,iBAAiB,CAAC;IAC9B,0CAA0C;IAC1C,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,OAAO,CAAC,OAAO,GAAE,cAAmB,GAAG,iBAAiB,CAsGvE;AAED,2GAA2G;AAC3G,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,IAAI,iBAAiB,CAE3F"}
@@ -12,7 +12,7 @@ import { registerSupportRoutes } from "./http/routes.js";
12
12
  import { createSupportEmailHandler } from "./inbound/handler.js";
13
13
  import { support_0001_threads } from "./migrations/0001_threads.js";
14
14
  import { supportExampleSeed } from "./seeds/example.js";
15
- import { PACKAGE_VERSION } from "./version.generated.js";
15
+ import { PACKAGE_NAME, PACKAGE_VERSION } from "./version.generated.js";
16
16
  import { noopEmit } from "@pithy-sh/core/src/audit/recorder";
17
17
  import { defineCapability } from "@pithy-sh/core/src/capability/capability";
18
18
  import { workflowBindings } from "@pithy-sh/core/src/workflow/bindings";
@@ -141,6 +141,7 @@ function support(options = {}) {
141
141
  const capability = defineCapability({
142
142
  name: "support",
143
143
  version: PACKAGE_VERSION,
144
+ package: PACKAGE_NAME,
144
145
  dependsOn: ["secrets"],
145
146
  secretRegistry: supportSecretsRegistry,
146
147
  inapplicableSecrets: inapplicableAttachmentSecrets(resolved),
@@ -3,5 +3,5 @@
3
3
  /** This package's npm name — the join key against a release feed. */
4
4
  export declare const PACKAGE_NAME = "@pithy-sh/support";
5
5
  /** This package's version, stamped from its own package.json at generation time. */
6
- export declare const PACKAGE_VERSION = "0.2.7";
6
+ export declare const PACKAGE_VERSION = "0.2.8";
7
7
  //# sourceMappingURL=version.generated.d.ts.map
@@ -4,6 +4,6 @@
4
4
  /** This package's npm name — the join key against a release feed. */
5
5
  const PACKAGE_NAME = "@pithy-sh/support";
6
6
  /** This package's version, stamped from its own package.json at generation time. */
7
- const PACKAGE_VERSION = "0.2.7";
7
+ const PACKAGE_VERSION = "0.2.8";
8
8
  //#endregion
9
9
  export { PACKAGE_NAME, PACKAGE_VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pithy-sh/support",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,12 +40,12 @@
40
40
  "tldts": "^7.4.10"
41
41
  },
42
42
  "peerDependencies": {
43
- "@pithy-sh/auth": "^0.6.2",
44
- "@pithy-sh/core": "^0.7.0",
45
- "@pithy-sh/email": "^0.3.4",
46
- "@pithy-sh/payments": "^0.3.4",
47
- "@pithy-sh/secrets": "^0.2.4",
48
- "@pithy-sh/storage": "^0.2.4",
43
+ "@pithy-sh/auth": "^0.6.3",
44
+ "@pithy-sh/core": "^0.7.3",
45
+ "@pithy-sh/email": "^0.3.7",
46
+ "@pithy-sh/payments": "^0.3.5",
47
+ "@pithy-sh/secrets": "^0.2.6",
48
+ "@pithy-sh/storage": "^0.2.6",
49
49
  "hono": "^4.13.2",
50
50
  "kysely": "^0.29.0",
51
51
  "zod": "^4.4.0"
package/src/capability.ts CHANGED
@@ -28,7 +28,7 @@ import { support_0001_threads } from "./migrations/0001_threads";
28
28
  import { resolveReplies, type SupportReplySnippets } from "./reply/snippets";
29
29
  import { inapplicableAttachmentSecrets, SUPPORT_BUCKET_BINDING, supportSecretsRegistry } from "./secret/registry";
30
30
  import { supportExampleSeed } from "./seeds/example";
31
- import { PACKAGE_VERSION } from "./version.generated";
31
+ import { PACKAGE_NAME, PACKAGE_VERSION } from "./version.generated";
32
32
  import { supportWorkflows } from "./workflows/specs";
33
33
 
34
34
  /**
@@ -235,9 +235,12 @@ export function support(options: SupportOptions = {}): SupportCapability {
235
235
 
236
236
  const capability = defineCapability({
237
237
  name: "support",
238
- // The package version this capability ships at, stamped by `scripts/stampVersions.ts` — a Worker
239
- // cannot read its own package.json. Reported per capability by the control-plane manifest.
238
+ // The package this capability ships in and the version it ships at, both stamped by
239
+ // `scripts/stampVersions.ts` — a Worker cannot read its own package.json. Reported per capability by
240
+ // the control-plane manifest, and reported together: a release feed is keyed by package name, so the
241
+ // version alone leaves a client guessing the key (#626).
240
242
  version: PACKAGE_VERSION,
243
+ package: PACKAGE_NAME,
241
244
  // Attachment presigning reads an R2 credential bundle through @pithy-sh/secrets.
242
245
  dependsOn: ["secrets"],
243
246
  secretRegistry: supportSecretsRegistry,
@@ -13,4 +13,4 @@
13
13
  export const PACKAGE_NAME = "@pithy-sh/support";
14
14
 
15
15
  /** This package's version, stamped from its own package.json at generation time. */
16
- export const PACKAGE_VERSION = "0.2.7";
16
+ export const PACKAGE_VERSION = "0.2.8";