@intercom/cli 0.15.0 → 0.15.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  View it from the CLI with `intercom changelog`.
9
9
 
10
+ ## [0.15.1] - 2026-11-08
11
+
12
+ ### Fixed
13
+
14
+ - `intercom fin procedures upload --verify` no longer reports drift on `version`, or on `id` when the file says `id: new`. The server assigns both on save, so uploading a procedure you just downloaded no longer fails verification.
15
+
10
16
  ## [0.15.0] - 2026-11-06
11
17
 
12
18
  ### Added
package/dist/index.js CHANGED
@@ -3024,6 +3024,20 @@ function withoutSignature(value) {
3024
3024
  return null;
3025
3025
  }
3026
3026
  }
3027
+ function withoutExpectedChanges(sent) {
3028
+ if (!isRecord(sent)) {
3029
+ return sent;
3030
+ }
3031
+ const rest = { ...sent };
3032
+ delete rest.type;
3033
+ delete rest.version;
3034
+ delete rest.web_url;
3035
+ delete rest.workflow_instance_id;
3036
+ if (String(rest.id ?? "").toLowerCase() === "new") {
3037
+ delete rest.id;
3038
+ }
3039
+ return rest;
3040
+ }
3027
3041
  function findDrift(sent, saved, path = "") {
3028
3042
  const here = path || ".";
3029
3043
  if (Array.isArray(sent)) {
@@ -3260,7 +3274,10 @@ function verifySaved(filePath, sentYaml, result) {
3260
3274
  if (typeof result.new_file_content !== "string") {
3261
3275
  throw new CLIError("Cannot verify: the server did not return the saved procedure");
3262
3276
  }
3263
- const drift = findDrift(parseYaml(sentYaml), parseYaml(result.new_file_content));
3277
+ const drift = findDrift(
3278
+ withoutExpectedChanges(parseYaml(sentYaml)),
3279
+ parseYaml(result.new_file_content)
3280
+ );
3264
3281
  if (drift.length === 0) {
3265
3282
  console.error(`Verified: the saved procedure matches ${filePath}`);
3266
3283
  return;
@@ -3808,20 +3825,6 @@ async function getVersionYaml2(client, id, versionId) {
3808
3825
  }
3809
3826
  return typeof content === "string" ? content : stringifyYaml3(content);
3810
3827
  }
3811
- function withoutExpectedChanges(sent) {
3812
- if (sent == null || typeof sent !== "object" || Array.isArray(sent)) {
3813
- return sent;
3814
- }
3815
- const rest = { ...sent };
3816
- delete rest.type;
3817
- delete rest.version;
3818
- delete rest.web_url;
3819
- delete rest.workflow_instance_id;
3820
- if (String(rest.id ?? "").toLowerCase() === "new") {
3821
- delete rest.id;
3822
- }
3823
- return rest;
3824
- }
3825
3828
  function verifySaved2(filePath, sentYaml, result) {
3826
3829
  if (typeof result.new_file_content !== "string") {
3827
3830
  throw new CLIError("Cannot verify: the server did not return the saved workflow");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intercom/cli",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "CLI tool for managing Intercom workspaces",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.23.0",