@alisio/alisio-code 0.1.0-alpha.3 → 0.1.0-alpha.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/main.js +4 -3
- package/dist/tui/app.js +2 -1
- package/dist/version.d.ts +6 -0
- package/dist/version.js +22 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from "commander";
|
|
3
|
-
|
|
3
|
+
import { loadVersion } from "./version.js";
|
|
4
|
+
const VERSION = loadVersion(import.meta.url);
|
|
4
5
|
function parseAgents(json) {
|
|
5
6
|
const value = JSON.parse(json);
|
|
6
7
|
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
@@ -24,7 +25,7 @@ const program = new Command();
|
|
|
24
25
|
program
|
|
25
26
|
.name("alisio")
|
|
26
27
|
.description("Velocidad y eficiencia para construir — extensible coding harness")
|
|
27
|
-
.version(
|
|
28
|
+
.version(VERSION)
|
|
28
29
|
.option("--cwd <path>", "Working directory")
|
|
29
30
|
.option("--config <path>", "Explicit trusted configuration file")
|
|
30
31
|
.option("--trust-project", "Load project config and executable plugins (full process privileges)")
|
|
@@ -269,7 +270,7 @@ program.command("doctor").action(async (_opts, cmd) => {
|
|
|
269
270
|
process.env.ALISIO_MODEL?.trim() ||
|
|
270
271
|
(useSaved ? saved.profile.model : config.provider.model);
|
|
271
272
|
const status = {
|
|
272
|
-
version:
|
|
273
|
+
version: VERSION,
|
|
273
274
|
runtime: process.versions.bun ? `bun ${process.versions.bun}` : `node ${process.versions.node}`,
|
|
274
275
|
platform: process.platform,
|
|
275
276
|
workspace,
|
package/dist/tui/app.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { homedir } from "node:os";
|
|
2
2
|
import { CombinedAutocompleteProvider, Container, Editor, getImageDimensions, getNativeClipboard, Key, matchesKey, ProcessTerminal, ScrollView, SelectList, TuiAltScreen, truncateToWidth, VStack, } from "@earendil-works/pi-tui";
|
|
3
|
+
import { loadVersion } from "../version.js";
|
|
3
4
|
import { MAX_ATTACHMENTS_PER_MESSAGE, MAX_IMAGE_BYTES, pasteImageFromClipboard, removeLastAttachment, toApiAttachment, } from "./attachments.js";
|
|
4
5
|
import { copyText, nodeSpawn } from "./clipboard.js";
|
|
5
6
|
import { AttachmentsBar, BannerBlock, clock, Footer, Header, QuestionPanel, Switch, TranscriptSync, TreePanel, } from "./components.js";
|
|
@@ -10,7 +11,7 @@ import { InteractiveQueue } from "./queue.js";
|
|
|
10
11
|
import { SkillsManager } from "./skills-manager.js";
|
|
11
12
|
import { addItem, COMMANDS, configuredProviderModelItems, formatContext, formatDuration, formatTokens, hostOf, initialViewState, itemsFromHistory, lastAssistantText, mcpServerItems, mcpToolItems, parseCommand, pluginCatalogItems, pluginToggleNeedsConfirmation, providerModelItems, reduceEvent, reservedCommandNames, resolveCommand, shortenPath, shortId, summarizeToolArgs, } from "./state.js";
|
|
12
13
|
import { editorTheme, selectListTheme, style } from "./theme.js";
|
|
13
|
-
const VERSION =
|
|
14
|
+
const VERSION = loadVersion(import.meta.url);
|
|
14
15
|
/** Inline selection list with type-to-filter, rendered above the editor. */
|
|
15
16
|
class Picker {
|
|
16
17
|
title;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reads the package version at runtime so --version, doctor and MCP client metadata
|
|
3
|
+
* stay in sync with the published package without a build-time constant to update.
|
|
4
|
+
* Standalone binaries inject the version at build time via ALISIO_PACKAGE_VERSION.
|
|
5
|
+
*/
|
|
6
|
+
export declare function loadVersion(fromHere: string): string;
|
package/dist/version.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { dirname, join } from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
/** Fallback used when package.json is not readable (e.g. standalone binaries). */
|
|
5
|
+
const FALLBACK = "0.1.0-alpha.1";
|
|
6
|
+
/**
|
|
7
|
+
* Reads the package version at runtime so --version, doctor and MCP client metadata
|
|
8
|
+
* stay in sync with the published package without a build-time constant to update.
|
|
9
|
+
* Standalone binaries inject the version at build time via ALISIO_PACKAGE_VERSION.
|
|
10
|
+
*/
|
|
11
|
+
export function loadVersion(fromHere) {
|
|
12
|
+
if (process.env.ALISIO_PACKAGE_VERSION)
|
|
13
|
+
return process.env.ALISIO_PACKAGE_VERSION;
|
|
14
|
+
try {
|
|
15
|
+
const manifest = join(dirname(fileURLToPath(fromHere)), "..", "package.json");
|
|
16
|
+
const parsed = JSON.parse(readFileSync(manifest, "utf8"));
|
|
17
|
+
return typeof parsed.version === "string" && parsed.version ? parsed.version : FALLBACK;
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
return FALLBACK;
|
|
21
|
+
}
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alisio/alisio-code",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.4",
|
|
4
4
|
"description": "Alisio: an extensible, provider-agnostic coding-agent harness for your terminal. TUI, OpenAI-compatible providers, permissioned local tools, context compaction, persistent memory and a typed plugin SDK.",
|
|
5
5
|
"author": "Gustavo Gutiérrez",
|
|
6
6
|
"license": "MIT",
|