@tecet/ollm 0.1.4-b → 0.1.4
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 +14 -20
- package/dist/cli.js.map +3 -3
- package/dist/services/documentService.d.ts.map +1 -1
- package/dist/services/documentService.js +2 -12
- package/dist/services/documentService.js.map +1 -1
- package/dist/ui/components/docs/DocsPanel.d.ts.map +1 -1
- package/dist/ui/components/docs/DocsPanel.js +1 -1
- package/dist/ui/components/docs/DocsPanel.js.map +1 -1
- package/dist/ui/components/launch/VersionBanner.js +1 -1
- package/dist/ui/components/launch/VersionBanner.js.map +1 -1
- package/dist/ui/components/layout/KeybindsLegend.d.ts.map +1 -1
- package/dist/ui/components/layout/KeybindsLegend.js +1 -1
- package/dist/ui/components/layout/KeybindsLegend.js.map +1 -1
- package/dist/ui/components/tabs/BugReportTab.js +1 -1
- package/dist/ui/components/tabs/BugReportTab.js.map +1 -1
- package/dist/ui/services/docsService.d.ts +27 -12
- package/dist/ui/services/docsService.d.ts.map +1 -1
- package/dist/ui/services/docsService.js +67 -40
- package/dist/ui/services/docsService.js.map +1 -1
- package/package.json +7 -10
- package/scripts/copy-docs-to-user.cjs +0 -34
package/dist/cli.js
CHANGED
|
@@ -38017,8 +38017,8 @@ function createContextManager(config2) {
|
|
|
38017
38017
|
try {
|
|
38018
38018
|
const fs32 = await import("fs");
|
|
38019
38019
|
const path34 = await import("path");
|
|
38020
|
-
const
|
|
38021
|
-
const logPath = path34.join(
|
|
38020
|
+
const os15 = await import("os");
|
|
38021
|
+
const logPath = path34.join(os15.homedir(), ".ollm", "context-init-debug.log");
|
|
38022
38022
|
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
38023
38023
|
const logMsg = `[${timestamp}] ${msg}
|
|
38024
38024
|
`;
|
|
@@ -46030,8 +46030,8 @@ function ContextManagerProvider({
|
|
|
46030
46030
|
const initManager = async () => {
|
|
46031
46031
|
const fs32 = await import("fs");
|
|
46032
46032
|
const path34 = await import("path");
|
|
46033
|
-
const
|
|
46034
|
-
const logPath = path34.join(
|
|
46033
|
+
const os15 = await import("os");
|
|
46034
|
+
const logPath = path34.join(os15.homedir(), ".ollm", "context-init-debug.log");
|
|
46035
46035
|
const log = (msg) => {
|
|
46036
46036
|
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
46037
46037
|
const logMsg = `[${timestamp}] ${msg}
|
|
@@ -46054,7 +46054,7 @@ function ContextManagerProvider({
|
|
|
46054
46054
|
setActive(false);
|
|
46055
46055
|
return;
|
|
46056
46056
|
}
|
|
46057
|
-
const storagePath = path34.join(
|
|
46057
|
+
const storagePath = path34.join(os15.homedir(), ".ollm", "context-storage");
|
|
46058
46058
|
log("[ContextManagerContext] Creating context manager with factory...");
|
|
46059
46059
|
log(`[ContextManagerContext] Model info: ${JSON.stringify(modelInfo)}`);
|
|
46060
46060
|
const savedMode = SettingsService.getInstance().getMode() || "assistant";
|
|
@@ -46087,7 +46087,7 @@ function ContextManagerProvider({
|
|
|
46087
46087
|
workflowManagerRef.current = workflowManager;
|
|
46088
46088
|
const promptsSnapshotManager = new SnapshotManager({
|
|
46089
46089
|
sessionId,
|
|
46090
|
-
storagePath: path34.join(
|
|
46090
|
+
storagePath: path34.join(os15.homedir(), ".ollm", "mode-transition-snapshots"),
|
|
46091
46091
|
maxCacheSize: 20,
|
|
46092
46092
|
pruneAfterMs: 72e5
|
|
46093
46093
|
// 2 hours
|
|
@@ -63608,7 +63608,7 @@ var init_VersionBanner = __esm({
|
|
|
63608
63608
|
return /* @__PURE__ */ jsxs18(Box18, { flexDirection: "column", alignItems: "center", children: [
|
|
63609
63609
|
/* @__PURE__ */ jsx39(Box18, { flexDirection: "column", alignItems: "center", children: WELCOME_ASCII_LINES.map((line, idx) => /* @__PURE__ */ jsx39(Box18, { children: /* @__PURE__ */ jsx39(ColoredLine, { line }) }, idx)) }),
|
|
63610
63610
|
/* @__PURE__ */ jsxs18(Box18, { marginTop: 2, flexDirection: "column", alignItems: "center", children: [
|
|
63611
|
-
/* @__PURE__ */ jsx39(Text19, { bold: true, color: theme.text.accent, children: "OLLM CLI v0.1.
|
|
63611
|
+
/* @__PURE__ */ jsx39(Text19, { bold: true, color: theme.text.accent, children: "OLLM CLI v0.1.4 alpha" }),
|
|
63612
63612
|
/* @__PURE__ */ jsx39(Text19, { color: theme.text.accent, dimColor: true, children: "Press any key to continue" })
|
|
63613
63613
|
] }),
|
|
63614
63614
|
(modelInfo || gpuInfo) && /* @__PURE__ */ jsxs18(Box18, { marginTop: 1, flexDirection: "column", alignItems: "center", children: [
|
|
@@ -70614,7 +70614,7 @@ var init_DotIndicator = __esm({
|
|
|
70614
70614
|
// packages/cli/src/ui/components/layout/KeybindsLegend.tsx
|
|
70615
70615
|
import { Box as Box28, Text as Text28 } from "ink";
|
|
70616
70616
|
import { jsx as jsx53, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
70617
|
-
function KeybindsLegend({ theme, version: version3 = "0.1.
|
|
70617
|
+
function KeybindsLegend({ theme, version: version3 = "0.1.4" }) {
|
|
70618
70618
|
return /* @__PURE__ */ jsxs24(Box28, { flexDirection: "column", paddingX: 2, paddingY: 1, children: [
|
|
70619
70619
|
/* @__PURE__ */ jsxs24(Box28, { marginBottom: 1, justifyContent: "center", children: [
|
|
70620
70620
|
/* @__PURE__ */ jsx53(Text28, { bold: true, color: theme.text.accent, children: "OLLM CLI" }),
|
|
@@ -72028,7 +72028,7 @@ function BugReportTab({ width }) {
|
|
|
72028
72028
|
/* @__PURE__ */ jsx62(Box37, { justifyContent: "center", marginBottom: 2, children: /* @__PURE__ */ jsx62(Text36, { color: uiState.theme.text.secondary, children: "have a feature suggestion, or just need help - we'd love to hear from you!" }) }),
|
|
72029
72029
|
/* @__PURE__ */ jsx62(Box37, { marginBottom: 1, children: /* @__PURE__ */ jsx62(Text36, { bold: true, color: uiState.theme.text.primary, children: "\u{1F4DD} Before You Report:" }) }),
|
|
72030
72030
|
/* @__PURE__ */ jsx62(Text36, { color: uiState.theme.text.secondary, children: "\u2713 Check if the issue still happens after restarting OLLM CLI" }),
|
|
72031
|
-
/* @__PURE__ */ jsx62(Text36, { color: uiState.theme.text.secondary, children: "\u2713 Make sure you're running the latest version (v0.1.
|
|
72031
|
+
/* @__PURE__ */ jsx62(Text36, { color: uiState.theme.text.secondary, children: "\u2713 Make sure you're running the latest version (v0.1.4)" }),
|
|
72032
72032
|
/* @__PURE__ */ jsx62(Box37, { marginBottom: 2, children: /* @__PURE__ */ jsx62(Text36, { color: uiState.theme.text.secondary, children: "\u2713 Try to reproduce the issue to confirm it's consistent" }) }),
|
|
72033
72033
|
/* @__PURE__ */ jsx62(Box37, { marginBottom: 1, children: /* @__PURE__ */ jsx62(Text36, { bold: true, color: uiState.theme.text.primary, children: "\u{1F4CB} What Makes a Great Bug Report:" }) }),
|
|
72034
72034
|
/* @__PURE__ */ jsx62(Text36, { color: uiState.theme.text.secondary, children: "\u2022 Clear description of what went wrong" }),
|
|
@@ -72867,19 +72867,14 @@ var init_ChatTab = __esm({
|
|
|
72867
72867
|
// packages/cli/src/services/documentService.ts
|
|
72868
72868
|
import fs31 from "fs";
|
|
72869
72869
|
import path33 from "path";
|
|
72870
|
-
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
72871
|
-
import os15 from "os";
|
|
72872
72870
|
var DocumentService, documentService;
|
|
72873
72871
|
var init_documentService = __esm({
|
|
72874
72872
|
"packages/cli/src/services/documentService.ts"() {
|
|
72875
72873
|
"use strict";
|
|
72876
72874
|
DocumentService = class {
|
|
72877
72875
|
basePath;
|
|
72878
|
-
constructor(basePath) {
|
|
72879
|
-
|
|
72880
|
-
const packaged = path33.join(moduleDir, "..", "..", "..", "docs");
|
|
72881
|
-
const userDocs = path33.join(os15.homedir(), ".ollm", "docs");
|
|
72882
|
-
this.basePath = fs31.existsSync(userDocs) ? userDocs : packaged;
|
|
72876
|
+
constructor(basePath = "docs") {
|
|
72877
|
+
this.basePath = basePath;
|
|
72883
72878
|
}
|
|
72884
72879
|
/**
|
|
72885
72880
|
* Discover all documentation files organized by folder
|
|
@@ -73267,12 +73262,11 @@ function DocsPanel({ height, windowWidth }) {
|
|
|
73267
73262
|
const folder = folders[item.folderIndex];
|
|
73268
73263
|
const doc = folder.documents[item.docIndex];
|
|
73269
73264
|
const isSelected = !isOnExitItem && item.folderIndex === selectedFolderIndex && item.docIndex === selectedDocIndex && focusedColumn === "left";
|
|
73270
|
-
return /* @__PURE__ */ jsx67(Box42, { paddingLeft: 2,
|
|
73265
|
+
return /* @__PURE__ */ jsx67(Box42, { paddingLeft: 2, children: /* @__PURE__ */ jsxs35(
|
|
73271
73266
|
Text39,
|
|
73272
73267
|
{
|
|
73273
73268
|
bold: isSelected && hasFocus,
|
|
73274
73269
|
color: isSelected && hasFocus ? "yellow" : uiState.theme.text.primary,
|
|
73275
|
-
wrap: "truncate-end",
|
|
73276
73270
|
children: [
|
|
73277
73271
|
"\u{1F4C4} ",
|
|
73278
73272
|
doc.title
|
|
@@ -80479,7 +80473,7 @@ var init_App = __esm({
|
|
|
80479
80473
|
// packages/cli/src/cli.tsx
|
|
80480
80474
|
import { readFileSync as readFileSync11, appendFileSync as appendFileSync3, mkdirSync as mkdirSync8, existsSync as existsSync13 } from "fs";
|
|
80481
80475
|
import { dirname as dirname10, join as join35 } from "path";
|
|
80482
|
-
import { fileURLToPath as
|
|
80476
|
+
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
80483
80477
|
import { render, Text as Text79 } from "ink";
|
|
80484
80478
|
import { hideBin } from "yargs/helpers";
|
|
80485
80479
|
import Yargs from "yargs/yargs";
|
|
@@ -80938,7 +80932,7 @@ function loadConfig(options = {}) {
|
|
|
80938
80932
|
// packages/cli/src/cli.tsx
|
|
80939
80933
|
init_stdio();
|
|
80940
80934
|
import { Fragment as Fragment17, jsx as jsx114, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
80941
|
-
var __filename2 =
|
|
80935
|
+
var __filename2 = fileURLToPath4(import.meta.url);
|
|
80942
80936
|
var __dirname3 = dirname10(__filename2);
|
|
80943
80937
|
var packageJsonPath = join35(__dirname3, "..", "package.json");
|
|
80944
80938
|
var packageJson = JSON.parse(readFileSync11(packageJsonPath, "utf-8"));
|