@remixhq/core 0.1.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.
- package/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/api.d.ts +494 -0
- package/dist/api.js +7 -0
- package/dist/auth.d.ts +27 -0
- package/dist/auth.js +15 -0
- package/dist/binding.d.ts +16 -0
- package/dist/binding.js +11 -0
- package/dist/chunk-2WGZS7CD.js +0 -0
- package/dist/chunk-34WDQCPF.js +242 -0
- package/dist/chunk-4OCNZHHR.js +0 -0
- package/dist/chunk-54CBEP2W.js +570 -0
- package/dist/chunk-55K5GHAZ.js +252 -0
- package/dist/chunk-5H5CZKGN.js +691 -0
- package/dist/chunk-5NTOJXEZ.js +223 -0
- package/dist/chunk-7WUKH3ZD.js +221 -0
- package/dist/chunk-AE2HPMUZ.js +80 -0
- package/dist/chunk-AEAOYVIL.js +200 -0
- package/dist/chunk-BJFCN2C3.js +46 -0
- package/dist/chunk-DCU3646I.js +12 -0
- package/dist/chunk-DEWAIK5X.js +11 -0
- package/dist/chunk-DRD6EVTT.js +447 -0
- package/dist/chunk-E4KAGBU7.js +134 -0
- package/dist/chunk-EF3677RE.js +93 -0
- package/dist/chunk-EVWDYCBL.js +223 -0
- package/dist/chunk-FAZUMWBS.js +93 -0
- package/dist/chunk-GC2MOT3U.js +12 -0
- package/dist/chunk-GFOBGYW4.js +252 -0
- package/dist/chunk-INDDXWAH.js +92 -0
- package/dist/chunk-K57ZFDGC.js +15 -0
- package/dist/chunk-NDA7EJJA.js +286 -0
- package/dist/chunk-NK2DA4X6.js +357 -0
- package/dist/chunk-OJMTW22J.js +286 -0
- package/dist/chunk-OMUDRPUI.js +195 -0
- package/dist/chunk-ONKKRS2C.js +239 -0
- package/dist/chunk-OWFBBWU7.js +196 -0
- package/dist/chunk-P7EM3N73.js +46 -0
- package/dist/chunk-PR5QKMHM.js +46 -0
- package/dist/chunk-RIP2MIZL.js +710 -0
- package/dist/chunk-TQHLFQY4.js +448 -0
- package/dist/chunk-TY3SSQQK.js +688 -0
- package/dist/chunk-UGKPOCN5.js +710 -0
- package/dist/chunk-VM3CGCNX.js +46 -0
- package/dist/chunk-XOQIADCH.js +223 -0
- package/dist/chunk-YZ34ICNN.js +17 -0
- package/dist/chunk-ZBMOGUSJ.js +17 -0
- package/dist/collab.d.ts +680 -0
- package/dist/collab.js +1917 -0
- package/dist/config.d.ts +22 -0
- package/dist/config.js +9 -0
- package/dist/errors.d.ts +21 -0
- package/dist/errors.js +12 -0
- package/dist/index.cjs +1269 -0
- package/dist/index.d.cts +482 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +34 -0
- package/dist/repo.d.ts +66 -0
- package/dist/repo.js +62 -0
- package/dist/tokenProvider-BWTusyj4.d.ts +63 -0
- package/package.json +72 -0
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const configSchema: z.ZodObject<{
|
|
4
|
+
apiUrl: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
5
|
+
supabaseUrl: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
|
|
6
|
+
supabaseAnonKey: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
apiUrl: string;
|
|
9
|
+
supabaseUrl: string;
|
|
10
|
+
supabaseAnonKey: string;
|
|
11
|
+
}, {
|
|
12
|
+
apiUrl: string;
|
|
13
|
+
supabaseUrl: string;
|
|
14
|
+
supabaseAnonKey: string;
|
|
15
|
+
}>;
|
|
16
|
+
type CoreConfig = z.infer<typeof configSchema>;
|
|
17
|
+
type ResolveConfigOptions = {
|
|
18
|
+
yes?: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare function resolveConfig(_opts?: ResolveConfigOptions): Promise<CoreConfig>;
|
|
21
|
+
|
|
22
|
+
export { type CoreConfig, type ResolveConfigOptions, configSchema, resolveConfig };
|
package/dist/config.js
ADDED
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare class RemixError extends Error {
|
|
2
|
+
readonly code: string | null;
|
|
3
|
+
readonly exitCode: number;
|
|
4
|
+
readonly hint: string | null;
|
|
5
|
+
constructor(message: string, opts?: {
|
|
6
|
+
code?: string | null;
|
|
7
|
+
exitCode?: number;
|
|
8
|
+
hint?: string | null;
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const REMIX_ERROR_CODES: {
|
|
13
|
+
readonly REPO_LOCK_HELD: "REPO_LOCK_HELD";
|
|
14
|
+
readonly REPO_LOCK_TIMEOUT: "REPO_LOCK_TIMEOUT";
|
|
15
|
+
readonly REPO_LOCK_STALE_RECOVERED: "REPO_LOCK_STALE_RECOVERED";
|
|
16
|
+
readonly REPO_STATE_CHANGED_DURING_OPERATION: "REPO_STATE_CHANGED_DURING_OPERATION";
|
|
17
|
+
readonly PREFERRED_BRANCH_MISMATCH: "PREFERRED_BRANCH_MISMATCH";
|
|
18
|
+
};
|
|
19
|
+
type RemixErrorCode = (typeof REMIX_ERROR_CODES)[keyof typeof REMIX_ERROR_CODES];
|
|
20
|
+
|
|
21
|
+
export { RemixError as CliError, REMIX_ERROR_CODES, RemixError, type RemixErrorCode };
|