attio 0.0.1-experimental.20251031 → 0.0.1-experimental.20251104.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/README.md +0 -6
- package/lib/attio.js +683118 -22
- package/lib/build/client/generate-client-entry.js +1 -1
- package/lib/build/server/generate-server-entry.js +1 -1
- package/lib/build.js +1 -1
- package/lib/client/components/badge.d.ts +2 -2
- package/lib/client/components/badge.d.ts.map +1 -1
- package/lib/client/components/index.d.ts +1 -1
- package/lib/client/components/index.d.ts.map +1 -1
- package/lib/client/components/index.js +2 -2
- package/lib/client/components/index.js.map +1 -1
- package/lib/client/workflow/outcome-data-schema/array-node.d.ts +1 -3
- package/lib/client/workflow/outcome-data-schema/array-node.d.ts.map +1 -1
- package/lib/client/workflow/outcome-data-schema/attio-list.d.ts +1 -3
- package/lib/client/workflow/outcome-data-schema/attio-list.d.ts.map +1 -1
- package/lib/client/workflow/outcome-data-schema/attio-object.d.ts +1 -3
- package/lib/client/workflow/outcome-data-schema/attio-object.d.ts.map +1 -1
- package/lib/client/workflow/outcome-data-schema/attio-record.d.ts +1 -3
- package/lib/client/workflow/outcome-data-schema/attio-record.d.ts.map +1 -1
- package/lib/client/workflow/outcome-data-schema/attio-select.d.ts +1 -3
- package/lib/client/workflow/outcome-data-schema/attio-select.d.ts.map +1 -1
- package/lib/client/workflow/outcome-data-schema/boolean-node.d.ts +1 -3
- package/lib/client/workflow/outcome-data-schema/boolean-node.d.ts.map +1 -1
- package/lib/client/workflow/outcome-data-schema/number-node.d.ts +1 -3
- package/lib/client/workflow/outcome-data-schema/number-node.d.ts.map +1 -1
- package/lib/client/workflow/outcome-data-schema/string-node.d.ts +1 -3
- package/lib/client/workflow/outcome-data-schema/string-node.d.ts.map +1 -1
- package/lib/client/workflow/outcome-data-schema/struct-node.d.ts +1 -3
- package/lib/client/workflow/outcome-data-schema/struct-node.d.ts.map +1 -1
- package/lib/client/workflow/outcome-data-schema/timestamp-node.d.ts +1 -3
- package/lib/client/workflow/outcome-data-schema/timestamp-node.d.ts.map +1 -1
- package/lib/commands/build.js +1 -2
- package/lib/commands/dev/boot.js +1 -2
- package/lib/commands/dev/graphql-code-gen.js +1 -1
- package/lib/commands/dev/graphql-server.js +5 -6
- package/lib/commands/dev/onboarding.js +1 -2
- package/lib/commands/dev/upload.js +1 -2
- package/lib/commands/dev.js +5 -4
- package/lib/commands/init.js +9 -41
- package/lib/commands/login.js +1 -2
- package/lib/commands/logout.js +1 -2
- package/lib/commands/logs.js +1 -3
- package/lib/commands/version/create.js +1 -4
- package/lib/commands/version/list.js +1 -2
- package/lib/commands/whoami.js +1 -3
- package/lib/server/workflow/block-config/config-schema/attio-attribute.d.ts +1 -3
- package/lib/server/workflow/block-config/config-schema/attio-attribute.d.ts.map +1 -1
- package/lib/server/workflow/block-config/config-schema/attio-list.d.ts +1 -3
- package/lib/server/workflow/block-config/config-schema/attio-list.d.ts.map +1 -1
- package/lib/server/workflow/block-config/config-schema/attio-object.d.ts +1 -3
- package/lib/server/workflow/block-config/config-schema/attio-object.d.ts.map +1 -1
- package/lib/server/workflow/config-schema/array-node.d.ts +1 -3
- package/lib/server/workflow/config-schema/array-node.d.ts.map +1 -1
- package/lib/server/workflow/config-schema/attio-attribute.d.ts +1 -3
- package/lib/server/workflow/config-schema/attio-attribute.d.ts.map +1 -1
- package/lib/server/workflow/config-schema/attio-list.d.ts +1 -3
- package/lib/server/workflow/config-schema/attio-list.d.ts.map +1 -1
- package/lib/server/workflow/config-schema/attio-object.d.ts +1 -3
- package/lib/server/workflow/config-schema/attio-object.d.ts.map +1 -1
- package/lib/server/workflow/config-schema/attio-record.d.ts +1 -3
- package/lib/server/workflow/config-schema/attio-record.d.ts.map +1 -1
- package/lib/server/workflow/config-schema/attio-select.d.ts +1 -3
- package/lib/server/workflow/config-schema/attio-select.d.ts.map +1 -1
- package/lib/server/workflow/config-schema/boolean-node.d.ts +1 -3
- package/lib/server/workflow/config-schema/boolean-node.d.ts.map +1 -1
- package/lib/server/workflow/config-schema/number-node.d.ts +1 -3
- package/lib/server/workflow/config-schema/number-node.d.ts.map +1 -1
- package/lib/server/workflow/config-schema/string-node.d.ts +1 -3
- package/lib/server/workflow/config-schema/string-node.d.ts.map +1 -1
- package/lib/server/workflow/config-schema/struct-node.d.ts +1 -3
- package/lib/server/workflow/config-schema/struct-node.d.ts.map +1 -1
- package/lib/server/workflow/config-schema/timestamp-node.d.ts +1 -3
- package/lib/server/workflow/config-schema/timestamp-node.d.ts.map +1 -1
- package/lib/shared/schema-utils/array-node.d.ts +3 -9
- package/lib/shared/schema-utils/array-node.d.ts.map +1 -1
- package/lib/shared/schema-utils/base-node.d.ts +1 -3
- package/lib/shared/schema-utils/base-node.d.ts.map +1 -1
- package/lib/shared/schema-utils/index.d.ts +3 -0
- package/lib/shared/schema-utils/index.d.ts.map +1 -1
- package/lib/shared/schema-utils/normalize.d.ts +1 -3
- package/lib/shared/schema-utils/normalize.d.ts.map +1 -1
- package/lib/shared/schema-utils/optional.d.ts +5 -0
- package/lib/shared/schema-utils/optional.d.ts.map +1 -0
- package/lib/shared/schema-utils/{attio-list.js → optional.js} +1 -1
- package/lib/shared/schema-utils/optional.js.map +1 -0
- package/lib/shared/schema-utils/path.d.ts +7 -5
- package/lib/shared/schema-utils/path.d.ts.map +1 -1
- package/lib/shared/schema-utils/resolved-path.d.ts +3 -5
- package/lib/shared/schema-utils/resolved-path.d.ts.map +1 -1
- package/lib/shared/schema-utils/struct-node.d.ts +3 -9
- package/lib/shared/schema-utils/struct-node.d.ts.map +1 -1
- package/lib/shared/schema-utils/undefined-node.d.ts +5 -0
- package/lib/shared/schema-utils/undefined-node.d.ts.map +1 -0
- package/lib/shared/schema-utils/{attio-attribute.js → undefined-node.js} +1 -1
- package/lib/shared/schema-utils/undefined-node.js.map +1 -0
- package/lib/shared/schema-utils/union-node.d.ts +8 -0
- package/lib/shared/schema-utils/union-node.d.ts.map +1 -0
- package/lib/shared/schema-utils/{attio-object.js → union-node.js} +1 -1
- package/lib/shared/schema-utils/union-node.js.map +1 -0
- package/lib/shared/workflow/activator.d.ts +10 -4
- package/lib/shared/workflow/activator.d.ts.map +1 -1
- package/lib/shared/workflow/config/attio-attribute.d.ts +3 -10
- package/lib/shared/workflow/config/attio-attribute.d.ts.map +1 -1
- package/lib/shared/workflow/config/attio-list.d.ts +3 -10
- package/lib/shared/workflow/config/attio-list.d.ts.map +1 -1
- package/lib/shared/workflow/config/attio-object.d.ts +3 -10
- package/lib/shared/workflow/config/attio-object.d.ts.map +1 -1
- package/lib/shared/workflow/config/attio-record.d.ts +3 -10
- package/lib/shared/workflow/config/attio-record.d.ts.map +1 -1
- package/lib/shared/workflow/config/attio-select.d.ts +3 -10
- package/lib/shared/workflow/config/attio-select.d.ts.map +1 -1
- package/lib/shared/workflow/config/boolean-node.d.ts +3 -10
- package/lib/shared/workflow/config/boolean-node.d.ts.map +1 -1
- package/lib/shared/workflow/config/friendly-value-of.d.ts +3 -5
- package/lib/shared/workflow/config/friendly-value-of.d.ts.map +1 -1
- package/lib/shared/workflow/config/initial-values-of.d.ts +1 -1
- package/lib/shared/workflow/config/initial-values-of.d.ts.map +1 -1
- package/lib/shared/workflow/config/node.d.ts +2 -10
- package/lib/shared/workflow/config/node.d.ts.map +1 -1
- package/lib/shared/workflow/config/number-node.d.ts +3 -10
- package/lib/shared/workflow/config/number-node.d.ts.map +1 -1
- package/lib/shared/workflow/config/rich-text-node.d.ts +3 -10
- package/lib/shared/workflow/config/rich-text-node.d.ts.map +1 -1
- package/lib/shared/workflow/config/string-node.d.ts +3 -10
- package/lib/shared/workflow/config/string-node.d.ts.map +1 -1
- package/lib/shared/workflow/config/timestamp-node.d.ts +3 -10
- package/lib/shared/workflow/config/timestamp-node.d.ts.map +1 -1
- package/lib/shared/workflow/deactivator.d.ts +10 -4
- package/lib/shared/workflow/deactivator.d.ts.map +1 -1
- package/lib/shared/workflow/executor.d.ts +12 -4
- package/lib/shared/workflow/executor.d.ts.map +1 -1
- package/lib/shared/workflow/outcome-data/attio-attribute.d.ts +4 -10
- package/lib/shared/workflow/outcome-data/attio-attribute.d.ts.map +1 -1
- package/lib/shared/workflow/outcome-data/attio-entity-reference.d.ts +3 -7
- package/lib/shared/workflow/outcome-data/attio-entity-reference.d.ts.map +1 -1
- package/lib/shared/workflow/outcome-data/attio-list.d.ts +4 -10
- package/lib/shared/workflow/outcome-data/attio-list.d.ts.map +1 -1
- package/lib/shared/workflow/outcome-data/attio-object.d.ts +4 -10
- package/lib/shared/workflow/outcome-data/attio-object.d.ts.map +1 -1
- package/lib/shared/workflow/outcome-data/attio-select.d.ts +4 -10
- package/lib/shared/workflow/outcome-data/attio-select.d.ts.map +1 -1
- package/lib/shared/workflow/outcome-data/boolean-node.d.ts +3 -10
- package/lib/shared/workflow/outcome-data/boolean-node.d.ts.map +1 -1
- package/lib/shared/workflow/outcome-data/node.d.ts +2 -10
- package/lib/shared/workflow/outcome-data/node.d.ts.map +1 -1
- package/lib/shared/workflow/outcome-data/number-node.d.ts +3 -10
- package/lib/shared/workflow/outcome-data/number-node.d.ts.map +1 -1
- package/lib/shared/workflow/outcome-data/rich-text-node.d.ts +3 -10
- package/lib/shared/workflow/outcome-data/rich-text-node.d.ts.map +1 -1
- package/lib/shared/workflow/outcome-data/runtime-value-of.d.ts +1 -3
- package/lib/shared/workflow/outcome-data/runtime-value-of.d.ts.map +1 -1
- package/lib/shared/workflow/outcome-data/string-node.d.ts +3 -10
- package/lib/shared/workflow/outcome-data/string-node.d.ts.map +1 -1
- package/lib/shared/workflow/outcome-data/timestamp-node.d.ts +3 -10
- package/lib/shared/workflow/outcome-data/timestamp-node.d.ts.map +1 -1
- package/lib/spinners/determine-workspace.spinner.js +1 -2
- package/lib/spinners/get-app-info.spinner.js +1 -2
- package/lib/spinners/get-versions.spinner.js +1 -2
- package/lib/tsconfig.lib.tsbuildinfo +1 -1
- package/lib/util/assert-app-settings.js +1 -1
- package/lib/util/exit-with-missing-app-settings.js +1 -1
- package/lib/util/exit-with-missing-entry-point.js +1 -1
- package/lib/util/generate-settings-files.js +1 -1
- package/lib/util/realtime.js +1 -1
- package/package.json +3 -3
- package/lib/api/api.js +0 -183
- package/lib/api/fetcher.js +0 -69
- package/lib/api/schemas.js +0 -89
- package/lib/attio-logo.js +0 -24
- package/lib/auth/auth.js +0 -174
- package/lib/auth/keychain.js +0 -108
- package/lib/build/workflow-block-modules.js +0 -1
- package/lib/commands/init/create-project.js +0 -36
- package/lib/constants/settings-files.js +0 -2
- package/lib/env.js +0 -5
- package/lib/errors.js +0 -1
- package/lib/print-errors.js +0 -177
- package/lib/sdk-version.js +0 -1
- package/lib/shared/schema-utils/attio-attribute.d.ts +0 -12
- package/lib/shared/schema-utils/attio-attribute.d.ts.map +0 -1
- package/lib/shared/schema-utils/attio-attribute.js.map +0 -1
- package/lib/shared/schema-utils/attio-list.d.ts +0 -12
- package/lib/shared/schema-utils/attio-list.d.ts.map +0 -1
- package/lib/shared/schema-utils/attio-list.js.map +0 -1
- package/lib/shared/schema-utils/attio-object.d.ts +0 -12
- package/lib/shared/schema-utils/attio-object.d.ts.map +0 -1
- package/lib/shared/schema-utils/attio-object.js.map +0 -1
- package/lib/template/README.md +0 -21
- package/lib/template/biome.jsonc +0 -59
- package/lib/template/eslint.attio.config.js +0 -41
- package/lib/template/graphql.config.json +0 -9
- package/lib/template/package.json +0 -35
- package/lib/template/src/app.settings.ts +0 -8
- package/lib/template/src/app.ts +0 -10
- package/lib/template/src/assets/icon.png +0 -0
- package/lib/template/src/get-stoic-quote.server.ts +0 -14
- package/lib/template/src/hello-world-action.tsx +0 -18
- package/lib/template/src/hello-world-dialog.tsx +0 -27
- package/lib/template/src/stoic-quote.tsx +0 -21
- package/lib/template/tsconfig.json +0 -42
- package/lib/util/can-write.js +0 -11
- package/lib/util/copy-with-replace.js +0 -56
- package/lib/util/create-directory.js +0 -27
- package/lib/util/find-available-port.js +0 -37
- package/lib/util/hard-exit.js +0 -6
- package/lib/util/print-logo.js +0 -5
- package/lib/util/spinner.js +0 -61
- package/lib/util/text-gradient.js +0 -28
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import fs from "fs/promises";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { Project } from "ts-morph";
|
|
4
|
+
import { APP_SETTINGS_FILENAME } from "@attio/cli";
|
|
4
5
|
import { complete, errored, fromPromise, isComplete } from "@attio/fetchable-npm";
|
|
5
|
-
import { APP_SETTINGS_FILENAME } from "../../constants/settings-files.js";
|
|
6
6
|
import { getAppEntryPoint } from "../../util/get-app-entry-point.js";
|
|
7
7
|
const ASSET_FILE_EXTENSIONS = ["png"];
|
|
8
8
|
export async function generateClientEntry({ srcDirAbsolute, assetsDirAbsolute, }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from "path";
|
|
2
2
|
import { glob } from "glob";
|
|
3
|
+
import { APP_SETTINGS_FILENAME } from "@attio/cli";
|
|
3
4
|
import { combineAsync, complete, errored, isErrored } from "@attio/fetchable-npm";
|
|
4
|
-
import { APP_SETTINGS_FILENAME } from "../../constants/settings-files.js";
|
|
5
5
|
async function findServerFunctionModules(cwd, pattern) {
|
|
6
6
|
try {
|
|
7
7
|
return complete(await glob(`**/*.${pattern}.{js,ts}`, { nodir: true, cwd }));
|
package/lib/build.js
CHANGED
|
@@ -7,7 +7,7 @@ const jsErrorSchema = z.object({
|
|
|
7
7
|
length: z.number(),
|
|
8
8
|
line: z.number(),
|
|
9
9
|
lineText: z.string(),
|
|
10
|
-
additionalLines: z.array(z.string()).optional(),
|
|
10
|
+
additionalLines: z.array(z.string()).readonly().optional(),
|
|
11
11
|
namespace: z.string(),
|
|
12
12
|
suggestion: z.string(),
|
|
13
13
|
}),
|
|
@@ -2,9 +2,9 @@ import React from "react";
|
|
|
2
2
|
type BadgeColor = "amber" | "blue" | "cyan" | "green" | "grey" | "lavender" | "lime" | "orange" | "pink" | "purple" | "red" | "yellow";
|
|
3
3
|
/**
|
|
4
4
|
* A colored badge component.
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
6
|
*/
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const Badge: (props: {
|
|
8
8
|
/**
|
|
9
9
|
* The text of the tag. Only text is supported here.
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/client/components/badge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,UAAU,GACT,OAAO,GACP,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,UAAU,GACV,MAAM,GACN,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,KAAK,GACL,QAAQ,CAAA;AAEd;;;GAGG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/client/components/badge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,KAAK,UAAU,GACT,OAAO,GACP,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,UAAU,GACV,MAAM,GACN,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,KAAK,GACL,QAAQ,CAAA;AAEd;;;GAGG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,EAAE,CAAC,KAAK,EAAE;IAChC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB;;OAEG;IACH,KAAK,EAAE,UAAU,CAAA;CACpB,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { AvatarComboboxOption, CategorizedAvatarComboboxOption, CategorizedColorComboboxOption, CategorizedComboboxOption, CategorizedDecoratedComboboxOption, ComboboxOption, ComboboxOptionsProvider, DecoratedComboboxOption, DecoratedComboboxOptionsProvider, PlainComboboxOption, PlainComboboxOptionsProvider, } from "./combobox.js";
|
|
2
2
|
export { Avatar } from "./avatar.js";
|
|
3
|
-
export {
|
|
3
|
+
export { Badge } from "./badge.js";
|
|
4
4
|
export { Experimental_Banner, type PrimaryAction, type SecondaryAction } from "./banner.js";
|
|
5
5
|
export { Button } from "./button.js";
|
|
6
6
|
export { Column } from "./column.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/components/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,oBAAoB,EACpB,+BAA+B,EAC/B,8BAA8B,EAC9B,yBAAyB,EACzB,kCAAkC,EAClC,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,gCAAgC,EAChC,mBAAmB,EACnB,4BAA4B,GAC/B,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAA;AAClC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/components/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,oBAAoB,EACpB,+BAA+B,EAC/B,8BAA8B,EAC9B,yBAAyB,EACzB,kCAAkC,EAClC,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,gCAAgC,EAChC,mBAAmB,EACnB,4BAA4B,GAC/B,MAAM,eAAe,CAAA;AACtB,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAA;AAClC,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAA;AAChC,OAAO,EAAC,mBAAmB,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAC,MAAM,aAAa,CAAA;AACzF,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAA;AAClC,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAA;AAClC,OAAO,EAAC,4BAA4B,EAAC,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAC,OAAO,EAAC,MAAM,cAAc,CAAA;AACpC,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAC,yBAAyB,EAAC,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAC,GAAG,EAAC,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAC,OAAO,EAAC,MAAM,cAAc,CAAA;AACpC,OAAO,EAAC,WAAW,EAAE,KAAK,yBAAyB,EAAC,MAAM,mBAAmB,CAAA;AAC7E,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Widget = exports.Typography = exports.TextBlock = exports.StatusBadge = exports.Section = exports.Row = exports.Experimental_LoadingState = exports.Link = exports.Json = exports.Divider = exports.DialogList = exports.Experimental_DescriptionList = exports.Column = exports.Button = exports.Experimental_Banner = exports.
|
|
3
|
+
exports.Widget = exports.Typography = exports.TextBlock = exports.StatusBadge = exports.Section = exports.Row = exports.Experimental_LoadingState = exports.Link = exports.Json = exports.Divider = exports.DialogList = exports.Experimental_DescriptionList = exports.Column = exports.Button = exports.Experimental_Banner = exports.Badge = exports.Avatar = void 0;
|
|
4
4
|
var avatar_js_1 = require("./avatar.js");
|
|
5
5
|
Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return avatar_js_1.Avatar; } });
|
|
6
6
|
var badge_js_1 = require("./badge.js");
|
|
7
|
-
Object.defineProperty(exports, "
|
|
7
|
+
Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return badge_js_1.Badge; } });
|
|
8
8
|
var banner_js_1 = require("./banner.js");
|
|
9
9
|
Object.defineProperty(exports, "Experimental_Banner", { enumerable: true, get: function () { return banner_js_1.Experimental_Banner; } });
|
|
10
10
|
var button_js_1 = require("./button.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/components/index.ts"],"names":[],"mappings":";;;AAaA,yCAAkC;AAA1B,mGAAA,MAAM,OAAA;AACd,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/components/index.ts"],"names":[],"mappings":";;;AAaA,yCAAkC;AAA1B,mGAAA,MAAM,OAAA;AACd,uCAAgC;AAAxB,iGAAA,KAAK,OAAA;AACb,yCAAyF;AAAjF,gHAAA,mBAAmB,OAAA;AAC3B,yCAAkC;AAA1B,mGAAA,MAAM,OAAA;AACd,yCAAkC;AAA1B,mGAAA,MAAM,OAAA;AACd,6DAAkE;AAA1D,mIAAA,4BAA4B,OAAA;AACpC,mDAA2C;AAAnC,4GAAA,UAAU,OAAA;AAClB,2CAAoC;AAA5B,qGAAA,OAAO,OAAA;AACf,qCAA8B;AAAtB,+FAAA,IAAI,OAAA;AACZ,qCAA8B;AAAtB,+FAAA,IAAI,OAAA;AACZ,uDAA4D;AAApD,6HAAA,yBAAyB,OAAA;AACjC,mCAA4B;AAApB,6FAAA,GAAG,OAAA;AACX,2CAAoC;AAA5B,qGAAA,OAAO,OAAA;AACf,qDAA6E;AAArE,8GAAA,WAAW,OAAA;AACnB,iDAAyC;AAAjC,0GAAA,SAAS,OAAA;AACjB,iDAA0C;AAAlC,2GAAA,UAAU,OAAA;AAClB,yCAAkC;AAA1B,mGAAA,MAAM,OAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowOutcomeDataArrayNode, WorkflowOutcomeDataNode } from "../.
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function array<TElement extends WorkflowOutcomeDataNode>(element: TElement): WorkflowOutcomeDataArrayNode<TElement
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function array<TElement extends WorkflowOutcomeDataNode>(element: TElement): WorkflowOutcomeDataArrayNode<TElement>;
|
|
10
8
|
//# sourceMappingURL=array-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/array-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,4BAA4B,EAAE,uBAAuB,EAAC,MAAM,iBAAiB,CAAA;AAE1F;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,QAAQ,SAAS,uBAAuB,EAClE,OAAO,EAAE,QAAQ,GAClB,4BAA4B,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"array-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/array-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,4BAA4B,EAAE,uBAAuB,EAAC,MAAM,iBAAiB,CAAA;AAE1F;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,QAAQ,SAAS,uBAAuB,EAClE,OAAO,EAAE,QAAQ,GAClB,4BAA4B,CAAC,QAAQ,CAAC,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowOutcomeDataAttioList } from "../../../shared/workflow/outc
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function attioList(): WorkflowOutcomeDataAttioList
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function attioList(): WorkflowOutcomeDataAttioList;
|
|
10
8
|
//# sourceMappingURL=attio-list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attio-list.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/attio-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,4BAA4B,EAAC,MAAM,kDAAkD,CAAA;AAElG;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,IAAI,4BAA4B,
|
|
1
|
+
{"version":3,"file":"attio-list.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/attio-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,4BAA4B,EAAC,MAAM,kDAAkD,CAAA;AAElG;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,IAAI,4BAA4B,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowOutcomeDataAttioObject } from "../../../shared/workflow/ou
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function attioObject(): WorkflowOutcomeDataAttioObject
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function attioObject(): WorkflowOutcomeDataAttioObject;
|
|
10
8
|
//# sourceMappingURL=attio-object.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attio-object.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/attio-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,oDAAoD,CAAA;AAEtG;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,8BAA8B,
|
|
1
|
+
{"version":3,"file":"attio-object.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/attio-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,oDAAoD,CAAA;AAEtG;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,8BAA8B,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowOutcomeDataAttioRecord } from "../../../shared/workflow";
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function attioRecord(): WorkflowOutcomeDataAttioRecord
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function attioRecord(): WorkflowOutcomeDataAttioRecord;
|
|
10
8
|
//# sourceMappingURL=attio-record.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attio-record.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/attio-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,0BAA0B,CAAA;AAE5E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,8BAA8B,
|
|
1
|
+
{"version":3,"file":"attio-record.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/attio-record.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,0BAA0B,CAAA;AAE5E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,8BAA8B,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowOutcomeDataAttioSelect } from "../../../shared";
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function attioSelect(): WorkflowOutcomeDataAttioSelect
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function attioSelect(): WorkflowOutcomeDataAttioSelect;
|
|
10
8
|
//# sourceMappingURL=attio-select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attio-select.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/attio-select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,iBAAiB,CAAA;AAEnE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,8BAA8B,
|
|
1
|
+
{"version":3,"file":"attio-select.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/attio-select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,iBAAiB,CAAA;AAEnE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,8BAA8B,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowOutcomeDataBooleanNode } from "../../../shared";
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function boolean(): WorkflowOutcomeDataBooleanNode
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function boolean(): WorkflowOutcomeDataBooleanNode;
|
|
10
8
|
//# sourceMappingURL=boolean-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/boolean-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,iBAAiB,CAAA;AAEnE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,8BAA8B,
|
|
1
|
+
{"version":3,"file":"boolean-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/boolean-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,iBAAiB,CAAA;AAEnE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,IAAI,8BAA8B,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowOutcomeDataNumberNode } from "../../../shared";
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function number(): WorkflowOutcomeDataNumberNode
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function number(): WorkflowOutcomeDataNumberNode;
|
|
10
8
|
//# sourceMappingURL=number-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/number-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,iBAAiB,CAAA;AAElE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,IAAI,6BAA6B,
|
|
1
|
+
{"version":3,"file":"number-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/number-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,iBAAiB,CAAA;AAElE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,IAAI,6BAA6B,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowOutcomeDataStringNode } from "../../../shared";
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function string(): WorkflowOutcomeDataStringNode
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function string(): WorkflowOutcomeDataStringNode;
|
|
10
8
|
//# sourceMappingURL=string-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/string-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,iBAAiB,CAAA;AAElE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,IAAI,6BAA6B,
|
|
1
|
+
{"version":3,"file":"string-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/string-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,6BAA6B,EAAC,MAAM,iBAAiB,CAAA;AAElE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,IAAI,6BAA6B,CAAA"}
|
|
@@ -6,7 +6,5 @@ import type { WorkflowOutcomeDataNode, WorkflowOutcomeDataStructNode } from "../
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function struct<TFields extends {
|
|
8
8
|
[key: string]: WorkflowOutcomeDataNode;
|
|
9
|
-
}>(fields: TFields): WorkflowOutcomeDataStructNode<TFields
|
|
10
|
-
is_optional: false;
|
|
11
|
-
}>;
|
|
9
|
+
}>(fields: TFields): WorkflowOutcomeDataStructNode<TFields>;
|
|
12
10
|
//# sourceMappingURL=struct-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"struct-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/struct-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,6BAA6B,EAAC,MAAM,iBAAiB,CAAA;AAE3F;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,SAAS;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAA;CAAC,EACnF,MAAM,EAAE,OAAO,GAChB,6BAA6B,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"struct-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/struct-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAE,6BAA6B,EAAC,MAAM,iBAAiB,CAAA;AAE3F;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,SAAS;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,CAAA;CAAC,EACnF,MAAM,EAAE,OAAO,GAChB,6BAA6B,CAAC,OAAO,CAAC,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowOutcomeDataTimestampNode } from "../../../shared";
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function timestamp(): WorkflowOutcomeDataTimestampNode
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function timestamp(): WorkflowOutcomeDataTimestampNode;
|
|
10
8
|
//# sourceMappingURL=timestamp-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timestamp-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/timestamp-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,gCAAgC,EAAC,MAAM,iBAAiB,CAAA;AAErE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,IAAI,gCAAgC,
|
|
1
|
+
{"version":3,"file":"timestamp-node.d.ts","sourceRoot":"","sources":["../../../../src/client/workflow/outcome-data-schema/timestamp-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,gCAAgC,EAAC,MAAM,iBAAiB,CAAA;AAErE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,IAAI,gCAAgC,CAAA"}
|
package/lib/commands/build.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
+
import { hardExit, spinnerify } from "@attio/cli";
|
|
2
3
|
import { isErrored } from "@attio/fetchable-npm";
|
|
3
4
|
import { assertAppSettings } from "../util/assert-app-settings.js";
|
|
4
5
|
import { ensureAppEntryPoint } from "../util/ensure-app-entry-point.js";
|
|
5
6
|
import { exitWithMissingAppSettings } from "../util/exit-with-missing-app-settings.js";
|
|
6
7
|
import { exitWithMissingEntryPoint } from "../util/exit-with-missing-entry-point.js";
|
|
7
|
-
import { hardExit } from "../util/hard-exit.js";
|
|
8
|
-
import { spinnerify } from "../util/spinner.js";
|
|
9
8
|
import { printJsError, printTsError } from "../util/typescript.js";
|
|
10
9
|
import { buildJavaScript } from "./build/build-javascript.js";
|
|
11
10
|
import { validateTypeScript } from "./build/validate-typescript.js";
|
package/lib/commands/dev/boot.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import { api, printCliVersionError, printDetermineWorkspaceError, printFetcherError, printPackageJsonError, } from "@attio/cli";
|
|
1
2
|
import { isErrored } from "@attio/fetchable-npm";
|
|
2
|
-
import { api } from "../../api/api.js";
|
|
3
|
-
import { printCliVersionError, printDetermineWorkspaceError, printFetcherError, printPackageJsonError, } from "../../print-errors.js";
|
|
4
3
|
import { determineWorkspace } from "../../spinners/determine-workspace.spinner.js";
|
|
5
4
|
import { getAppInfo } from "../../spinners/get-app-info.spinner.js";
|
|
6
5
|
import { getAppSlugFromPackageJson } from "../../spinners/get-app-slug-from-package-json.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { readFileSync } from "fs";
|
|
2
2
|
import chokidar from "chokidar";
|
|
3
3
|
import { parse } from "graphql";
|
|
4
|
+
import { hardExit } from "@attio/cli";
|
|
4
5
|
import { complete, errored, isErrored } from "@attio/fetchable-npm";
|
|
5
6
|
import { generateOperations } from "../../graphql/generate-operations.js";
|
|
6
7
|
import { GraphQLError } from "../../graphql/graphql-error.js";
|
|
7
8
|
import { findNodeModulesPath } from "../../util/find-node-modules-path.js";
|
|
8
|
-
import { hardExit } from "../../util/hard-exit.js";
|
|
9
9
|
export async function graphqlCodeGen() {
|
|
10
10
|
try {
|
|
11
11
|
const schemaPath = await findNodeModulesPath(["schema.graphql"]);
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { fileURLToPath } from "url";
|
|
2
|
-
import { dirname } from "path";
|
|
3
|
-
import path from "path";
|
|
4
1
|
import fs from "fs";
|
|
2
|
+
import path, { dirname } from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
import { graphqlServer as graphqlServerMiddleware } from "@hono/graphql-server";
|
|
5
|
+
import { serve } from "@hono/node-server";
|
|
5
6
|
import { buildSchema } from "graphql";
|
|
6
7
|
import { Hono } from "hono";
|
|
7
|
-
import { serve } from "@hono/node-server";
|
|
8
|
-
import { graphqlServer as graphqlServerMiddleware } from "@hono/graphql-server";
|
|
9
|
-
import { findAvailablePort } from "../../util/find-available-port.js";
|
|
10
8
|
import open from "open";
|
|
9
|
+
import { findAvailablePort } from "@attio/cli";
|
|
11
10
|
import { listenForKey } from "../../util/listen-for-key.js";
|
|
12
11
|
export function graphqlServer() {
|
|
13
12
|
let server = null;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import open from "open";
|
|
2
|
+
import { APP, api } from "@attio/cli";
|
|
2
3
|
import { isErrored } from "@attio/fetchable-npm";
|
|
3
|
-
import { api } from "../../api/api.js";
|
|
4
|
-
import { APP } from "../../env.js";
|
|
5
4
|
import { listenForKey } from "../../util/listen-for-key.js";
|
|
6
5
|
function prompt() {
|
|
7
6
|
process.stdout.write(`🚨 IMPORTANT: You will need to install your app in your workspace. Press "i" to open the app settings page, and then click "Install".\n\n`);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import notifier from "node-notifier";
|
|
2
|
+
import { api, spinnerify } from "@attio/cli";
|
|
2
3
|
import { combineAsync, complete, isErrored } from "@attio/fetchable-npm";
|
|
3
|
-
import { api } from "../../api/api.js";
|
|
4
|
-
import { spinnerify } from "../../util/spinner.js";
|
|
5
4
|
import { uploadBundle } from "../../util/upload-bundle.js";
|
|
6
5
|
export async function upload({ contents, devVersionId, appId, }) {
|
|
7
6
|
return await spinnerify("Uploading...", () => `Upload complete at ${new Date().toLocaleTimeString()}`, async () => {
|
package/lib/commands/dev.js
CHANGED
|
@@ -2,15 +2,13 @@ import chalk from "chalk";
|
|
|
2
2
|
import { Command, Option } from "commander";
|
|
3
3
|
import notifier from "node-notifier";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
import { authenticator, hardExit, printUploadError } from "@attio/cli";
|
|
5
6
|
import { isErrored } from "@attio/fetchable-npm";
|
|
6
|
-
import { authenticator } from "../auth/auth.js";
|
|
7
7
|
import { HIDDEN_ATTIO_DIRECTORY } from "../constants/hidden-attio-directory.js";
|
|
8
|
-
import { printUploadError } from "../print-errors.js";
|
|
9
8
|
import { addAttioHiddenDirectoryToTsConfig } from "../util/add-attio-hidden-directory-to-ts-config.js";
|
|
10
9
|
import { ensureAppEntryPoint } from "../util/ensure-app-entry-point.js";
|
|
11
10
|
import { generateGitignore } from "../util/generate-gitignore.js";
|
|
12
11
|
import { generateSettingsFiles } from "../util/generate-settings-files.js";
|
|
13
|
-
import { hardExit } from "../util/hard-exit.js";
|
|
14
12
|
import { printMessage } from "../util/print-message.js";
|
|
15
13
|
import { printJsError, printTsError } from "../util/typescript.js";
|
|
16
14
|
import { boot } from "./dev/boot.js";
|
|
@@ -144,7 +142,10 @@ export const dev = new Command("dev")
|
|
|
144
142
|
}, async (error) => {
|
|
145
143
|
haveBundlingErrors = true;
|
|
146
144
|
if (error.code === "BUILD_JAVASCRIPT_ERROR") {
|
|
147
|
-
notifyJsErrors(
|
|
145
|
+
notifyJsErrors({
|
|
146
|
+
errors: error.errors,
|
|
147
|
+
warnings: error.warnings,
|
|
148
|
+
});
|
|
148
149
|
const { errors, warnings } = error;
|
|
149
150
|
errors?.forEach((error) => printJsError(error, "error"));
|
|
150
151
|
warnings?.forEach((warning) => printJsError(warning, "warning"));
|
package/lib/commands/init.js
CHANGED
|
@@ -2,51 +2,19 @@ import boxen from "boxen";
|
|
|
2
2
|
import chalk from "chalk";
|
|
3
3
|
import { Argument, Command } from "commander";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
import { isErrored } from "@attio/fetchable-npm";
|
|
6
|
-
import { authenticator } from "../auth/auth.js";
|
|
7
|
-
import { printCreateProjectError, printFetcherError } from "../print-errors.js";
|
|
8
|
-
import { getAppInfo } from "../spinners/get-app-info.spinner.js";
|
|
9
|
-
import { printLogo } from "../util/print-logo.js";
|
|
10
|
-
import { createProject } from "./init/create-project.js";
|
|
11
5
|
export const argsSchema = z.string();
|
|
12
6
|
export const init = new Command("init")
|
|
13
|
-
.description("Initialize a new Attio app")
|
|
7
|
+
.description("Initialize a new Attio app (deprecated - use 'npm create attio' instead)")
|
|
14
8
|
.addArgument(new Argument("<app-slug>", "The app slug, chosen in the developer dashboard"))
|
|
15
|
-
.action(async (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
await authenticator.ensureAuthed();
|
|
20
|
-
const appInfoResult = await getAppInfo(appSlug);
|
|
21
|
-
if (isErrored(appInfoResult)) {
|
|
22
|
-
printFetcherError("Failed to fetch app info", appInfoResult.error);
|
|
23
|
-
process.exit(1);
|
|
24
|
-
}
|
|
25
|
-
const appInfo = appInfoResult.value;
|
|
26
|
-
const result = await createProject({
|
|
27
|
-
appSlug,
|
|
28
|
-
appInfo,
|
|
29
|
-
});
|
|
30
|
-
if (isErrored(result)) {
|
|
31
|
-
printCreateProjectError(result.error);
|
|
32
|
-
process.exit(1);
|
|
33
|
-
}
|
|
34
|
-
process.stdout.write(`${chalk.green(`SUCCESS!! 🎉 Your app directory has been created.`)}
|
|
35
|
-
|
|
36
|
-
To get started, run:
|
|
37
|
-
|
|
38
|
-
${boxen(`cd ${appSlug}\nnpm install\nnpm run dev`, {
|
|
9
|
+
.action(async (appSlug) => {
|
|
10
|
+
process.stdout.write(`${chalk.yellow("⚠️ The 'attio init' command has been deprecated.")}\n\n` +
|
|
11
|
+
`Please use the following command instead:\n\n` +
|
|
12
|
+
boxen(`npm create attio ${appSlug}`, {
|
|
39
13
|
padding: 1,
|
|
40
14
|
margin: 1,
|
|
41
15
|
borderStyle: "round",
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
process.exit(0);
|
|
47
|
-
}
|
|
48
|
-
catch (error) {
|
|
49
|
-
process.stderr.write(`${chalk.red(`✖ ${error}`)}\n`);
|
|
50
|
-
process.exit(1);
|
|
51
|
-
}
|
|
16
|
+
}) +
|
|
17
|
+
`\n` +
|
|
18
|
+
`${chalk.dim("This provides a better experience and follows npm conventions.")}\n`);
|
|
19
|
+
process.exit(0);
|
|
52
20
|
});
|
package/lib/commands/login.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
+
import { authenticator, printAuthenticationError } from "@attio/cli";
|
|
2
3
|
import { isErrored } from "@attio/fetchable-npm";
|
|
3
|
-
import { authenticator } from "../auth/auth.js";
|
|
4
|
-
import { printAuthenticationError } from "../print-errors.js";
|
|
5
4
|
export const login = new Command("login")
|
|
6
5
|
.description("Authenticate with Attio")
|
|
7
6
|
.action(async () => {
|
package/lib/commands/logout.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
+
import { getKeychain, printKeychainError } from "@attio/cli";
|
|
2
3
|
import { isErrored } from "@attio/fetchable-npm";
|
|
3
|
-
import { getKeychain } from "../auth/keychain.js";
|
|
4
|
-
import { printKeychainError } from "../print-errors.js";
|
|
5
4
|
export const logout = new Command("logout").description("Log out from Attio").action(async () => {
|
|
6
5
|
const result = await getKeychain().delete();
|
|
7
6
|
if (isErrored(result)) {
|
package/lib/commands/logs.js
CHANGED
|
@@ -2,13 +2,11 @@ import readline from "node:readline/promises";
|
|
|
2
2
|
import chalk from "chalk";
|
|
3
3
|
import { Command, Option } from "commander";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
import { authenticator, printDetermineWorkspaceError, printFetcherError, printLogSubscriptionError, printPackageJsonError, spinnerify, } from "@attio/cli";
|
|
5
6
|
import { isErrored } from "@attio/fetchable-npm";
|
|
6
|
-
import { authenticator } from "../auth/auth.js";
|
|
7
|
-
import { printDetermineWorkspaceError, printFetcherError, printLogSubscriptionError, printPackageJsonError, } from "../print-errors.js";
|
|
8
7
|
import { determineWorkspace } from "../spinners/determine-workspace.spinner.js";
|
|
9
8
|
import { getAppInfo } from "../spinners/get-app-info.spinner.js";
|
|
10
9
|
import { getAppSlugFromPackageJson } from "../spinners/get-app-slug-from-package-json.js";
|
|
11
|
-
import { spinnerify } from "../util/spinner.js";
|
|
12
10
|
import { subscribeToLogs } from "./log/subscribe-to-logs.js";
|
|
13
11
|
export const optionsSchema = z.object({
|
|
14
12
|
workspace: z.string().optional(),
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import chalk from "chalk";
|
|
2
2
|
import { Command } from "commander";
|
|
3
|
+
import { api, authenticator, printCliVersionError, printFetcherError, printPackageJsonError, spinnerify, } from "@attio/cli";
|
|
3
4
|
import { combineAsync, isErrored } from "@attio/fetchable-npm";
|
|
4
|
-
import { api } from "../../api/api.js";
|
|
5
|
-
import { authenticator } from "../../auth/auth.js";
|
|
6
|
-
import { printCliVersionError, printFetcherError, printPackageJsonError } from "../../print-errors.js";
|
|
7
5
|
import { getAppInfo } from "../../spinners/get-app-info.spinner.js";
|
|
8
6
|
import { getAppSlugFromPackageJson } from "../../spinners/get-app-slug-from-package-json.js";
|
|
9
7
|
import { getVersions } from "../../spinners/get-versions.spinner.js";
|
|
@@ -12,7 +10,6 @@ import { ensureAppEntryPoint } from "../../util/ensure-app-entry-point.js";
|
|
|
12
10
|
import { exitWithMissingAppSettings } from "../../util/exit-with-missing-app-settings.js";
|
|
13
11
|
import { exitWithMissingEntryPoint } from "../../util/exit-with-missing-entry-point.js";
|
|
14
12
|
import { loadAttioCliVersion } from "../../util/load-attio-cli-version.js";
|
|
15
|
-
import { spinnerify } from "../../util/spinner.js";
|
|
16
13
|
import { printJsError } from "../../util/typescript.js";
|
|
17
14
|
import { uploadBundle } from "../../util/upload-bundle.js";
|
|
18
15
|
import { printBuildContextError } from "../dev/prepare-build-context.js";
|
|
@@ -2,9 +2,8 @@ import chalk from "chalk";
|
|
|
2
2
|
import Table from "cli-table3";
|
|
3
3
|
import { Command } from "commander";
|
|
4
4
|
import { format as formatDate } from "date-fns";
|
|
5
|
+
import { authenticator, printFetcherError, printPackageJsonError } from "@attio/cli";
|
|
5
6
|
import { isErrored } from "@attio/fetchable-npm";
|
|
6
|
-
import { authenticator } from "../../auth/auth.js";
|
|
7
|
-
import { printFetcherError, printPackageJsonError } from "../../print-errors.js";
|
|
8
7
|
import { getAppInfo } from "../../spinners/get-app-info.spinner.js";
|
|
9
8
|
import { getAppSlugFromPackageJson } from "../../spinners/get-app-slug-from-package-json.js";
|
|
10
9
|
import { getVersions } from "../../spinners/get-versions.spinner.js";
|
package/lib/commands/whoami.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
+
import { api, getKeychain, printFetcherError } from "@attio/cli";
|
|
2
3
|
import { isErrored } from "@attio/fetchable-npm";
|
|
3
|
-
import { api } from "../api/api.js";
|
|
4
|
-
import { getKeychain } from "../auth/keychain.js";
|
|
5
|
-
import { printFetcherError } from "../print-errors.js";
|
|
6
4
|
export const whoami = new Command()
|
|
7
5
|
.name("whoami")
|
|
8
6
|
.description("Identify the current user")
|
|
@@ -4,7 +4,5 @@ import type { WorkflowBlockConfigAttioAttribute } from "../../../../shared";
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function attioAttribute(): WorkflowBlockConfigAttioAttribute
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function attioAttribute(): WorkflowBlockConfigAttioAttribute;
|
|
10
8
|
//# sourceMappingURL=attio-attribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attio-attribute.d.ts","sourceRoot":"","sources":["../../../../../src/server/workflow/block-config/config-schema/attio-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iCAAiC,EAAC,MAAM,oBAAoB,CAAA;AAEzE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,IAAI,iCAAiC,
|
|
1
|
+
{"version":3,"file":"attio-attribute.d.ts","sourceRoot":"","sources":["../../../../../src/server/workflow/block-config/config-schema/attio-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iCAAiC,EAAC,MAAM,oBAAoB,CAAA;AAEzE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,IAAI,iCAAiC,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowBlockConfigAttioList } from "../../../../shared/workflow/c
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function attioList(): WorkflowBlockConfigAttioList
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function attioList(): WorkflowBlockConfigAttioList;
|
|
10
8
|
//# sourceMappingURL=attio-list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attio-list.d.ts","sourceRoot":"","sources":["../../../../../src/server/workflow/block-config/config-schema/attio-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,4BAA4B,EAAC,MAAM,+CAA+C,CAAA;AAE/F;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,IAAI,4BAA4B,
|
|
1
|
+
{"version":3,"file":"attio-list.d.ts","sourceRoot":"","sources":["../../../../../src/server/workflow/block-config/config-schema/attio-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,4BAA4B,EAAC,MAAM,+CAA+C,CAAA;AAE/F;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,IAAI,4BAA4B,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowBlockConfigAttioObject } from "../../../../shared/workflow
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function attioObject(): WorkflowBlockConfigAttioObject
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function attioObject(): WorkflowBlockConfigAttioObject;
|
|
10
8
|
//# sourceMappingURL=attio-object.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attio-object.d.ts","sourceRoot":"","sources":["../../../../../src/server/workflow/block-config/config-schema/attio-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,iDAAiD,CAAA;AAEnG;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,8BAA8B,
|
|
1
|
+
{"version":3,"file":"attio-object.d.ts","sourceRoot":"","sources":["../../../../../src/server/workflow/block-config/config-schema/attio-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,8BAA8B,EAAC,MAAM,iDAAiD,CAAA;AAEnG;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,IAAI,8BAA8B,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { ArrayNode, WorkflowBlockConfigFriendlyNode } from "../../../shared
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function array<TElement extends WorkflowBlockConfigFriendlyNode>(element: TElement): ArrayNode<TElement
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function array<TElement extends WorkflowBlockConfigFriendlyNode>(element: TElement): ArrayNode<TElement>;
|
|
10
8
|
//# sourceMappingURL=array-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-node.d.ts","sourceRoot":"","sources":["../../../../src/server/workflow/config-schema/array-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,+BAA+B,EAAC,MAAM,iBAAiB,CAAA;AAE/E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,QAAQ,SAAS,+BAA+B,EAC1E,OAAO,EAAE,QAAQ,GAClB,SAAS,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"array-node.d.ts","sourceRoot":"","sources":["../../../../src/server/workflow/config-schema/array-node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAE,+BAA+B,EAAC,MAAM,iBAAiB,CAAA;AAE/E;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,QAAQ,SAAS,+BAA+B,EAC1E,OAAO,EAAE,QAAQ,GAClB,SAAS,CAAC,QAAQ,CAAC,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowBlockConfigAttioAttribute } from "../../../shared";
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function attioAttribute(): WorkflowBlockConfigAttioAttribute
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function attioAttribute(): WorkflowBlockConfigAttioAttribute;
|
|
10
8
|
//# sourceMappingURL=attio-attribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attio-attribute.d.ts","sourceRoot":"","sources":["../../../../src/server/workflow/config-schema/attio-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iCAAiC,EAAC,MAAM,iBAAiB,CAAA;AAEtE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,IAAI,iCAAiC,
|
|
1
|
+
{"version":3,"file":"attio-attribute.d.ts","sourceRoot":"","sources":["../../../../src/server/workflow/config-schema/attio-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iCAAiC,EAAC,MAAM,iBAAiB,CAAA;AAEtE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,IAAI,iCAAiC,CAAA"}
|
|
@@ -4,7 +4,5 @@ import type { WorkflowBlockConfigAttioList } from "../../../shared";
|
|
|
4
4
|
*
|
|
5
5
|
* @deprecated This functionality is experimental and may change in the future.
|
|
6
6
|
*/
|
|
7
|
-
export declare function attioList(): WorkflowBlockConfigAttioList
|
|
8
|
-
is_optional: false;
|
|
9
|
-
}>;
|
|
7
|
+
export declare function attioList(): WorkflowBlockConfigAttioList;
|
|
10
8
|
//# sourceMappingURL=attio-list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attio-list.d.ts","sourceRoot":"","sources":["../../../../src/server/workflow/config-schema/attio-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,4BAA4B,EAAC,MAAM,iBAAiB,CAAA;AAEjE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,IAAI,4BAA4B,
|
|
1
|
+
{"version":3,"file":"attio-list.d.ts","sourceRoot":"","sources":["../../../../src/server/workflow/config-schema/attio-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,4BAA4B,EAAC,MAAM,iBAAiB,CAAA;AAEjE;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,IAAI,4BAA4B,CAAA"}
|