@tecet/ollm 0.1.4 → 0.1.5
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 +20 -14
- package/dist/cli.js.map +3 -3
- package/dist/services/documentService.d.ts.map +1 -1
- package/dist/services/documentService.js +12 -2
- 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 +12 -27
- package/dist/ui/services/docsService.d.ts.map +1 -1
- package/dist/ui/services/docsService.js +40 -67
- package/dist/ui/services/docsService.js.map +1 -1
- package/docs/README.md +3 -410
- package/package.json +10 -7
- package/scripts/copy-docs-to-user.cjs +34 -0
- package/docs/Context/CheckpointFlowDiagram.md +0 -673
- package/docs/Context/ContextArchitecture.md +0 -898
- package/docs/Context/ContextCompression.md +0 -1102
- package/docs/Context/ContextManagment.md +0 -750
- package/docs/Context/Index.md +0 -209
- package/docs/Context/README.md +0 -390
- package/docs/DevelopmentRoadmap/Index.md +0 -238
- package/docs/DevelopmentRoadmap/OLLM-CLI_Releases.md +0 -419
- package/docs/DevelopmentRoadmap/PlanedFeatures.md +0 -448
- package/docs/DevelopmentRoadmap/README.md +0 -174
- package/docs/DevelopmentRoadmap/Roadmap.md +0 -572
- package/docs/DevelopmentRoadmap/RoadmapVisual.md +0 -372
- package/docs/Hooks/Architecture.md +0 -885
- package/docs/Hooks/Index.md +0 -244
- package/docs/Hooks/KeyboardShortcuts.md +0 -248
- package/docs/Hooks/Protocol.md +0 -817
- package/docs/Hooks/README.md +0 -403
- package/docs/Hooks/UserGuide.md +0 -1483
- package/docs/Hooks/VisualGuide.md +0 -598
- package/docs/Index.md +0 -506
- package/docs/Installation.md +0 -586
- package/docs/Introduction.md +0 -367
- package/docs/LLM Models/Index.md +0 -239
- package/docs/LLM Models/LLM_GettingStarted.md +0 -748
- package/docs/LLM Models/LLM_Index.md +0 -701
- package/docs/LLM Models/LLM_MemorySystem.md +0 -337
- package/docs/LLM Models/LLM_ModelCompatibility.md +0 -499
- package/docs/LLM Models/LLM_ModelsArchitecture.md +0 -933
- package/docs/LLM Models/LLM_ModelsCommands.md +0 -839
- package/docs/LLM Models/LLM_ModelsConfiguration.md +0 -1094
- package/docs/LLM Models/LLM_ModelsList.md +0 -1071
- package/docs/LLM Models/LLM_ModelsList.md.backup +0 -400
- package/docs/LLM Models/README.md +0 -355
- package/docs/MCP/MCP_Architecture.md +0 -1086
- package/docs/MCP/MCP_Commands.md +0 -1111
- package/docs/MCP/MCP_GettingStarted.md +0 -590
- package/docs/MCP/MCP_Index.md +0 -524
- package/docs/MCP/MCP_Integration.md +0 -866
- package/docs/MCP/MCP_Marketplace.md +0 -160
- package/docs/MCP/README.md +0 -415
- package/docs/Prompts System/Architecture.md +0 -760
- package/docs/Prompts System/Index.md +0 -223
- package/docs/Prompts System/PromptsRouting.md +0 -1047
- package/docs/Prompts System/PromptsTemplates.md +0 -1102
- package/docs/Prompts System/README.md +0 -389
- package/docs/Prompts System/SystemPrompts.md +0 -856
- package/docs/Quickstart.md +0 -535
- package/docs/Tools/Architecture.md +0 -884
- package/docs/Tools/GettingStarted.md +0 -624
- package/docs/Tools/Index.md +0 -216
- package/docs/Tools/ManifestReference.md +0 -141
- package/docs/Tools/README.md +0 -440
- package/docs/Tools/UserGuide.md +0 -773
- package/docs/Troubleshooting.md +0 -1265
- package/docs/UI&Settings/Architecture.md +0 -729
- package/docs/UI&Settings/ColorASCII.md +0 -34
- package/docs/UI&Settings/Commands.md +0 -755
- package/docs/UI&Settings/Configuration.md +0 -872
- package/docs/UI&Settings/Index.md +0 -293
- package/docs/UI&Settings/Keybinds.md +0 -372
- package/docs/UI&Settings/README.md +0 -278
- package/docs/UI&Settings/Terminal.md +0 -637
- package/docs/UI&Settings/Themes.md +0 -604
- package/docs/UI&Settings/UIGuide.md +0 -550
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 os16 = await import("os");
|
|
38021
|
+
const logPath = path34.join(os16.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 os16 = await import("os");
|
|
46034
|
+
const logPath = path34.join(os16.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(os16.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(os16.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.4b 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.4b" }) {
|
|
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.4b)" }),
|
|
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,14 +72867,19 @@ 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";
|
|
72870
72872
|
var DocumentService, documentService;
|
|
72871
72873
|
var init_documentService = __esm({
|
|
72872
72874
|
"packages/cli/src/services/documentService.ts"() {
|
|
72873
72875
|
"use strict";
|
|
72874
72876
|
DocumentService = class {
|
|
72875
72877
|
basePath;
|
|
72876
|
-
constructor(basePath
|
|
72877
|
-
|
|
72878
|
+
constructor(basePath) {
|
|
72879
|
+
const moduleDir = typeof __dirname !== "undefined" ? __dirname : path33.dirname(fileURLToPath4(import.meta.url));
|
|
72880
|
+
const packaged = path33.join(moduleDir, "..", "..", "..", "docs");
|
|
72881
|
+
const userDocs = path33.join(os15.homedir(), ".ollm", "docs");
|
|
72882
|
+
this.basePath = fs31.existsSync(userDocs) ? userDocs : packaged;
|
|
72878
72883
|
}
|
|
72879
72884
|
/**
|
|
72880
72885
|
* Discover all documentation files organized by folder
|
|
@@ -73262,11 +73267,12 @@ function DocsPanel({ height, windowWidth }) {
|
|
|
73262
73267
|
const folder = folders[item.folderIndex];
|
|
73263
73268
|
const doc = folder.documents[item.docIndex];
|
|
73264
73269
|
const isSelected = !isOnExitItem && item.folderIndex === selectedFolderIndex && item.docIndex === selectedDocIndex && focusedColumn === "left";
|
|
73265
|
-
return /* @__PURE__ */ jsx67(Box42, { paddingLeft: 2, children: /* @__PURE__ */ jsxs35(
|
|
73270
|
+
return /* @__PURE__ */ jsx67(Box42, { paddingLeft: 2, marginBottom: 1, width: "100%", children: /* @__PURE__ */ jsxs35(
|
|
73266
73271
|
Text39,
|
|
73267
73272
|
{
|
|
73268
73273
|
bold: isSelected && hasFocus,
|
|
73269
73274
|
color: isSelected && hasFocus ? "yellow" : uiState.theme.text.primary,
|
|
73275
|
+
wrap: "truncate-end",
|
|
73270
73276
|
children: [
|
|
73271
73277
|
"\u{1F4C4} ",
|
|
73272
73278
|
doc.title
|
|
@@ -80473,7 +80479,7 @@ var init_App = __esm({
|
|
|
80473
80479
|
// packages/cli/src/cli.tsx
|
|
80474
80480
|
import { readFileSync as readFileSync11, appendFileSync as appendFileSync3, mkdirSync as mkdirSync8, existsSync as existsSync13 } from "fs";
|
|
80475
80481
|
import { dirname as dirname10, join as join35 } from "path";
|
|
80476
|
-
import { fileURLToPath as
|
|
80482
|
+
import { fileURLToPath as fileURLToPath5 } from "url";
|
|
80477
80483
|
import { render, Text as Text79 } from "ink";
|
|
80478
80484
|
import { hideBin } from "yargs/helpers";
|
|
80479
80485
|
import Yargs from "yargs/yargs";
|
|
@@ -80932,7 +80938,7 @@ function loadConfig(options = {}) {
|
|
|
80932
80938
|
// packages/cli/src/cli.tsx
|
|
80933
80939
|
init_stdio();
|
|
80934
80940
|
import { Fragment as Fragment17, jsx as jsx114, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
80935
|
-
var __filename2 =
|
|
80941
|
+
var __filename2 = fileURLToPath5(import.meta.url);
|
|
80936
80942
|
var __dirname3 = dirname10(__filename2);
|
|
80937
80943
|
var packageJsonPath = join35(__dirname3, "..", "package.json");
|
|
80938
80944
|
var packageJson = JSON.parse(readFileSync11(packageJsonPath, "utf-8"));
|