@pi-unipi/core 0.1.2 → 0.1.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/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # @unipi/core
1
+ # @pi-unipi/core
2
2
 
3
3
  Shared utilities, event types, and constants for the [Unipi](https://github.com/Neuron-Mr-White/unipi) extension suite.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- pi install npm:@unipi/core
8
+ pi install npm:@pi-unipi/core
9
9
  ```
10
10
 
11
11
  Or as part of the full suite:
@@ -16,7 +16,7 @@ pi install npm:unipi
16
16
  ## Usage
17
17
 
18
18
  ```typescript
19
- import { UNIPI_EVENTS, MODULES, sanitize, emitEvent } from "@unipi/core";
19
+ import { UNIPI_EVENTS, MODULES, sanitize, emitEvent } from "@pi-unipi/core";
20
20
 
21
21
  // Emit module ready event
22
22
  emitEvent(pi, UNIPI_EVENTS.MODULE_READY, {
package/constants.ts CHANGED
@@ -16,18 +16,18 @@ export const UNIPI_SETTINGS_KEY = "unipi" as const;
16
16
 
17
17
  /** Module names */
18
18
  export const MODULES = {
19
- CORE: "@unipi/core",
20
- WORKFLOW: "@unipi/workflow",
21
- RALPH: "@unipi/ralph",
22
- SUBAGENTS: "@unipi/subagents",
23
- MEMORY: "@unipi/memory",
24
- REGISTRY: "@unipi/registry",
25
- MCP: "@unipi/mcp",
26
- TASK: "@unipi/task",
27
- WEBTOOLS: "@unipi/webtools",
19
+ CORE: "@pi-unipi/core",
20
+ WORKFLOW: "@pi-unipi/workflow",
21
+ RALPH: "@pi-unipi/ralph",
22
+ SUBAGENTS: "@pi-unipi/subagents",
23
+ MEMORY: "@pi-unipi/memory",
28
24
  INFO_SCREEN: "@pi-unipi/info-screen",
29
- IMPECCABLE: "@unipi/impeccable",
30
- SETTINGS: "@unipi/settings",
25
+ REGISTRY: "@pi-unipi/registry",
26
+ MCP: "@pi-unipi/mcp",
27
+ TASK: "@pi-unipi/task",
28
+ WEBTOOLS: "@pi-unipi/webtools",
29
+ IMPECCABLE: "@pi-unipi/impeccable",
30
+ SETTINGS: "@pi-unipi/settings",
31
31
  } as const;
32
32
 
33
33
  /** Workflow command names */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/core",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Shared utilities, event types, and constants for Unipi extension suite",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/sandbox.ts CHANGED
@@ -14,10 +14,10 @@ export type SandboxLevel = "read_only" | "brainstorm" | "write_unipi" | "full";
14
14
  const SANDBOX_TOOLS: Record<SandboxLevel, readonly string[]> = {
15
15
  /** Only read-only tools — no bash, no write, no edit */
16
16
  read_only: ["read", "grep", "find", "ls"],
17
- /** Read + constrained write — only to .unipi/docs/specs/ */
18
- brainstorm: ["read", "grep", "find", "ls", "write"],
19
- /** Read + write/edit bash blocked, writes go through write tool */
20
- write_unipi: ["read", "write", "edit"],
17
+ /** Read + constrained write + bash (setup only) — only to .unipi/docs/specs/ */
18
+ brainstorm: ["read", "grep", "find", "ls", "write", "bash"],
19
+ /** Read + write/edit + file discovery no bash */
20
+ write_unipi: ["read", "write", "edit", "grep", "find", "ls"],
21
21
  /** All tools */
22
22
  full: ["read", "write", "edit", "bash"],
23
23
  };
@@ -27,7 +27,7 @@ const COMMAND_SANDBOX: Record<string, SandboxLevel> = {
27
27
  [WORKFLOW_COMMANDS.BRAINSTORM]: "brainstorm",
28
28
  [WORKFLOW_COMMANDS.PLAN]: "write_unipi",
29
29
  [WORKFLOW_COMMANDS.WORK]: "full",
30
- [WORKFLOW_COMMANDS.REVIEW_WORK]: "read_only",
30
+ [WORKFLOW_COMMANDS.REVIEW_WORK]: "write_unipi",
31
31
  [WORKFLOW_COMMANDS.CONSOLIDATE]: "write_unipi",
32
32
  [WORKFLOW_COMMANDS.WORKTREE_CREATE]: "full",
33
33
  [WORKFLOW_COMMANDS.WORKTREE_LIST]: "read_only",
@@ -81,5 +81,5 @@ export function hasWriteAccess(commandName: string): boolean {
81
81
  */
82
82
  export function hasBashAccess(commandName: string): boolean {
83
83
  const level = getSandboxLevel(commandName);
84
- return level === "full";
84
+ return level === "full" || level === "brainstorm";
85
85
  }