path-terminal-init 0.2.6 → 0.2.7

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
@@ -9,6 +9,12 @@ a real Verifone terminal — guided by the recipe and the MCP server's tools.
9
9
  **This repo is the single source of truth** for both the bootstrap CLI and the recipes.
10
10
  `Path-mcp-server` serves them (`/rules`, `/init.js`) from here — there are no duplicate copies.
11
11
 
12
+ > **Tuning the install process?** It's a *pair* of repos, not just this one:
13
+ > - **`Path-terminal-init`** (here) — the **recipes/rules** (`rules/**/*.mdc`) the agent follows + the CLI. Changes reach partners only after **`npm publish`** (version bump + 2FA).
14
+ > - **`Path-mcp-server`** — the **code examples** the agent pulls (`get_code_example`) + MCP prompts/tools. Changes go live only after a **deploy to the box** (mcp.path2ai.tech).
15
+ >
16
+ > A single behaviour change usually touches **both** (the rule says *what*, the MCP example gives the *code*) — tune one without the other and they drift. Then **update the Terminal Bible** (§12 Distribution & releases) so the docs stay current. Distribution/versioning specifics per platform live in the SDK repos.
17
+
12
18
  ## Layout
13
19
 
14
20
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "path-terminal-init",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "One-line setup for the Path Terminal SDK integration assistant — connects the user's AI agent to the Path MCP server and installs the per-OS integration recipe (iOS, Android, Windows). The single source of truth for the bootstrap CLI and the recipes.",
5
5
  "bin": {
6
6
  "path-terminal-init": "dist/cli.js"
@@ -24,11 +24,14 @@ You have access to the Path MCP server at mcp.path2ai.tech:
24
24
  > **Check whether the Swift Package is installed before doing anything else.**
25
25
  > Run:
26
26
  > ```
27
- > grep -c "path-terminal-sdk\|PathTerminalSDK" $(find . -maxdepth 2 -name "project.pbxproj" ! -path "*/DerivedData/*" | head -1)
27
+ > find . -name "project.pbxproj" ! -path "*/DerivedData/*" ! -path "*/Pods/*" ! -path "*/.build/*" ! -path "*/SourcePackages/*" -exec grep -l "path-terminal-sdk\|PathTerminalSDK" {} +
28
28
  > ```
29
- > - **Count > 0** — package is already in the project. Do not mention SPM or
29
+ > (Searches the project at **any** depth — the app's `.xcodeproj` is often nested
30
+ > a folder or two below the repo root — so the check can't miss it. Prints the
31
+ > project file if the package is present, nothing if it is not.)
32
+ > - **Prints a path** — package is already in the project. Do not mention SPM or
30
33
  > package installation anywhere in your output. Proceed directly to Step 1.
31
- > - **Count = 0** — package is not yet added. Tell the developer to add it:
34
+ > - **Prints nothing** — package is not yet added. Tell the developer to add it:
32
35
  > 1. Open Xcode → **File → Add Package Dependencies…**
33
36
  > 2. Enter URL: `https://github.com/keyman12/path-terminal-sdk`
34
37
  > 3. In the **Add to Target** sheet, tick **all four** products:
@@ -231,10 +234,10 @@ sale/refund flow on it — it is fire-and-forget branding, not part of a transac
231
234
  Before triggering the first build, run:
232
235
 
233
236
  ```
234
- grep -c "PBXFrameworksBuildPhase" $(find . -maxdepth 2 -name "project.pbxproj" ! -path "*/DerivedData/*" | head -1)
237
+ find . -name "project.pbxproj" ! -path "*/DerivedData/*" ! -path "*/Pods/*" ! -path "*/.build/*" ! -path "*/SourcePackages/*" -exec grep -l "PBXFrameworksBuildPhase" {} +
235
238
  ```
236
239
 
237
- If the count is **0**, the Frameworks build phase is missing and the build will
240
+ If this prints **nothing**, the Frameworks build phase is missing and the build will
238
241
  fail with `Undefined symbol` linker errors for PathTerminalSDK / PathEmulatorAdapter
239
242
  / PathCoreModels. Fix it now — do not wait for the build to fail.
240
243
 
@@ -242,7 +245,7 @@ fail with `Undefined symbol` linker errors for PathTerminalSDK / PathEmulatorAda
242
245
 
243
246
  1. Find the four package product UUIDs from the target's `packageProductDependencies`:
244
247
  ```
245
- grep -A 8 "packageProductDependencies" $(find . -maxdepth 2 -name "project.pbxproj" ! -path "*/DerivedData/*" | head -1)
248
+ find . -name "project.pbxproj" ! -path "*/DerivedData/*" ! -path "*/Pods/*" ! -path "*/.build/*" ! -path "*/SourcePackages/*" -exec grep -A 8 "packageProductDependencies" {} +
246
249
  ```
247
250
  You will see something like:
248
251
  ```