@knapsack/core 5.0.0--canary.6593.4738696.0 β†’ 5.0.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.
package/.lintstagedrc.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { dirname } from 'path';
2
- import { fileURLToPath } from 'url';
1
+ import { dirname } from 'node:path';
2
+ import { fileURLToPath } from 'node:url';
3
3
 
4
4
  import defaultConfig from '../../.lintstagedrc.mjs';
5
5
 
package/CHANGELOG.md CHANGED
@@ -1,3 +1,137 @@
1
+ # v4.89.8 (Fri Feb 20 2026)
2
+
3
+ ### Release Notes
4
+
5
+ #### KSP-7685: Synthetic Data for Conflict Enrichment/Resolution testing ([#7154](https://github.com/knapsack-labs/app-monorepo/pull/7154))
6
+
7
+ * **Documentation**
8
+ * Added synthetic multi-source test fixtures including component documentation, design tokens, and brand guidelines for comprehensive testing coverage.
9
+
10
+ <!-- end of auto-generated comment: release notes by coderabbit.ai -->
11
+
12
+ ---
13
+
14
+ #### πŸ› Bug Fix
15
+
16
+ - merge latest in ([@EmmanuelVelez](https://github.com/EmmanuelVelez))
17
+ - Merge branch 'latest' into sxa/KSP-7037-tests-v2 ([@sxalexander](https://github.com/sxalexander))
18
+ - Use node: protocol prefix in all .lintstagedrc.mjs files ([@EmmanuelVelez](https://github.com/EmmanuelVelez))
19
+ - Migrated ESLint config to flat config format (ESLint 9) ([@EmmanuelVelez](https://github.com/EmmanuelVelez))
20
+
21
+ #### 🏠 Internal
22
+
23
+ - Fix 404 error on help tooltip documentation link [#7187](https://github.com/knapsack-labs/app-monorepo/pull/7187) ([@GormanDesign](https://github.com/GormanDesign))
24
+ - KSP-7685: Synthetic Data for Conflict Enrichment/Resolution testing [#7154](https://github.com/knapsack-labs/app-monorepo/pull/7154) ([@sxalexander](https://github.com/sxalexander))
25
+ - KSP-5524 Migrated ESLint config to flat config format (ESLint 9) [#7162](https://github.com/knapsack-labs/app-monorepo/pull/7162) ([@EmmanuelVelez](https://github.com/EmmanuelVelez))
26
+
27
+ #### Authors: 3
28
+
29
+ - [@EmmanuelVelez](https://github.com/EmmanuelVelez)
30
+ - Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
31
+ - Sam Alexander ([@sxalexander](https://github.com/sxalexander))
32
+
33
+ ---
34
+
35
+ # v4.89.7 (Fri Feb 06 2026)
36
+
37
+ #### πŸ› Bug Fix
38
+
39
+ - Merge branch 'latest' into feature/ksp-6555-remove-app-client-watchers-for-files-in-data-directory ([@EvanLovely](https://github.com/EvanLovely))
40
+ - Merge branch 'latest' into feature/ksp-6555-remove-app-client-watchers-for-files-in-data-directory ([@EmmanuelVelez](https://github.com/EmmanuelVelez))
41
+
42
+ #### 🏠 Internal
43
+
44
+ - Replace ava with vitest in libs/core [#7145](https://github.com/knapsack-labs/app-monorepo/pull/7145) ([@claude](https://github.com/claude) [@EvanLovely](https://github.com/EvanLovely))
45
+ - KSP-6106 Added consistent-type-imports rule with inline type syntax [#7128](https://github.com/knapsack-labs/app-monorepo/pull/7128) ([@EmmanuelVelez](https://github.com/EmmanuelVelez))
46
+ - KSP-7692: expand server actions body size limit [#7097](https://github.com/knapsack-labs/app-monorepo/pull/7097) ([@illepic](https://github.com/illepic))
47
+ - KSP-7623 resolved some of react-hooks/set-state-in-effect lint errors and enab… [#7077](https://github.com/knapsack-labs/app-monorepo/pull/7077) ([@EmmanuelVelez](https://github.com/EmmanuelVelez))
48
+ - Only provide signed upload URLs for files in acceptable file list [#7056](https://github.com/knapsack-labs/app-monorepo/pull/7056) ([@freneticpixel](https://github.com/freneticpixel))
49
+
50
+ #### Authors: 5
51
+
52
+ - [@EmmanuelVelez](https://github.com/EmmanuelVelez)
53
+ - Christopher Bloom ([@illepic](https://github.com/illepic))
54
+ - Claude ([@claude](https://github.com/claude))
55
+ - Evan Lovely ([@EvanLovely](https://github.com/EvanLovely))
56
+ - Jim Frenette ([@freneticpixel](https://github.com/freneticpixel))
57
+
58
+ ---
59
+
60
+ # v4.89.4 (Mon Jan 05 2026)
61
+
62
+ #### 🏠 Internal
63
+
64
+ - KSP-6086 normalize error and log metadata for api domains [#6997](https://github.com/knapsack-labs/app-monorepo/pull/6997) ([@EmmanuelVelez](https://github.com/EmmanuelVelez))
65
+
66
+ #### Authors: 1
67
+
68
+ - [@EmmanuelVelez](https://github.com/EmmanuelVelez)
69
+
70
+ ---
71
+
72
+ # v4.89.3 (Thu Dec 11 2025)
73
+
74
+ #### πŸ› Bug Fix
75
+
76
+ - KSP-6536 Fixed align token metrics counting with UI logic for variables and collections [#6778](https://github.com/knapsack-labs/app-monorepo/pull/6778) ([@EmmanuelVelez](https://github.com/EmmanuelVelez))
77
+ - Merge branch 'latest' into feature/ksp-6536-metrics-not-computing-tokens-and-variables-correctly ([@EmmanuelVelez](https://github.com/EmmanuelVelez))
78
+ - Merge remote-tracking branch 'origin/feature/ksp-6536-metrics-not-computing-tokens-and-variables-correctly' into feature/ksp-6536-metrics-not-computing-tokens-and-variables-correctly ([@EmmanuelVelez](https://github.com/EmmanuelVelez))
79
+
80
+ #### Authors: 1
81
+
82
+ - [@EmmanuelVelez](https://github.com/EmmanuelVelez)
83
+
84
+ ---
85
+
86
+ # v4.89.1 (Wed Dec 10 2025)
87
+
88
+ #### πŸ› Bug Fix
89
+
90
+ - Merge remote-tracking branch 'origin/latest' into KSP-6900_mcp_onboarding_pages ([@brittanysmart](https://github.com/brittanysmart))
91
+
92
+ #### Authors: 1
93
+
94
+ - Brittany Smart ([@brittanysmart](https://github.com/brittanysmart))
95
+
96
+ ---
97
+
98
+ # v4.87.9 (Thu Nov 20 2025)
99
+
100
+ #### 🏠 Internal
101
+
102
+ - fix(deps): update dependency @types/node to ^20.19.25 [#6803](https://github.com/knapsack-labs/app-monorepo/pull/6803) ([@renovate[bot]](https://github.com/renovate[bot]))
103
+ - chore(deps): update typescript [#6933](https://github.com/knapsack-labs/app-monorepo/pull/6933) ([@renovate[bot]](https://github.com/renovate[bot]))
104
+
105
+ #### Authors: 1
106
+
107
+ - [@renovate[bot]](https://github.com/renovate[bot])
108
+
109
+ ---
110
+
111
+ # v4.87.7 (Mon Nov 10 2025)
112
+
113
+ #### 🏠 Internal
114
+
115
+ - fix(deps): update typescript [#6863](https://github.com/knapsack-labs/app-monorepo/pull/6863) ([@renovate[bot]](https://github.com/renovate[bot]))
116
+
117
+ #### Authors: 1
118
+
119
+ - [@renovate[bot]](https://github.com/renovate[bot])
120
+
121
+ ---
122
+
123
+ # v4.87.6 (Wed Nov 05 2025)
124
+
125
+ #### 🏠 Internal
126
+
127
+ - Add comprehensive testing for remaining frameworks and MUI lib [#6876](https://github.com/knapsack-labs/app-monorepo/pull/6876) ([@mabry1985](https://github.com/mabry1985))
128
+
129
+ #### Authors: 1
130
+
131
+ - Josh Mabry ([@mabry1985](https://github.com/mabry1985))
132
+
133
+ ---
134
+
1
135
  # v4.87.4 (Fri Oct 31 2025)
2
136
 
3
137
  #### 🏠 Internal
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/auth-envs.ts"],"names":["authEnvs","isAuthEnvId","id","__name"],"mappings":"8FAkBaA,IAAAA,CAAAA,CAAW,CACtB,IAAM,CAAA,CACJ,GAAI,MACJ,CAAA,QAAA,CAAU,eACV,CAAA,MAAA,CAAQ,qBACV,CAAA,CACA,IAAK,CACH,EAAA,CAAI,MACJ,QAAU,CAAA,mBAAA,CACV,OAAQ,yBACV,CAAA,CACA,KAAO,CAAA,CACL,EAAI,CAAA,OAAA,CACJ,SAAU,eACV,CAAA,MAAA,CAAQ,2BACV,CACA,CAAA,KAAA,CAAO,CACL,EAAI,CAAA,OAAA,CACJ,QAAU,CAAA,eAAA,CACV,MAAQ,CAAA,2BACV,CACF,EAGO,SAASC,EAAYC,CAA6B,CAAA,CACvD,OAAOA,CAAMF,IAAAA,CACf,CAFgBG,CAAAA,CAAAF,CAAA,CAAA,aAAA,CAAA","file":"auth-envs.js","sourcesContent":["type AuthEnv = {\n /**\n * The KS environment ID\n * @example 'prod'\n */\n id: string;\n /**\n * The Auth0 tenant ID\n * @example 'knapsack-auth'\n */\n tenantId: string;\n /**\n * The Auth0 domain\n * @example 'auth.knapsack.cloud'\n */\n domain: string;\n};\n\nexport const authEnvs = {\n prod: {\n id: 'prod',\n tenantId: 'knapsack-auth',\n domain: 'auth.knapsack.cloud',\n },\n dev: {\n id: 'dev',\n tenantId: 'knapsack-auth-dev',\n domain: 'auth-dev.knapsack.cloud',\n },\n test1: {\n id: 'test1',\n tenantId: 'ks-auth-test1',\n domain: 'auth-test1.knapsack.cloud',\n },\n test2: {\n id: 'test2',\n tenantId: 'ks-auth-test2',\n domain: 'auth-test2.knapsack.cloud',\n },\n} as const satisfies Record<string, AuthEnv>;\n\nexport type AuthEnvId = keyof typeof authEnvs;\nexport function isAuthEnvId(id: string): id is AuthEnvId {\n return id in authEnvs;\n}\n"]}
1
+ {"version":3,"sources":["../src/auth-envs.ts"],"names":["authEnvs","isAuthEnvId","id","__name"],"mappings":"8FAkBO,IAAMA,CAAAA,CAAW,CACtB,IAAA,CAAM,CACJ,GAAI,MAAA,CACJ,QAAA,CAAU,eAAA,CACV,MAAA,CAAQ,qBACV,CAAA,CACA,IAAK,CACH,EAAA,CAAI,MACJ,QAAA,CAAU,mBAAA,CACV,OAAQ,yBACV,CAAA,CACA,KAAA,CAAO,CACL,EAAA,CAAI,OAAA,CACJ,SAAU,eAAA,CACV,MAAA,CAAQ,2BACV,CAAA,CACA,KAAA,CAAO,CACL,EAAA,CAAI,OAAA,CACJ,QAAA,CAAU,eAAA,CACV,MAAA,CAAQ,2BACV,CACF,EAGO,SAASC,EAAYC,CAAAA,CAA6B,CACvD,OAAOA,CAAAA,IAAMF,CACf,CAFgBG,CAAAA,CAAAF,CAAAA,CAAA,aAAA,CAAA","file":"auth-envs.js","sourcesContent":["type AuthEnv = {\n /**\n * The KS environment ID\n * @example 'prod'\n */\n id: string;\n /**\n * The Auth0 tenant ID\n * @example 'knapsack-auth'\n */\n tenantId: string;\n /**\n * The Auth0 domain\n * @example 'auth.knapsack.cloud'\n */\n domain: string;\n};\n\nexport const authEnvs = {\n prod: {\n id: 'prod',\n tenantId: 'knapsack-auth',\n domain: 'auth.knapsack.cloud',\n },\n dev: {\n id: 'dev',\n tenantId: 'knapsack-auth-dev',\n domain: 'auth-dev.knapsack.cloud',\n },\n test1: {\n id: 'test1',\n tenantId: 'ks-auth-test1',\n domain: 'auth-test1.knapsack.cloud',\n },\n test2: {\n id: 'test2',\n tenantId: 'ks-auth-test2',\n domain: 'auth-test2.knapsack.cloud',\n },\n} as const satisfies Record<string, AuthEnv>;\n\nexport type AuthEnvId = keyof typeof authEnvs;\nexport function isAuthEnvId(id: string): id is AuthEnvId {\n return id in authEnvs;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/auth-envs.ts"],"names":["authEnvs","isAuthEnvId","id","__name"],"mappings":"iFAkBaA,IAAAA,CAAAA,CAAW,CACtB,IAAM,CAAA,CACJ,GAAI,MACJ,CAAA,QAAA,CAAU,eACV,CAAA,MAAA,CAAQ,qBACV,CAAA,CACA,IAAK,CACH,EAAA,CAAI,MACJ,QAAU,CAAA,mBAAA,CACV,OAAQ,yBACV,CAAA,CACA,KAAO,CAAA,CACL,EAAI,CAAA,OAAA,CACJ,SAAU,eACV,CAAA,MAAA,CAAQ,2BACV,CACA,CAAA,KAAA,CAAO,CACL,EAAI,CAAA,OAAA,CACJ,QAAU,CAAA,eAAA,CACV,MAAQ,CAAA,2BACV,CACF,EAGO,SAASC,EAAYC,CAA6B,CAAA,CACvD,OAAOA,CAAMF,IAAAA,CACf,CAFgBG,CAAAA,CAAAF,CAAA,CAAA,aAAA,CAAA","file":"auth-envs.mjs","sourcesContent":["type AuthEnv = {\n /**\n * The KS environment ID\n * @example 'prod'\n */\n id: string;\n /**\n * The Auth0 tenant ID\n * @example 'knapsack-auth'\n */\n tenantId: string;\n /**\n * The Auth0 domain\n * @example 'auth.knapsack.cloud'\n */\n domain: string;\n};\n\nexport const authEnvs = {\n prod: {\n id: 'prod',\n tenantId: 'knapsack-auth',\n domain: 'auth.knapsack.cloud',\n },\n dev: {\n id: 'dev',\n tenantId: 'knapsack-auth-dev',\n domain: 'auth-dev.knapsack.cloud',\n },\n test1: {\n id: 'test1',\n tenantId: 'ks-auth-test1',\n domain: 'auth-test1.knapsack.cloud',\n },\n test2: {\n id: 'test2',\n tenantId: 'ks-auth-test2',\n domain: 'auth-test2.knapsack.cloud',\n },\n} as const satisfies Record<string, AuthEnv>;\n\nexport type AuthEnvId = keyof typeof authEnvs;\nexport function isAuthEnvId(id: string): id is AuthEnvId {\n return id in authEnvs;\n}\n"]}
1
+ {"version":3,"sources":["../src/auth-envs.ts"],"names":["authEnvs","isAuthEnvId","id","__name"],"mappings":"iFAkBO,IAAMA,CAAAA,CAAW,CACtB,IAAA,CAAM,CACJ,GAAI,MAAA,CACJ,QAAA,CAAU,eAAA,CACV,MAAA,CAAQ,qBACV,CAAA,CACA,IAAK,CACH,EAAA,CAAI,MACJ,QAAA,CAAU,mBAAA,CACV,OAAQ,yBACV,CAAA,CACA,KAAA,CAAO,CACL,EAAA,CAAI,OAAA,CACJ,SAAU,eAAA,CACV,MAAA,CAAQ,2BACV,CAAA,CACA,KAAA,CAAO,CACL,EAAA,CAAI,OAAA,CACJ,QAAA,CAAU,eAAA,CACV,MAAA,CAAQ,2BACV,CACF,EAGO,SAASC,EAAYC,CAAAA,CAA6B,CACvD,OAAOA,CAAAA,IAAMF,CACf,CAFgBG,CAAAA,CAAAF,CAAAA,CAAA,aAAA,CAAA","file":"auth-envs.mjs","sourcesContent":["type AuthEnv = {\n /**\n * The KS environment ID\n * @example 'prod'\n */\n id: string;\n /**\n * The Auth0 tenant ID\n * @example 'knapsack-auth'\n */\n tenantId: string;\n /**\n * The Auth0 domain\n * @example 'auth.knapsack.cloud'\n */\n domain: string;\n};\n\nexport const authEnvs = {\n prod: {\n id: 'prod',\n tenantId: 'knapsack-auth',\n domain: 'auth.knapsack.cloud',\n },\n dev: {\n id: 'dev',\n tenantId: 'knapsack-auth-dev',\n domain: 'auth-dev.knapsack.cloud',\n },\n test1: {\n id: 'test1',\n tenantId: 'ks-auth-test1',\n domain: 'auth-test1.knapsack.cloud',\n },\n test2: {\n id: 'test2',\n tenantId: 'ks-auth-test2',\n domain: 'auth-test2.knapsack.cloud',\n },\n} as const satisfies Record<string, AuthEnv>;\n\nexport type AuthEnvId = keyof typeof authEnvs;\nexport function isAuthEnvId(id: string): id is AuthEnvId {\n return id in authEnvs;\n}\n"]}
@@ -9,7 +9,7 @@ export declare const DOCS_URLS: {
9
9
  readonly RUNNING_KNAPSACK_LOCALLY: "https://docs.knapsack.cloud/site/ks-docs/latest/pages/running-knapsack-locally";
10
10
  readonly UPDATING_KNAPSACK: "https://docs.knapsack.cloud/site/ks-docs/latest/pages/updating-knapsack";
11
11
  readonly ADDING_TEMPLATES: "https://docs.knapsack.cloud/site/ks-docs/latest/pages/adding-templates";
12
- readonly CONNECTING_CODE: "https://docs.knapsack.cloud/site/ks-docs/latest/pages/connecting-code";
12
+ readonly CONNECTING_CODE: "https://docs.knapsack.cloud/site/ks-docs/latest/pages/code-sources";
13
13
  readonly PROTOTYPING: "https://docs.knapsack.cloud/site/ks-docs/latest/pages/prototyping";
14
14
  readonly IMPORTING_TOKENS: "https://docs.knapsack.cloud/site/ks-docs/latest/pages/importing-tokens";
15
15
  readonly TOKENS_AND_VARIABLES: "https://docs.knapsack.cloud/site/ks-docs/latest/pages/design-tokens-and-variables";
@@ -0,0 +1,4 @@
1
+ export declare const acceptableFileExtensionsAndMimeTypes: string[];
2
+ export declare function isAcceptableFileExtension(extension: string): boolean;
3
+ export declare function isAcceptableFileMimeType(mimeType: string): boolean;
4
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/files.ts"],"names":[],"mappings":"AAgDA,eAAO,MAAM,oCAAoC,EAAE,MAAM,EAGxD,CAAC;AAGF,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAKpE;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAalE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=files.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.test.d.ts","sourceRoot":"","sources":["../src/files.test.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -6,4 +6,5 @@ export * from './webhooks';
6
6
  export * from './ks-urls';
7
7
  export * from './http-headers';
8
8
  export * from './auth-envs';
9
+ export * from './files';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}