GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Kevin/v1.2.0 by kevinwang5658 · Pull Request #64 · codifycli/codify

Kevin/v1.2.0 #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
kevinwang5658 merged 22 commits into main from kevin/v1.2.0
Jul 19, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

Kevin/v1.2.0 #64

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4e8b611
fix: fixed codify edit desktop installation. Fixed apply message
kevinwang5658 Jun 2, 2026
793cb91
chore: update download links for desktop app
kevinwang5658 Jun 5, 2026
3999b9f
feat: Added apply notes system
kevinwang5658 Jun 5, 2026
21288cc
feat: Made modifications to apply note. Improved the pretty printing …
kevinwang5658 Jun 5, 2026
4f81fa4
feat: Changed the diff display to be a structural diff
kevinwang5658 Jun 5, 2026
fdd62a7
feat: Improved plan printing more
kevinwang5658 Jun 5, 2026
33c9e45
fix: noops in object plans
kevinwang5658 Jun 10, 2026
3eb3c0b
feat: added shell check for plugins so that we know that shell output…
kevinwang5658 Jun 11, 2026
4ca9599
feat: added disable auto correct for zsh shells
kevinwang5658 Jun 11, 2026
217718d
feat: improved name and id matching for dependsOn. Allow type only, n…
kevinwang5658 Jun 12, 2026
87dfbcb
fix: error key issue. Improved codify test to resolve current latest …
kevinwang5658 Jun 15, 2026
acef2b3
fix: stdin mode not working for scirpts that actually require stdin. …
kevinwang5658 Jun 16, 2026
4cdf437
fix: pkg for the new patch ink script
kevinwang5658 Jun 16, 2026
cb5cb8c
feat: improve stdin ux
Jul 17, 2026
46599eb
feat: show cursor when stdin is true
Jul 17, 2026
e98e8e3
fix: raw mode fixes
Jul 17, 2026
e25aa25
chore: bump version
Jul 19, 2026
2f08a83
testing test fixes
Jul 19, 2026
6474463
testing test fixes
Jul 19, 2026
7f05bed
testing test fixes
Jul 19, 2026
d095853
Fix initialize tests
Jul 19, 2026
b178e1f
fix: ink tests
Jul 19, 2026
File filter
Filter by extension


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
feat: Changed the diff display to be a structural diff
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@kevinwang5658
kevinwang5658 committed Jun 5, 2026
commit 4f81fa4eec6077be4bf4b94f53428e705ab6127a

There are no files selected for viewing

18 changes: 9 additions & 9 deletions 18 package-lock.json
Show comments
View file
Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

6 changes: 3 additions & 3 deletions 6 package.json
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"dependencies": {
"@codifycli/ink-form": "0.0.12",
"@codifycli/schemas": "1.1.0-beta.10",
"@codifycli/schemas": "1.2.0",
"@homebridge/node-pty-prebuilt-multiarch": "^0.13.1",
"@mischnic/json-sourcemap": "^0.1.1",
"@oclif/core": "^4.0.8",
Expand Down Expand Up @@ -43,7 +43,7 @@
},
"description": "Codify is a configuration-as-code tool that declaratively installs and manages developer tools and applications. Check out https://dashboard.codifycli.com for an editor.",
"devDependencies": {
"@codifycli/plugin-core": "^1.1.0-beta.25",
"@codifycli/plugin-core": "^1.2.0",
"@oclif/prettier-config": "^0.2.1",
"@types/chalk": "^2.2.0",
"@types/cors": "^2.8.19",
Expand Down Expand Up @@ -145,7 +145,7 @@
"deploy": "npm run pkg && npm run notarize && npm run upload",
"prepublishOnly": "npm run build"
},
"version": "1.1.1-beta.6",
"version": "1.2.0-beta.1",
"bugs": "https://github.com/codifycli/codify/issues",
"keywords": [
"oclif",
Expand Down
65 changes: 37 additions & 28 deletions 65 src/ui/plan-pretty-printer.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import chalk from 'chalk';
import * as Diff from 'diff';
import { ParameterOperation, PlanResponseData, ResourceOperation } from '@codifycli/schemas';

import { Plan, ResourcePlan } from '../entities/plan.js';
Expand Down Expand Up @@ -227,53 +226,63 @@ function isPlainObject(value: unknown): value is Record<string, unknown> {
return typeof value === 'object' && value !== null && !Array.isArray(value);
}

function formatObjectDiff(name: string, previousValue: object, newValue: object): string {
const prevJson = JSON.stringify(previousValue, null, 2);
const newJson = JSON.stringify(newValue, null, 2);
const diff = Diff.diffLines(prevJson, newJson);

const coloredLines: Array<{ text: string; added: boolean; removed: boolean }> = [];
for (const part of diff) {
const lines = part.value.split('\n').filter((l) => l.length > 0);
for (const line of lines) {
// Skip the outer { } braces — we render those as the header/footer
if (line === '{' || line === '}') continue;
coloredLines.push({
text: part.added ? chalk.green(line) : part.removed ? chalk.red(line) : line,
added: part.added ?? false,
removed: part.removed ?? false,
});
function formatObjectDiff(name: string, previousValue: Record<string, unknown>, newValue: Record<string, unknown>): string {
const allKeys = Array.from(new Set([...Object.keys(previousValue), ...Object.keys(newValue)]));

type Entry = { op: 'noop' | 'add' | 'remove' | 'modify'; key: string; prev?: unknown; next?: unknown };
const entries: Entry[] = allKeys.map((key) => {
const inPrev = Object.hasOwn(previousValue, key);
const inNext = Object.hasOwn(newValue, key);
if (!inPrev) return { op: 'add', key, next: newValue[key] };
if (!inNext) return { op: 'remove', key, prev: previousValue[key] };
if (JSON.stringify(previousValue[key]) === JSON.stringify(newValue[key])) {
return { op: 'noop', key, next: newValue[key] };
}
}
return { op: 'modify', key, prev: previousValue[key], next: newValue[key] };
});

const CONTEXT = 2;
const included = new Set<number>();
for (let i = 0; i < coloredLines.length; i++) {
if (coloredLines[i].added || coloredLines[i].removed) {
for (let j = Math.max(0, i - CONTEXT); j <= Math.min(coloredLines.length - 1, i + CONTEXT); j++) {
included.add(j);
const includedIndices = new Set<number>();
for (let i = 0; i < entries.length; i++) {
if (entries[i].op !== 'noop') {
for (let j = Math.max(0, i - CONTEXT); j <= Math.min(entries.length - 1, i + CONTEXT); j++) {
includedIndices.add(j);
}
}
}

const resultLines: string[] = [`${chalk.yellow('~')} "${name}": {`];
let lastIncluded = -1;

for (let i = 0; i < coloredLines.length; i++) {
if (!included.has(i)) continue;
for (let i = 0; i < entries.length; i++) {
if (!includedIndices.has(i)) continue;
if (lastIncluded !== -1 && i > lastIncluded + 1) {
resultLines.push(' ...');
}
const { text, added, removed } = coloredLines[i];
const symbol = added ? chalk.green('+') : removed ? chalk.red('-') : ' ';
resultLines.push(` ${symbol} ${text}`);
lastIncluded = i;
const { op, key, prev, next } = entries[i];

if (op === 'noop') {
resultLines.push(` "${key}": ${formatValue(next)},`);
} else if (op === 'add') {
resultLines.push(` ${chalk.green('+')} ${chalk.green(`"${key}": ${formatValue(next)},`)}`);
} else if (op === 'remove') {
resultLines.push(` ${chalk.red('-')} ${chalk.red(`"${key}": ${formatValue(prev)},`)}`);
} else {
resultLines.push(` ${chalk.yellow('~')} "${key}": ${formatValue(prev)} -> ${formatValue(next)},`);
}
}

resultLines.push(' },');
return resultLines.join('\n');
}

function formatValue(value: unknown): string {
if (typeof value === 'string') return `"${value}"`;
if (value === null || value === undefined) return String(value);
return JSON.stringify(value);
}

const OBJECT_SINGLE_SIDE_MAX_LINES = 20;

function formatObjectSingleSide(name: string, value: object, operation: ParameterOperation): string {
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.