@dgpholdings/greatoak-shared 1.2.85 → 1.2.86
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/dist/constants/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BodyCategories"), exports);
|
|
18
18
|
__exportStar(require("./AiExerciseVocabulary"), exports);
|
|
19
|
+
__exportStar(require("./quickStartIntents"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const QUICK_START_CLEAR_INTENTS: {
|
|
2
|
+
readonly push: "push";
|
|
3
|
+
readonly pull: "pull";
|
|
4
|
+
readonly core: "core";
|
|
5
|
+
readonly legs: "legs";
|
|
6
|
+
readonly upper: "upper";
|
|
7
|
+
readonly lower: "lower";
|
|
8
|
+
readonly cardio: "cardio";
|
|
9
|
+
readonly strength: "strength";
|
|
10
|
+
readonly fatburn: "fatburn";
|
|
11
|
+
readonly mobility: "mobility";
|
|
12
|
+
readonly fullBody: "full-body";
|
|
13
|
+
};
|
|
14
|
+
export declare const QUICK_START_INTENT_PREFIX_SEPARATOR = ": ";
|
|
15
|
+
/**
|
|
16
|
+
* Inverse map: chip-key strings ("full-body", "push") → TWorkoutType[].
|
|
17
|
+
* Order in the array matters when an intent maps to multiple types.
|
|
18
|
+
*/
|
|
19
|
+
export declare const QUICK_START_INTENT_TO_WORKOUT_TYPE: Record<(typeof QUICK_START_CLEAR_INTENTS)[keyof typeof QUICK_START_CLEAR_INTENTS], string[]>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// shared/src/constants/quickStartIntents.ts
|
|
3
|
+
//
|
|
4
|
+
// Shared between Quick Plan frontend (IntentInput chips) and backend (worker).
|
|
5
|
+
// When the frontend prefixes intentText with one of these keys followed by ":",
|
|
6
|
+
// the backend skips intent classification (Haiku) and uses the prefix directly.
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.QUICK_START_INTENT_TO_WORKOUT_TYPE = exports.QUICK_START_INTENT_PREFIX_SEPARATOR = exports.QUICK_START_CLEAR_INTENTS = void 0;
|
|
9
|
+
exports.QUICK_START_CLEAR_INTENTS = {
|
|
10
|
+
push: "push",
|
|
11
|
+
pull: "pull",
|
|
12
|
+
core: "core",
|
|
13
|
+
legs: "legs",
|
|
14
|
+
upper: "upper",
|
|
15
|
+
lower: "lower",
|
|
16
|
+
cardio: "cardio",
|
|
17
|
+
strength: "strength",
|
|
18
|
+
fatburn: "fatburn",
|
|
19
|
+
mobility: "mobility",
|
|
20
|
+
fullBody: "full-body",
|
|
21
|
+
};
|
|
22
|
+
exports.QUICK_START_INTENT_PREFIX_SEPARATOR = ": ";
|
|
23
|
+
/**
|
|
24
|
+
* Inverse map: chip-key strings ("full-body", "push") → TWorkoutType[].
|
|
25
|
+
* Order in the array matters when an intent maps to multiple types.
|
|
26
|
+
*/
|
|
27
|
+
exports.QUICK_START_INTENT_TO_WORKOUT_TYPE = {
|
|
28
|
+
push: ["push"],
|
|
29
|
+
pull: ["pull"],
|
|
30
|
+
core: ["core"],
|
|
31
|
+
legs: ["legs"],
|
|
32
|
+
upper: ["upper"],
|
|
33
|
+
lower: ["lower"],
|
|
34
|
+
cardio: ["cardio"],
|
|
35
|
+
strength: ["strength"],
|
|
36
|
+
fatburn: ["fatburn"],
|
|
37
|
+
mobility: ["mobility"],
|
|
38
|
+
"full-body": ["full-body"],
|
|
39
|
+
};
|