@simpleapps-com/augur-config 2.2.10 → 2.2.12

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/EXPORTS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @simpleapps-com/augur-config exports
2
2
 
3
- Version: 2.0.21
3
+ Version: 2.2.10
4
4
 
5
5
  > Auto-generated. Do not edit manually.
6
6
  > Regenerate with: `pnpm run generate-exports`
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # @simpleapps-com/augur-config
2
+
3
+ > Shared tooling configuration presets for Augur ecommerce sites
4
+
5
+ > Auto-generated. Do not edit manually. Regenerate with: `pnpm run generate-exports`
6
+
7
+ Part of the **@simpleapps-com/augur-\*** platform. All packages use fixed versioning (same version number).
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ pnpm add @simpleapps-com/augur-config
13
+ ```
14
+
15
+ ## Presets
16
+
17
+ | Import | Type |
18
+ |--------|------|
19
+ | `@simpleapps-com/augur-config/eslint` | config preset |
20
+ | `@simpleapps-com/augur-config/eslint/next` | config preset |
21
+ | `@simpleapps-com/augur-config/prettier` | config preset |
22
+ | `@simpleapps-com/augur-config/prettier/next` | config preset |
23
+ | `@simpleapps-com/augur-config/tsconfig/base` | tsconfig preset |
24
+ | `@simpleapps-com/augur-config/tsconfig/react` | tsconfig preset |
25
+ | `@simpleapps-com/augur-config/tsconfig/react-native` | tsconfig preset |
26
+ | `@simpleapps-com/augur-config/tsconfig/next` | tsconfig preset |
27
+ | `@simpleapps-com/augur-config/lighthouse` | config preset |
28
+
29
+ ## Related Packages
30
+
31
+ All packages use fixed versioning -- same version number across the platform.
32
+
33
+ | Package | Description |
34
+ |---------|-------------|
35
+ | `@simpleapps-com/augur-core` | Universal foundation for Augur packages — proxy infrastructure, cache keys, method classification, shared types |
36
+ | `@simpleapps-com/augur-hooks` | Cross-platform React Query hooks and Zustand stores for Augur ecommerce sites |
37
+ | `@simpleapps-com/augur-mobile` | React Native/Expo adapters for Augur ecommerce apps (offline sync, biometrics, push) |
38
+ | `@simpleapps-com/augur-server` | Server-side utilities for Augur ecommerce sites (Redis caching, SDK helpers, auth) |
39
+ | `@simpleapps-com/augur-tailwind` | Shared Tailwind CSS v4 theme with HSL variables for Augur ecommerce sites |
40
+ | `@simpleapps-com/augur-utils` | Shared types, cache configuration, and utility functions for Augur ecommerce sites |
41
+ | `@simpleapps-com/augur-web` | Shared React UI components for Augur ecommerce sites (Radix + Tailwind) |
@@ -14,7 +14,7 @@
14
14
  */
15
15
 
16
16
  import { readFileSync, existsSync } from "node:fs";
17
- import { resolve, basename } from "node:path";
17
+ import { resolve, basename, dirname } from "node:path";
18
18
 
19
19
  // ── CLI ──────────────────────────────────────────────────────────────────────
20
20
 
@@ -79,6 +79,37 @@ function fileContains(relPath, pattern) {
79
79
  return pattern.test(content);
80
80
  }
81
81
 
82
+ /**
83
+ * Walk up from siteDir looking for a file, stopping at a .git boundary.
84
+ * Returns the relative-to-siteDir path if found, or null.
85
+ */
86
+ function findFileUpward(...filenames) {
87
+ let dir = siteDir;
88
+ const root = resolve("/");
89
+ while (dir !== root) {
90
+ for (const name of filenames) {
91
+ const candidate = resolve(dir, name);
92
+ if (existsSync(candidate)) return candidate;
93
+ }
94
+ // Stop at git repo root
95
+ if (existsSync(resolve(dir, ".git"))) break;
96
+ dir = dirname(dir);
97
+ }
98
+ return null;
99
+ }
100
+
101
+ /** Files where proxy pattern wiring commonly lives across different site layouts. */
102
+ const proxyDetectionFiles = [
103
+ "lib/augur-query.ts", "src/lib/augur-query.ts",
104
+ "lib/augur.ts", "src/lib/augur.ts",
105
+ "lib/augur-options.ts", "src/lib/augur-options.ts",
106
+ "app/providers.tsx", "src/app/providers.tsx",
107
+ "app/context/ReactQueryProvider.tsx", "src/app/context/ReactQueryProvider.tsx",
108
+ ];
109
+
110
+ /** Regex matching proxy pattern imports/usage. */
111
+ const proxyPatternRegex = /createServerQueryProxy|queryAction|createAugurOptions|registerQueryAction/;
112
+
82
113
  // ── Results ──────────────────────────────────────────────────────────────────
83
114
 
84
115
  const results = [];
@@ -165,11 +196,8 @@ if (actionsFile && fileContains(actionsFile, /site\.actions|actions\./)) {
165
196
  );
166
197
  } else {
167
198
  // Migrated sites using createServerQueryProxy don't need augur-actions.ts
168
- const usesProxyPattern = [
169
- "lib/augur-query.ts", "src/lib/augur-query.ts",
170
- "lib/augur.ts", "src/lib/augur.ts",
171
- "app/providers.tsx", "src/app/providers.tsx",
172
- ].some((f) => fileExists(f) && fileContains(f, /createServerQueryProxy|queryAction/));
199
+ const usesProxyPattern = proxyDetectionFiles
200
+ .some((f) => fileExists(f) && fileContains(f, proxyPatternRegex));
173
201
 
174
202
  if (usesProxyPattern) {
175
203
  pass("actions", "Using proxy pattern (augur-actions.ts not needed)", "");
@@ -650,10 +678,17 @@ if (pkg) {
650
678
  }
651
679
 
652
680
  // 19. Pre-commit hooks (lefthook + lint-staged)
653
- const lefthookFile = findFile("lefthook.yml", ".lefthook.yml");
681
+ // Check site dir first, then walk up for monorepo layouts
682
+ const lefthookFile = findFile("lefthook.yml", ".lefthook.yml")
683
+ || findFileUpward("lefthook.yml", ".lefthook.yml");
654
684
  const hasLefthookDep = !!(pkg?.devDependencies?.lefthook || pkg?.dependencies?.lefthook);
655
685
  if (lefthookFile || hasLefthookDep) {
656
- const lefthookContent = readFile(lefthookFile);
686
+ // lefthookFile may be a relative path (from findFile) or absolute (from findFileUpward)
687
+ const lefthookContent = lefthookFile
688
+ ? (existsSync(resolve(siteDir, lefthookFile))
689
+ ? readFile(lefthookFile)
690
+ : (existsSync(lefthookFile) ? readFileSync(lefthookFile, "utf-8") : null))
691
+ : null;
657
692
  const hasPreCommit = lefthookContent && lefthookContent.includes("pre-commit");
658
693
  const lintStagedConfig =
659
694
  pkg?.["lint-staged"] ||
@@ -737,19 +772,11 @@ if (localHooksFile) {
737
772
  }
738
773
 
739
774
  // 21. createServerQueryProxy usage
740
- const allSrcFiles = [
741
- "lib/augur-query.ts",
742
- "src/lib/augur-query.ts",
743
- "lib/augur.ts",
744
- "src/lib/augur.ts",
745
- "app/providers.tsx",
746
- "src/app/providers.tsx",
747
- ];
748
- const usesServerProxy = allSrcFiles.some(
749
- (f) => fileExists(f) && fileContains(f, "createServerQueryProxy")
775
+ const usesServerProxy = proxyDetectionFiles.some(
776
+ (f) => fileExists(f) && fileContains(f, /createServerQueryProxy|createAugurOptions/)
750
777
  );
751
- const usesAugurOptions = allSrcFiles.some(
752
- (f) => fileExists(f) && fileContains(f, "useAugurOptions")
778
+ const usesAugurOptions = proxyDetectionFiles.some(
779
+ (f) => fileExists(f) && fileContains(f, /useAugurOptions|registerQueryAction/)
753
780
  );
754
781
  if (usesServerProxy) {
755
782
  pass("proxy-server-query", "Uses createServerQueryProxy for data fetching", "");
@@ -776,7 +803,7 @@ if (pkg) {
776
803
  const isTypedProxy =
777
804
  year > 2026 ||
778
805
  (year === 2026 && minor > 3) ||
779
- (year === 2026 && minor === 3 && patch >= 4);
806
+ (year === 2026 && minor === 3 && patch >= 7);
780
807
 
781
808
  if (isTypedProxy) {
782
809
  pass("api-version", "augur-api SDK version supports typed proxies", apiVersion);
@@ -784,7 +811,7 @@ if (pkg) {
784
811
  warn(
785
812
  "api-version",
786
813
  "augur-api SDK may lack typed proxy support",
787
- `${apiVersion} -- upgrade to >= 2026.3.4 for typed responses`
814
+ `${apiVersion} -- upgrade to >= 2026.3.7 for typed responses`
788
815
  );
789
816
  }
790
817
  } else if (apiVersion) {
package/llms.txt CHANGED
@@ -1,8 +1,30 @@
1
+ # Augur Platform Packages
2
+
3
+ This package is part of the @simpleapps-com/augur-* platform.
4
+ All packages use fixed versioning (same version number).
5
+ The proxy pattern (createServerQueryProxy) is the primary data fetching API.
6
+ Pure transform utilities bridge user-facing types to SDK params without breaking proxy type safety.
7
+
8
+ ## Sibling packages
9
+
10
+ - @simpleapps-com/augur-config (this package) - Shared tooling configuration presets for Augur ecommerce sites
11
+ - @simpleapps-com/augur-core - Universal foundation for Augur packages — proxy infrastructure, cache keys, method classification, shared types
12
+ - @simpleapps-com/augur-hooks - Cross-platform React Query hooks and Zustand stores for Augur ecommerce sites
13
+ - @simpleapps-com/augur-mobile - React Native/Expo adapters for Augur ecommerce apps (offline sync, biometrics, push)
14
+ - @simpleapps-com/augur-server - Server-side utilities for Augur ecommerce sites (Redis caching, SDK helpers, auth)
15
+ - @simpleapps-com/augur-tailwind - Shared Tailwind CSS v4 theme with HSL variables for Augur ecommerce sites
16
+ - @simpleapps-com/augur-utils - Shared types, cache configuration, and utility functions for Augur ecommerce sites
17
+ - @simpleapps-com/augur-web - Shared React UI components for Augur ecommerce sites (Radix + Tailwind)
18
+
19
+ Each package ships its own llms.txt with exports and usage patterns.
20
+
21
+ ---
22
+
1
23
  # @simpleapps-com/augur-config
2
24
 
3
25
  > Shared tooling configuration presets for Augur ecommerce sites
4
26
 
5
- Version: 2.0.21
27
+ Version: 2.2.10
6
28
 
7
29
  - config preset: @simpleapps-com/augur-config/eslint
8
30
  - config preset: @simpleapps-com/augur-config/eslint/next
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpleapps-com/augur-config",
3
- "version": "2.2.10",
3
+ "version": "2.2.12",
4
4
  "description": "Shared tooling configuration presets for Augur ecommerce sites",
5
5
  "license": "MIT",
6
6
  "repository": {