nightcode 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -10
  2. package/package.json +3 -13
package/dist/index.js CHANGED
@@ -909,7 +909,7 @@ import { createContext as createContext5, useContext as useContext5, useState as
909
909
  import {
910
910
  DEFAULT_CHAT_MODEL_ID,
911
911
  Mode
912
- } from "@nightcode/shared";
912
+ } from "@nightcodehq/shared";
913
913
  import { jsxDEV as jsxDEV6 } from "@opentui/react/jsx-dev-runtime";
914
914
  var PromptConfigContext = createContext5(null);
915
915
  function usePromptConfig() {
@@ -995,7 +995,7 @@ import { useNavigate as useNavigate2 } from "react-router";
995
995
 
996
996
  // src/components/status-bar.tsx
997
997
  import { TextAttributes as TextAttributes2 } from "@opentui/core";
998
- import { Mode as Mode2 } from "@nightcode/shared";
998
+ import { Mode as Mode2 } from "@nightcodehq/shared";
999
999
  import { jsxDEV as jsxDEV9 } from "@opentui/react/jsx-dev-runtime";
1000
1000
  function StatusBar() {
1001
1001
  const { mode, model } = usePromptConfig();
@@ -1024,7 +1024,7 @@ function StatusBar() {
1024
1024
  import { TextAttributes as TextAttributes5 } from "@opentui/core";
1025
1025
 
1026
1026
  // src/components/command-menu/commands.tsx
1027
- import { SUPPORTED_CHAT_MODELS } from "@nightcode/shared";
1027
+ import { SUPPORTED_CHAT_MODELS } from "@nightcodehq/shared";
1028
1028
 
1029
1029
  // src/components/dialogs/theme-dialog.tsx
1030
1030
  import { useCallback as useCallback7, useEffect, useRef as useRef4 } from "react";
@@ -1318,7 +1318,7 @@ var SessionsDialogContent = () => {
1318
1318
  };
1319
1319
  // src/components/dialogs/agents-dialog.tsx
1320
1320
  import { useCallback as useCallback9 } from "react";
1321
- import { Mode as Mode3 } from "@nightcode/shared";
1321
+ import { Mode as Mode3 } from "@nightcodehq/shared";
1322
1322
  import { jsxDEV as jsxDEV13 } from "@opentui/react/jsx-dev-runtime";
1323
1323
  var AVAILABLE_MODES = [Mode3.BUILD, Mode3.PLAN];
1324
1324
  function getModeLabel(mode) {
@@ -1816,7 +1816,7 @@ function useCommandMenu() {
1816
1816
  }
1817
1817
 
1818
1818
  // src/components/input-bar.tsx
1819
- import { Mode as Mode4 } from "@nightcode/shared";
1819
+ import { Mode as Mode4 } from "@nightcodehq/shared";
1820
1820
  import { jsxDEV as jsxDEV17 } from "@opentui/react/jsx-dev-runtime";
1821
1821
  var MAX_VISIBLE_MENTIONS = 8;
1822
1822
  var CURRENT_DIRECTORY = process.cwd();
@@ -2335,7 +2335,7 @@ function Home() {
2335
2335
  // src/screens/new-session.tsx
2336
2336
  import { useEffect as useEffect4, useMemo as useMemo3, useRef as useRef7 } from "react";
2337
2337
  import { z } from "zod";
2338
- import { modeSchema } from "@nightcode/shared";
2338
+ import { modeSchema } from "@nightcodehq/shared";
2339
2339
  import { useNavigate as useNavigate4, useLocation } from "react-router";
2340
2340
 
2341
2341
  // src/components/session-shell.tsx
@@ -2343,7 +2343,7 @@ import { TextAttributes as TextAttributes8 } from "@opentui/core";
2343
2343
 
2344
2344
  // src/components/spinner.tsx
2345
2345
  import"opentui-spinner/react";
2346
- import { Mode as Mode5 } from "@nightcode/shared";
2346
+ import { Mode as Mode5 } from "@nightcodehq/shared";
2347
2347
  import { jsxDEV as jsxDEV19 } from "@opentui/react/jsx-dev-runtime";
2348
2348
  function Spinner({ mode = Mode5.BUILD }) {
2349
2349
  const { colors } = useTheme();
@@ -2466,7 +2466,7 @@ function ErrorMessage({ message }) {
2466
2466
  }, undefined, false, undefined, this);
2467
2467
  }
2468
2468
  // src/components/messages/user-message.tsx
2469
- import { Mode as Mode6 } from "@nightcode/shared";
2469
+ import { Mode as Mode6 } from "@nightcodehq/shared";
2470
2470
  import { jsxDEV as jsxDEV22 } from "@opentui/react/jsx-dev-runtime";
2471
2471
  function UserMessage({ message, mode }) {
2472
2472
  const { colors } = useTheme();
@@ -2497,7 +2497,7 @@ function UserMessage({ message, mode }) {
2497
2497
  }
2498
2498
  // src/components/messages/bot-message.tsx
2499
2499
  import prettyMs from "pretty-ms";
2500
- import { Mode as Mode7 } from "@nightcode/shared";
2500
+ import { Mode as Mode7 } from "@nightcodehq/shared";
2501
2501
  import { TextAttributes as TextAttributes10 } from "@opentui/core";
2502
2502
  import { jsxDEV as jsxDEV23, Fragment as Fragment3 } from "@opentui/react/jsx-dev-runtime";
2503
2503
  function formatToolName(name) {
@@ -2742,7 +2742,7 @@ import {
2742
2742
  // src/lib/local-tools.ts
2743
2743
  import { mkdir, readFile, readdir as readdir2, stat, writeFile } from "fs/promises";
2744
2744
  import { dirname, isAbsolute as isAbsolute2, join as join3, relative as relative2, resolve as resolve2 } from "path";
2745
- import { toolInputSchemas, Mode as Mode9 } from "@nightcode/shared";
2745
+ import { toolInputSchemas, Mode as Mode9 } from "@nightcodehq/shared";
2746
2746
  var MAX_FILE_SIZE = 1e4;
2747
2747
  var MAX_RESULTS = 200;
2748
2748
  var MAX_MATCHES = 50;
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "nightcode",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "AI coding assistant for your terminal.",
5
5
  "author": "Aman Jaiswal",
6
6
  "license": "MIT",
7
-
8
7
  "homepage": "https://github.com/amanjais123/nightcode",
9
8
  "repository": {
10
9
  "type": "git",
@@ -13,7 +12,6 @@
13
12
  "bugs": {
14
13
  "url": "https://github.com/amanjais123/nightcode/issues"
15
14
  },
16
-
17
15
  "keywords": [
18
16
  "ai",
19
17
  "cli",
@@ -24,30 +22,23 @@
24
22
  "gemini",
25
23
  "openai"
26
24
  ],
27
-
28
25
  "type": "module",
29
-
30
26
  "main": "./dist/index.js",
31
27
  "module": "./dist/index.js",
32
-
33
28
  "bin": {
34
29
  "nightcode": "./bin/nightcode"
35
30
  },
36
-
37
31
  "files": [
38
32
  "dist",
39
33
  "bin"
40
34
  ],
41
-
42
35
  "scripts": {},
43
-
44
36
  "peerDependencies": {
45
37
  "typescript": "^5"
46
38
  },
47
-
48
39
  "dependencies": {
49
40
  "@ai-sdk/react": "^3.0.186",
50
- "@nightcodehq/shared": "^1.0.0",
41
+ "@nightcodehq/shared": "^1.0.0",
51
42
  "@opentui/core": "^0.1.97",
52
43
  "@opentui/react": "^0.1.97",
53
44
  "ai": "^6.0.184",
@@ -60,8 +51,7 @@
60
51
  "react-router": "^7.14.0",
61
52
  "zod": "^4.3.6"
62
53
  },
63
-
64
54
  "engines": {
65
55
  "bun": ">=1.2.0"
66
56
  }
67
- }
57
+ }