copilotkit 2.0.1 → 2.0.2
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/index.js +15 -175
- package/package.json +1 -1
- package/src/commands/init.d.ts.map +1 -1
- package/src/services/api-client.d.ts +0 -7
- package/src/services/api-client.d.ts.map +1 -1
- package/src/ui/init-flow.d.ts +2 -9
- package/src/ui/init-flow.d.ts.map +1 -1
- package/src/services/feature-flags.d.ts +0 -14
- package/src/services/feature-flags.d.ts.map +0 -1
package/index.js
CHANGED
|
@@ -63,9 +63,9 @@ function setOpsFrontendUrl(url2) {
|
|
|
63
63
|
}
|
|
64
64
|
function getBuildInfo() {
|
|
65
65
|
return {
|
|
66
|
-
version: "2.0.
|
|
67
|
-
buildNumber: "
|
|
68
|
-
commitSha: "
|
|
66
|
+
version: "2.0.2",
|
|
67
|
+
buildNumber: "25375859015",
|
|
68
|
+
commitSha: "e3187072e0586422d8de0d64ce08406f77df265e"
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
var opsApiUrlOverride, opsFrontendUrlOverride;
|
|
@@ -15961,15 +15961,6 @@ function createApiClient(baseUrl, token) {
|
|
|
15961
15961
|
throw await readApiError(res);
|
|
15962
15962
|
}
|
|
15963
15963
|
return res.json();
|
|
15964
|
-
},
|
|
15965
|
-
async requestThreadsAccess() {
|
|
15966
|
-
await fetch(`${baseUrl}/api/cli/threads-interest`, {
|
|
15967
|
-
method: "POST",
|
|
15968
|
-
headers: {
|
|
15969
|
-
"Content-Type": "application/json",
|
|
15970
|
-
Authorization: `Bearer ${token}`
|
|
15971
|
-
}
|
|
15972
|
-
});
|
|
15973
15964
|
}
|
|
15974
15965
|
};
|
|
15975
15966
|
}
|
|
@@ -50341,7 +50332,7 @@ var require_backend = __commonJS({
|
|
|
50341
50332
|
}
|
|
50342
50333
|
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
50343
50334
|
},
|
|
50344
|
-
useCallback: function
|
|
50335
|
+
useCallback: function useCallback5(callback) {
|
|
50345
50336
|
var hook = nextHook();
|
|
50346
50337
|
hookLog.push({
|
|
50347
50338
|
displayName: null,
|
|
@@ -73261,22 +73252,6 @@ var init_types = __esm({
|
|
|
73261
73252
|
}
|
|
73262
73253
|
});
|
|
73263
73254
|
|
|
73264
|
-
// apps/cli/src/services/feature-flags.ts
|
|
73265
|
-
function hasThreadsAccess() {
|
|
73266
|
-
return configStore.get("threads-access") === true;
|
|
73267
|
-
}
|
|
73268
|
-
function grantThreadsAccess() {
|
|
73269
|
-
configStore.set("threads-access", true);
|
|
73270
|
-
}
|
|
73271
|
-
var THREADS_PASSWORD;
|
|
73272
|
-
var init_feature_flags = __esm({
|
|
73273
|
-
"apps/cli/src/services/feature-flags.ts"() {
|
|
73274
|
-
"use strict";
|
|
73275
|
-
init_config_service();
|
|
73276
|
-
THREADS_PASSWORD = "earlyaccess";
|
|
73277
|
-
}
|
|
73278
|
-
});
|
|
73279
|
-
|
|
73280
73255
|
// apps/cli/src/services/project-scaffold.ts
|
|
73281
73256
|
import * as fs13 from "node:fs";
|
|
73282
73257
|
import * as path9 from "node:path";
|
|
@@ -74035,20 +74010,17 @@ function InitFlow({
|
|
|
74035
74010
|
initialName,
|
|
74036
74011
|
initialIntelligence,
|
|
74037
74012
|
initialFramework,
|
|
74038
|
-
onComplete
|
|
74039
|
-
onRequestThreadsAccess
|
|
74013
|
+
onComplete
|
|
74040
74014
|
}) {
|
|
74041
74015
|
const [name, setName] = (0, import_react35.useState)(initialName ?? "");
|
|
74042
74016
|
const [nameError, setNameError] = (0, import_react35.useState)(null);
|
|
74043
|
-
const [password, setPassword] = (0, import_react35.useState)("");
|
|
74044
74017
|
function firstStep() {
|
|
74045
74018
|
if (initialName === null)
|
|
74046
74019
|
return "name";
|
|
74047
74020
|
if (initialFramework !== null)
|
|
74048
74021
|
return "done";
|
|
74049
|
-
if (initialIntelligence === true)
|
|
74050
|
-
return
|
|
74051
|
-
}
|
|
74022
|
+
if (initialIntelligence === true)
|
|
74023
|
+
return "done";
|
|
74052
74024
|
if (initialIntelligence === false)
|
|
74053
74025
|
return "framework";
|
|
74054
74026
|
return "intelligence";
|
|
@@ -74101,15 +74073,11 @@ function InitFlow({
|
|
|
74101
74073
|
return;
|
|
74102
74074
|
}
|
|
74103
74075
|
if (initialIntelligence === true) {
|
|
74104
|
-
|
|
74105
|
-
|
|
74106
|
-
|
|
74107
|
-
|
|
74108
|
-
|
|
74109
|
-
});
|
|
74110
|
-
return;
|
|
74111
|
-
}
|
|
74112
|
-
setStep("password-menu");
|
|
74076
|
+
onComplete({
|
|
74077
|
+
name: resolvedName,
|
|
74078
|
+
intelligence: true,
|
|
74079
|
+
framework: null
|
|
74080
|
+
});
|
|
74113
74081
|
return;
|
|
74114
74082
|
}
|
|
74115
74083
|
if (initialIntelligence === false) {
|
|
@@ -74120,46 +74088,11 @@ function InitFlow({
|
|
|
74120
74088
|
}
|
|
74121
74089
|
function handleIntelligenceSelect(item) {
|
|
74122
74090
|
if (item.value === "yes") {
|
|
74123
|
-
if (hasThreadsAccess()) {
|
|
74124
|
-
completeWithIntelligence();
|
|
74125
|
-
return;
|
|
74126
|
-
}
|
|
74127
|
-
setStep("password-menu");
|
|
74128
|
-
} else {
|
|
74129
|
-
setStep("framework");
|
|
74130
|
-
}
|
|
74131
|
-
}
|
|
74132
|
-
function handlePasswordMenuSelect(item) {
|
|
74133
|
-
if (item.value === "enter-password") {
|
|
74134
|
-
setStep("password-input");
|
|
74135
|
-
} else if (item.value === "request-access") {
|
|
74136
|
-
setStep("mailing-list");
|
|
74137
|
-
} else if (item.value === "skip") {
|
|
74138
|
-
setStep("framework");
|
|
74139
|
-
}
|
|
74140
|
-
}
|
|
74141
|
-
function handlePasswordSubmit(value) {
|
|
74142
|
-
if (value === THREADS_PASSWORD) {
|
|
74143
|
-
grantThreadsAccess();
|
|
74144
|
-
setPassword("");
|
|
74145
74091
|
completeWithIntelligence();
|
|
74146
74092
|
} else {
|
|
74147
|
-
setPassword("");
|
|
74148
|
-
setStep("password-wrong");
|
|
74149
|
-
}
|
|
74150
|
-
}
|
|
74151
|
-
function handlePasswordRetrySelect(item) {
|
|
74152
|
-
if (item.value === "retry") {
|
|
74153
|
-
setStep("password-input");
|
|
74154
|
-
} else if (item.value === "request-access") {
|
|
74155
|
-
setStep("mailing-list");
|
|
74156
|
-
} else if (item.value === "skip") {
|
|
74157
74093
|
setStep("framework");
|
|
74158
74094
|
}
|
|
74159
74095
|
}
|
|
74160
|
-
function handleMailingListDone() {
|
|
74161
|
-
setStep("password-menu");
|
|
74162
|
-
}
|
|
74163
74096
|
function handleFrameworkSelect(item) {
|
|
74164
74097
|
const chosen = item.value;
|
|
74165
74098
|
onComplete({
|
|
@@ -74194,91 +74127,13 @@ function InitFlow({
|
|
|
74194
74127
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { color: "gray", children: "Intelligence adds durable threads, state persistence, and insights." }),
|
|
74195
74128
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectInput_default, { items: INTELLIGENCE_CHOICES, onSelect: handleIntelligenceSelect })
|
|
74196
74129
|
] }),
|
|
74197
|
-
step === "password-menu" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
74198
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { bold: true, children: "Intelligence requires an access password." }),
|
|
74199
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectInput_default, { items: PASSWORD_MENU_CHOICES, onSelect: handlePasswordMenuSelect })
|
|
74200
|
-
] }),
|
|
74201
|
-
step === "password-input" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
74202
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { bold: true, children: "Enter your Intelligence access password" }),
|
|
74203
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { children: [
|
|
74204
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Text, { children: [
|
|
74205
|
-
">",
|
|
74206
|
-
" "
|
|
74207
|
-
] }),
|
|
74208
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
74209
|
-
build_default,
|
|
74210
|
-
{
|
|
74211
|
-
value: password,
|
|
74212
|
-
onChange: setPassword,
|
|
74213
|
-
onSubmit: handlePasswordSubmit,
|
|
74214
|
-
placeholder: "password",
|
|
74215
|
-
mask: "*"
|
|
74216
|
-
}
|
|
74217
|
-
)
|
|
74218
|
-
] })
|
|
74219
|
-
] }),
|
|
74220
|
-
step === "password-wrong" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
74221
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { color: "red", children: "Incorrect password." }),
|
|
74222
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
74223
|
-
SelectInput_default,
|
|
74224
|
-
{
|
|
74225
|
-
items: [
|
|
74226
|
-
{ label: "Try again", value: "retry" },
|
|
74227
|
-
{ label: "I don't have a password \u2014 how do I get one?", value: "request-access" },
|
|
74228
|
-
{ label: "Continue without Intelligence", value: "skip" }
|
|
74229
|
-
],
|
|
74230
|
-
onSelect: handlePasswordRetrySelect
|
|
74231
|
-
}
|
|
74232
|
-
)
|
|
74233
|
-
] }),
|
|
74234
|
-
step === "mailing-list" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
74235
|
-
MailingListScreen,
|
|
74236
|
-
{
|
|
74237
|
-
onRequestAccess: onRequestThreadsAccess,
|
|
74238
|
-
onDone: handleMailingListDone
|
|
74239
|
-
}
|
|
74240
|
-
),
|
|
74241
74130
|
step === "framework" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
74242
74131
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { bold: true, children: "Select agent framework" }),
|
|
74243
74132
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SelectInput_default, { items: FRAMEWORK_CHOICES, onSelect: handleFrameworkSelect })
|
|
74244
74133
|
] })
|
|
74245
74134
|
] });
|
|
74246
74135
|
}
|
|
74247
|
-
|
|
74248
|
-
const [status, setStatus] = (0, import_react35.useState)("sending");
|
|
74249
|
-
(0, import_react35.useEffect)(() => {
|
|
74250
|
-
let cancelled = false;
|
|
74251
|
-
async function run() {
|
|
74252
|
-
try {
|
|
74253
|
-
await onRequestAccess();
|
|
74254
|
-
} catch {
|
|
74255
|
-
}
|
|
74256
|
-
if (!cancelled) {
|
|
74257
|
-
setStatus("sent");
|
|
74258
|
-
}
|
|
74259
|
-
}
|
|
74260
|
-
run();
|
|
74261
|
-
return () => {
|
|
74262
|
-
cancelled = true;
|
|
74263
|
-
};
|
|
74264
|
-
}, [onRequestAccess]);
|
|
74265
|
-
if (status === "sending") {
|
|
74266
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { color: "gray", children: "Registering your interest\u2026" }) });
|
|
74267
|
-
}
|
|
74268
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
74269
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { color: "green", children: "Thanks! We've registered your interest." }),
|
|
74270
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { color: "gray", children: "You'll receive access details via email." }),
|
|
74271
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text, { children: "Press enter to go back and enter your password." }) }),
|
|
74272
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
74273
|
-
SelectInput_default,
|
|
74274
|
-
{
|
|
74275
|
-
items: [{ label: "Back to password", value: "back" }],
|
|
74276
|
-
onSelect: onDone
|
|
74277
|
-
}
|
|
74278
|
-
)
|
|
74279
|
-
] });
|
|
74280
|
-
}
|
|
74281
|
-
var import_react35, import_jsx_runtime5, PROJECT_NAME_RE, INTELLIGENCE_CHOICES, PASSWORD_MENU_CHOICES;
|
|
74136
|
+
var import_react35, import_jsx_runtime5, PROJECT_NAME_RE, INTELLIGENCE_CHOICES;
|
|
74282
74137
|
var init_init_flow = __esm({
|
|
74283
74138
|
async "apps/cli/src/ui/init-flow.tsx"() {
|
|
74284
74139
|
"use strict";
|
|
@@ -74287,18 +74142,12 @@ var init_init_flow = __esm({
|
|
|
74287
74142
|
await init_build3();
|
|
74288
74143
|
await init_build4();
|
|
74289
74144
|
init_types();
|
|
74290
|
-
init_feature_flags();
|
|
74291
74145
|
import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
|
|
74292
74146
|
PROJECT_NAME_RE = /^[a-z0-9-]{1,30}$/;
|
|
74293
74147
|
INTELLIGENCE_CHOICES = [
|
|
74294
74148
|
{ label: "Yes \u2014 enable Intelligence (threads, persistence, insights)", value: "yes" },
|
|
74295
74149
|
{ label: "No \u2014 standard setup", value: "no" }
|
|
74296
74150
|
];
|
|
74297
|
-
PASSWORD_MENU_CHOICES = [
|
|
74298
|
-
{ label: "Enter password", value: "enter-password" },
|
|
74299
|
-
{ label: "I don't have a password \u2014 how do I get one?", value: "request-access" },
|
|
74300
|
-
{ label: "Continue without Intelligence", value: "skip" }
|
|
74301
|
-
];
|
|
74302
74151
|
}
|
|
74303
74152
|
});
|
|
74304
74153
|
|
|
@@ -74595,7 +74444,7 @@ function resolvePrefilledOptions(name, intelligence, framework) {
|
|
|
74595
74444
|
framework
|
|
74596
74445
|
};
|
|
74597
74446
|
}
|
|
74598
|
-
if (intelligence === true
|
|
74447
|
+
if (intelligence === true) {
|
|
74599
74448
|
return { name, intelligence: true, framework: null };
|
|
74600
74449
|
}
|
|
74601
74450
|
return null;
|
|
@@ -74611,13 +74460,6 @@ function InitApp({
|
|
|
74611
74460
|
initialFramework
|
|
74612
74461
|
);
|
|
74613
74462
|
const [options, setOptions] = (0, import_react36.useState)(prefilled);
|
|
74614
|
-
const handleRequestThreadsAccess = (0, import_react36.useCallback)(async () => {
|
|
74615
|
-
const cliToken = authStore.getToken();
|
|
74616
|
-
if (cliToken) {
|
|
74617
|
-
const apiClient = createApiClient(getOpsApiUrl(), cliToken);
|
|
74618
|
-
await apiClient.requestThreadsAccess();
|
|
74619
|
-
}
|
|
74620
|
-
}, []);
|
|
74621
74463
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
74622
74464
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Banner, {}),
|
|
74623
74465
|
options !== null ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ScaffoldProgress, { options }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
@@ -74630,8 +74472,7 @@ function InitApp({
|
|
|
74630
74472
|
if (resolved !== null) {
|
|
74631
74473
|
setOptions(resolved);
|
|
74632
74474
|
}
|
|
74633
|
-
}
|
|
74634
|
-
onRequestThreadsAccess: handleRequestThreadsAccess
|
|
74475
|
+
}
|
|
74635
74476
|
}
|
|
74636
74477
|
)
|
|
74637
74478
|
] });
|
|
@@ -74665,7 +74506,6 @@ var init_init = __esm({
|
|
|
74665
74506
|
await init_build2();
|
|
74666
74507
|
await init_build2();
|
|
74667
74508
|
init_types();
|
|
74668
|
-
init_feature_flags();
|
|
74669
74509
|
init_auth_service();
|
|
74670
74510
|
init_api_client();
|
|
74671
74511
|
init_project_scaffold();
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../apps/cli/src/commands/init.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,WAAW,EACX,sBAAsB,EACvB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"init.d.ts","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|
|
83
83
|
issueLicense(): Promise<{
|
|
84
84
|
licenseKey: string;
|
|
85
85
|
}>;
|
|
86
|
-
/**
|
|
87
|
-
* Registers the user's interest in threads access (mailing list signup).
|
|
88
|
-
*
|
|
89
|
-
* POSTs to `/api/cli/threads-interest`. The user is already authenticated,
|
|
90
|
-
* so this just records their opt-in on the server side.
|
|
91
|
-
*/
|
|
92
|
-
requestThreadsAccess(): Promise<void>;
|
|
93
86
|
}
|
|
94
87
|
/**
|
|
95
88
|
* Creates an HTTP client bound to the given base URL and optional bearer token.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../../../../apps/cli/src/services/api-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC,uCAAuC;IACvC,SAAgB,MAAM,EAAE,MAAM,CAAC;IAC/B,0CAA0C;IAC1C,SAAgB,IAAI,CAAC,EAAE,MAAM,CAAC;IAE9B;;;;OAIG;gBACS,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;CAM3D;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,yDAAyD;IACzD,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IACzD,qDAAqD;IACrD,YAAY,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACjE;AAmBD;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACxB;;;;;;;;OAQG;IACH,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAE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AAO,CAAC,qBAAqB,CAAC,CAAC;IAEhD;;;;OAIG;IACH,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAExB;;;;;;;;OAQG;IACH,YAAY,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAElE;;;;;;;OAOG;IACH,YAAY,IAAI,OAAO,CAAC;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAmE1E"}
|
package/src/ui/init-flow.d.ts
CHANGED
|
@@ -14,13 +14,6 @@ export interface InitFlowProps {
|
|
|
14
14
|
* user cancels (future extension point).
|
|
15
15
|
*/
|
|
16
16
|
onComplete: (options: InitOptions | null) => void;
|
|
17
|
-
/**
|
|
18
|
-
* Callback invoked when the user wants to sign up for threads access.
|
|
19
|
-
*
|
|
20
|
-
* The init flow renders the mailing list screen; this callback fires the
|
|
21
|
-
* API request. When it resolves, the flow returns to the password screen.
|
|
22
|
-
*/
|
|
23
|
-
onRequestThreadsAccess: () => Promise<void>;
|
|
24
17
|
}
|
|
25
18
|
/**
|
|
26
19
|
* Ink component that steps through the interactive `init` prompts.
|
|
@@ -28,8 +21,8 @@ export interface InitFlowProps {
|
|
|
28
21
|
* Flow:
|
|
29
22
|
* 1. Project name
|
|
30
23
|
* 2. Do you want Intelligence?
|
|
31
|
-
* - Yes →
|
|
24
|
+
* - Yes → done with threads template
|
|
32
25
|
* - No → framework picker → done with framework template
|
|
33
26
|
*/
|
|
34
|
-
export declare function InitFlow({ initialName, initialIntelligence, initialFramework, onComplete,
|
|
27
|
+
export declare function InitFlow({ initialName, initialIntelligence, initialFramework, onComplete, }: InitFlowProps): import("react/jsx-runtime").JSX.Element | null;
|
|
35
28
|
//# sourceMappingURL=init-flow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-flow.d.ts","sourceRoot":"","sources":["../../../../../apps/cli/src/ui/init-flow.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"init-flow.d.ts","sourceRoot":"","sources":["../../../../../apps/cli/src/ui/init-flow.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAuB/D,gDAAgD;AAChD,MAAM,WAAW,aAAa;IAC5B,qEAAqE;IACrE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iEAAiE;IACjE,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAAC;IACpC,8DAA8D;IAC9D,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;;OAKG;IACH,UAAU,EAAE,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CACnD;AAeD;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,EACvB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EAChB,UAAU,GACX,EAAE,aAAa,kDA8If"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** Hardcoded password for threads access (temporary). */
|
|
2
|
-
export declare const THREADS_PASSWORD = "earlyaccess";
|
|
3
|
-
/**
|
|
4
|
-
* Checks whether the user has previously unlocked threads access.
|
|
5
|
-
*
|
|
6
|
-
* Reads the `threads-access` key from the global config store.
|
|
7
|
-
* Returns `false` when the key is absent or not `true`.
|
|
8
|
-
*/
|
|
9
|
-
export declare function hasThreadsAccess(): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Grants threads access by writing `threads-access: true` to the global config.
|
|
12
|
-
*/
|
|
13
|
-
export declare function grantThreadsAccess(): void;
|
|
14
|
-
//# sourceMappingURL=feature-flags.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../../apps/cli/src/services/feature-flags.ts"],"names":[],"mappings":"AAEA,yDAAyD;AACzD,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAE9C;;;;;GAKG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC"}
|