@danypops/pi-packed 0.19.7 → 0.19.9

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.
@@ -12,8 +12,8 @@ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
12
12
  import { formatUpdateNotice } from "./model.js";
13
13
  import { createNatives } from "./packed.js";
14
14
  import { registerProfiles } from "./profile.js";
15
- import { handleResourceConfigCommand } from "./resource-config.js";
16
15
  import { handleSetupCommand } from "./setup-command.js";
16
+ import { handleResourceConfigCommand } from "./tabs/resource-config.js";
17
17
  import { registerTools } from "./tools.js";
18
18
  import { showPackedPanel } from "./tui.js";
19
19
 
@@ -13,11 +13,11 @@ import type { ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
13
13
  import { rawKeyHint } from "@earendil-works/pi-coding-agent";
14
14
  import { Input, truncateToWidth, visibleWidth } from "@earendil-works/pi-tui";
15
15
  import type { Component } from "malevich-tui-components";
16
+ import type { Natives, PackageSummary } from "../packed.js";
17
+ import { InstallServiceError } from "../packed.js";
18
+ import type { TabHost } from "../tab-host.js";
19
+ import { approvePackageOperation } from "../tools.js";
16
20
  import { shouldSearch } from "./discover-model.js";
17
- import type { Natives, PackageSummary } from "./packed.js";
18
- import { InstallServiceError } from "./packed.js";
19
- import type { TabHost } from "./tab-host.js";
20
- import { approvePackageOperation } from "./tools.js";
21
21
 
22
22
  const SEARCH_LIMIT = 20;
23
23
 
@@ -17,10 +17,10 @@ import type { ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
17
17
  import { rawKeyHint } from "@earendil-works/pi-coding-agent";
18
18
  import { Input, truncateToWidth, visibleWidth } from "@earendil-works/pi-tui";
19
19
  import type { Component } from "malevich-tui-components";
20
- import type { Natives, PackageResources, ResourceField } from "./packed.js";
21
- import { packagePermissionDecision } from "./permission.js";
22
- import { confirmReload } from "./reload.js";
23
- import type { TabHost } from "./tab-host.js";
20
+ import { packagePermissionDecision } from "../approval/permission.js";
21
+ import { confirmReload } from "../approval/reload.js";
22
+ import type { Natives, PackageResources, ResourceField } from "../packed.js";
23
+ import type { TabHost } from "../tab-host.js";
24
24
 
25
25
  type Scope = "global" | "project";
26
26
  const RESOURCE_FIELDS = ["extensions", "skills", "prompts", "themes"] as const satisfies readonly ResourceField[];
@@ -15,8 +15,8 @@ import type { Component } from "malevich-tui-components";
15
15
 
16
16
  type MutationApproval = SecuritySettings["mutationApproval"];
17
17
 
18
- import type { Natives } from "./packed.ts";
19
- import type { TabHost } from "./tab-host.ts";
18
+ import type { Natives } from "../packed.ts";
19
+ import type { TabHost } from "../tab-host.ts";
20
20
 
21
21
  const OPTIONS: Array<{ value: MutationApproval; label: string }> = [
22
22
  { value: "always", label: "Always require mutation approval (recommended)" },
@@ -1,9 +1,9 @@
1
1
  /** Agent-facing package tools over the authenticated daemon. */
2
2
  import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
3
3
  import { Type } from "typebox";
4
+ import { type PackageOperation, packagePermissionDecision } from "./approval/permission.js";
5
+ import { reloadWarning } from "./approval/reload.js";
4
6
  import { InstallServiceError, type Natives, PI_COMMAND_NAME } from "./packed.js";
5
- import { type PackageOperation, packagePermissionDecision } from "./permission.js";
6
- import { reloadWarning } from "./reload.js";
7
7
  import {
8
8
  createInfoDetails,
9
9
  createModelContent,
@@ -58,15 +58,15 @@ import {
58
58
  Table,
59
59
  type TextMeasure,
60
60
  } from "malevich-tui-components";
61
- import { createFindTab } from "./discover.js";
61
+ import { confirmReload } from "./approval/reload.js";
62
62
  import { dialogTheme, menuTheme, tabBarTheme } from "./menu-theme.js";
63
63
  import type { Row, ViewMode } from "./model.js";
64
64
  import { filterRows, mergeRows, nextMode, visibleRows } from "./model.js";
65
65
  import type { Natives, PackageResources } from "./packed.js";
66
- import { confirmReload } from "./reload.js";
67
- import { applyResourceToggle, ConfigTab } from "./resource-config.js";
68
- import { SettingsTab } from "./security-tui.js";
69
66
  import type { TabHost } from "./tab-host.js";
67
+ import { createFindTab } from "./tabs/discover.js";
68
+ import { applyResourceToggle, ConfigTab } from "./tabs/resource-config.js";
69
+ import { SettingsTab } from "./tabs/security-tui.js";
70
70
  import { approvePackageOperation } from "./tools.js";
71
71
 
72
72
  export type PackedTabKey = "packages" | "find" | "config" | "settings";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danypops/pi-packed",
3
- "version": "0.19.7",
3
+ "version": "0.19.9",
4
4
  "description": "Pi package tools, commands, profiles, and TUI for the Packed daemon",
5
5
  "type": "module",
6
6
  "keywords": ["pi-package"],
File without changes