@modootoday/pmcp 0.19.9 → 0.21.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.
Files changed (128) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/.mcp.json +1 -1
  5. package/dist/{apply-TM6B2Y3G.js → apply-6FLMTJDV.js} +57 -23
  6. package/dist/{attachment-D84OGI6n.d.ts → attachment-ms6s8Aow.d.ts} +1 -1
  7. package/dist/{available-HYSDAFYH.js → available-BFXLII4A.js} +7 -7
  8. package/dist/{broadcast-DSCHWUMB.js → broadcast-ZALGUJVR.js} +4 -4
  9. package/dist/chunk-2GI5RM3M.js +53 -0
  10. package/dist/{chunk-ICF2JZSN.js → chunk-2MAD4WNZ.js} +2 -2
  11. package/dist/{chunk-QYQGPDBE.js → chunk-33KGCJB2.js} +2 -2
  12. package/dist/{chunk-XNPOHPMJ.js → chunk-3X5JQYKN.js} +3 -3
  13. package/dist/{chunk-4XNAKVSO.js → chunk-57Q75MS4.js} +18 -18
  14. package/dist/{chunk-2S44RDO4.js → chunk-5FW7A6TG.js} +7 -4
  15. package/dist/chunk-5YCKFU5Q.js +1672 -0
  16. package/dist/{chunk-MCYGYZVZ.js → chunk-7FV2LORT.js} +2 -2
  17. package/dist/{chunk-57FHYW74.js → chunk-DEY23WTH.js} +122 -4
  18. package/dist/chunk-DJZPPCJP.js +274 -0
  19. package/dist/{chunk-4XWVLC23.js → chunk-G6JXCUSK.js} +2 -2
  20. package/dist/{chunk-T6GOWHK6.js → chunk-GFOQDLPL.js} +6 -1
  21. package/dist/{chunk-PG42KALG.js → chunk-GQP4GWU4.js} +5 -5
  22. package/dist/chunk-H4ZOKIER.js +7 -0
  23. package/dist/{chunk-XPWIJOZT.js → chunk-JQVSDPFL.js} +3 -3
  24. package/dist/{chunk-OG7QR2DP.js → chunk-KEHB4FZP.js} +17 -2
  25. package/dist/chunk-KUBHGVTD.js +126 -0
  26. package/dist/{chunk-SPUCY4AG.js → chunk-KVNNVLJR.js} +2 -2
  27. package/dist/chunk-LFFIQBNY.js +115 -0
  28. package/dist/{chunk-V7HG3STC.js → chunk-MR5IBS6L.js} +31 -15
  29. package/dist/{chunk-W5RLIUNC.js → chunk-NHUMPEPV.js} +2 -2
  30. package/dist/{chunk-I4DLMIN5.js → chunk-OFJIMBTL.js} +2 -2
  31. package/dist/{chunk-A6TM4NTI.js → chunk-OFPNCLG7.js} +2 -2
  32. package/dist/{chunk-3UOFHLY4.js → chunk-OS5DF3LL.js} +207 -15
  33. package/dist/{chunk-BZ2RXI5I.js → chunk-POTI2RJ6.js} +2 -2
  34. package/dist/{chunk-QTKD7JEL.js → chunk-R3MVL67T.js} +34 -34
  35. package/dist/{chunk-YN5GQCHN.js → chunk-RHJEGLYM.js} +6 -1
  36. package/dist/{chunk-YKU7KHJO.js → chunk-TBKVC2TA.js} +3 -5
  37. package/dist/{chunk-YYG3GUQW.js → chunk-UFWQTZDX.js} +29 -17
  38. package/dist/{chunk-PBDPWE5J.js → chunk-VBDDFO2V.js} +2 -2
  39. package/dist/{chunk-BRSESCGX.js → chunk-VUM6LO77.js} +4717 -4694
  40. package/dist/{chunk-FR6JHNLC.js → chunk-YLITJLTR.js} +3 -3
  41. package/dist/{chunk-CJ6OFTS3.js → chunk-YOWIYFIV.js} +6 -37
  42. package/dist/{chunk-VDBUZKXC.js → chunk-Z4Q6RYJH.js} +2 -2
  43. package/dist/{chunk-RRKGSYQ4.js → chunk-Z6WRFOFT.js} +13 -2
  44. package/dist/{chunk-YXAPCHXJ.js → chunk-ZIJ5IUXH.js} +31 -5
  45. package/dist/{claude-2C5L2HQL.js → claude-XVLF4N4S.js} +3 -3
  46. package/dist/{cli-BVRPAI23.js → cli-6FWRBCWM.js} +8 -8
  47. package/dist/{cli-YV6SFE4D.js → cli-RVPR3MH3.js} +7 -7
  48. package/dist/cli.js +11 -11
  49. package/dist/{completion-B3UT3GVI.js → completion-YTPHEVEW.js} +7 -7
  50. package/dist/{diagnostics-ONIAKCA3.js → diagnostics-IW54MLFK.js} +5 -6
  51. package/dist/{doctor-MJFU5L6R.js → doctor-EN4JPSKV.js} +35 -35
  52. package/dist/{entry-DZGKCL4G.js → entry-TQWSDTJ4.js} +14 -15
  53. package/dist/{exec-mcp-QK2VC6RX.js → exec-mcp-KKQ75N5O.js} +15 -13
  54. package/dist/{harness-GTED4GLK.js → harness-EB76F6BG.js} +6 -6
  55. package/dist/harness-launch-gate.js +3 -4
  56. package/dist/harness-worker.js +5 -6
  57. package/dist/hook-body.js +281 -98
  58. package/dist/{hook-spec-C7umArqw.d.ts → hook-spec-hZL4MSgi.d.ts} +8 -3
  59. package/dist/hooks-YWSHUNLM.js +24 -0
  60. package/dist/{host-AGNF2AQH.js → host-LSVITS6M.js} +6 -7
  61. package/dist/{host-3HTCZNVJ.js → host-OGGADMBT.js} +17 -15
  62. package/dist/{host-run-2OQZVQID.js → host-run-XO2TS4JC.js} +5 -7
  63. package/dist/http.d.ts +1 -1
  64. package/dist/http.js +1 -1
  65. package/dist/{import-mcp-7KEPR2B6.js → import-mcp-BJDJTPVS.js} +14 -11
  66. package/dist/index.d.ts +12 -3
  67. package/dist/index.js +25 -25
  68. package/dist/{init-BHGCF7JL.js → init-773PTQM5.js} +3 -3
  69. package/dist/{install-HF6CROQP.js → install-7V6NIA7W.js} +4 -4
  70. package/dist/{invoke-CVHF6PEK.js → invoke-Y7XH5S2L.js} +7 -8
  71. package/dist/{list-6XGQ3FR3.js → list-5W65XVES.js} +20 -17
  72. package/dist/{logout-6RJLG2KG.js → logout-XO6ALD45.js} +15 -12
  73. package/dist/{logs-VTW7S2LR.js → logs-74JGLQG6.js} +4 -4
  74. package/dist/mailbox/index.d.ts +3 -3
  75. package/dist/{mailbox-CNAONXN7.js → mailbox-VK5AVTHI.js} +9 -9
  76. package/dist/{mainline-JSG4MUKH.js → mainline-M2NSTAGC.js} +105 -36
  77. package/dist/{mcp-P55VLQLR.js → mcp-R62ZNVGJ.js} +2 -2
  78. package/dist/{pause-V5VCNOSH.js → pause-CZ2OZYLC.js} +4 -4
  79. package/dist/project/hook-adapter.d.ts +1 -1
  80. package/dist/{project-B57IQPDK.js → project-W5DQIZA6.js} +5 -5
  81. package/dist/{pty-FD4JGBZL.js → pty-CDLQ4NP2.js} +3 -3
  82. package/dist/report-Z3JV2PCT.js +105 -0
  83. package/dist/{resume-7S4K3R4X.js → resume-DFIHT2RO.js} +4 -4
  84. package/dist/{run-MC2BPLOE.js → run-OZLGSRHF.js} +14 -11
  85. package/dist/{run-LFJXONLW.js → run-WYJMTLX7.js} +4 -4
  86. package/dist/{serve-TFAEVXX3.js → serve-DCQGAGB7.js} +3 -3
  87. package/dist/{session-XM2CR425.js → session-YZVX4NGN.js} +4 -4
  88. package/dist/{setup-FHFQZJY6.js → setup-D3KEJBGO.js} +4 -4
  89. package/dist/smoke-FQQJOQBD.js +16 -0
  90. package/dist/{start-login-KXOHCR5A.js → start-login-EKXM75XQ.js} +15 -12
  91. package/dist/{status-YXOIEVOJ.js → status-23UDIYYP.js} +39 -22
  92. package/dist/{status-OYRB3KL5.js → status-3RTGDN2K.js} +10 -10
  93. package/dist/{status-AW7DOW7A.js → status-EDSEG32U.js} +15 -12
  94. package/dist/stdio.d.ts +2 -2
  95. package/dist/stdio.js +2 -2
  96. package/dist/{sweep-ZSYG6FNR.js → sweep-EPJMEZR6.js} +4 -4
  97. package/dist/{test-2HTOY4PJ.js → test-TM6PIZTV.js} +26 -18
  98. package/dist/{tui-DQFXYQ4H.js → tui-EQNJIDN5.js} +4 -4
  99. package/dist/{unbroadcast-FONZJWEW.js → unbroadcast-NTOC3PY3.js} +4 -4
  100. package/dist/{validate-WOFI7TMT.js → validate-KFBCUFI4.js} +2 -2
  101. package/dist/{worker-UXPGXAV2.js → worker-7X6WBPEI.js} +9 -10
  102. package/dist/{worktree-list-4PLE7K6L.js → worktree-list-EMKUMCTQ.js} +2 -2
  103. package/dist/{worktree-sync-GQVYAXGJ.js → worktree-sync-T6C5YEYS.js} +3 -3
  104. package/docs/commands.md +13 -6
  105. package/docs/git-workflow.md +46 -10
  106. package/docs/hooks.md +139 -12
  107. package/docs/project-configuration.md +34 -6
  108. package/docs/upgrading.md +94 -0
  109. package/gemini-extension.json +2 -2
  110. package/mcp.json +1 -1
  111. package/package.json +5 -5
  112. package/plugin.json +1 -1
  113. package/plugins/pmcp/.claude-plugin/plugin.json +1 -1
  114. package/plugins/pmcp/.mcp.json +1 -1
  115. package/plugins/pmcp/gemini-extension.json +2 -2
  116. package/plugins/pmcp/mcp.json +1 -1
  117. package/plugins/pmcp/mod/reader/read.ts +14 -4
  118. package/plugins/pmcp/mod/sessions/format.ts +16 -1
  119. package/plugins/pmcp/mod/sessions/types.ts +1 -1
  120. package/plugins/pmcp/plugin.json +1 -1
  121. package/schema/catalog-v1.json +1 -7
  122. package/dist/chunk-EONAJAMJ.js +0 -130
  123. package/dist/chunk-IACJDHFQ.js +0 -1025
  124. package/dist/chunk-ISNRDHSD.js +0 -74
  125. package/dist/chunk-YGTJQVCK.js +0 -7
  126. package/dist/chunk-YLPXTJJM.js +0 -396
  127. package/dist/hooks-FRZ4SUNJ.js +0 -21
  128. package/dist/{core-C1LPjxK6.d.ts → core-Sug_rZrx.d.ts} +1 -1
@@ -1,16 +1,19 @@
1
1
  import {
2
2
  marketplaceSpec
3
3
  } from "./chunk-2P4Z2NUX.js";
4
+ import {
5
+ mailboxSpec
6
+ } from "./chunk-JWRZDYB5.js";
4
7
  import {
5
8
  harnessSpec,
6
9
  tuiSpec
7
10
  } from "./chunk-3Y3HDMHA.js";
11
+ import {
12
+ gitSpec
13
+ } from "./chunk-GFOQDLPL.js";
8
14
  import {
9
15
  mcpSpec
10
16
  } from "./chunk-E3DQB5LS.js";
11
- import {
12
- mailboxSpec
13
- } from "./chunk-JWRZDYB5.js";
14
17
  import {
15
18
  sessionsSpec
16
19
  } from "./chunk-LMUBBIE2.js";
@@ -18,12 +21,15 @@ import {
18
21
  logsSpec
19
22
  } from "./chunk-YGOWIJPE.js";
20
23
  import {
21
- gitSpec
22
- } from "./chunk-T6GOWHK6.js";
24
+ availableSpec,
25
+ installSpec,
26
+ previewSpec,
27
+ syncSpec
28
+ } from "./chunk-ABTJQ4QV.js";
23
29
  import {
24
30
  doctorSpec,
25
31
  projectSpec
26
- } from "./chunk-YN5GQCHN.js";
32
+ } from "./chunk-RHJEGLYM.js";
27
33
  import {
28
34
  serveSpec
29
35
  } from "./chunk-LLT5FQBE.js";
@@ -38,17 +44,11 @@ import {
38
44
  logoutSpec,
39
45
  whoamiSpec
40
46
  } from "./chunk-EIDIVIAD.js";
41
- import {
42
- availableSpec,
43
- installSpec,
44
- previewSpec,
45
- syncSpec
46
- } from "./chunk-ABTJQ4QV.js";
47
47
  import {
48
48
  hooksSpec,
49
49
  initSpec,
50
50
  statusSpec
51
- } from "./chunk-OG7QR2DP.js";
51
+ } from "./chunk-KEHB4FZP.js";
52
52
 
53
53
  // src/commands/specs/completion.ts
54
54
  var completionSpec = {
@@ -61,11 +61,11 @@ var completionSpec = {
61
61
  var COMMANDS = [
62
62
  {
63
63
  ...statusSpec,
64
- load: async () => (await import("./status-YXOIEVOJ.js")).statusCommand
64
+ load: async () => (await import("./status-23UDIYYP.js")).statusCommand
65
65
  },
66
- { ...initSpec, load: async () => (await import("./init-BHGCF7JL.js")).initCommand },
67
- { ...hooksSpec, load: async () => (await import("./hooks-FRZ4SUNJ.js")).hooksCommand },
68
- { ...serveSpec, load: async () => (await import("./serve-TFAEVXX3.js")).serveCommand },
66
+ { ...initSpec, load: async () => (await import("./init-773PTQM5.js")).initCommand },
67
+ { ...hooksSpec, load: async () => (await import("./hooks-YWSHUNLM.js")).hooksCommand },
68
+ { ...serveSpec, load: async () => (await import("./serve-DCQGAGB7.js")).serveCommand },
69
69
  { ...listSpec, load: async () => (await import("./list-WK2IYUK7.js")).listCommand },
70
70
  {
71
71
  ...indexSpec,
@@ -77,19 +77,19 @@ var COMMANDS = [
77
77
  },
78
78
  {
79
79
  ...loginSpec,
80
- load: async () => (await import("./session-XM2CR425.js")).loginCommand
80
+ load: async () => (await import("./session-YZVX4NGN.js")).loginCommand
81
81
  },
82
82
  {
83
83
  ...logoutSpec,
84
- load: async () => (await import("./session-XM2CR425.js")).logoutCommand
84
+ load: async () => (await import("./session-YZVX4NGN.js")).logoutCommand
85
85
  },
86
86
  {
87
87
  ...whoamiSpec,
88
- load: async () => (await import("./session-XM2CR425.js")).whoamiCommand
88
+ load: async () => (await import("./session-YZVX4NGN.js")).whoamiCommand
89
89
  },
90
90
  {
91
91
  ...availableSpec,
92
- load: async () => (await import("./available-HYSDAFYH.js")).availableCommand
92
+ load: async () => (await import("./available-BFXLII4A.js")).availableCommand
93
93
  },
94
94
  {
95
95
  ...previewSpec,
@@ -97,27 +97,27 @@ var COMMANDS = [
97
97
  },
98
98
  {
99
99
  ...installSpec,
100
- load: async () => (await import("./install-HF6CROQP.js")).installCommand
100
+ load: async () => (await import("./install-7V6NIA7W.js")).installCommand
101
101
  },
102
- { ...syncSpec, load: async () => (await import("./install-HF6CROQP.js")).syncCommand },
102
+ { ...syncSpec, load: async () => (await import("./install-7V6NIA7W.js")).syncCommand },
103
103
  {
104
104
  ...projectSpec,
105
- load: async () => (await import("./project-B57IQPDK.js")).projectCommand
105
+ load: async () => (await import("./project-W5DQIZA6.js")).projectCommand
106
106
  },
107
107
  {
108
108
  ...doctorSpec,
109
- load: async () => (await import("./doctor-MJFU5L6R.js")).doctorCommand
109
+ load: async () => (await import("./doctor-EN4JPSKV.js")).doctorCommand
110
110
  },
111
111
  {
112
112
  ...sessionsSpec,
113
- load: async () => (await import("./cli-BVRPAI23.js")).sessionsCommand
113
+ load: async () => (await import("./cli-6FWRBCWM.js")).sessionsCommand
114
114
  },
115
- { ...logsSpec, load: async () => (await import("./logs-VTW7S2LR.js")).logsCommand },
116
- { ...gitSpec, load: async () => (await import("./cli-YV6SFE4D.js")).gitCommand },
117
- { ...mcpSpec, load: async () => (await import("./mcp-P55VLQLR.js")).mcpCommand },
115
+ { ...logsSpec, load: async () => (await import("./logs-74JGLQG6.js")).logsCommand },
116
+ { ...gitSpec, load: async () => (await import("./cli-RVPR3MH3.js")).gitCommand },
117
+ { ...mcpSpec, load: async () => (await import("./mcp-R62ZNVGJ.js")).mcpCommand },
118
118
  {
119
119
  ...validateSpec,
120
- load: async () => (await import("./validate-WOFI7TMT.js")).validateCommand
120
+ load: async () => (await import("./validate-KFBCUFI4.js")).validateCommand
121
121
  },
122
122
  {
123
123
  ...mailboxSpec,
@@ -125,16 +125,16 @@ var COMMANDS = [
125
125
  },
126
126
  {
127
127
  ...harnessSpec,
128
- load: async () => (await import("./harness-GTED4GLK.js")).harnessCommand
128
+ load: async () => (await import("./harness-EB76F6BG.js")).harnessCommand
129
129
  },
130
- { ...tuiSpec, load: async () => (await import("./tui-DQFXYQ4H.js")).tuiCommand },
130
+ { ...tuiSpec, load: async () => (await import("./tui-EQNJIDN5.js")).tuiCommand },
131
131
  {
132
132
  ...marketplaceSpec,
133
133
  load: async () => (await import("./marketplace-G4VQET5W.js")).marketplaceCommand
134
134
  },
135
135
  {
136
136
  ...completionSpec,
137
- load: async () => (await import("./completion-B3UT3GVI.js")).completionCommand
137
+ load: async () => (await import("./completion-YTPHEVEW.js")).completionCommand
138
138
  }
139
139
  ];
140
140
  var PLANNED = [];
@@ -148,4 +148,4 @@ export {
148
148
  PLANNED,
149
149
  commandNamed
150
150
  };
151
- //# sourceMappingURL=chunk-QTKD7JEL.js.map
151
+ //# sourceMappingURL=chunk-R3MVL67T.js.map
@@ -36,6 +36,11 @@ var projectSpec = {
36
36
  name: "check",
37
37
  describe: "Write nothing; exit 2 when an output drifted, went stale or is undeclared.",
38
38
  boolean: true
39
+ },
40
+ {
41
+ name: "smoke",
42
+ describe: "With --check, also run the [hooks.test] fixtures through the projected hooks.",
43
+ boolean: true
39
44
  }
40
45
  ]
41
46
  };
@@ -64,4 +69,4 @@ export {
64
69
  projectSpec,
65
70
  doctorSpec
66
71
  };
67
- //# sourceMappingURL=chunk-YN5GQCHN.js.map
72
+ //# sourceMappingURL=chunk-RHJEGLYM.js.map
@@ -5,11 +5,9 @@ import {
5
5
  command
6
6
  } from "./chunk-34DECPVC.js";
7
7
  import {
8
+ nativeBinary,
8
9
  ptyBinary
9
- } from "./chunk-EONAJAMJ.js";
10
- import {
11
- nativeBinary
12
- } from "./chunk-57FHYW74.js";
10
+ } from "./chunk-DEY23WTH.js";
13
11
 
14
12
  // src/tui/rust.ts
15
13
  import { spawn } from "child_process";
@@ -64,4 +62,4 @@ export {
64
62
  runTui,
65
63
  dependencies
66
64
  };
67
- //# sourceMappingURL=chunk-YKU7KHJO.js.map
65
+ //# sourceMappingURL=chunk-TBKVC2TA.js.map
@@ -1,31 +1,29 @@
1
1
  import {
2
2
  hostApprovalDoctor
3
- } from "./chunk-SPUCY4AG.js";
4
- import {
5
- project
6
- } from "./chunk-3UOFHLY4.js";
3
+ } from "./chunk-KVNNVLJR.js";
7
4
  import {
8
5
  wakeableBy
9
- } from "./chunk-XPWIJOZT.js";
6
+ } from "./chunk-JQVSDPFL.js";
10
7
  import {
11
8
  currentHooks,
12
9
  restartNotes
13
10
  } from "./chunk-VJFEN6DJ.js";
14
11
  import {
15
- agentNames,
16
- marketplaceDoctor,
17
- skillNames,
18
- splitFrontmatter
19
- } from "./chunk-IACJDHFQ.js";
12
+ describeHookProblem,
13
+ project,
14
+ unmanagedHooks
15
+ } from "./chunk-OS5DF3LL.js";
20
16
  import {
21
17
  ANTIGRAVITY_MCP_PLUGIN,
22
- serversForTool
23
- } from "./chunk-YLPXTJJM.js";
24
- import {
18
+ agentNames,
19
+ marketplaceDoctor,
25
20
  permissionDoctor,
26
21
  pluginBinaryDoctor,
22
+ serversForTool,
23
+ skillNames,
24
+ splitFrontmatter,
27
25
  uiClaudeDoctor
28
- } from "./chunk-BRSESCGX.js";
26
+ } from "./chunk-VUM6LO77.js";
29
27
  import {
30
28
  pathPmcp,
31
29
  pmcpCommand
@@ -33,12 +31,12 @@ import {
33
31
  import {
34
32
  createFilesStore,
35
33
  inboxKey
36
- } from "./chunk-V7HG3STC.js";
34
+ } from "./chunk-MR5IBS6L.js";
37
35
  import {
38
36
  hostDoctor,
39
37
  hostEnvDoctor,
40
38
  ptyBinaryDoctor
41
- } from "./chunk-EONAJAMJ.js";
39
+ } from "./chunk-DEY23WTH.js";
42
40
  import {
43
41
  projectStateDir
44
42
  } from "./chunk-OEH47H6A.js";
@@ -616,6 +614,20 @@ function doctor(spec, options) {
616
614
  detail: check.problems.slice(0, 5).join("; ")
617
615
  }
618
616
  ];
617
+ const unmanaged = unmanagedHooks(spec.root, options.env ?? process.env);
618
+ if (unmanaged.checked > 0)
619
+ findings.push(
620
+ unmanaged.problems.length === 0 ? {
621
+ tool: "project",
622
+ check: "native hooks pmcp does not own",
623
+ status: "ok"
624
+ } : {
625
+ tool: "project",
626
+ check: "native hooks pmcp does not own",
627
+ status: "fail",
628
+ detail: unmanaged.problems.map(describeHookProblem).join("; ")
629
+ }
630
+ );
619
631
  findings.push(...sessionsDoctor(spec, options));
620
632
  findings.push(...hostDoctor(spec));
621
633
  if (spec.host) findings.push(hostApprovalDoctor(spec.root));
@@ -642,4 +654,4 @@ export {
642
654
  spawnRunner,
643
655
  doctor
644
656
  };
645
- //# sourceMappingURL=chunk-YYG3GUQW.js.map
657
+ //# sourceMappingURL=chunk-UFWQTZDX.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RPCIROW7.js";
4
4
  import {
5
5
  readSpec
6
- } from "./chunk-BRSESCGX.js";
6
+ } from "./chunk-VUM6LO77.js";
7
7
  import {
8
8
  ArgumentError
9
9
  } from "./chunk-A4PKLESO.js";
@@ -28,4 +28,4 @@ function specFrom(context) {
28
28
  export {
29
29
  specFrom
30
30
  };
31
- //# sourceMappingURL=chunk-PBDPWE5J.js.map
31
+ //# sourceMappingURL=chunk-VBDDFO2V.js.map