open-research 0.1.26 → 0.1.27
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 +46 -38
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -982,7 +982,7 @@ function formatDateTime(value) {
|
|
|
982
982
|
}
|
|
983
983
|
|
|
984
984
|
// src/lib/cli/version.ts
|
|
985
|
-
var PACKAGE_VERSION = "0.1.
|
|
985
|
+
var PACKAGE_VERSION = "0.1.27";
|
|
986
986
|
function getPackageVersion() {
|
|
987
987
|
return PACKAGE_VERSION;
|
|
988
988
|
}
|
|
@@ -8048,60 +8048,64 @@ function HomeScreen({
|
|
|
8048
8048
|
hasWorkspace,
|
|
8049
8049
|
fileCount,
|
|
8050
8050
|
skillCount,
|
|
8051
|
+
version,
|
|
8052
|
+
model,
|
|
8053
|
+
contextWindow,
|
|
8054
|
+
workspacePath,
|
|
8051
8055
|
width
|
|
8052
8056
|
}) {
|
|
8053
8057
|
const theme = useTheme();
|
|
8054
8058
|
const contentWidth = resolveWidth(width);
|
|
8055
8059
|
const bodyWidth = indentedWidth(contentWidth);
|
|
8060
|
+
const ctxLabel = contextWindow >= 1e3 ? `${Math.round(contextWindow / 1e3)}k` : String(contextWindow);
|
|
8061
|
+
const shortPath = workspacePath ? workspacePath.replace(process.env.HOME ?? "", "~") : process.cwd().replace(process.env.HOME ?? "", "~");
|
|
8056
8062
|
return /* @__PURE__ */ jsxs3(Box4, { flexDirection: "column", marginBottom: 1, width: contentWidth, children: [
|
|
8057
|
-
/* @__PURE__ */ jsxs3(Box4, {
|
|
8063
|
+
/* @__PURE__ */ jsxs3(Box4, { width: contentWidth, children: [
|
|
8064
|
+
/* @__PURE__ */ jsx4(Text4, { bold: true, color: theme.accent, children: "\u26A1 " }),
|
|
8058
8065
|
/* @__PURE__ */ jsx4(Text4, { bold: true, color: theme.accent, children: "Open Research" }),
|
|
8059
|
-
/* @__PURE__ */
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
/* @__PURE__ */ jsxs3(Box4, { width: contentWidth, children: [
|
|
8063
|
-
/* @__PURE__ */ jsxs3(Text4, { color: theme.warning, children: [
|
|
8064
|
-
GUTTER.pending,
|
|
8065
|
-
" "
|
|
8066
|
-
] }),
|
|
8067
|
-
/* @__PURE__ */ jsx4(Text4, { color: theme.warning, children: "Connect or add OpenAI credentials to get started" })
|
|
8066
|
+
/* @__PURE__ */ jsxs3(Text4, { color: theme.muted, children: [
|
|
8067
|
+
" v",
|
|
8068
|
+
version
|
|
8068
8069
|
] }),
|
|
8069
|
-
/* @__PURE__ */ jsx4(
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
/* @__PURE__ */ jsxs3(Text4, { color: theme.secondary, children: [
|
|
8074
|
-
GUTTER.success,
|
|
8075
|
-
" "
|
|
8076
|
-
] }),
|
|
8077
|
-
/* @__PURE__ */ jsx4(Text4, { color: theme.secondary, children: "Connected" })
|
|
8070
|
+
/* @__PURE__ */ jsx4(Text4, { color: theme.muted, dimColor: true, children: " | " }),
|
|
8071
|
+
/* @__PURE__ */ jsxs3(Text4, { color: theme.text, children: [
|
|
8072
|
+
"\u25C6 ",
|
|
8073
|
+
model
|
|
8078
8074
|
] }),
|
|
8075
|
+
/* @__PURE__ */ jsx4(Text4, { color: theme.muted, dimColor: true, children: " | " }),
|
|
8076
|
+
/* @__PURE__ */ jsxs3(Text4, { color: theme.muted, children: [
|
|
8077
|
+
ctxLabel,
|
|
8078
|
+
" context"
|
|
8079
|
+
] })
|
|
8080
|
+
] }),
|
|
8081
|
+
/* @__PURE__ */ jsxs3(Box4, { marginLeft: 2, width: bodyWidth, children: [
|
|
8082
|
+
/* @__PURE__ */ jsx4(Text4, { color: theme.muted, dimColor: true, children: shortPath }),
|
|
8083
|
+
hasWorkspace && /* @__PURE__ */ jsxs3(Text4, { color: theme.muted, dimColor: true, children: [
|
|
8084
|
+
" \xB7 ",
|
|
8085
|
+
fileCount,
|
|
8086
|
+
" files \xB7 ",
|
|
8087
|
+
skillCount,
|
|
8088
|
+
" skills"
|
|
8089
|
+
] })
|
|
8090
|
+
] }),
|
|
8091
|
+
!hasAuth && /* @__PURE__ */ jsxs3(Box4, { flexDirection: "column", marginTop: 1, width: contentWidth, children: [
|
|
8079
8092
|
/* @__PURE__ */ jsxs3(Box4, { width: contentWidth, children: [
|
|
8080
8093
|
/* @__PURE__ */ jsxs3(Text4, { color: theme.warning, children: [
|
|
8081
8094
|
GUTTER.pending,
|
|
8082
8095
|
" "
|
|
8083
8096
|
] }),
|
|
8084
|
-
/* @__PURE__ */ jsx4(Text4, { color: theme.warning, children: "
|
|
8097
|
+
/* @__PURE__ */ jsx4(Text4, { color: theme.warning, children: "Connect OpenAI to get started" })
|
|
8085
8098
|
] }),
|
|
8086
|
-
/* @__PURE__ */ jsx4(Box4, { marginLeft: 2, width: bodyWidth, children: /* @__PURE__ */ jsx4(Text4, { color: theme.muted, wrap: "wrap", children: "/
|
|
8099
|
+
/* @__PURE__ */ jsx4(Box4, { marginLeft: 2, width: bodyWidth, children: /* @__PURE__ */ jsx4(Text4, { color: theme.muted, wrap: "wrap", children: "/config apikey sk-... \xB7 /auth \xB7 /auth-codex" }) })
|
|
8087
8100
|
] }),
|
|
8088
|
-
hasAuth && hasWorkspace && /* @__PURE__ */
|
|
8089
|
-
/* @__PURE__ */ jsxs3(
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
" "
|
|
8093
|
-
] }),
|
|
8094
|
-
/* @__PURE__ */ jsx4(Text4, { color: theme.secondary, children: "Ready" }),
|
|
8095
|
-
/* @__PURE__ */ jsxs3(Text4, { color: theme.muted, dimColor: true, children: [
|
|
8096
|
-
" \u2014 ",
|
|
8097
|
-
fileCount,
|
|
8098
|
-
" files \xB7 ",
|
|
8099
|
-
skillCount,
|
|
8100
|
-
" skills"
|
|
8101
|
-
] })
|
|
8101
|
+
hasAuth && !hasWorkspace && /* @__PURE__ */ jsx4(Box4, { flexDirection: "column", marginTop: 1, width: contentWidth, children: /* @__PURE__ */ jsxs3(Box4, { width: contentWidth, children: [
|
|
8102
|
+
/* @__PURE__ */ jsxs3(Text4, { color: theme.warning, children: [
|
|
8103
|
+
GUTTER.pending,
|
|
8104
|
+
" "
|
|
8102
8105
|
] }),
|
|
8103
|
-
/* @__PURE__ */ jsx4(
|
|
8104
|
-
] })
|
|
8106
|
+
/* @__PURE__ */ jsx4(Text4, { color: theme.warning, children: "Run /init to create a workspace" })
|
|
8107
|
+
] }) }),
|
|
8108
|
+
hasAuth && hasWorkspace && /* @__PURE__ */ jsx4(Box4, { marginTop: 1, width: contentWidth, children: /* @__PURE__ */ jsx4(Text4, { color: theme.muted, dimColor: true, children: "Ask a question, @mention a file, or type /help" }) })
|
|
8105
8109
|
] });
|
|
8106
8110
|
}
|
|
8107
8111
|
function SuggestionDropdown({
|
|
@@ -10237,6 +10241,10 @@ ${error.stack}` : String(error)}` }
|
|
|
10237
10241
|
hasWorkspace,
|
|
10238
10242
|
fileCount: workspaceFiles.length,
|
|
10239
10243
|
skillCount: skills2.length,
|
|
10244
|
+
version: getPackageVersion(),
|
|
10245
|
+
model: config?.defaults.model ?? "gpt-5.4",
|
|
10246
|
+
contextWindow: getContextWindow(config?.defaults.model ?? "gpt-5.4"),
|
|
10247
|
+
workspacePath,
|
|
10240
10248
|
width: contentWidth
|
|
10241
10249
|
}
|
|
10242
10250
|
),
|
package/package.json
CHANGED