instant-cli 1.0.26 → 1.0.27-branch-fix-cli-effect-platform-node-imports.25703327082.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/.turbo/turbo-build.log +1 -1
- package/__tests__/authClientAddClerk.test.ts +1 -1
- package/__tests__/authClientAddGithub.test.ts +1 -1
- package/__tests__/authClientAddGoogle.test.ts +1 -1
- package/__tests__/authClientAddLinkedin.test.ts +1 -1
- package/__tests__/authClientUpdate.test.ts +1 -1
- package/__tests__/effectHelpers.ts +1 -1
- package/dist/layer.d.ts +1 -1
- package/dist/layer.d.ts.map +1 -1
- package/dist/layer.js +2 -1
- package/dist/layer.js.map +1 -1
- package/package.json +4 -4
- package/src/layer.ts +2 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test, expect, describe, vi, beforeEach } from 'vitest';
|
|
2
2
|
import { Effect, Layer, Logger } from 'effect';
|
|
3
|
-
import
|
|
3
|
+
import * as NodeContext from '@effect/platform-node/NodeContext';
|
|
4
4
|
import { GlobalOpts } from '../src/context/globalOpts.ts';
|
|
5
5
|
import { CurrentApp } from '../src/context/currentApp.ts';
|
|
6
6
|
import { InstantHttpAuthed } from '../src/lib/http.ts';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test, expect, describe, vi, beforeEach } from 'vitest';
|
|
2
2
|
import { Effect, Layer, Logger } from 'effect';
|
|
3
|
-
import
|
|
3
|
+
import * as NodeContext from '@effect/platform-node/NodeContext';
|
|
4
4
|
import { GlobalOpts } from '../src/context/globalOpts.ts';
|
|
5
5
|
import { CurrentApp } from '../src/context/currentApp.ts';
|
|
6
6
|
import { InstantHttpAuthed } from '../src/lib/http.ts';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test, expect, describe, vi, beforeEach } from 'vitest';
|
|
2
2
|
import { Effect, Layer, Logger } from 'effect';
|
|
3
|
-
import
|
|
3
|
+
import * as NodeContext from '@effect/platform-node/NodeContext';
|
|
4
4
|
import { GlobalOpts } from '../src/context/globalOpts.ts';
|
|
5
5
|
import { CurrentApp } from '../src/context/currentApp.ts';
|
|
6
6
|
import { InstantHttpAuthed } from '../src/lib/http.ts';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test, expect, describe, vi, beforeEach } from 'vitest';
|
|
2
2
|
import { Effect, Layer, Logger } from 'effect';
|
|
3
|
-
import
|
|
3
|
+
import * as NodeContext from '@effect/platform-node/NodeContext';
|
|
4
4
|
import { GlobalOpts } from '../src/context/globalOpts.ts';
|
|
5
5
|
import { CurrentApp } from '../src/context/currentApp.ts';
|
|
6
6
|
import { InstantHttpAuthed } from '../src/lib/http.ts';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { test, expect, describe, vi, beforeEach } from 'vitest';
|
|
2
2
|
import { Effect, Layer, Logger } from 'effect';
|
|
3
|
-
import
|
|
3
|
+
import * as NodeContext from '@effect/platform-node/NodeContext';
|
|
4
4
|
import { GlobalOpts } from '../src/context/globalOpts.ts';
|
|
5
5
|
import { CurrentApp } from '../src/context/currentApp.ts';
|
|
6
6
|
import { InstantHttpAuthed } from '../src/lib/http.ts';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect, Layer, Ref } from 'effect';
|
|
2
|
-
import
|
|
2
|
+
import * as NodeHttpClient from '@effect/platform-node/NodeHttpClient';
|
|
3
3
|
import { PlatformApi } from '../src/context/platformApi.ts';
|
|
4
4
|
import { CurrentApp } from '../src/context/currentApp.ts';
|
|
5
5
|
import { InstantHttpAuthedLive, InstantHttpLive } from '../src/lib/http.ts';
|
package/dist/layer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as NodeContext from '@effect/platform-node/NodeContext';
|
|
2
2
|
import { Cause, Effect, Layer } from 'effect';
|
|
3
3
|
import { PlatformApi } from './context/platformApi.ts';
|
|
4
4
|
import { PACKAGE_ALIAS_AND_FULL_NAMES } from './context/projectInfo.ts';
|
package/dist/layer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../src/layer.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../src/layer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,mCAAmC,CAAC;AAEjE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAkB,MAAM,QAAQ,CAAC;AAM9D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EACL,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,gBAAgB,EAEjB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAIhE,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,KAAK,EACpD,QAAQ,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAC7B,OAAO,CAAC,CAAC,CAA2D,CAAC;AAExE,eAAO,MAAM,cAAc,yFAqE1B,CAAC;AAwBF,eAAO,MAAM,aAAa,0LAGzB,CAAC;AAGF,eAAO,MAAM,aAAa,GAAI,8BAG3B;IACD,eAAe,EAAE,OAAO,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;CACjB,kjBAUE,CAAC;AAEJ,eAAO,MAAM,YAAY,GAAI,MAAM;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,OAAO,4BAA4B,CAAC;IACxD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,u+BAwBE,CAAC"}
|
package/dist/layer.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as NodeContext from '@effect/platform-node/NodeContext';
|
|
2
|
+
import * as NodeHttpClient from '@effect/platform-node/NodeHttpClient';
|
|
2
3
|
import { Cause, Effect, Layer, ManagedRuntime } from 'effect';
|
|
3
4
|
import { UnknownException } from 'effect/Cause';
|
|
4
5
|
import chalk from 'chalk';
|
package/dist/layer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer.js","sourceRoot":"","sources":["../src/layer.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"layer.js","sourceRoot":"","sources":["../src/layer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,mCAAmC,CAAC;AACjE,OAAO,KAAK,cAAc,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EACL,4BAA4B,EAC5B,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM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,IAAI;CAChB,CAAC,CACH,CAAC,IAAI,CACJ,KAAK,CAAC,YAAY,CAChB,aAAa,CAAC;IACZ,eAAe,EACb,IAAI,CAAC,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI;IAClE,MAAM,EAAE,IAAI,CAAC,UAAU,IAAI,KAAK;CACjC,CAAC,CACH,EACD,KAAK,CAAC,YAAY,CAChB,eAAe,CACb,IAAI,CAAC,oBAAoB,IAAI,IAAI,CAAC,MAAM,EACxC,IAAI,CAAC,WAAW,CACjB,CACF,EACD,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,CAClC,CAAC","sourcesContent":["import * as NodeContext from '@effect/platform-node/NodeContext';\nimport * as NodeHttpClient from '@effect/platform-node/NodeHttpClient';\nimport { Cause, Effect, Layer, ManagedRuntime } from 'effect';\nimport { UnknownException } from 'effect/Cause';\nimport chalk from 'chalk';\nimport { AuthTokenLive } from './context/authToken.ts';\nimport { CurrentAppLive } from './context/currentApp.ts';\nimport { GlobalOptsLive } from './context/globalOpts.ts';\nimport { PlatformApi } from './context/platformApi.ts';\nimport {\n PACKAGE_ALIAS_AND_FULL_NAMES,\n ProjectInfoLive,\n} from './context/projectInfo.ts';\nimport {\n InstantHttpAuthedLive,\n InstantHttpError,\n InstantHttpLive,\n} from './lib/http.ts';\nimport { SimpleLogLayer } from './logging.ts';\nimport { RequestError } from '@effect/platform/HttpClientError';\n\nconst runtime = ManagedRuntime.make(SimpleLogLayer);\n\nexport const runCommandEffect = <A, E, R extends never>(\n effect: Effect.Effect<A, E, R>,\n): Promise<A> => runtime.runPromise(effect.pipe(printRedErrors) as any);\n\nexport const printRedErrors = Effect.catchAllCause((cause) =>\n Effect.gen(function* () {\n const failure = Cause.failureOption(cause);\n\n // This should never happen because the catchAllCause should only fire when there IS a failure\n if (failure._tag !== 'Some') {\n return;\n }\n\n // Unwrap Effect.tryPromise's UnknownException so instanceof checks below\n // match regardless of whether the error was Effect.fail'd or thrown from a Promise.\n const theError =\n failure.value instanceof UnknownException\n ? failure.value.error\n : failure.value;\n\n // Simplify \"can't connect to url errors\" instead of printing\n // crazy stack trace\n if (theError instanceof RequestError) {\n yield* Effect.logError(theError.toString());\n return process.exit(1);\n }\n\n // Special error handling for specific error types\n if (theError instanceof InstantHttpError) {\n if (theError?.message) {\n yield* Effect.logError(\n 'Error making request to Instant API: ' + theError.message,\n );\n }\n if (Array.isArray(theError?.hint?.errors)) {\n for (const err of theError.hint.errors) {\n if (err) {\n if (typeof err === 'string') {\n yield* Effect.logError(err);\n } else {\n yield* Effect.logError(\n `${err.in ? err.in.join('->') + ': ' : ''}${err.message}`,\n );\n }\n }\n }\n }\n return process.exit(1);\n }\n\n // Print just the message if the error has a message attribute and no cause\n if (\n typeof theError === 'object' &&\n theError !== null &&\n 'message' in theError &&\n typeof theError.message === 'string' &&\n !('cause' in theError)\n ) {\n return yield* Effect.logError(theError.message).pipe(\n Effect.tap(() => {\n process.exit(1);\n }),\n );\n }\n\n return yield* Effect.logError(\n Cause.pretty(cause, { renderErrorCause: true }),\n ).pipe(\n Effect.tap(() => {\n process.exit(1);\n }),\n );\n }),\n);\n\n/**\n * Note:\n Avoid Duplicate Layer Creation\n\n Layers are memoized using reference equality. Therefore, if you have a layer that is created by calling a function like f(), you should only call that f once and re-use the resulting layer so that you are always using the same instance.\n */\n\n// TODO: make coerce param work for auth too\n\n// Base layers\nconst AuthTokenLayer = ({\n allowAdminToken = true,\n coerce = false,\n}: {\n allowAdminToken: boolean;\n coerce: boolean;\n}) =>\n Layer.provide(AuthTokenLive({ allowAdminToken, coerce }), NodeContext.layer);\n\nconst InstantHttpLayer = Layer.provide(InstantHttpLive, NodeHttpClient.layer);\n\n// Unauthenticated layer with InstantHttp + PlatformApi + GlobalOpts + NodeContext\nexport const BaseLayerLive = Layer.provideMerge(\n Layer.mergeAll(InstantHttpLayer, PlatformApi.Default, GlobalOptsLive),\n NodeContext.layer,\n);\n\n// Authenticated layer extends BaseLayerLive with InstantHttpAuthed\nexport const AuthLayerLive = ({\n allowAdminToken = true,\n coerce = false,\n}: {\n allowAdminToken: boolean;\n coerce: boolean;\n}) =>\n Layer.provideMerge(\n Layer.provideMerge(\n InstantHttpAuthedLive,\n Layer.merge(\n AuthTokenLayer({ allowAdminToken, coerce }),\n InstantHttpLayer,\n ),\n ),\n BaseLayerLive,\n );\n\nexport const WithAppLayer = (args: {\n appId?: string;\n title?: string;\n coerce: boolean;\n coerceAuth?: boolean;\n coerceLibraryInstall?: boolean;\n packageName?: keyof typeof PACKAGE_ALIAS_AND_FULL_NAMES;\n allowAdminToken?: boolean;\n applyEnv?: boolean;\n temp?: boolean;\n}) =>\n Layer.mergeAll(\n CurrentAppLive({\n coerce: args.coerce,\n appId: args.appId,\n title: args.title,\n applyEnv: args.applyEnv,\n temp: args.temp,\n }),\n ).pipe(\n Layer.provideMerge(\n AuthLayerLive({\n allowAdminToken:\n args.allowAdminToken !== undefined ? args.allowAdminToken : true,\n coerce: args.coerceAuth ?? false,\n }),\n ),\n Layer.provideMerge(\n ProjectInfoLive(\n args.coerceLibraryInstall ?? args.coerce,\n args.packageName,\n ),\n ),\n Layer.provideMerge(BaseLayerLive),\n );\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "instant-cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.27-branch-fix-cli-effect-platform-node-imports.25703327082.1",
|
|
5
5
|
"description": "Instant's CLI",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"homepage": "https://github.com/instantdb/instant/tree/main/client/packages/cli",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"strip-ansi": "^7.1.2",
|
|
51
51
|
"supports-hyperlinks": "^4.4.0",
|
|
52
52
|
"unconfig": "^7.5.0",
|
|
53
|
-
"@instantdb/core": "1.0.
|
|
54
|
-
"@instantdb/platform": "1.0.
|
|
55
|
-
"@instantdb/version": "1.0.
|
|
53
|
+
"@instantdb/core": "1.0.27-branch-fix-cli-effect-platform-node-imports.25703327082.1",
|
|
54
|
+
"@instantdb/platform": "1.0.27-branch-fix-cli-effect-platform-node-imports.25703327082.1",
|
|
55
|
+
"@instantdb/version": "1.0.27-branch-fix-cli-effect-platform-node-imports.25703327082.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@babel/core": "^7.17.9",
|
package/src/layer.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as NodeContext from '@effect/platform-node/NodeContext';
|
|
2
|
+
import * as NodeHttpClient from '@effect/platform-node/NodeHttpClient';
|
|
2
3
|
import { Cause, Effect, Layer, ManagedRuntime } from 'effect';
|
|
3
4
|
import { UnknownException } from 'effect/Cause';
|
|
4
5
|
import chalk from 'chalk';
|