@stripe/extensibility-tool-utils 0.6.2

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 (105) hide show
  1. package/LICENSE.md +19 -0
  2. package/dist/cli/cli-ux.d.ts +30 -0
  3. package/dist/cli/cli-ux.d.ts.map +1 -0
  4. package/dist/cli/context.d.ts +24 -0
  5. package/dist/cli/context.d.ts.map +1 -0
  6. package/dist/cli/guards.d.ts +24 -0
  7. package/dist/cli/guards.d.ts.map +1 -0
  8. package/dist/cli/index.d.ts +6 -0
  9. package/dist/cli/index.d.ts.map +1 -0
  10. package/dist/cli/output-path.d.ts +11 -0
  11. package/dist/cli/output-path.d.ts.map +1 -0
  12. package/dist/extensibility-tool-utils-alpha.d.ts +383 -0
  13. package/dist/extensibility-tool-utils-beta.d.ts +383 -0
  14. package/dist/extensibility-tool-utils-internal.d.ts +1866 -0
  15. package/dist/extensibility-tool-utils-public.d.ts +383 -0
  16. package/dist/file-editor/assertions/index.d.ts +68 -0
  17. package/dist/file-editor/assertions/index.d.ts.map +1 -0
  18. package/dist/file-editor/document.d.ts +107 -0
  19. package/dist/file-editor/document.d.ts.map +1 -0
  20. package/dist/file-editor/errors.d.ts +66 -0
  21. package/dist/file-editor/errors.d.ts.map +1 -0
  22. package/dist/file-editor/facades/api-extractor.d.ts +34 -0
  23. package/dist/file-editor/facades/api-extractor.d.ts.map +1 -0
  24. package/dist/file-editor/facades/brands.d.ts +45 -0
  25. package/dist/file-editor/facades/brands.d.ts.map +1 -0
  26. package/dist/file-editor/facades/package-json.d.ts +55 -0
  27. package/dist/file-editor/facades/package-json.d.ts.map +1 -0
  28. package/dist/file-editor/facades/stripe-app-manifest.d.ts +62 -0
  29. package/dist/file-editor/facades/stripe-app-manifest.d.ts.map +1 -0
  30. package/dist/file-editor/facades/tsconfig-options.d.ts +76 -0
  31. package/dist/file-editor/facades/tsconfig-options.d.ts.map +1 -0
  32. package/dist/file-editor/facades/tsconfig.d.ts +43 -0
  33. package/dist/file-editor/facades/tsconfig.d.ts.map +1 -0
  34. package/dist/file-editor/fingerprint.d.ts +39 -0
  35. package/dist/file-editor/fingerprint.d.ts.map +1 -0
  36. package/dist/file-editor/formats/adapter.d.ts +29 -0
  37. package/dist/file-editor/formats/adapter.d.ts.map +1 -0
  38. package/dist/file-editor/formats/detect.d.ts +9 -0
  39. package/dist/file-editor/formats/detect.d.ts.map +1 -0
  40. package/dist/file-editor/formats/index.d.ts +13 -0
  41. package/dist/file-editor/formats/index.d.ts.map +1 -0
  42. package/dist/file-editor/formats/jsonc.d.ts +14 -0
  43. package/dist/file-editor/formats/jsonc.d.ts.map +1 -0
  44. package/dist/file-editor/formats/yaml.d.ts +11 -0
  45. package/dist/file-editor/formats/yaml.d.ts.map +1 -0
  46. package/dist/file-editor/index.d.ts +42 -0
  47. package/dist/file-editor/index.d.ts.map +1 -0
  48. package/dist/file-editor/pointer.d.ts +74 -0
  49. package/dist/file-editor/pointer.d.ts.map +1 -0
  50. package/dist/file-editor/schema.d.ts +72 -0
  51. package/dist/file-editor/schema.d.ts.map +1 -0
  52. package/dist/file-editor/state/fs-manifest.d.ts +30 -0
  53. package/dist/file-editor/state/fs-manifest.d.ts.map +1 -0
  54. package/dist/file-editor/state/in-memory.d.ts +5 -0
  55. package/dist/file-editor/state/in-memory.d.ts.map +1 -0
  56. package/dist/file-editor/state/store.d.ts +19 -0
  57. package/dist/file-editor/state/store.d.ts.map +1 -0
  58. package/dist/file-editor/transaction.d.ts +60 -0
  59. package/dist/file-editor/transaction.d.ts.map +1 -0
  60. package/dist/file-editor/types.d.ts +131 -0
  61. package/dist/file-editor/types.d.ts.map +1 -0
  62. package/dist/file-editor/util/atomic-write.d.ts +7 -0
  63. package/dist/file-editor/util/atomic-write.d.ts.map +1 -0
  64. package/dist/file-editor/util/diff.d.ts +20 -0
  65. package/dist/file-editor/util/diff.d.ts.map +1 -0
  66. package/dist/file-editor/value-at-pointer.d.ts +46 -0
  67. package/dist/file-editor/value-at-pointer.d.ts.map +1 -0
  68. package/dist/index.cjs +2967 -0
  69. package/dist/index.d.ts +26 -0
  70. package/dist/index.d.ts.map +1 -0
  71. package/dist/index.js +2847 -0
  72. package/dist/logging/create-logger.d.ts +29 -0
  73. package/dist/logging/create-logger.d.ts.map +1 -0
  74. package/dist/logging/index.d.ts +10 -0
  75. package/dist/logging/index.d.ts.map +1 -0
  76. package/dist/logging/levels.d.ts +21 -0
  77. package/dist/logging/levels.d.ts.map +1 -0
  78. package/dist/naming/inflection.d.ts +15 -0
  79. package/dist/naming/inflection.d.ts.map +1 -0
  80. package/dist/naming/metadata-policy.d.ts +35 -0
  81. package/dist/naming/metadata-policy.d.ts.map +1 -0
  82. package/dist/naming/stripe-api-case.d.ts +9 -0
  83. package/dist/naming/stripe-api-case.d.ts.map +1 -0
  84. package/dist/naming/types.d.ts +11 -0
  85. package/dist/naming/types.d.ts.map +1 -0
  86. package/dist/naming/validate.d.ts +6 -0
  87. package/dist/naming/validate.d.ts.map +1 -0
  88. package/dist/templates/filesystem-fs.d.ts +20 -0
  89. package/dist/templates/filesystem-fs.d.ts.map +1 -0
  90. package/dist/templates/generator.d.ts +305 -0
  91. package/dist/templates/generator.d.ts.map +1 -0
  92. package/dist/templates/in-memory-fs.d.ts +44 -0
  93. package/dist/templates/in-memory-fs.d.ts.map +1 -0
  94. package/dist/templates/index.d.ts +28 -0
  95. package/dist/templates/index.d.ts.map +1 -0
  96. package/dist/templates/simple-templates.d.ts +75 -0
  97. package/dist/templates/simple-templates.d.ts.map +1 -0
  98. package/dist/templates/template-manager.d.ts +54 -0
  99. package/dist/templates/template-manager.d.ts.map +1 -0
  100. package/dist/templates/types.d.ts +87 -0
  101. package/dist/templates/types.d.ts.map +1 -0
  102. package/dist/tsconfig.build.tsbuildinfo +1 -0
  103. package/dist/workspace-versions.d.ts +30 -0
  104. package/dist/workspace-versions.d.ts.map +1 -0
  105. package/package.json +60 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":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M,EACpB,OAAO,GAAE;IACP,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,iBAAiB,CAAC;CACvB,GACL,OAAO,CAAC,gBAAgB,CAAC,CAkB3B"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Branded string types with validating smart constructors.
3
+ *
4
+ * Brands use symbol keys so they do not appear in IDE autocomplete
5
+ * (per project convention).
6
+ */
7
+ declare const __semverRangeBrand: unique symbol;
8
+ /**
9
+ * A validated npm semver range string (e.g. `"^1.2.3"`, `">=1.0 <2.0"`, `"1.x"`).
10
+ *
11
+ * Obtain a {@link _SemverRange} via {@link _semverRange} (throws on invalid
12
+ * input) or {@link _tryParseSemverRange} (returns `null`).
13
+ *
14
+ * @see https://github.com/npm/node-semver#ranges
15
+ */
16
+ /** @internal */
17
+ export type _SemverRange = string & {
18
+ readonly [__semverRangeBrand]: '_SemverRange';
19
+ };
20
+ /** A well-formed semver version string (e.g. `"1.2.3"`, `"4.0.0-rc.1"`). */
21
+ declare const __semverVersionBrand: unique symbol;
22
+ /** @internal */
23
+ export type _SemverVersion = string & {
24
+ readonly [__semverVersionBrand]: '_SemverVersion';
25
+ };
26
+ /** Validating factory for {@link _SemverRange}. Throws on invalid input. */
27
+ /** @internal */
28
+ export declare function _semverRange(input: string): _SemverRange;
29
+ /** Non-throwing variant of {@link _semverRange}. */
30
+ /** @internal */
31
+ export declare function _tryParseSemverRange(input: string): _SemverRange | null;
32
+ /** Runtime type guard. */
33
+ /** @internal */
34
+ export declare function _isSemverRange(input: unknown): input is _SemverRange;
35
+ /** Validating factory for {@link _SemverVersion}. Throws on invalid input. */
36
+ /** @internal */
37
+ export declare function _semverVersion(input: string): _SemverVersion;
38
+ /** Non-throwing variant of {@link _semverVersion}. */
39
+ /** @internal */
40
+ export declare function _tryParseSemverVersion(input: string): _SemverVersion | null;
41
+ /** Runtime type guard. */
42
+ /** @internal */
43
+ export declare function _isSemverVersion(input: unknown): input is _SemverVersion;
44
+ export {};
45
+ //# sourceMappingURL=brands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brands.d.ts","sourceRoot":"","sources":["../../../src/file-editor/facades/brands.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,CAAC,MAAM,kBAAkB,EAAE,OAAO,MAAM,CAAC;AAEhD;;;;;;;GAOG;AACH,gBAAgB;AAChB,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,CAAC,kBAAkB,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAEtF,4EAA4E;AAC5E,OAAO,CAAC,MAAM,oBAAoB,EAAE,OAAO,MAAM,CAAC;AAClD,gBAAgB;AAChB,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IACpC,QAAQ,CAAC,CAAC,oBAAoB,CAAC,EAAE,gBAAgB,CAAC;CACnD,CAAC;AAEF,4EAA4E;AAC5E,gBAAgB;AAChB,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAOxD;AAED,oDAAoD;AACpD,gBAAgB;AAChB,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAGvE;AAED,0BAA0B;AAC1B,gBAAgB;AAChB,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAEpE;AAED,8EAA8E;AAC9E,gBAAgB;AAChB,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAM5D;AAED,sDAAsD;AACtD,gBAAgB;AAChB,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAG3E;AAED,0BAA0B;AAC1B,gBAAgB;AAChB,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAExE"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Typed façade for package.json — strict JSON only, with dependency-aware ops.
3
+ *
4
+ * @see https://docs.npmjs.com/cli/v10/configuring-npm/package-json
5
+ */
6
+ import { _Document, type _MutationOptions } from '../document.js';
7
+ import type { _StandardSchemaV1 } from '../schema.js';
8
+ import type { _Diagnostic } from '../types.js';
9
+ import type { _SemverRange, _SemverVersion } from './brands.js';
10
+ /** @internal */
11
+ export type _DepKind = 'dependencies' | 'devDependencies' | 'peerDependencies' | 'optionalDependencies';
12
+ /** @internal */
13
+ export interface _PackageJson {
14
+ readonly name?: string;
15
+ readonly version?: _SemverVersion | string;
16
+ readonly scripts?: Readonly<Record<string, string>>;
17
+ readonly dependencies?: Readonly<Record<string, _SemverRange | string>>;
18
+ readonly devDependencies?: Readonly<Record<string, _SemverRange | string>>;
19
+ readonly peerDependencies?: Readonly<Record<string, _SemverRange | string>>;
20
+ readonly optionalDependencies?: Readonly<Record<string, _SemverRange | string>>;
21
+ readonly engines?: Readonly<Record<string, _SemverRange | string>>;
22
+ }
23
+ /** _Document subclass with typed package.json helpers. */
24
+ /** @internal */
25
+ export declare class _PackageJsonDoc extends _Document<_PackageJson> {
26
+ setScript(name: string, command: string, opts?: _MutationOptions<_PackageJson>): this;
27
+ requireScript(name: string, command?: string): this;
28
+ addDependency(name: string, range: _SemverRange, kind?: _DepKind, opts?: _MutationOptions<_PackageJson>): this;
29
+ updateDependency(name: string, range: _SemverRange, kind?: _DepKind, opts?: _MutationOptions<_PackageJson>): this;
30
+ removeDependency(name: string, kind?: _DepKind, opts?: _MutationOptions<_PackageJson>): this;
31
+ ensureDependency(name: string, range: _SemverRange, kind?: _DepKind, opts?: _MutationOptions<_PackageJson>): this;
32
+ mustHaveScript(name: string, opts?: {
33
+ equals?: string;
34
+ matches?: RegExp;
35
+ }): _Diagnostic[];
36
+ mustHaveDependency(name: string, opts?: {
37
+ range?: _SemverRange;
38
+ kind?: _DepKind;
39
+ }): _Diagnostic[];
40
+ }
41
+ /**
42
+ * Open a package.json file and return a typed façade.
43
+ *
44
+ * The `schema` option accepts any Standard Schema-compliant validator
45
+ * (Zod v4, Valibot, ArkType, Effect Schema, …). It is not constrained to
46
+ * `_StandardSchemaV1<_PackageJson>` because schema libraries typically emit
47
+ * `string | undefined` for optional fields, which does not match exact
48
+ * optional-property-typed interfaces structurally.
49
+ */
50
+ /** @internal */
51
+ export declare function _openPackageJson(absolutePath: string, options?: {
52
+ format?: 'json';
53
+ schema?: _StandardSchemaV1;
54
+ }): Promise<_PackageJsonDoc>;
55
+ //# sourceMappingURL=package-json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../../src/file-editor/facades/package-json.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,SAAS,EAAyB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEhE,gBAAgB;AAChB,MAAM,MAAM,QAAQ,GAChB,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,sBAAsB,CAAC;AAE3B,gBAAgB;AAChB,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC;IAC3C,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACpD,QAAQ,CAAC,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC;IACxE,QAAQ,CAAC,eAAe,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,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IA,cAAc,CACnB,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAO,GAC/C,WAAW,EAAE;IAST,kBAAkB,CACvB,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE;QAAE,KAAK,CAAC,EAAE,YAAY,CAAC;QAAC,IAAI,CAAC,EAAE,QAAQ,CAAA;KAAO,GACnD,WAAW,EAAE;CAQjB;AAWD;;;;;;;;GAQG;AACH,gBAAgB;AAChB,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,iBAAiB,CAAA;CAAO,GAC5D,OAAO,CAAC,eAAe,CAAC,CAc1B"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Typed façade for the Stripe App Manifest (JSON or YAML flavors).
3
+ *
4
+ * _Format is inferred from the file extension; the typed API is identical
5
+ * across flavors.
6
+ *
7
+ * @see https://docs.stripe.com/stripe-apps/reference/app-manifest
8
+ */
9
+ import { _Document, type _MutationOptions } from '../document.js';
10
+ import type { _StandardSchemaV1 } from '../schema.js';
11
+ import type { _SemverVersion } from './brands.js';
12
+ /**
13
+ * Stripe app permission strings follow the convention `{verb}_{resource}` —
14
+ * e.g. `read_customers`, `write_products`. The template literal enforces the
15
+ * prefix while keeping the resource portion open so the type doesn't go
16
+ * stale as Stripe adds resources.
17
+ *
18
+ * @see https://docs.stripe.com/stripe-apps/reference/permissions
19
+ */
20
+ /** @internal */
21
+ export type _StripePermission = `${'read' | 'write'}_${string}`;
22
+ /** @internal */
23
+ export interface _StripeAppManifest {
24
+ readonly id?: string;
25
+ readonly name?: string;
26
+ readonly version?: _SemverVersion | string;
27
+ readonly permissions?: readonly _StripePermission[];
28
+ readonly app_backend?: unknown;
29
+ readonly ui_extension?: unknown;
30
+ readonly custom_object_definitions?: {
31
+ readonly definitions?: readonly {
32
+ readonly id: string;
33
+ readonly specification: {
34
+ readonly type: string;
35
+ readonly content: string;
36
+ };
37
+ }[];
38
+ };
39
+ }
40
+ /** @internal */
41
+ export declare class _StripeAppManifestDoc extends _Document<_StripeAppManifest> {
42
+ setName(name: string, opts?: _MutationOptions<_StripeAppManifest>): this;
43
+ setVersion(version: _SemverVersion, opts?: _MutationOptions<_StripeAppManifest>): this;
44
+ addPermission(permission: _StripePermission, opts?: _MutationOptions<_StripeAppManifest>): this;
45
+ removePermission(permission: _StripePermission, opts?: _MutationOptions<_StripeAppManifest>): this;
46
+ /**
47
+ * Add a custom object definition. Uses arrayUpsert to avoid duplicates
48
+ * (keyed on `id`). Creates the `custom_object_definitions.definitions`
49
+ * array if it doesn't exist.
50
+ */
51
+ addCustomObject(id: string, content: string, type?: string, opts?: _MutationOptions<_StripeAppManifest>): this;
52
+ /**
53
+ * Check if a custom object definition exists by id.
54
+ */
55
+ hasCustomObject(id: string): boolean;
56
+ }
57
+ /** @internal */
58
+ export declare function _openStripeAppManifest(absolutePath: string, options?: {
59
+ format?: 'json' | 'jsonc' | 'yaml';
60
+ schema?: _StandardSchemaV1;
61
+ }): Promise<_StripeAppManifestDoc>;
62
+ //# sourceMappingURL=stripe-app-manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe-app-manifest.d.ts","sourceRoot":"","sources":["../../../src/file-editor/facades/stripe-app-manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAyB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;;;;;;GAOG;AACH,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG,GAAG,MAAM,GAAG,OAAO,IAAI,MAAM,EAAE,CAAC;AAEhE,g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B,IAAI,CAAC,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,GAC1C,IAAI;IAeP;;OAEG;IACI,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;CAK5C;AAED,gBAAgB;AAChB,wBAAsB,sBAAsB,CAC1C,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE;IACP,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACnC,MAAM,CAAC,EAAE,iBAAiB,CAAC;CACvB,GACL,OAAO,CAAC,qBAAqB,CAAC,CAiBhC"}
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Typed surface for tsconfig.json `compilerOptions`. Covers the keys most
3
+ * commonly touched by build tooling; keys outside this set remain editable
4
+ * through the generic {@link _Document} API as an escape hatch.
5
+ *
6
+ * @see https://www.typescriptlang.org/tsconfig
7
+ */
8
+ /** Canonical TypeScript language-target values. */
9
+ /** @internal */
10
+ export type _TsTarget = 'ES3' | 'ES5' | 'ES6' | 'ES2015' | 'ES2016' | 'ES2017' | 'ES2018' | 'ES2019' | 'ES2020' | 'ES2021' | 'ES2022' | 'ES2023' | 'ES2024' | 'ESNext';
11
+ /** @internal */
12
+ export type _TsModule = 'None' | 'CommonJS' | 'AMD' | 'System' | 'UMD' | 'ES6' | 'ES2015' | 'ES2020' | 'ES2022' | 'ESNext' | 'Node16' | 'NodeNext' | 'Preserve';
13
+ /** @internal */
14
+ export type _TsModuleResolution = 'Classic' | 'Node' | 'Node10' | 'Node16' | 'NodeNext' | 'Bundler';
15
+ /** @internal */
16
+ export type _TsJsx = 'preserve' | 'react' | 'react-jsx' | 'react-jsxdev' | 'react-native';
17
+ /** Typed subset of `compilerOptions`. Unknown keys can still be set via the generic API. */
18
+ /** @internal */
19
+ export interface _CompilerOptions {
20
+ readonly target?: _TsTarget;
21
+ readonly module?: _TsModule;
22
+ readonly moduleResolution?: _TsModuleResolution;
23
+ readonly lib?: readonly string[];
24
+ readonly types?: readonly string[];
25
+ readonly jsx?: _TsJsx;
26
+ readonly jsxImportSource?: string;
27
+ readonly strict?: boolean;
28
+ readonly noImplicitAny?: boolean;
29
+ readonly strictNullChecks?: boolean;
30
+ readonly strictFunctionTypes?: boolean;
31
+ readonly strictBindCallApply?: boolean;
32
+ readonly strictPropertyInitialization?: boolean;
33
+ readonly alwaysStrict?: boolean;
34
+ readonly noImplicitThis?: boolean;
35
+ readonly noUncheckedIndexedAccess?: boolean;
36
+ readonly noImplicitOverride?: boolean;
37
+ readonly noPropertyAccessFromIndexSignature?: boolean;
38
+ readonly exactOptionalPropertyTypes?: boolean;
39
+ readonly noFallthroughCasesInSwitch?: boolean;
40
+ readonly noImplicitReturns?: boolean;
41
+ readonly noUnusedLocals?: boolean;
42
+ readonly noUnusedParameters?: boolean;
43
+ readonly useUnknownInCatchVariables?: boolean;
44
+ readonly outDir?: string;
45
+ readonly rootDir?: string;
46
+ readonly declaration?: boolean;
47
+ readonly declarationMap?: boolean;
48
+ readonly declarationDir?: string;
49
+ readonly sourceMap?: boolean;
50
+ readonly inlineSources?: boolean;
51
+ readonly noEmit?: boolean;
52
+ readonly noEmitOnError?: boolean;
53
+ readonly removeComments?: boolean;
54
+ readonly importHelpers?: boolean;
55
+ readonly downlevelIteration?: boolean;
56
+ readonly esModuleInterop?: boolean;
57
+ readonly allowSyntheticDefaultImports?: boolean;
58
+ readonly forceConsistentCasingInFileNames?: boolean;
59
+ readonly isolatedModules?: boolean;
60
+ readonly verbatimModuleSyntax?: boolean;
61
+ readonly resolveJsonModule?: boolean;
62
+ readonly skipLibCheck?: boolean;
63
+ readonly baseUrl?: string;
64
+ readonly paths?: Readonly<Record<string, readonly string[]>>;
65
+ readonly composite?: boolean;
66
+ readonly incremental?: boolean;
67
+ readonly tsBuildInfoFile?: string;
68
+ }
69
+ /**
70
+ * Key of {@link _CompilerOptions}. Method signatures use
71
+ * `<K extends _CompilerOptionKey>(name: K, value: _CompilerOptions[K])`
72
+ * so the value type is narrowed by the key.
73
+ */
74
+ /** @internal */
75
+ export type _CompilerOptionKey = keyof _CompilerOptions;
76
+ //# sourceMappingURL=tsconfig-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsconfig-options.d.ts","sourceRoot":"","sources":["../../../src/file-editor/facades/tsconfig-options.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,mDAAmD;AACnD,gBAAgB;AAChB,MAAM,MAAM,SAAS,GACjB,KAAK,GACL,KAAK,GACL,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,CAAC;AAEb,gBAAgB;AAChB,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,UAAU,GACV,KAAK,GACL,QAAQ,GACR,KAAK,GACL,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,UAAU,CAAC;AAEf,gBAAgB;AAChB,MAAM,MAAM,mBAAmB,GAC3B,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,SAAS,CAAC;AAEd,gBAAgB;AAChB,MAAM,MAAM,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,GAAG,cAAc,GAAG,cAAc,CAAC;AAE1F,4FAA4F;AAC5F,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAE/B,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;IAChD,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;I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Q,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAGtC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAChD,QAAQ,CAAC,gCAAgC,CAAC,EAAE,OAAO,CAAC;IACpD,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IACxC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;IAG7D,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACnC;AAED;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,MAAM,kBAAkB,GAAG,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Typed façade for tsconfig.json (JSONC).
3
+ *
4
+ * @see https://www.typescriptlang.org/tsconfig
5
+ */
6
+ import { _Document, type _MutationOptions } from '../document.js';
7
+ import type { _StandardSchemaV1 } from '../schema.js';
8
+ import type { _Diagnostic } from '../types.js';
9
+ import type { _CompilerOptionKey, _CompilerOptions } from './tsconfig-options.js';
10
+ /** @internal */
11
+ export type { _CompilerOptionKey, _CompilerOptions, _TsJsx, _TsModule, _TsModuleResolution, _TsTarget, } from './tsconfig-options.js';
12
+ /** Defined (non-undefined) value type at a given key. */
13
+ /** @internal */
14
+ export type _CompilerOptionValue<K extends _CompilerOptionKey> = NonNullable<_CompilerOptions[K]>;
15
+ /** @internal */
16
+ export interface _TsConfig {
17
+ readonly extends?: string | readonly string[];
18
+ readonly compilerOptions?: _CompilerOptions;
19
+ readonly include?: readonly string[];
20
+ readonly exclude?: readonly string[];
21
+ readonly files?: readonly string[];
22
+ readonly references?: readonly {
23
+ readonly path: string;
24
+ }[];
25
+ }
26
+ /** @internal */
27
+ export declare class _TsConfigDoc extends _Document<_TsConfig> {
28
+ setCompilerOption<K extends _CompilerOptionKey>(name: K, value: _CompilerOptionValue<K>, opts?: _MutationOptions<_TsConfig>): this;
29
+ ensureCompilerOption<K extends _CompilerOptionKey>(name: K, value: _CompilerOptionValue<K>, opts?: _MutationOptions<_TsConfig>): this;
30
+ addInclude(pattern: string, opts?: _MutationOptions<_TsConfig>): this;
31
+ addExclude(pattern: string, opts?: _MutationOptions<_TsConfig>): this;
32
+ addReference(path: string, opts?: _MutationOptions<_TsConfig>): this;
33
+ mustHaveCompilerOption<K extends _CompilerOptionKey>(name: K, opts?: {
34
+ readonly equals?: _CompilerOptionValue<K>;
35
+ readonly oneOf?: readonly _CompilerOptionValue<K>[];
36
+ }): _Diagnostic[];
37
+ }
38
+ /** @internal */
39
+ export declare function _openTsConfig(absolutePath: string, options?: {
40
+ format?: 'jsonc' | 'json';
41
+ schema?: _StandardSchemaV1;
42
+ }): Promise<_TsConfigDoc>;
43
+ //# sourceMappingURL=tsconfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsconfig.d.ts","sourceRoot":"","sources":["../../../src/file-editor/facades/tsconfig.ts"],"names":[],"mappings":"AAAA;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AI;IAIA,oBAAoB,CAAC,CAAC,SAAS,kBAAkB,EACtD,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAC9B,IAAI,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,GACjC,IAAI;IAIA,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAAG,IAAI;IAIrE,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAAG,IAAI;IAIrE,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAAG,IAAI;IASpE,sBAAsB,CAAC,CAAC,SAAS,kBAAkB,EACxD,IAAI,EAAE,CAAC,EACP,IAAI,GAAE;QACJ,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;QAC1C,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC;KAChD,GACL,WAAW,EAAE;CAOjB;AAMD,gBAAgB;AAChB,wBAAsB,aAAa,CACjC,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,iBAAiB,CAAA;CAAO,GACtE,OAAO,CAAC,YAAY,CAAC,CAcvB"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Canonical normalization and SHA-256 fingerprinting for drift detection.
3
+ *
4
+ * The fingerprint is invariant under: indentation, line endings, BOM,
5
+ * trailing newline, comment insertion/removal (JSONC/YAML), and object-key
6
+ * reordering. It is NOT invariant under semantic changes (value edits,
7
+ * array reordering).
8
+ *
9
+ * @see https://www.rfc-editor.org/rfc/rfc8259 — JSON
10
+ * @see https://yaml.org/spec/1.2.2/ — YAML 1.2
11
+ */
12
+ import type { _Format } from './types.js';
13
+ /**
14
+ * Produce a canonical, deterministic string form of the document's *semantic*
15
+ * content. Two documents with identical semantics produce identical canonical
16
+ * strings regardless of formatting or comments.
17
+ */
18
+ /** @internal */
19
+ export declare function _canonicalNormalize(text: string, format: _Format): string;
20
+ /** SHA-256 hex digest of the canonical-normalized form. */
21
+ /** @internal */
22
+ export declare function _fingerprint(text: string, format: _Format): string;
23
+ /** SHA-256 hex digest of arbitrary bytes (for rawSha256 tracking). */
24
+ /** @internal */
25
+ export declare function _sha256Hex(input: string | Uint8Array): string;
26
+ /**
27
+ * Deterministic stringification of a plain-JSON value.
28
+ *
29
+ * Rules:
30
+ * - Object keys sorted ascending by UTF-16 code unit.
31
+ * - Strings Unicode NFC-normalized and emitted as JSON strings.
32
+ * - Numbers: finite → canonical form (JSON.stringify); NaN/Infinity reject.
33
+ * - Arrays preserve element order (order is semantic).
34
+ * - `undefined` anywhere in an object drops the key (matches JSON semantics);
35
+ * inside an array it serializes as `null`.
36
+ */
37
+ /** @internal */
38
+ export declare function _canonicalStringify(value: unknown): string;
39
+ //# sourceMappingURL=fingerprint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fingerprint.d.ts","sourceRoot":"","sources":["../../src/file-editor/fingerprint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAWH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C;;;;GAIG;AACH,gBAAgB;AAChB,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAGzE;AAED,2DAA2D;AAC3D,gBAAgB;AAChB,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAGlE;AAED,sEAAsE;AACtE,gBAAgB;AAChB,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,MAAM,CAI7D;AA0DD;;;;;;;;;;GAUG;AACH,gBAAgB;AAChB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAE1D"}
@@ -0,0 +1,29 @@
1
+ import type { _Format, _FormatMeta, _PendingEdit } from '../types.js';
2
+ /**
3
+ * A format adapter knows how to parse a textual document, apply pending edits
4
+ * to that text while preserving formatting, and compute a canonical form for
5
+ * fingerprinting.
6
+ */
7
+ /** @internal */
8
+ export interface _FormatAdapter {
9
+ readonly format: _Format;
10
+ readonly permitsComments: boolean;
11
+ /** Parse text; throws {@link _ParseError} on failure. */
12
+ parse(text: string): {
13
+ value: unknown;
14
+ meta: _FormatMeta;
15
+ };
16
+ /**
17
+ * Apply edits to the source text and return the updated text.
18
+ * Must preserve all formatting (indent/EOL/BOM/comments) except at the
19
+ * precise locations touched by each edit.
20
+ */
21
+ applyEdits(text: string, edits: readonly _PendingEdit[], meta: _FormatMeta): string;
22
+ }
23
+ /** Default format metadata used when no source text exists yet. */
24
+ /** @internal */
25
+ export declare function _defaultMeta(): _FormatMeta;
26
+ /** Detect indentation, EOL style, BOM, and final-newline from source text. */
27
+ /** @internal */
28
+ export declare function _detectMeta(text: string): _FormatMeta;
29
+ //# sourceMappingURL=adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/file-editor/formats/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEtE;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAElC,yDAAyD;IACzD,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,WAAW,CAAA;KAAE,CAAC;IAE3D;;;;OAIG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,YAAY,EAAE,EAAE,IAAI,EAAE,WAAW,GAAG,MAAM,CAAC;CACrF;AAED,mEAAmE;AACnE,gBAAgB;AAChB,wBAAgB,YAAY,IAAI,WAAW,CAE1C;AAED,8EAA8E;AAC9E,gBAAgB;AAChB,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAOrD"}
@@ -0,0 +1,9 @@
1
+ import type { _Format } from '../types.js';
2
+ /**
3
+ * Infer a {@link _Format} for a path, optionally using the file's text to
4
+ * disambiguate. Falls back to a {@link _FormatNotSupportedError} if no
5
+ * reasonable inference is possible.
6
+ */
7
+ /** @internal */
8
+ export declare function _detectFormat(path: string, text?: string): _Format;
9
+ //# sourceMappingURL=detect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../../../src/file-editor/formats/detect.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;GAIG;AACH,gBAAgB;AAChB,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAgBlE"}
@@ -0,0 +1,13 @@
1
+ import type { _Format } from '../types.js';
2
+ import type { _FormatAdapter } from './adapter.js';
3
+ /** Look up the adapter for a format. Built-ins always resolve. @internal */
4
+ export declare function _getAdapter(format: _Format): _FormatAdapter;
5
+ /**
6
+ * Register or replace a format adapter.
7
+ * @internal
8
+ */
9
+ export declare function _registerFormatAdapter(format: _Format, adapter: _FormatAdapter): void;
10
+ export { _detectFormat } from './detect.js';
11
+ export type { _FormatAdapter } from './adapter.js';
12
+ export { _defaultMeta, _detectMeta } from './adapter.js';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/file-editor/formats/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAUnD,4EAA4E;AAC5E,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,cAAc,CAM3D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI,CAErF;AAED,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * JSON and JSONC format adapters — backed by Microsoft's `jsonc-parser`,
3
+ * which preserves comments and unrelated formatting when applying edits.
4
+ *
5
+ * @see https://github.com/microsoft/node-jsonc-parser
6
+ */
7
+ import type { _FormatAdapter } from './adapter.js';
8
+ /** JSON (strict) adapter. Comments and trailing commas cause parse errors. */
9
+ /** @internal */
10
+ export declare const jsonAdapter: _FormatAdapter;
11
+ /** JSONC adapter. Comments and trailing commas allowed. */
12
+ /** @internal */
13
+ export declare const jsoncAdapter: _FormatAdapter;
14
+ //# sourceMappingURL=jsonc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonc.d.ts","sourceRoot":"","sources":["../../../src/file-editor/formats/jsonc.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAmBH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AA6PnD,8EAA8E;AAC9E,gBAAgB;AAChB,eAAO,MAAM,WAAW,EAAE,cAAiD,CAAC;AAE5E,2DAA2D;AAC3D,gBAAgB;AAChB,eAAO,MAAM,YAAY,EAAE,cAAiD,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * YAML format adapter. Uses eemeli/yaml's Document API, which preserves
3
+ * comments, anchors, block/flow style, and key order across mutations.
4
+ *
5
+ * @see https://eemeli.org/yaml/
6
+ * @see https://yaml.org/spec/1.2.2/
7
+ */
8
+ import type { _FormatAdapter } from './adapter.js';
9
+ /** @internal */
10
+ export declare const yamlAdapter: _FormatAdapter;
11
+ //# sourceMappingURL=yaml.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yaml.d.ts","sourceRoot":"","sources":["../../../src/file-editor/formats/yaml.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGnD,gBAAgB;AAChB,eAAO,MAAM,WAAW,EAAE,cAuDzB,CAAC"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Public entry point for file-editor.
3
+ *
4
+ * @see https://datatracker.ietf.org/doc/html/rfc6901 — JSON Pointer
5
+ * @see https://www.rfc-editor.org/rfc/rfc8259 — JSON
6
+ * @see https://yaml.org/spec/1.2.2/ — YAML 1.2
7
+ */
8
+ export { _Document, _openDocumentFromDisk } from './document.js';
9
+ export type { _MutationOptions, _OpenDocumentOptions, _NarrowedValue, _NarrowedPartial, _NarrowedElement, } from './document.js';
10
+ export { _beginTransaction, _openDocument, _Transaction } from './transaction.js';
11
+ export type { _CommitOptions, _CommitReport, _TransactionOptions, } from './transaction.js';
12
+ export { _compilePointer, _escapeToken, _hasPointer, _parseArrayIndex, _parsePointer, _pointer, _POINTER_STRING, _resolvePointer, _unescapeToken, } from './pointer.js';
13
+ export type { _PointerBuilder, _PointerSegments } from './pointer.js';
14
+ export { _canonicalNormalize, _canonicalStringify, _fingerprint, _sha256Hex, } from './fingerprint.js';
15
+ export { _hunks as _diffHunks, _unified as _diffUnified } from './util/diff.js';
16
+ export type { _DiffOptions } from './util/diff.js';
17
+ export { _check, _runAssertions, _runAsyncAssertions } from './assertions/index.js';
18
+ export type { _Assertion, _AssertionContext, _AsyncAssertion, _AssertOpts, } from './assertions/index.js';
19
+ export { _SchemaValidationError, _tryValidateWithSchema, _validateWithSchema, } from './schema.js';
20
+ export type { _StandardSchemaV1 } from './schema.js';
21
+ export type { _IsUnknown, _SplitPointer, _SplitRest, _UnescapeToken, _ValueAtPointer, _StepInto, _ValueAtSegments, } from './value-at-pointer.js';
22
+ export { _defaultMeta, _detectFormat, _detectMeta, _getAdapter, _registerFormatAdapter, } from './formats/index.js';
23
+ export type { _FormatAdapter } from './formats/index.js';
24
+ export { jsonAdapter as _jsonAdapter, jsoncAdapter as _jsoncAdapter, } from './formats/jsonc.js';
25
+ export { yamlAdapter as _yamlAdapter } from './formats/yaml.js';
26
+ export type { _StateStore } from './state/store.js';
27
+ export { _InMemoryStateStore } from './state/in-memory.js';
28
+ export { _FsCentralManifestStore } from './state/fs-manifest.js';
29
+ export type { _FsCentralManifestStoreOptions } from './state/fs-manifest.js';
30
+ export { _AssertionError, _ConflictAbortedError, _ConflictError, _FileEditorError, _FormatNotSupportedError, _ParseError, _PathError, _TypeMismatchError, _WriteAbortedError, } from './errors.js';
31
+ export type { _Conflict, _ConflictPolicy, _ConflictResolution, _ConflictResolver, _ConfirmationPolicy, _Diagnostic, _DiffHunk, _DiffLine, _Format, _FormatMeta, _JsonPointer, _MergeOptions, _PendingEdit, _Severity, _StateRecord, _WriteConfirm, _WriteDecision, _WriteReason, _WriteRequest, } from './types.js';
32
+ export { _openPackageJson, _PackageJsonDoc } from './facades/package-json.js';
33
+ export type { _DepKind, _PackageJson } from './facades/package-json.js';
34
+ export { _openTsConfig, _TsConfigDoc } from './facades/tsconfig.js';
35
+ export type { _CompilerOptionKey, _CompilerOptionValue, _CompilerOptions, _TsConfig, _TsJsx, _TsModule, _TsModuleResolution, _TsTarget, } from './facades/tsconfig.js';
36
+ export { _openApiExtractor, _ApiExtractorDoc } from './facades/api-extractor.js';
37
+ export type { _ApiExtractorConfig } from './facades/api-extractor.js';
38
+ export { _openStripeAppManifest, _StripeAppManifestDoc, } from './facades/stripe-app-manifest.js';
39
+ export type { _StripeAppManifest, _StripePermission, } from './facades/stripe-app-manifest.js';
40
+ export { _isSemverRange, _isSemverVersion, _semverRange, _semverVersion, _tryParseSemverRange, _tryParseSemverVersion, } from './facades/brands.js';
41
+ export type { _SemverRange, _SemverVersion } from './facades/brands.js';
42
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/file-editor/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACjE,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAClF,YAAY,EACV,cAAc,EACd,aAAa,EACb,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,eAAe,EACf,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,QAAQ,EACR,eAAe,EACf,eAAe,EACf,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGtE,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,UAAU,GACX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAChF,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACpF,YAAY,EACV,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,WAAW,GACZ,MAAM,uBAAu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AA2B,CAAC;AAC9E,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACpE,YAAY,EACV,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,SAAS,EACT,MAAM,EACN,SAAS,EACT,mBAAmB,EACnB,SAAS,GACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACjF,YAAY,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EACV,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,74 @@
1
+ /**
2
+ * JSON Pointer parsing and resolution per RFC 6901.
3
+ *
4
+ * @see https://datatracker.ietf.org/doc/html/rfc6901
5
+ */
6
+ import type { _JsonPointer } from './types.js';
7
+ /** Decoded form of a JSON Pointer — an array of unescaped reference tokens. */
8
+ /** @internal */
9
+ export type _PointerSegments = readonly string[];
10
+ /**
11
+ * Parse a JSON Pointer string into its decoded reference tokens.
12
+ *
13
+ * The empty string `""` refers to the whole document and yields `[]`.
14
+ * `"/"` refers to the value keyed by the empty string and yields `[""]`.
15
+ *
16
+ * @throws {@link _PathError} if the pointer does not start with `/` (and is non-empty).
17
+ */
18
+ /** @internal */
19
+ export declare function _parsePointer(pointer: _JsonPointer): _PointerSegments;
20
+ /** Compile an array of raw (unescaped) tokens into a JSON Pointer string. */
21
+ /** @internal */
22
+ export declare function _compilePointer(segments: readonly (string | number)[]): _JsonPointer;
23
+ /** Unescape a single JSON Pointer reference token (RFC 6901 §4). */
24
+ /** @internal */
25
+ export declare function _unescapeToken(token: string): string;
26
+ /** Escape a raw string into its JSON Pointer reference-token form. */
27
+ /** @internal */
28
+ export declare function _escapeToken(raw: string): string;
29
+ /**
30
+ * Resolve a pointer against a plain JS value. Returns `undefined` if any segment
31
+ * of the path is missing.
32
+ *
33
+ * Array indices must be decimal digits with no leading zeros (except `"0"` itself).
34
+ * The special token `"-"` (past-the-end) always resolves to `undefined` here;
35
+ * mutation operations handle it separately.
36
+ */
37
+ /** @internal */
38
+ export declare function _resolvePointer(root: unknown, pointer: _JsonPointer): unknown;
39
+ /** Returns `true` iff a pointer resolves to a value (including `null`) in the given root. */
40
+ /** @internal */
41
+ export declare function _hasPointer(root: unknown, pointer: _JsonPointer): boolean;
42
+ /**
43
+ * Parse an array index token per RFC 6901: must be either `"0"` or a sequence
44
+ * of digits `[1-9][0-9]*`. No leading zeros, no signs, no whitespace.
45
+ *
46
+ * Returns `null` for any invalid input (including the past-the-end token `"-"`).
47
+ */
48
+ /** @internal */
49
+ export declare function _parseArrayIndex(token: string): number | null;
50
+ /**
51
+ * Proxy-based typed pointer builder. Every property access records a segment;
52
+ * the terminal `$` property yields the RFC 6901 string.
53
+ *
54
+ * ```ts
55
+ * const p = _pointer<_PackageJson>().dependencies.lodash.$; // "/dependencies/lodash"
56
+ * ```
57
+ */
58
+ /** @internal */
59
+ export declare function _pointer<T>(): _PointerBuilder<T>;
60
+ /** Terminal sentinel for the typed pointer builder. */
61
+ /** @internal */
62
+ export declare const _POINTER_STRING: "$";
63
+ /** @internal */
64
+ export type _PointerBuilder<T> = T extends readonly (infer U)[] ? {
65
+ readonly [index: number]: _PointerBuilder<U>;
66
+ readonly $: _JsonPointer;
67
+ } : T extends object ? {
68
+ readonly [K in keyof T & string]-?: _PointerBuilder<NonNullable<T[K]>>;
69
+ } & {
70
+ readonly $: _JsonPointer;
71
+ } : {
72
+ readonly $: _JsonPointer;
73
+ };
74
+ //# sourceMappingURL=pointer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pointer.d.ts","sourceRoot":"","sources":["../../src/file-editor/pointer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,+EAA+E;AAC/E,gBAAgB;AAChB,MAAM,MAAM,gBAAgB,GAAG,SAAS,MAAM,EAAE,CAAC;AAEjD;;;;;;;GAOG;AACH,gBAAgB;AAChB,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,gBAAgB,CAUrE;AAED,6EAA6E;AAC7E,gBAAgB;AAChB,wBAAgB,eAAe,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,YAAY,CAGpF;AAED,oEAAoE;AACpE,gBAAgB;AAChB,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGpD;AAED,sEAAsE;AACtE,gBAAgB;AAChB,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED;;;;;;;GAOG;AACH,gBAAgB;AAChB,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAoB7E;AAED,6FAA6F;AAC7F,gBAAgB;AAChB,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAoBzE;AAED;;;;;GAKG;AACH,gBAAgB;AAChB,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI7D;AAED;;;;;;;GAOG;AACH,gBAAgB;AAChB,wBAAgB,QAAQ,CAAC,CAAC,KAAK,eAAe,CAAC,CAAC,CAAC,CAGhD;AAED,uDAAuD;AACvD,gBAAgB;AAChB,eAAO,MAA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