@longtable/setup 0.1.18 → 0.1.19
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/cli.js +5 -4
- package/dist/onboarding.js +1 -7
- package/dist/types.d.ts +1 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -4,12 +4,12 @@ import { buildProviderChoices, buildQuickSetupFlow, createPersistedSetupOutput }
|
|
|
4
4
|
import { installRuntimeConfigFromStoredSetup, loadSetupOutput, renderInstallSummary, renderSetupSummary, resolveDefaultSetupPath, saveSetupAndRuntimeConfig, saveSetupOutput, serializeSetupOutput } from "./persistence.js";
|
|
5
5
|
function printUsage() {
|
|
6
6
|
console.log(`Usage:
|
|
7
|
-
longtable-setup init [--flow quickstart|interview] --provider <codex|claude> --
|
|
7
|
+
longtable-setup init [--flow quickstart|interview] --provider <codex|claude> --career-stage <stage> --experience <novice|intermediate|advanced> --checkpoint <low|balanced|high> [--field <field>] [--authorship-signal <text>] [--entry-mode <explore|review|critique|draft|commit>] [--weakest-domain <theory|methodology|measurement|analysis|writing>] [--panel-preference <synthesis_only|show_on_conflict|always_visible>] [--json]
|
|
8
8
|
longtable-setup install [--path <file>] [--runtime-path <file>] [--json]
|
|
9
9
|
longtable-setup show [--path <file>] [--json]
|
|
10
10
|
|
|
11
11
|
Example:
|
|
12
|
-
longtable-setup init --flow interview --provider codex --
|
|
12
|
+
longtable-setup init --flow interview --provider codex --career-stage doctoral --experience intermediate --checkpoint balanced --entry-mode explore --panel-preference show_on_conflict --json
|
|
13
13
|
|
|
14
14
|
If required flags are omitted, interactive setup starts automatically.
|
|
15
15
|
Use --write to save setup.json and --install to also generate provider runtime config.`);
|
|
@@ -42,7 +42,9 @@ function requireString(args, key) {
|
|
|
42
42
|
}
|
|
43
43
|
function toSetupAnswers(args) {
|
|
44
44
|
return {
|
|
45
|
-
field:
|
|
45
|
+
field: typeof args.field === "string" && args.field.trim().length > 0
|
|
46
|
+
? args.field.trim()
|
|
47
|
+
: "unspecified",
|
|
46
48
|
careerStage: requireString(args, "career-stage"),
|
|
47
49
|
experienceLevel: requireString(args, "experience"),
|
|
48
50
|
preferredCheckpointIntensity: requireString(args, "checkpoint"),
|
|
@@ -63,7 +65,6 @@ function toSetupAnswers(args) {
|
|
|
63
65
|
function hasCompleteFlagInput(args) {
|
|
64
66
|
const requiredKeys = [
|
|
65
67
|
"provider",
|
|
66
|
-
"field",
|
|
67
68
|
"career-stage",
|
|
68
69
|
"experience",
|
|
69
70
|
"checkpoint"
|
package/dist/onboarding.js
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { createEmptyResearchState } from "@longtable/memory";
|
|
2
2
|
export function buildQuickSetupFlow(flow = "quickstart") {
|
|
3
3
|
const baseQuestions = [
|
|
4
|
-
{
|
|
5
|
-
id: "field",
|
|
6
|
-
prompt: "Before we begin, which research field best matches your work right now?",
|
|
7
|
-
required: true,
|
|
8
|
-
kind: "single_choice",
|
|
9
|
-
choices: buildFieldChoices()
|
|
10
|
-
},
|
|
11
4
|
{
|
|
12
5
|
id: "careerStage",
|
|
13
6
|
prompt: "What kind of researcher role best fits you today?",
|
|
@@ -144,6 +137,7 @@ export function normalizeProviderChoice(choice) {
|
|
|
144
137
|
}
|
|
145
138
|
export function createResearcherProfileSeed(answers) {
|
|
146
139
|
return {
|
|
140
|
+
field: answers.field ?? "unspecified",
|
|
147
141
|
currentProjectType: answers.currentProjectType ?? "unspecified research task",
|
|
148
142
|
...answers,
|
|
149
143
|
aiAutonomyPreference: answers.experienceLevel === "advanced"
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longtable/setup",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Researcher onboarding and setup flows for LongTable",
|
|
6
6
|
"type": "module",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@longtable/core": "0.1.
|
|
27
|
-
"@longtable/memory": "0.1.
|
|
26
|
+
"@longtable/core": "0.1.19",
|
|
27
|
+
"@longtable/memory": "0.1.19"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^22.0.0",
|