inscope 0.7.0 → 0.8.0-canary.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.
@@ -62,7 +62,7 @@ add-zsh-hook chpwd __inscope_resolve_identity
62
62
  __inscope_ws="__init__" # force the first resolve, clearing any inherited token
63
63
  __inscope_resolve_identity
64
64
  `},Le=e=>{let t=o();return e===t?`$HOME`:e.startsWith(t+n.sep)?`$HOME/${e.slice(t.length+1)}`:e},Re=()=>{let e=Le(p());return`[ -r "${e}" ] && source "${e}"`},ze=e=>{let t=Re();if(e.includes(t))return e;let n=e.replace(/\n*$/,``),r=`# inscope: load each workspace's tokens (GitHub, Slack) from \$PWD on every cd\n${t}`;return n.length?`${n}\n\n${r}\n`:`${r}\n`},Be=()=>{let e=g(),n=``;try{n=t.readFileSync(e,`utf8`)}catch{}let r=ze(n);r!==n&&t.writeFileSync(e,r)},Ve=()=>{try{return t.readFileSync(g(),`utf8`).includes(Re())}catch{return!1}},X=e=>{let r=p();t.mkdirSync(n.dirname(r),{recursive:!0}),t.writeFileSync(r,Ie(e)),Me(e),Be();let i=[];for(let t of e.workspaces)fe(t),i.push(O(t));return{hook:r,gitconfig:e.workspaces.some(e=>e.git?.email||e.git?.name),mcp:i}},He=E,Ue=e=>`SLACK_MCP_XOXP_TOKEN_${e.toUpperCase().replace(/[^A-Z0-9]+/g,`_`)}`,We=e=>E.filter(t=>!!e[t]),Ge=(e,t)=>{let n={};for(let r of E)n[r]=r===`slack`?t?{keychain:t.keychain,addMessageTool:t.addMessageTool}:!1:e.includes(r);return n},Ke=e=>{let t=ie(v()?y():_(),e);b(t),X(t)},qe=async(e,t)=>{if(!e.servers.slack)return;let n=e.servers.slack.keychain;if(t){let e=await be(`Paste the Slack xoxp token for ${n}: `);e?(_e(n,e),console.log(`\n✓ stored ${n} in the macOS keychain`)):console.error(`
65
- No token entered; skipped keychain write.`)}else N(n)||console.log(`\nSlack token not in the keychain yet. Store it once with:\n${I(P(n))}\n\nSetup guide: ${I(ye(`https://github.com/korotovsky/slack-mcp-server/blob/HEAD/docs/01-authentication-setup.md#option-2-using-slack_mcp_xoxp_token-user-oauth`))}`)};var Z=`inscope`,Je=`0.7.0`,Q={name:`Neeraj Dalal`,email:`admin@nrjdalal.com`,url:`https://nrjdalal.com`};const Ye=`Map a directory to a GitHub account, git email, and MCP servers.
65
+ No token entered; skipped keychain write.`)}else N(n)||console.log(`\nSlack token not in the keychain yet. Store it once with:\n${I(P(n))}\n\nSetup guide: ${I(ye(`https://github.com/korotovsky/slack-mcp-server/blob/HEAD/docs/01-authentication-setup.md#option-2-using-slack_mcp_xoxp_token-user-oauth`))}`)};var Z=`inscope`,Je=`0.8.0-canary.0`,Q={name:`Neeraj Dalal`,email:`admin@nrjdalal.com`,url:`https://nrjdalal.com`};const Ye=`Map a directory to a GitHub account, git email, and MCP servers.
66
66
  Runs interactively in a terminal; pass flags or -y to skip the prompts. Re-running
67
67
  with the same path or label updates that workspace.
68
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inscope",
3
- "version": "0.7.0",
3
+ "version": "0.8.0-canary.0",
4
4
  "description": "Per-workspace identity for Claude Code: scope MCP servers, GitHub auth, and git commit identity to the directory you are in.",
5
5
  "keywords": [
6
6
  "chpwd",