@topce/pizx 0.1.0

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.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * pizx globals — injects π and Π into global scope when pizx runs a script.
3
+ *
4
+ * This module mirrors `zx/globals` pattern: it attaches π and Π
5
+ * (plus helpers) to `globalThis`. User scripts can then reference
6
+ * them without explicit imports.
7
+ *
8
+ * Usage in CLI:
9
+ * await import('pizx/globals')
10
+ * // now π, Π are available in user scripts
11
+ */
12
+ import { π as _π, configurePi } from './pi.ts';
13
+ import { Π as _Π, configureAgent, closeAgent } from './pi-agent.ts';
14
+ export { _π as π, _Π as Π, configurePi, configureAgent, closeAgent };
15
+ //# sourceMappingURL=globals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../src/globals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAYnE,OAAO,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * pizx — zx fork with native Pi AI integration
3
+ *
4
+ * @example
5
+ * ```js
6
+ * #!/usr/bin/env pizx
7
+ * const branch = (await $`git branch --show-current`).stdout.trim()
8
+ * const explanation = await π`explain this code in simple terms: ${code}`
9
+ * await Π`fix the TypeScript errors in src/ and run tests`
10
+ * ```
11
+ *
12
+ * API:
13
+ * $ — shell commands (unchanged from zx)
14
+ * π — pi-ai text generation (small pi)
15
+ * Π — pi-coding-agent with tools (capital pi)
16
+ */
17
+ export * from 'zx';
18
+ export { π, PiPromise, PiOutput, configurePi, type PiOptions, } from './pi.ts';
19
+ export { Π, AgentPromise, AgentOutput, configureAgent, closeAgent, type AgentOptions, type AgentTag, } from './pi-agent.ts';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,cAAc,IAAI,CAAA;AAIlB,OAAO,EAEL,CAAC,EACD,SAAS,EACT,QAAQ,EACR,WAAW,EACX,KAAK,SAAS,GACf,MAAM,SAAS,CAAA;AAEhB,OAAO,EAEL,CAAC,EACD,YAAY,EACZ,WAAW,EACX,cAAc,EACd,UAAU,EACV,KAAK,YAAY,EACjB,KAAK,QAAQ,GACd,MAAM,eAAe,CAAA"}