@sprucelabs/spruce-cli 19.1.26 → 19.1.28
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/CHANGELOG.md +16 -0
- package/build/.spruce/errors/options.types.d.ts +1 -1
- package/build/.spruce/events/heartwood/didRegisterSkillViews.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/generateUrl.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/getActiveTheme.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/getSkillViews.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/listViews.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/registerDashboardCards.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/registerSkillViews.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/upsertTheme.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/spruceCli/registerSkillViews.v2021_04_11.contract.d.ts +1 -1
- package/build/GlobalEmitter.d.ts +2 -2
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js +2 -2
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js +2 -2
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js.map +1 -1
- package/build/__tests__/implementation/ArgParser.test.js +2 -2
- package/build/__tests__/implementation/ArgParser.test.js.map +1 -1
- package/build/__tests__/implementation/BulkImporting.test.js +2 -2
- package/build/__tests__/implementation/BulkImporting.test.js.map +1 -1
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js +2 -2
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js.map +1 -1
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js +2 -2
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js.map +1 -1
- package/build/__tests__/implementation/FeaturesUtil.test.js +2 -2
- package/build/__tests__/implementation/FeaturesUtil.test.js.map +1 -1
- package/build/__tests__/implementation/JestJsonParser.test.js +2 -2
- package/build/__tests__/implementation/JestJsonParser.test.js.map +1 -1
- package/build/__tests__/testDirsAndFiles/event_with_emit_and_response_payloads/event.options.d.ts +1 -1
- package/build/components/FormComponent.d.ts +2 -2
- package/build/components/QuizComponent.d.ts +4 -4
- package/build/features/AbstractAction.d.ts +1 -1
- package/build/features/ActionFactory.d.ts +1 -1
- package/build/features/ActionQuestionAsker.d.ts +1 -1
- package/build/features/cache/actions/DisableAction.d.ts +2 -2
- package/build/features/cache/actions/EnableAction.d.ts +2 -2
- package/build/features/conversation/actions/CreateAction.d.ts +2 -2
- package/build/features/conversation/actions/TestAction.d.ts +2 -2
- package/build/features/dependencies/actions/AddAction.d.ts +2 -2
- package/build/features/dependencies/actions/ManageAction.d.ts +1 -1
- package/build/features/deploy/actions/HerokuAction.d.ts +2 -2
- package/build/features/error/actions/CreateAction.d.ts +2 -2
- package/build/features/error/actions/SyncAction.d.ts +2 -2
- package/build/features/event/actions/CreateAction.d.ts +1 -1
- package/build/features/event/actions/ListenAction.d.ts +1 -1
- package/build/features/event/actions/SetRemoteAction.d.ts +2 -2
- package/build/features/event/actions/SyncAction.d.ts +2 -2
- package/build/features/event/actions/SyncListenersAction.d.ts +1 -1
- package/build/features/event/builders/EventContractBuilder.d.ts +2 -2
- package/build/features/event/stores/ListenerStore.d.ts +1 -1
- package/build/features/eventContract/actions/PullAction.d.ts +2 -2
- package/build/features/features.types.d.ts +4 -4
- package/build/features/log/actions/CreateTransportAction.d.ts +2 -2
- package/build/features/node/NodeFeature.d.ts +2 -2
- package/build/features/node/actions/CreateAction.d.ts +2 -2
- package/build/features/node/actions/UpdateDependenciesAction.d.ts +2 -2
- package/build/features/node/actions/UpgradeAction.d.ts +2 -2
- package/build/features/onboard/ScriptPlayer.d.ts +4 -4
- package/build/features/onboard/actions/OnboardAction.d.ts +2 -2
- package/build/features/onboard/stores/OnboardingStore.d.ts +3 -3
- package/build/features/organization/actions/CreateAction.d.ts +2 -2
- package/build/features/organization/actions/InstallAction.d.ts +2 -2
- package/build/features/permission/actions/CreateAction.d.ts +2 -2
- package/build/features/permission/actions/SyncAction.d.ts +2 -2
- package/build/features/permission/stores/PermissionStore.d.ts +1 -1
- package/build/features/person/actions/LoginAction.d.ts +2 -2
- package/build/features/person/actions/LogoutAction.d.ts +1 -1
- package/build/features/person/actions/WhoamiAction.d.ts +1 -1
- package/build/features/polish/actions/SetupAction.d.ts +1 -1
- package/build/features/sandbox/actions/SetupAction.d.ts +1 -1
- package/build/features/schema/actions/CreateAction.d.ts +2 -2
- package/build/features/schema/actions/SyncAction.d.ts +2 -2
- package/build/features/schema/actions/SyncFieldsAction.d.ts +1 -1
- package/build/features/skill/SkillFeature.d.ts +3 -3
- package/build/features/skill/actions/BootAction.d.ts +2 -2
- package/build/features/skill/actions/CreateAction.d.ts +2 -2
- package/build/features/skill/actions/DashboardAction.d.ts +1 -1
- package/build/features/skill/actions/LoginAction.d.ts +2 -2
- package/build/features/skill/actions/RebuildAction.d.ts +2 -2
- package/build/features/skill/actions/RegisterAction.d.ts +2 -2
- package/build/features/skill/updaters/Updater.d.ts +2 -2
- package/build/features/store/actions/CreateAction.d.ts +2 -2
- package/build/features/store/actions/SyncAction.d.ts +2 -2
- package/build/features/test/TestReporter.d.ts +2 -2
- package/build/features/test/TestRunner.d.ts +1 -1
- package/build/features/test/actions/CreateAction.d.ts +2 -2
- package/build/features/test/actions/SetupAction.d.ts +2 -2
- package/build/features/test/actions/TestAction.d.ts +1 -1
- package/build/features/test/test.types.d.ts +2 -2
- package/build/features/universalFileDescriptions.js +4 -0
- package/build/features/universalFileDescriptions.js.map +1 -1
- package/build/features/validateAndNormalize.utility.d.ts +1 -1
- package/build/features/view/actions/CreateAction.d.ts +1 -1
- package/build/features/view/actions/CreateThemeAction.d.ts +1 -1
- package/build/features/view/actions/SyncAction.d.ts +1 -1
- package/build/features/view/actions/WatchAction.d.ts +1 -1
- package/build/features/vscode/actions/SetupAction.d.ts +2 -2
- package/build/interfaces/SpyInterface.d.ts +2 -2
- package/build/interfaces/TerminalInterface.d.ts +1 -1
- package/build/interfaces/TerminalInterface.js +2 -2
- package/build/interfaces/TerminalInterface.js.map +1 -1
- package/build/services/ServiceFactory.d.ts +1 -1
- package/build/stores/AbstractStore.d.ts +1 -1
- package/build/stores/StoreFactory.d.ts +2 -2
- package/build/tests/AbstractCliTest.d.ts +1 -1
- package/build/tests/AbstractCliTest.js +2 -2
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/CommandFaker.d.ts +1 -1
- package/build/tests/JestJsonParser.d.ts +2 -2
- package/build/tests/MockProgramFactory.d.ts +1 -1
- package/build/tests/buildTestCache.js +1 -1
- package/build/tests/buildTestCache.js.map +1 -1
- package/build/tests/cleanTestData.js +2 -2
- package/build/tests/cleanTestData.js.map +1 -1
- package/build/types/apiClient.types.d.ts +3 -3
- package/build/types/cli.types.d.ts +10 -10
- package/build/utilities/apiClient.utility.d.ts +1 -1
- package/build/utilities/introspection.utility.d.ts +1 -1
- package/build/utilities/introspection.utility.js +2 -2
- package/build/utilities/introspection.utility.js.map +1 -1
- package/build/widgets/WidgetFactory.js.map +1 -1
- package/build/widgets/keySelectChoices.d.ts +2 -2
- package/build/widgets/terminalKit/TkBaseWidget.d.ts +2 -2
- package/build/widgets/types/button.types.d.ts +1 -1
- package/build/widgets/types/factory.types.d.ts +3 -3
- package/build/widgets/types/input.types.d.ts +1 -1
- package/build/widgets/types/layout.types.d.ts +2 -2
- package/build/widgets/types/menuBar.types.d.ts +1 -1
- package/build/widgets/types/popup.types.d.ts +1 -1
- package/build/widgets/types/text.types.d.ts +1 -1
- package/build/widgets/types/widgets.types.d.ts +2 -2
- package/build/widgets/types/window.types.d.ts +1 -1
- package/build/writers/AbstractWriter.d.ts +1 -1
- package/build/writers/WriterFactory.d.ts +1 -1
- package/package.json +41 -41
- package/src/features/universalFileDescriptions.ts +5 -0
- package/src/tests/buildTestCache.ts +4 -1
- package/src/widgets/WidgetFactory.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.CreateErrorOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.CreateErrorOptions;
|
|
6
6
|
export default class CreateAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
optionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.CreateErrorOptionsSchema;
|
|
8
8
|
invocationMessage: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.SyncErrorOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.SyncErrorOptions;
|
|
6
6
|
export default class SyncAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
optionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncErrorOptionsSchema;
|
|
8
8
|
commandAliases: string[];
|
|
@@ -70,7 +70,7 @@ declare const optionsSchema: {
|
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
type OptionsSchema = typeof optionsSchema;
|
|
74
74
|
export default class CreateAction extends AbstractAction<OptionsSchema> {
|
|
75
75
|
optionsSchema: OptionsSchema;
|
|
76
76
|
invocationMessage: string;
|
|
@@ -2,7 +2,7 @@ import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
4
|
export declare const CORE_EVENT_NAMESPACE = "mercury";
|
|
5
|
-
|
|
5
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.ListenEventOptionsSchema;
|
|
6
6
|
export default class ListenAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
optionsSchema: OptionsSchema;
|
|
8
8
|
invocationMessage: string;
|
|
@@ -19,8 +19,8 @@ declare const optionsSchema: {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
type OptionsSchema = typeof optionsSchema;
|
|
23
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
24
24
|
export default class SyncAction extends AbstractAction<OptionsSchema> {
|
|
25
25
|
commandAliases: string[];
|
|
26
26
|
optionsSchema: OptionsSchema;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.SyncEventOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.SyncEventOptions;
|
|
6
6
|
export default class SyncAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
commandAliases: string[];
|
|
8
8
|
optionsSchema: OptionsSchema;
|
|
@@ -3,7 +3,7 @@ declare const syncListenersOptionScheam: {
|
|
|
3
3
|
id: string;
|
|
4
4
|
fields: {};
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type OptionsSchema = typeof syncListenersOptionScheam;
|
|
7
7
|
export default class SyncListenerAction extends AbstractAction<OptionsSchema> {
|
|
8
8
|
optionsSchema: OptionsSchema;
|
|
9
9
|
invocationMessage: string;
|
|
@@ -6,8 +6,8 @@ import { FeatureActionResponse } from '../../features.types';
|
|
|
6
6
|
import SkillStore from '../../skill/stores/SkillStore';
|
|
7
7
|
import EventStore from '../stores/EventStore';
|
|
8
8
|
import EventWriter from '../writers/EventWriter';
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.SyncEventOptionsSchema;
|
|
10
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.SyncEventOptions;
|
|
11
11
|
export default class EventContractBuilder {
|
|
12
12
|
private optionsSchema;
|
|
13
13
|
private ui;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ListenerTemplateItem } from '@sprucelabs/spruce-templates';
|
|
2
2
|
import AbstractStore from '../../../stores/AbstractStore';
|
|
3
|
-
export
|
|
3
|
+
export type Listener = ListenerTemplateItem & {
|
|
4
4
|
path: string;
|
|
5
5
|
};
|
|
6
6
|
export default class ListenerStore extends AbstractStore {
|
|
@@ -12,8 +12,8 @@ declare const pullOptionsSchema: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
type PullOptionsSchema = typeof pullOptionsSchema;
|
|
16
|
+
type Options = SchemaValues<PullOptionsSchema>;
|
|
17
17
|
export default class PullAction extends AbstractAction<PullOptionsSchema> {
|
|
18
18
|
commandAliases: string[];
|
|
19
19
|
optionsSchema: {
|
|
@@ -15,7 +15,7 @@ export interface FeatureMap {
|
|
|
15
15
|
}
|
|
16
16
|
export interface FeatureOptionsMap {
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type InstallFeature<Keys extends keyof FeatureOptionsMap = keyof FeatureOptionsMap> = {
|
|
19
19
|
[Key in Keys]: Omit<{
|
|
20
20
|
code: Key;
|
|
21
21
|
options: FeatureOptionsMap[Key];
|
|
@@ -34,8 +34,8 @@ export interface ActionOptions {
|
|
|
34
34
|
actionExecuter: ActionExecuter;
|
|
35
35
|
apiClientFactory: ApiClientFactory;
|
|
36
36
|
}
|
|
37
|
-
export
|
|
38
|
-
export
|
|
37
|
+
export type FeatureCode = keyof FeatureMap;
|
|
38
|
+
export type FeatureExecuteOptions<F extends FeatureCode> = FeatureMap[F]['optionsSchema'] extends Schema ? SchemaValues<FeatureMap[F]['optionsSchema']> : undefined;
|
|
39
39
|
export interface InstallFeatureOptions {
|
|
40
40
|
features: InstallFeature[];
|
|
41
41
|
installFeatureDependencies?: boolean;
|
|
@@ -45,7 +45,7 @@ export interface FeatureInstallResponse {
|
|
|
45
45
|
files?: GeneratedFile[];
|
|
46
46
|
packagesInstalled?: NpmPackage[];
|
|
47
47
|
}
|
|
48
|
-
export
|
|
48
|
+
export type FeatureActionResponse = SpruceSchemas.SpruceCli.v2020_07_22.ActionResponse & FeatureInstallResponse;
|
|
49
49
|
export interface FeatureAction<S extends Schema = Schema> {
|
|
50
50
|
optionsSchema?: S;
|
|
51
51
|
commandAliases: string[];
|
|
@@ -19,8 +19,8 @@ declare const optionsSchema: {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
type OptionsSchema = typeof optionsSchema;
|
|
23
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
24
24
|
export default class CreateLogTransportAction extends AbstractAction<OptionsSchema> {
|
|
25
25
|
optionsSchema: {
|
|
26
26
|
id: string;
|
|
@@ -3,8 +3,8 @@ import { SpruceSchemas } from '@sprucelabs/spruce-core-schemas';
|
|
|
3
3
|
import { FileDescription } from '../../types/cli.types';
|
|
4
4
|
import AbstractFeature, { FeatureDependency } from '../AbstractFeature';
|
|
5
5
|
import { ActionOptions, FeatureCode } from '../features.types';
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.NodeFeatureOptionsSchema;
|
|
7
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.NodeFeatureOptions;
|
|
8
8
|
declare module '../../features/features.types' {
|
|
9
9
|
interface FeatureMap {
|
|
10
10
|
node: NodeFeature;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from '@sprucelabs/spruce-core-schemas';
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.NodeFeatureOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.NodeFeatureOptions;
|
|
6
6
|
export default class CreateAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
commandAliases: string[];
|
|
8
8
|
invocationMessage: string;
|
|
@@ -7,8 +7,8 @@ declare const optionsSchema: {
|
|
|
7
7
|
description: string;
|
|
8
8
|
fields: {};
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
type OptionsSchema = typeof optionsSchema;
|
|
11
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
12
12
|
export default class UpdateDependenciesAction extends AbstractAction<OptionsSchema> {
|
|
13
13
|
code: string;
|
|
14
14
|
optionsSchema: {
|
|
@@ -2,8 +2,8 @@ import { SchemaValues } from '@sprucelabs/schema';
|
|
|
2
2
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
3
3
|
import AbstractAction from '../../AbstractAction';
|
|
4
4
|
import { FeatureActionResponse } from '../../features.types';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.UpgradeSkillOptionsSchema;
|
|
6
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
7
7
|
export default class UpgradeAction extends AbstractAction<OptionsSchema> {
|
|
8
8
|
invocationMessage: string;
|
|
9
9
|
optionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.UpgradeSkillOptionsSchema;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GraphicsInterface } from '../../types/cli.types';
|
|
2
2
|
import OnboardingStore from './stores/OnboardingStore';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export type Script = ScriptItem[];
|
|
4
|
+
type ScriptItem = string | ScriptItemCallback;
|
|
5
|
+
type ScriptRedirect = string;
|
|
6
6
|
interface ScriptItemCallback {
|
|
7
7
|
(player: CallbackPlayer): Promise<void | ScriptRedirect> | void | ScriptRedirect;
|
|
8
8
|
}
|
|
@@ -12,7 +12,7 @@ export interface CallbackPlayer {
|
|
|
12
12
|
onboardingStore: OnboardingStore;
|
|
13
13
|
executeCommand: CommandExecuter;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type CommandExecuter = (command: string) => Promise<void>;
|
|
16
16
|
export default class ScriptPlayer {
|
|
17
17
|
private ui;
|
|
18
18
|
private scriptsByKey;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.OnboardOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.OnboardOptions;
|
|
6
6
|
export default class ListenAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
optionsSchema: OptionsSchema;
|
|
8
8
|
invocationMessage: string;
|
|
@@ -3,8 +3,8 @@ import AbstractLocalStore, { LocalStoreSettings } from '../../../stores/Abstract
|
|
|
3
3
|
import { StoreOptions } from '../../../stores/AbstractStore';
|
|
4
4
|
export interface OnboardingStoreSettings extends LocalStoreSettings, SpruceSchemas.SpruceCli.v2020_07_22.Onboarding {
|
|
5
5
|
}
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type OnboardingMode = OnboardingStoreSettings['mode'];
|
|
7
|
+
export type OnboardingStage = OnboardingStoreSettings['stage'];
|
|
8
8
|
export default class OnboardingStore extends AbstractLocalStore<OnboardingStoreSettings> {
|
|
9
9
|
readonly name = "onboarding";
|
|
10
10
|
private static cwdOverride;
|
|
@@ -15,7 +15,7 @@ export default class OnboardingStore extends AbstractLocalStore<OnboardingStoreS
|
|
|
15
15
|
private load;
|
|
16
16
|
getMode(): OnboardingMode;
|
|
17
17
|
setMode(mode: OnboardingMode): void;
|
|
18
|
-
getStage(): "create.skill" | "test" | null | undefined;
|
|
18
|
+
getStage(): NonNullable<"create.skill" | "test"> | null | undefined;
|
|
19
19
|
setStage(stage: OnboardingStage): void;
|
|
20
20
|
reset(): void;
|
|
21
21
|
static overrideCwd(cwd: string): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.CreateOrganizationOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.CreateOrganizationOptions;
|
|
6
6
|
export default class CreateAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
optionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.CreateOrganizationOptionsSchema;
|
|
8
8
|
invocationMessage: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.InstallSkillAtOrganizationOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.InstallSkillAtOrganizationOptions;
|
|
6
6
|
export default class InstallAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
commandAliases: string[];
|
|
8
8
|
optionsSchema: OptionsSchema;
|
|
@@ -27,8 +27,8 @@ declare const schema: {
|
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
|
|
31
|
-
export
|
|
30
|
+
type OptionsSchema = typeof schema;
|
|
31
|
+
export type SyncPermissionsOptions = SchemaValues<OptionsSchema>;
|
|
32
32
|
export declare function writePermissionTypesFile(options: {
|
|
33
33
|
permissions: PermissionStore;
|
|
34
34
|
shouldSyncCorePermissions: boolean | undefined;
|
|
@@ -13,4 +13,4 @@ export interface ImportedPermission {
|
|
|
13
13
|
permissions: string[];
|
|
14
14
|
path: string;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type ListPermContractsTargetAndPayload = SpruceSchemas.Mercury.v2020_12_25.ListPermissionContractsEmitTargetAndPayload;
|
|
@@ -16,8 +16,8 @@ declare const optionsSchema: {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
type OptionsSchema = typeof optionsSchema;
|
|
20
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
21
21
|
export default class LoginAction extends AbstractAction<OptionsSchema> {
|
|
22
22
|
optionsSchema: OptionsSchema;
|
|
23
23
|
commandAliases: string[];
|
|
@@ -5,7 +5,7 @@ declare const optionsSchema: {
|
|
|
5
5
|
description: string;
|
|
6
6
|
fields: {};
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type OptionsSchema = typeof optionsSchema;
|
|
9
9
|
export default class LogoutAction extends AbstractAction<OptionsSchema> {
|
|
10
10
|
optionsSchema: OptionsSchema;
|
|
11
11
|
commandAliases: string[];
|
|
@@ -5,7 +5,7 @@ declare const optionsSchema: {
|
|
|
5
5
|
description: string;
|
|
6
6
|
fields: {};
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type OptionsSchema = typeof optionsSchema;
|
|
9
9
|
export default class WhoAmIAction extends AbstractAction<OptionsSchema> {
|
|
10
10
|
optionsSchema: OptionsSchema;
|
|
11
11
|
commandAliases: string[];
|
|
@@ -4,7 +4,7 @@ declare const optionsSchema: {
|
|
|
4
4
|
id: string;
|
|
5
5
|
fields: {};
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type OptionsSchema = typeof optionsSchema;
|
|
8
8
|
export default class SetupAction extends AbstractAction<OptionsSchema> {
|
|
9
9
|
optionsSchema: OptionsSchema;
|
|
10
10
|
invocationMessage: string;
|
|
@@ -5,7 +5,7 @@ declare const optionsSchema: {
|
|
|
5
5
|
name: string;
|
|
6
6
|
fields: {};
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type OptionsSchema = typeof optionsSchema;
|
|
9
9
|
export default class SetupAction extends AbstractAction<OptionsSchema> {
|
|
10
10
|
optionsSchema: import("@sprucelabs/mercury-types").SpruceSchemas.SpruceCli.v2020_07_22.SetupVscodeOptionsSchema;
|
|
11
11
|
invocationMessage: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import AbstractSpruceError from '@sprucelabs/error';
|
|
2
2
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
3
3
|
import AbstractAction from '../../AbstractAction';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.CreateSchemaOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.CreateSchemaOptions;
|
|
6
6
|
export default class CreateAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
optionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.CreateSchemaOptionsSchema;
|
|
8
8
|
invocationMessage: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.SyncSchemasOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.SyncSchemasOptions;
|
|
6
6
|
export default class SyncAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
optionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncSchemasOptionsSchema;
|
|
8
8
|
commandAliases: string[];
|
|
@@ -2,7 +2,7 @@ import { SchemaValues } from '@sprucelabs/schema';
|
|
|
2
2
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
3
3
|
import AbstractAction from '../../AbstractAction';
|
|
4
4
|
import { FeatureActionResponse } from '../../features.types';
|
|
5
|
-
|
|
5
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.SyncSchemaFieldsOptionsSchema;
|
|
6
6
|
export default class FieldsSyncAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
optionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncSchemaFieldsOptionsSchema;
|
|
8
8
|
commandAliases: string[];
|
|
@@ -61,8 +61,8 @@ export default class SkillFeature<S extends SkillFeatureOptionsSchema = SkillFea
|
|
|
61
61
|
files?: undefined;
|
|
62
62
|
}>;
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
type SkillFeatureOptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.SkillFeatureSchema;
|
|
65
|
+
type SkillFeatureOptions = SpruceSchemas.SpruceCli.v2020_07_22.SkillFeature;
|
|
66
66
|
declare module '../../features/features.types' {
|
|
67
67
|
interface FeatureMap {
|
|
68
68
|
skill: SkillFeature;
|
|
@@ -71,5 +71,5 @@ declare module '../../features/features.types' {
|
|
|
71
71
|
skill: SchemaValues<SkillFeatureOptionsSchema>;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
type UpgradeOptions = SpruceSchemas.SpruceCli.v2020_07_22.UpgradeSkillOptions;
|
|
75
75
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.BootSkillOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.BootSkillOptions;
|
|
6
6
|
export interface BootMeta {
|
|
7
7
|
kill: () => void;
|
|
8
8
|
pid: number;
|
|
@@ -25,8 +25,8 @@ declare const optionsSchema: {
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
type OptionsSchema = typeof optionsSchema;
|
|
29
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
30
30
|
export default class CreateAction extends AbstractAction<OptionsSchema> {
|
|
31
31
|
optionsSchema: {
|
|
32
32
|
id: string;
|
|
@@ -6,7 +6,7 @@ export declare const optionsSchema: {
|
|
|
6
6
|
description: string;
|
|
7
7
|
fields: {};
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type DashboardActionDefinition = typeof optionsSchema;
|
|
10
10
|
export default class DashboardAction extends AbstractAction<DashboardActionDefinition> {
|
|
11
11
|
optionsSchema: {
|
|
12
12
|
id: string;
|
|
@@ -11,8 +11,8 @@ declare const optionsSchema: {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
type OptionsSchema = typeof optionsSchema;
|
|
15
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
16
16
|
export default class LoginAction extends AbstractAction<OptionsSchema> {
|
|
17
17
|
optionsSchema: OptionsSchema;
|
|
18
18
|
commandAliases: string[];
|
|
@@ -12,8 +12,8 @@ declare const optionsSchema: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
type OptionsSchema = typeof optionsSchema;
|
|
16
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
17
17
|
export default class RebuildAction extends AbstractAction<OptionsSchema> {
|
|
18
18
|
optionsSchema: OptionsSchema;
|
|
19
19
|
commandAliases: string[];
|
|
@@ -31,6 +31,6 @@ declare const optionsSchema: {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
type OptionsSchema = typeof optionsSchema;
|
|
35
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
36
36
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
2
2
|
import { GlobalEmitter } from '../../../GlobalEmitter';
|
|
3
3
|
import AbstractFeature from '../../AbstractFeature';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type UpgradeOptions = SpruceSchemas.SpruceCli.v2020_07_22.UpgradeSkillOptions;
|
|
5
|
+
type Feature = AbstractFeature<SpruceSchemas.SpruceCli.v2020_07_22.SkillFeatureSchema>;
|
|
6
6
|
export default class Updater {
|
|
7
7
|
private feature;
|
|
8
8
|
private emitter;
|
|
@@ -34,8 +34,8 @@ declare const optionsSchema: {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
type OptionsSchema = typeof optionsSchema;
|
|
38
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
39
39
|
export default class CreateAction extends AbstractAction<OptionsSchema> {
|
|
40
40
|
optionsSchema: {
|
|
41
41
|
id: string;
|
|
@@ -5,8 +5,8 @@ declare const optionsSchema: {
|
|
|
5
5
|
description: string;
|
|
6
6
|
fields: {};
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
type OptionsSchema = typeof optionsSchema;
|
|
9
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
10
10
|
export default class SyncAction extends AbstractAction<OptionsSchema> {
|
|
11
11
|
optionsSchema: {
|
|
12
12
|
id: string;
|
|
@@ -96,6 +96,6 @@ interface TestReporterOptions {
|
|
|
96
96
|
status?: TestRunnerStatus;
|
|
97
97
|
cwd?: string;
|
|
98
98
|
}
|
|
99
|
-
export
|
|
100
|
-
export
|
|
99
|
+
export type TestReporterOrientation = 'landscape' | 'portrait';
|
|
100
|
+
export type WatchMode = 'off' | 'standard' | 'smart';
|
|
101
101
|
export {};
|
|
@@ -30,7 +30,7 @@ declare const testRunnerContract: {
|
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
type TestRunnerContract = typeof testRunnerContract;
|
|
34
34
|
export default class TestRunner extends AbstractEventEmitter<TestRunnerContract> {
|
|
35
35
|
private cwd;
|
|
36
36
|
private commandService;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.CreateTestOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.CreateTestOptions;
|
|
6
6
|
export default class CreateAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
optionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.CreateTestOptionsSchema;
|
|
8
8
|
invocationMessage: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.SetupTestsOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.SetupTestsOptions;
|
|
6
6
|
export default class SetupAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
optionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SetupTestsOptionsSchema;
|
|
8
8
|
commandAliases: string[];
|
|
@@ -4,7 +4,7 @@ import AbstractAction from '../../AbstractAction';
|
|
|
4
4
|
import { FeatureActionResponse, ActionOptions } from '../../features.types';
|
|
5
5
|
import { WatchMode } from '../TestReporter';
|
|
6
6
|
export declare const optionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.TestOptionsSchema;
|
|
7
|
-
export
|
|
7
|
+
export type OptionsSchema = typeof optionsSchema;
|
|
8
8
|
export default class TestAction extends AbstractAction<OptionsSchema> {
|
|
9
9
|
optionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.TestOptionsSchema;
|
|
10
10
|
invocationMessage: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TestResultStatus = 'running' | 'passed' | 'failed';
|
|
2
2
|
export interface SpruceTestFileTest {
|
|
3
3
|
name: string;
|
|
4
4
|
status: 'passed' | 'failed' | 'skipped' | 'pending' | 'todo' | 'disabled' | 'focused';
|
|
@@ -21,4 +21,4 @@ export interface SpruceTestResults {
|
|
|
21
21
|
totalTestFilesComplete?: number;
|
|
22
22
|
testFiles?: SpruceTestFile[];
|
|
23
23
|
}
|
|
24
|
-
export
|
|
24
|
+
export type TestRunnerStatus = 'running' | 'stopped' | 'ready';
|
|
@@ -16,6 +16,10 @@ var universalFileDescriptions = [{
|
|
|
16
16
|
path: '.gitignore',
|
|
17
17
|
description: 'The usual suspects.',
|
|
18
18
|
shouldOverwriteWhenChanged: false
|
|
19
|
+
}, {
|
|
20
|
+
path: '.npmignore',
|
|
21
|
+
description: 'Came out of nowhere!',
|
|
22
|
+
shouldOverwriteWhenChanged: false
|
|
19
23
|
}, {
|
|
20
24
|
path: '.nvmrc',
|
|
21
25
|
description: 'Keep node at the latest.',
|