@codemieai/code 0.0.45 → 0.0.47
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/dist/agents/core/BaseAgentAdapter.d.ts.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.js +20 -3
- package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
- package/dist/agents/core/metrics/types.d.ts +0 -6
- package/dist/agents/core/metrics/types.d.ts.map +1 -1
- package/dist/agents/core/session/BaseSessionAdapter.d.ts +0 -6
- package/dist/agents/core/session/BaseSessionAdapter.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude.plugin-installer.d.ts +0 -11
- package/dist/agents/plugins/claude/claude.plugin-installer.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude.plugin-installer.js +0 -32
- package/dist/agents/plugins/claude/claude.plugin-installer.js.map +1 -1
- package/dist/agents/plugins/claude/claude.plugin.js +1 -1
- package/dist/agents/plugins/claude/claude.session.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude.session.js +1 -28
- package/dist/agents/plugins/claude/claude.session.js.map +1 -1
- package/dist/agents/plugins/claude/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/agents/plugins/claude/plugin/README.md +1 -14
- package/dist/agents/plugins/claude/plugin/hooks/hooks.json +4 -4
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/SKILL.md +206 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-agent.md +45 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-claude-md-snippet.md +40 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-command.md +30 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-hooks.json +23 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-skill.md +48 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-agent.md +145 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-claude-md-snippet.md +126 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-command.md +170 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-hooks.json +46 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-skill.md +144 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/sample-report.md +223 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/references/best-practices.md +510 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/references/component-checklists.md +413 -0
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/scripts/scan-repo.sh +162 -0
- package/dist/agents/plugins/claude/plugin/skills/msgraph/README.md +183 -0
- package/dist/agents/plugins/claude/plugin/skills/msgraph/SKILL.md +233 -0
- package/dist/agents/plugins/claude/plugin/skills/msgraph/scripts/msgraph.py +785 -0
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts.map +1 -1
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js +3 -78
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js.map +1 -1
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.d.ts.map +1 -1
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js +7 -16
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js.map +1 -1
- package/dist/agents/plugins/claude/sounds-installer.d.ts +1 -1
- package/dist/agents/plugins/claude/sounds-installer.d.ts.map +1 -1
- package/dist/agents/plugins/claude/sounds-installer.js +1 -4
- package/dist/agents/plugins/claude/sounds-installer.js.map +1 -1
- package/dist/agents/plugins/codemie-code.plugin.d.ts +1 -4
- package/dist/agents/plugins/codemie-code.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/codemie-code.plugin.js +26 -81
- package/dist/agents/plugins/codemie-code.plugin.js.map +1 -1
- package/dist/agents/plugins/gemini/gemini.session-adapter.d.ts +1 -8
- package/dist/agents/plugins/gemini/gemini.session-adapter.d.ts.map +1 -1
- package/dist/agents/plugins/gemini/gemini.session-adapter.js +2 -30
- package/dist/agents/plugins/gemini/gemini.session-adapter.js.map +1 -1
- package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.d.ts.map +1 -1
- package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js +2 -8
- package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js.map +1 -1
- package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.d.ts.map +1 -1
- package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.js +0 -7
- package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.js.map +1 -1
- package/dist/agents/plugins/opencode/index.d.ts +1 -1
- package/dist/agents/plugins/opencode/index.d.ts.map +1 -1
- package/dist/agents/plugins/opencode/index.js.map +1 -1
- package/dist/agents/plugins/opencode/opencode-message-types.d.ts +2 -22
- package/dist/agents/plugins/opencode/opencode-message-types.d.ts.map +1 -1
- package/dist/agents/plugins/opencode/opencode-message-types.js.map +1 -1
- package/dist/agents/plugins/opencode/opencode.session.d.ts.map +1 -1
- package/dist/agents/plugins/opencode/opencode.session.js +5 -30
- package/dist/agents/plugins/opencode/opencode.session.js.map +1 -1
- package/dist/agents/plugins/opencode/opencode.sqlite-reader.d.ts.map +1 -1
- package/dist/agents/plugins/opencode/opencode.sqlite-reader.js +0 -2
- package/dist/agents/plugins/opencode/opencode.sqlite-reader.js.map +1 -1
- package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.d.ts +0 -8
- package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.d.ts.map +1 -1
- package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.js +8 -97
- package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.js.map +1 -1
- package/dist/cli/commands/analytics/aggregator.d.ts +0 -8
- package/dist/cli/commands/analytics/aggregator.d.ts.map +1 -1
- package/dist/cli/commands/analytics/aggregator.js +5 -100
- package/dist/cli/commands/analytics/aggregator.js.map +1 -1
- package/dist/cli/commands/analytics/data-loader.d.ts +0 -7
- package/dist/cli/commands/analytics/data-loader.d.ts.map +1 -1
- package/dist/cli/commands/analytics/data-loader.js +3 -10
- package/dist/cli/commands/analytics/data-loader.js.map +1 -1
- package/dist/cli/commands/analytics/exporter.d.ts.map +1 -1
- package/dist/cli/commands/analytics/exporter.js +0 -12
- package/dist/cli/commands/analytics/exporter.js.map +1 -1
- package/dist/cli/commands/analytics/formatter.d.ts.map +1 -1
- package/dist/cli/commands/analytics/formatter.js +0 -9
- package/dist/cli/commands/analytics/formatter.js.map +1 -1
- package/dist/cli/commands/analytics/types.d.ts +0 -17
- package/dist/cli/commands/analytics/types.d.ts.map +1 -1
- package/dist/cli/commands/assistants/chat/historyLoader.d.ts +22 -0
- package/dist/cli/commands/assistants/chat/historyLoader.d.ts.map +1 -0
- package/dist/cli/commands/assistants/chat/historyLoader.js +80 -0
- package/dist/cli/commands/assistants/chat/historyLoader.js.map +1 -0
- package/dist/cli/commands/assistants/{chat.d.ts → chat/index.d.ts} +1 -1
- package/dist/cli/commands/assistants/chat/index.d.ts.map +1 -0
- package/dist/cli/commands/assistants/{chat.js → chat/index.js} +54 -45
- package/dist/cli/commands/assistants/chat/index.js.map +1 -0
- package/dist/cli/commands/assistants/chat/types.d.ts +27 -0
- package/dist/cli/commands/assistants/chat/types.d.ts.map +1 -0
- package/dist/cli/commands/assistants/chat/types.js +5 -0
- package/dist/cli/commands/assistants/chat/types.js.map +1 -0
- package/dist/cli/commands/assistants/chat/utils.d.ts +12 -0
- package/dist/cli/commands/assistants/chat/utils.d.ts.map +1 -0
- package/dist/cli/commands/assistants/chat/utils.js +24 -0
- package/dist/cli/commands/assistants/chat/utils.js.map +1 -0
- package/dist/cli/commands/assistants/constants.d.ts +1 -0
- package/dist/cli/commands/assistants/constants.d.ts.map +1 -1
- package/dist/cli/commands/assistants/constants.js.map +1 -1
- package/dist/cli/commands/assistants/index.js +2 -2
- package/dist/cli/commands/assistants/index.js.map +1 -1
- package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.js +1 -1
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.js +1 -1
- package/dist/cli/commands/assistants/setup/index.js +4 -4
- package/dist/cli/commands/assistants/setup/index.js.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/index.d.ts +1 -1
- package/dist/cli/commands/assistants/setup/selection/index.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/index.js +5 -3
- package/dist/cli/commands/assistants/setup/selection/index.js.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js +7 -1
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/types.d.ts +2 -0
- package/dist/cli/commands/assistants/setup/selection/types.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/ui.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/ui.js +15 -4
- package/dist/cli/commands/assistants/setup/selection/ui.js.map +1 -1
- package/dist/cli/commands/hook.js +1 -1
- package/dist/cli/commands/hook.js.map +1 -1
- package/dist/cli/commands/plugin.d.ts +16 -0
- package/dist/cli/commands/plugin.d.ts.map +1 -0
- package/dist/cli/commands/plugin.js +210 -0
- package/dist/cli/commands/plugin.js.map +1 -0
- package/dist/cli/commands/setup.js +1 -1
- package/dist/cli/commands/skill.d.ts.map +1 -1
- package/dist/cli/commands/skill.js +3 -1
- package/dist/cli/commands/skill.js.map +1 -1
- package/dist/cli/commands/sound.d.ts +3 -0
- package/dist/cli/commands/sound.d.ts.map +1 -0
- package/dist/cli/commands/sound.js +87 -0
- package/dist/cli/commands/sound.js.map +1 -0
- package/dist/cli/commands/test-metrics.js +3 -5
- package/dist/cli/commands/test-metrics.js.map +1 -1
- package/dist/cli/index.js +4 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/env/types.d.ts +8 -0
- package/dist/env/types.d.ts.map +1 -1
- package/dist/env/types.js.map +1 -1
- package/dist/plugins/core/index.d.ts +13 -0
- package/dist/plugins/core/index.d.ts.map +1 -0
- package/dist/plugins/core/index.js +15 -0
- package/dist/plugins/core/index.js.map +1 -0
- package/dist/plugins/core/manifest-parser.d.ts +28 -0
- package/dist/plugins/core/manifest-parser.d.ts.map +1 -0
- package/dist/plugins/core/manifest-parser.js +137 -0
- package/dist/plugins/core/manifest-parser.js.map +1 -0
- package/dist/plugins/core/plugin-cache.d.ts +65 -0
- package/dist/plugins/core/plugin-cache.d.ts.map +1 -0
- package/dist/plugins/core/plugin-cache.js +170 -0
- package/dist/plugins/core/plugin-cache.js.map +1 -0
- package/dist/plugins/core/plugin-loader.d.ts +21 -0
- package/dist/plugins/core/plugin-loader.d.ts.map +1 -0
- package/dist/plugins/core/plugin-loader.js +55 -0
- package/dist/plugins/core/plugin-loader.js.map +1 -0
- package/dist/plugins/core/plugin-resolver.d.ts +33 -0
- package/dist/plugins/core/plugin-resolver.d.ts.map +1 -0
- package/dist/plugins/core/plugin-resolver.js +118 -0
- package/dist/plugins/core/plugin-resolver.js.map +1 -0
- package/dist/plugins/core/types.d.ts +183 -0
- package/dist/plugins/core/types.d.ts.map +1 -0
- package/dist/plugins/core/types.js +22 -0
- package/dist/plugins/core/types.js.map +1 -0
- package/dist/plugins/loaders/agents-loader.d.ts +19 -0
- package/dist/plugins/loaders/agents-loader.d.ts.map +1 -0
- package/dist/plugins/loaders/agents-loader.js +92 -0
- package/dist/plugins/loaders/agents-loader.js.map +1 -0
- package/dist/plugins/loaders/hooks-loader.d.ts +27 -0
- package/dist/plugins/loaders/hooks-loader.d.ts.map +1 -0
- package/dist/plugins/loaders/hooks-loader.js +94 -0
- package/dist/plugins/loaders/hooks-loader.js.map +1 -0
- package/dist/plugins/loaders/mcp-loader.d.ts +24 -0
- package/dist/plugins/loaders/mcp-loader.d.ts.map +1 -0
- package/dist/plugins/loaders/mcp-loader.js +86 -0
- package/dist/plugins/loaders/mcp-loader.js.map +1 -0
- package/dist/plugins/loaders/skills-loader.d.ts +30 -0
- package/dist/plugins/loaders/skills-loader.d.ts.map +1 -0
- package/dist/plugins/loaders/skills-loader.js +167 -0
- package/dist/plugins/loaders/skills-loader.js.map +1 -0
- package/dist/providers/plugins/bedrock/bedrock.template.js +1 -1
- package/dist/providers/plugins/jwt/jwt.setup-steps.js +1 -1
- package/dist/providers/plugins/jwt/jwt.template.js +1 -1
- package/dist/providers/plugins/litellm/litellm.template.js +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/header-injection.plugin.js +10 -0
- package/dist/providers/plugins/sso/proxy/plugins/header-injection.plugin.js.map +1 -1
- package/dist/providers/plugins/sso/proxy/proxy-types.d.ts +3 -0
- package/dist/providers/plugins/sso/proxy/proxy-types.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/SessionSyncer.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/SessionSyncer.js +2 -3
- package/dist/providers/plugins/sso/session/SessionSyncer.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/apiClient.d.ts +21 -0
- package/dist/providers/plugins/sso/session/processors/conversations/apiClient.d.ts.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/apiClient.js +159 -0
- package/dist/providers/plugins/sso/session/processors/conversations/apiClient.js.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/constants.d.ts +24 -0
- package/dist/providers/plugins/sso/session/processors/conversations/constants.d.ts.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/constants.js +36 -0
- package/dist/providers/plugins/sso/session/processors/conversations/constants.js.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.d.ts +19 -0
- package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.d.ts.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/{conversation-sync-processor.js → syncProcessor.js} +48 -33
- package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.js.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/{conversation-types.d.ts → types.d.ts} +14 -2
- package/dist/providers/plugins/sso/session/processors/conversations/types.d.ts.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/types.js +14 -0
- package/dist/providers/plugins/sso/session/processors/conversations/types.js.map +1 -0
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js +16 -17
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts +3 -3
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js +8 -38
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js +2 -6
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts +49 -31
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts.map +1 -1
- package/dist/providers/plugins/sso/sso.template.js +1 -1
- package/dist/{agents/codemie-code/skills → skills}/core/SkillDiscovery.d.ts +10 -0
- package/dist/skills/core/SkillDiscovery.d.ts.map +1 -0
- package/dist/{agents/codemie-code/skills → skills}/core/SkillDiscovery.js +64 -7
- package/dist/skills/core/SkillDiscovery.js.map +1 -0
- package/dist/skills/core/SkillManager.d.ts.map +1 -0
- package/dist/{agents/codemie-code/skills → skills}/core/SkillManager.js +15 -10
- package/dist/skills/core/SkillManager.js.map +1 -0
- package/dist/{agents/codemie-code/skills → skills}/core/types.d.ts +3 -25
- package/dist/skills/core/types.d.ts.map +1 -0
- package/dist/skills/core/types.js.map +1 -0
- package/dist/{agents/codemie-code/skills → skills}/index.d.ts +3 -3
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/{agents/codemie-code/skills → skills}/index.js +2 -2
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/sync/SkillSync.d.ts.map +1 -0
- package/dist/{agents/codemie-code/skills → skills}/sync/SkillSync.js +5 -3
- package/dist/skills/sync/SkillSync.js.map +1 -0
- package/dist/{agents/codemie-code/skills → skills}/utils/content-loader.d.ts +2 -12
- package/dist/skills/utils/content-loader.d.ts.map +1 -0
- package/dist/{agents/codemie-code/skills → skills}/utils/content-loader.js +3 -8
- package/dist/skills/utils/content-loader.js.map +1 -0
- package/dist/skills/utils/pattern-matcher.d.ts.map +1 -0
- package/dist/skills/utils/pattern-matcher.js.map +1 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/package.json +1 -1
- package/dist/agents/codemie-code/agent.d.ts +0 -129
- package/dist/agents/codemie-code/agent.d.ts.map +0 -1
- package/dist/agents/codemie-code/agent.js +0 -1106
- package/dist/agents/codemie-code/agent.js.map +0 -1
- package/dist/agents/codemie-code/config.d.ts +0 -40
- package/dist/agents/codemie-code/config.d.ts.map +0 -1
- package/dist/agents/codemie-code/config.js +0 -293
- package/dist/agents/codemie-code/config.js.map +0 -1
- package/dist/agents/codemie-code/filters.d.ts +0 -91
- package/dist/agents/codemie-code/filters.d.ts.map +0 -1
- package/dist/agents/codemie-code/filters.js +0 -328
- package/dist/agents/codemie-code/filters.js.map +0 -1
- package/dist/agents/codemie-code/index.d.ts +0 -93
- package/dist/agents/codemie-code/index.d.ts.map +0 -1
- package/dist/agents/codemie-code/index.js +0 -359
- package/dist/agents/codemie-code/index.js.map +0 -1
- package/dist/agents/codemie-code/modes/contextAwarePlanning.d.ts +0 -87
- package/dist/agents/codemie-code/modes/contextAwarePlanning.d.ts.map +0 -1
- package/dist/agents/codemie-code/modes/contextAwarePlanning.js +0 -957
- package/dist/agents/codemie-code/modes/contextAwarePlanning.js.map +0 -1
- package/dist/agents/codemie-code/modes/planMode.d.ts +0 -116
- package/dist/agents/codemie-code/modes/planMode.d.ts.map +0 -1
- package/dist/agents/codemie-code/modes/planMode.js +0 -537
- package/dist/agents/codemie-code/modes/planMode.js.map +0 -1
- package/dist/agents/codemie-code/prompts.d.ts +0 -47
- package/dist/agents/codemie-code/prompts.d.ts.map +0 -1
- package/dist/agents/codemie-code/prompts.js +0 -207
- package/dist/agents/codemie-code/prompts.js.map +0 -1
- package/dist/agents/codemie-code/skills/core/SkillDiscovery.d.ts.map +0 -1
- package/dist/agents/codemie-code/skills/core/SkillDiscovery.js.map +0 -1
- package/dist/agents/codemie-code/skills/core/SkillManager.d.ts.map +0 -1
- package/dist/agents/codemie-code/skills/core/SkillManager.js.map +0 -1
- package/dist/agents/codemie-code/skills/core/types.d.ts.map +0 -1
- package/dist/agents/codemie-code/skills/core/types.js.map +0 -1
- package/dist/agents/codemie-code/skills/index.d.ts.map +0 -1
- package/dist/agents/codemie-code/skills/index.js.map +0 -1
- package/dist/agents/codemie-code/skills/sync/SkillSync.d.ts.map +0 -1
- package/dist/agents/codemie-code/skills/sync/SkillSync.js.map +0 -1
- package/dist/agents/codemie-code/skills/utils/content-loader.d.ts.map +0 -1
- package/dist/agents/codemie-code/skills/utils/content-loader.js.map +0 -1
- package/dist/agents/codemie-code/skills/utils/frontmatter.d.ts.map +0 -1
- package/dist/agents/codemie-code/skills/utils/frontmatter.js.map +0 -1
- package/dist/agents/codemie-code/skills/utils/pattern-matcher.d.ts.map +0 -1
- package/dist/agents/codemie-code/skills/utils/pattern-matcher.js.map +0 -1
- package/dist/agents/codemie-code/storage/todoStorage.d.ts +0 -78
- package/dist/agents/codemie-code/storage/todoStorage.d.ts.map +0 -1
- package/dist/agents/codemie-code/storage/todoStorage.js +0 -225
- package/dist/agents/codemie-code/storage/todoStorage.js.map +0 -1
- package/dist/agents/codemie-code/tokenUtils.d.ts +0 -108
- package/dist/agents/codemie-code/tokenUtils.d.ts.map +0 -1
- package/dist/agents/codemie-code/tokenUtils.js +0 -220
- package/dist/agents/codemie-code/tokenUtils.js.map +0 -1
- package/dist/agents/codemie-code/toolMetadata.d.ts +0 -15
- package/dist/agents/codemie-code/toolMetadata.d.ts.map +0 -1
- package/dist/agents/codemie-code/toolMetadata.js +0 -316
- package/dist/agents/codemie-code/toolMetadata.js.map +0 -1
- package/dist/agents/codemie-code/tools/assistant-invocation.d.ts +0 -47
- package/dist/agents/codemie-code/tools/assistant-invocation.d.ts.map +0 -1
- package/dist/agents/codemie-code/tools/assistant-invocation.js +0 -129
- package/dist/agents/codemie-code/tools/assistant-invocation.js.map +0 -1
- package/dist/agents/codemie-code/tools/index.d.ts +0 -111
- package/dist/agents/codemie-code/tools/index.d.ts.map +0 -1
- package/dist/agents/codemie-code/tools/index.js +0 -424
- package/dist/agents/codemie-code/tools/index.js.map +0 -1
- package/dist/agents/codemie-code/tools/planning.d.ts +0 -54
- package/dist/agents/codemie-code/tools/planning.d.ts.map +0 -1
- package/dist/agents/codemie-code/tools/planning.js +0 -226
- package/dist/agents/codemie-code/tools/planning.js.map +0 -1
- package/dist/agents/codemie-code/types.d.ts +0 -459
- package/dist/agents/codemie-code/types.d.ts.map +0 -1
- package/dist/agents/codemie-code/types.js +0 -59
- package/dist/agents/codemie-code/types.js.map +0 -1
- package/dist/agents/codemie-code/ui/autocomplete.d.ts +0 -98
- package/dist/agents/codemie-code/ui/autocomplete.d.ts.map +0 -1
- package/dist/agents/codemie-code/ui/autocomplete.js +0 -145
- package/dist/agents/codemie-code/ui/autocomplete.js.map +0 -1
- package/dist/agents/codemie-code/ui/keyHandlers.d.ts +0 -112
- package/dist/agents/codemie-code/ui/keyHandlers.d.ts.map +0 -1
- package/dist/agents/codemie-code/ui/keyHandlers.js +0 -415
- package/dist/agents/codemie-code/ui/keyHandlers.js.map +0 -1
- package/dist/agents/codemie-code/ui/mentions.d.ts +0 -86
- package/dist/agents/codemie-code/ui/mentions.d.ts.map +0 -1
- package/dist/agents/codemie-code/ui/mentions.js +0 -122
- package/dist/agents/codemie-code/ui/mentions.js.map +0 -1
- package/dist/agents/codemie-code/ui/progressTracker.d.ts +0 -125
- package/dist/agents/codemie-code/ui/progressTracker.d.ts.map +0 -1
- package/dist/agents/codemie-code/ui/progressTracker.js +0 -343
- package/dist/agents/codemie-code/ui/progressTracker.js.map +0 -1
- package/dist/agents/codemie-code/ui/terminalCodes.d.ts +0 -38
- package/dist/agents/codemie-code/ui/terminalCodes.d.ts.map +0 -1
- package/dist/agents/codemie-code/ui/terminalCodes.js +0 -42
- package/dist/agents/codemie-code/ui/terminalCodes.js.map +0 -1
- package/dist/agents/codemie-code/ui/todoPanel.d.ts +0 -112
- package/dist/agents/codemie-code/ui/todoPanel.d.ts.map +0 -1
- package/dist/agents/codemie-code/ui/todoPanel.js +0 -321
- package/dist/agents/codemie-code/ui/todoPanel.js.map +0 -1
- package/dist/agents/codemie-code/ui.d.ts +0 -180
- package/dist/agents/codemie-code/ui.d.ts.map +0 -1
- package/dist/agents/codemie-code/ui.js +0 -1345
- package/dist/agents/codemie-code/ui.js.map +0 -1
- package/dist/agents/codemie-code/utils/progressionEnforcer.d.ts +0 -87
- package/dist/agents/codemie-code/utils/progressionEnforcer.d.ts.map +0 -1
- package/dist/agents/codemie-code/utils/progressionEnforcer.js +0 -293
- package/dist/agents/codemie-code/utils/progressionEnforcer.js.map +0 -1
- package/dist/agents/codemie-code/utils/todoParser.d.ts +0 -41
- package/dist/agents/codemie-code/utils/todoParser.d.ts.map +0 -1
- package/dist/agents/codemie-code/utils/todoParser.js +0 -305
- package/dist/agents/codemie-code/utils/todoParser.js.map +0 -1
- package/dist/agents/codemie-code/utils/todoValidator.d.ts +0 -65
- package/dist/agents/codemie-code/utils/todoValidator.d.ts.map +0 -1
- package/dist/agents/codemie-code/utils/todoValidator.js +0 -249
- package/dist/agents/codemie-code/utils/todoValidator.js.map +0 -1
- package/dist/agents/codemie-code/validators/planValidator.d.ts +0 -94
- package/dist/agents/codemie-code/validators/planValidator.d.ts.map +0 -1
- package/dist/agents/codemie-code/validators/planValidator.js +0 -281
- package/dist/agents/codemie-code/validators/planValidator.js.map +0 -1
- package/dist/agents/plugins/claude/plugin/hooks/hooks.windows.json +0 -98
- package/dist/agents/plugins/claude/plugin/sounds/play-random-sound.ps1 +0 -112
- package/dist/agents/plugins/claude/plugin/sounds/play-random-sound.sh +0 -58
- package/dist/agents/plugins/gemini/session/utils/token-aggregator.d.ts +0 -26
- package/dist/agents/plugins/gemini/session/utils/token-aggregator.d.ts.map +0 -1
- package/dist/agents/plugins/gemini/session/utils/token-aggregator.js +0 -38
- package/dist/agents/plugins/gemini/session/utils/token-aggregator.js.map +0 -1
- package/dist/cli/commands/assistants/chat.d.ts.map +0 -1
- package/dist/cli/commands/assistants/chat.js.map +0 -1
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.d.ts +0 -26
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.d.ts.map +0 -1
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.js +0 -146
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.js.map +0 -1
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts +0 -22
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts.map +0 -1
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.js.map +0 -1
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.d.ts.map +0 -1
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.js +0 -7
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.js.map +0 -1
- /package/dist/{agents/codemie-code/skills → skills}/core/SkillManager.d.ts +0 -0
- /package/dist/{agents/codemie-code/skills → skills}/core/types.js +0 -0
- /package/dist/{agents/codemie-code/skills → skills}/sync/SkillSync.d.ts +0 -0
- /package/dist/{agents/codemie-code/skills → skills}/utils/pattern-matcher.d.ts +0 -0
- /package/dist/{agents/codemie-code/skills → skills}/utils/pattern-matcher.js +0 -0
- /package/dist/{agents/codemie-code/skills/utils → utils}/frontmatter.d.ts +0 -0
- /package/dist/{agents/codemie-code/skills/utils → utils}/frontmatter.js +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# Microsoft Graph API Skill for Claude Code
|
|
2
|
+
|
|
3
|
+
Work with your Microsoft 365 account from Claude Code — emails, calendar, SharePoint, Teams, OneDrive, contacts, and org chart — all via the Microsoft Graph API.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
### 1. Install dependencies
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install msal requests
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### 2. Log in (first time only)
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py login
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
You'll see a message like:
|
|
22
|
+
```
|
|
23
|
+
==============================
|
|
24
|
+
To sign in, use a web browser to open the page https://microsoft.com/devicelogin
|
|
25
|
+
and enter the code ABCD-1234 to authenticate.
|
|
26
|
+
==============================
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Open the URL in your browser, enter the code, and sign in with your Microsoft account.
|
|
30
|
+
Your token is cached at `~/.ms_graph_token_cache.json` — you won't need to log in again until it expires (tokens refresh automatically).
|
|
31
|
+
|
|
32
|
+
### 3. Ask Claude anything
|
|
33
|
+
|
|
34
|
+
After logging in, just ask Claude naturally:
|
|
35
|
+
|
|
36
|
+
- *"Show me my unread emails"*
|
|
37
|
+
- *"What meetings do I have this week?"*
|
|
38
|
+
- *"Find the Q4 report in SharePoint"*
|
|
39
|
+
- *"What did Alice send me in Teams?"*
|
|
40
|
+
- *"Who reports to me?"*
|
|
41
|
+
|
|
42
|
+
Claude will use this skill automatically.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## CLI Reference
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py <command> [options]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Auth commands
|
|
53
|
+
|
|
54
|
+
| Command | Description |
|
|
55
|
+
|---------|-------------|
|
|
56
|
+
| `login` | Authenticate (device code flow) |
|
|
57
|
+
| `logout` | Remove cached credentials |
|
|
58
|
+
| `status` | Check if you're logged in |
|
|
59
|
+
|
|
60
|
+
### Data commands
|
|
61
|
+
|
|
62
|
+
| Command | Key options | Description |
|
|
63
|
+
|---------|-------------|-------------|
|
|
64
|
+
| `me` | | Your profile |
|
|
65
|
+
| `emails` | `--limit N`, `--unread`, `--search QUERY`, `--read ID`, `--send TO --subject S --body B`, `--folder NAME` | Work with Outlook emails |
|
|
66
|
+
| `calendar` | `--limit N`, `--create TITLE --start DT --end DT`, `--availability` | Calendar events |
|
|
67
|
+
| `sharepoint` | `--sites`, `--site ID [--path P]`, `--download ID` | SharePoint files |
|
|
68
|
+
| `teams` | `--chats`, `--messages CHAT_ID`, `--send MSG --chat-id ID`, `--teams-list` | Teams messages |
|
|
69
|
+
| `onedrive` | `[--path P]`, `--upload FILE`, `--download ID`, `--info ID` | OneDrive files |
|
|
70
|
+
| `people` | `--search NAME`, `--contacts` | People & contacts |
|
|
71
|
+
| `org` | `--manager`, `--reports` | Org chart |
|
|
72
|
+
|
|
73
|
+
Add `--json` to any command for machine-readable JSON output.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Examples
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# List 20 most recent emails
|
|
81
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py emails --limit 20
|
|
82
|
+
|
|
83
|
+
# Read a specific email (paste the ID from list output)
|
|
84
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py emails --read AAMkAGI2...
|
|
85
|
+
|
|
86
|
+
# Send an email
|
|
87
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py emails \
|
|
88
|
+
--send colleague@company.com \
|
|
89
|
+
--subject "Quick question" \
|
|
90
|
+
--body "Are you free tomorrow at 2pm?"
|
|
91
|
+
|
|
92
|
+
# Upcoming calendar events
|
|
93
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py calendar --limit 5
|
|
94
|
+
|
|
95
|
+
# Create a meeting
|
|
96
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py calendar \
|
|
97
|
+
--create "Design Review" \
|
|
98
|
+
--start "2024-03-20T14:00" \
|
|
99
|
+
--end "2024-03-20T15:00" \
|
|
100
|
+
--timezone "Europe/Berlin"
|
|
101
|
+
|
|
102
|
+
# List SharePoint sites you follow
|
|
103
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py sharepoint --sites
|
|
104
|
+
|
|
105
|
+
# Browse a site's documents
|
|
106
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py sharepoint \
|
|
107
|
+
--site "contoso.sharepoint.com,abc123,def456" \
|
|
108
|
+
--path "Documents/2024"
|
|
109
|
+
|
|
110
|
+
# Download a OneDrive file
|
|
111
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py onedrive --download ITEM_ID --output report.xlsx
|
|
112
|
+
|
|
113
|
+
# Upload to OneDrive
|
|
114
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py onedrive \
|
|
115
|
+
--upload ./presentation.pptx \
|
|
116
|
+
--dest "Documents/presentations/deck.pptx"
|
|
117
|
+
|
|
118
|
+
# Recent Teams chats
|
|
119
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py teams --chats
|
|
120
|
+
|
|
121
|
+
# Read a chat conversation
|
|
122
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py teams --messages 19:abc123@thread.v2
|
|
123
|
+
|
|
124
|
+
# Search your contacts
|
|
125
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py people --search "John"
|
|
126
|
+
|
|
127
|
+
# Your manager
|
|
128
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py org --manager
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Token Cache
|
|
134
|
+
|
|
135
|
+
Credentials are stored in `~/.ms_graph_token_cache.json`.
|
|
136
|
+
- Access tokens refresh automatically (they last ~1 hour, but MSAL handles renewal)
|
|
137
|
+
- Refresh tokens last longer (~90 days by default in Azure)
|
|
138
|
+
- Run `logout` to remove the cache: `python msgraph.py logout`
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Permissions
|
|
143
|
+
|
|
144
|
+
The script requests these Microsoft Graph scopes on first login:
|
|
145
|
+
|
|
146
|
+
| Scope | Used for |
|
|
147
|
+
|-------|---------|
|
|
148
|
+
| `User.Read` | Profile (`me`, `org`) |
|
|
149
|
+
| `Mail.Read` | Reading emails |
|
|
150
|
+
| `Mail.Send` | Sending emails |
|
|
151
|
+
| `Calendars.Read` / `Calendars.ReadWrite` | Calendar events |
|
|
152
|
+
| `Files.Read` / `Files.ReadWrite` | OneDrive files |
|
|
153
|
+
| `Sites.Read.All` | SharePoint sites |
|
|
154
|
+
| `Chat.Read` / `Chat.ReadWrite` | Teams chats |
|
|
155
|
+
| `People.Read` | People rankings |
|
|
156
|
+
| `Contacts.Read` | Outlook contacts |
|
|
157
|
+
|
|
158
|
+
If your organization restricts some permissions, certain commands may return `Permission denied`.
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Troubleshooting
|
|
163
|
+
|
|
164
|
+
**`ModuleNotFoundError: No module named 'msal'`**
|
|
165
|
+
```bash
|
|
166
|
+
pip install msal requests
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**`NOT_LOGGED_IN`**
|
|
170
|
+
```bash
|
|
171
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py login
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**`Permission denied (403)`**
|
|
175
|
+
Your organization may have restricted that Graph API permission. Contact your IT admin.
|
|
176
|
+
|
|
177
|
+
**`Authentication expired (401)`**
|
|
178
|
+
```bash
|
|
179
|
+
python .codemie/claude-plugin/skills/msgraph/msgraph.py login
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Token cache is at wrong path**
|
|
183
|
+
Edit `CACHE_FILE` at the top of `msgraph.py` to change the location.
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: msgraph
|
|
3
|
+
description: >
|
|
4
|
+
Work with Microsoft 365 services via the Graph API — emails, calendar events, SharePoint sites,
|
|
5
|
+
Teams chats, OneDrive files, contacts, and org chart. Use this skill whenever the user asks
|
|
6
|
+
about their emails, inbox, unread messages, meetings, calendar, Teams messages or chats,
|
|
7
|
+
SharePoint documents, OneDrive files, colleagues, manager, direct reports, or any personal/
|
|
8
|
+
organizational Microsoft data. Invoke proactively any time the user mentions Outlook, Teams,
|
|
9
|
+
SharePoint, OneDrive, or wants to interact with their Microsoft 365 account. The skill uses
|
|
10
|
+
a local Python CLI (msgraph.py) that handles authentication, token caching, and all API calls.
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Microsoft Graph API Skill
|
|
14
|
+
|
|
15
|
+
This skill lets you interact with Microsoft 365 services on behalf of the user using the
|
|
16
|
+
Microsoft Graph API. The Python CLI at `scripts/msgraph.py` handles everything.
|
|
17
|
+
|
|
18
|
+
## Setup & Authentication
|
|
19
|
+
|
|
20
|
+
**Check login status first** — always run this before any other command:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
python scripts/msgraph.py status
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**Output interpretation:**
|
|
27
|
+
- `Logged in as: user@company.com` → proceed with any command below
|
|
28
|
+
- `NOT_LOGGED_IN` → follow the Login Flow below
|
|
29
|
+
- `TOKEN_EXPIRED` → session expired, also follow the Login Flow below
|
|
30
|
+
|
|
31
|
+
### Login Flow (first time or after expiry)
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
python scripts/msgraph.py login
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
This starts the **Device Code Flow** — it will print a URL and a short code like:
|
|
38
|
+
```
|
|
39
|
+
To sign in, use a web browser to open the page https://microsoft.com/devicelogin
|
|
40
|
+
and enter the code ABCD-1234 to authenticate.
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Tell the user exactly that message, then wait. Once they complete login in the browser,
|
|
44
|
+
the token is cached at `~/.ms_graph_token_cache.json` and all subsequent commands run silently.
|
|
45
|
+
|
|
46
|
+
### When NOT logged in or token expired
|
|
47
|
+
|
|
48
|
+
If status returns `NOT_LOGGED_IN` or `TOKEN_EXPIRED`, tell the user:
|
|
49
|
+
|
|
50
|
+
> "You need to log in to Microsoft first. Run this command in your terminal:
|
|
51
|
+
> ```
|
|
52
|
+
> python scripts/msgraph.py login
|
|
53
|
+
> ```
|
|
54
|
+
> A code and URL will appear — open the URL in your browser and enter the code."
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Available Commands
|
|
59
|
+
|
|
60
|
+
### Profile & Org
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Your profile
|
|
64
|
+
python scripts/msgraph.py me
|
|
65
|
+
|
|
66
|
+
# Your manager
|
|
67
|
+
python scripts/msgraph.py org --manager
|
|
68
|
+
|
|
69
|
+
# Your direct reports
|
|
70
|
+
python scripts/msgraph.py org --reports
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Emails
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# List recent emails (default 10)
|
|
77
|
+
python scripts/msgraph.py emails
|
|
78
|
+
|
|
79
|
+
# More emails
|
|
80
|
+
python scripts/msgraph.py emails --limit 25
|
|
81
|
+
|
|
82
|
+
# Unread only
|
|
83
|
+
python scripts/msgraph.py emails --unread
|
|
84
|
+
|
|
85
|
+
# Search emails
|
|
86
|
+
python scripts/msgraph.py emails --search "invoice Q4"
|
|
87
|
+
|
|
88
|
+
# Read a specific email by ID (copy ID from list output)
|
|
89
|
+
python scripts/msgraph.py emails --read MESSAGE_ID
|
|
90
|
+
|
|
91
|
+
# Send an email
|
|
92
|
+
python scripts/msgraph.py emails --send recipient@example.com --subject "Hello" --body "Message text"
|
|
93
|
+
|
|
94
|
+
# Browse specific folder (inbox, sentitems, drafts, deleteditems, junkemail)
|
|
95
|
+
python scripts/msgraph.py emails --folder sentitems --limit 5
|
|
96
|
+
|
|
97
|
+
# Machine-readable JSON output
|
|
98
|
+
python scripts/msgraph.py emails --json
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Calendar
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Upcoming events (default 10)
|
|
105
|
+
python scripts/msgraph.py calendar
|
|
106
|
+
|
|
107
|
+
# More events
|
|
108
|
+
python scripts/msgraph.py calendar --limit 20
|
|
109
|
+
|
|
110
|
+
# Create an event
|
|
111
|
+
python scripts/msgraph.py calendar --create "Team Standup" \
|
|
112
|
+
--start "2024-03-20T09:00" --end "2024-03-20T09:30" \
|
|
113
|
+
--location "Teams" --timezone "Europe/Berlin"
|
|
114
|
+
|
|
115
|
+
# Check availability for a time window
|
|
116
|
+
python scripts/msgraph.py calendar --availability \
|
|
117
|
+
--start "2024-03-20T09:00:00" --end "2024-03-20T18:00:00"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### SharePoint
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
# List followed/joined SharePoint sites
|
|
124
|
+
python scripts/msgraph.py sharepoint --sites
|
|
125
|
+
|
|
126
|
+
# Browse files in a specific site (use ID from --sites output)
|
|
127
|
+
python scripts/msgraph.py sharepoint --site SITE_ID
|
|
128
|
+
|
|
129
|
+
# Browse a subfolder within a site
|
|
130
|
+
python scripts/msgraph.py sharepoint --site SITE_ID --path "Documents/Reports"
|
|
131
|
+
|
|
132
|
+
# Download a file
|
|
133
|
+
python scripts/msgraph.py sharepoint --download ITEM_ID --output report.xlsx
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Teams
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
# List all Teams chats
|
|
140
|
+
python scripts/msgraph.py teams --chats
|
|
141
|
+
|
|
142
|
+
# Read messages from a chat (use chat ID from --chats output)
|
|
143
|
+
python scripts/msgraph.py teams --messages CHAT_ID
|
|
144
|
+
|
|
145
|
+
# Send a message to a chat
|
|
146
|
+
python scripts/msgraph.py teams --send "Hello team!" --chat-id CHAT_ID
|
|
147
|
+
|
|
148
|
+
# List teams you're a member of
|
|
149
|
+
python scripts/msgraph.py teams --teams-list
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### OneDrive
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
# List root files
|
|
156
|
+
python scripts/msgraph.py onedrive
|
|
157
|
+
|
|
158
|
+
# Browse a folder
|
|
159
|
+
python scripts/msgraph.py onedrive --path "Documents"
|
|
160
|
+
|
|
161
|
+
# Upload a file
|
|
162
|
+
python scripts/msgraph.py onedrive --upload ./report.pdf --dest "Documents/report.pdf"
|
|
163
|
+
|
|
164
|
+
# Download a file by ID
|
|
165
|
+
python scripts/msgraph.py onedrive --download ITEM_ID --output local_copy.pdf
|
|
166
|
+
|
|
167
|
+
# File metadata
|
|
168
|
+
python scripts/msgraph.py onedrive --info ITEM_ID
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### People & Contacts
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
# Frequent collaborators (AI-ranked by Microsoft)
|
|
175
|
+
python scripts/msgraph.py people
|
|
176
|
+
|
|
177
|
+
# Search people by name
|
|
178
|
+
python scripts/msgraph.py people --search "Alice"
|
|
179
|
+
|
|
180
|
+
# Outlook address book contacts
|
|
181
|
+
python scripts/msgraph.py people --contacts
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Workflow Patterns
|
|
187
|
+
|
|
188
|
+
### "Show me my emails"
|
|
189
|
+
1. Run `status` → check login
|
|
190
|
+
2. Run `emails --limit 15` → show results
|
|
191
|
+
3. If user wants to read one, run `emails --read ID`
|
|
192
|
+
|
|
193
|
+
### "What's on my calendar today/this week?"
|
|
194
|
+
1. Run `calendar --limit 10`
|
|
195
|
+
2. Parse dates in output and filter for user's timeframe
|
|
196
|
+
|
|
197
|
+
### "Find a file in SharePoint"
|
|
198
|
+
1. Run `sharepoint --sites` → list sites
|
|
199
|
+
2. Run `sharepoint --site SITE_ID` → browse files
|
|
200
|
+
3. Use `--path` to drill into folders
|
|
201
|
+
4. Offer `--download ITEM_ID` if user wants the file
|
|
202
|
+
|
|
203
|
+
### "Check my Teams messages"
|
|
204
|
+
1. Run `teams --chats` → list chats
|
|
205
|
+
2. User picks a chat → run `teams --messages CHAT_ID`
|
|
206
|
+
|
|
207
|
+
### "Who's my manager?" / "Who reports to me?"
|
|
208
|
+
- Run `org --manager` or `org --reports`
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Error Handling
|
|
213
|
+
|
|
214
|
+
| Exit code | Meaning |
|
|
215
|
+
|-----------|---------|
|
|
216
|
+
| 0 | Success |
|
|
217
|
+
| 1 | API error (shown in output) |
|
|
218
|
+
| 2 | NOT_LOGGED_IN — user must run `login` |
|
|
219
|
+
|
|
220
|
+
When you see `Permission denied` errors, it means the OAuth scope isn't granted for that operation.
|
|
221
|
+
This can happen if the user's organization has restricted certain Graph API permissions.
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## Dependencies
|
|
226
|
+
|
|
227
|
+
The script requires Python 3.10+ and two packages:
|
|
228
|
+
```bash
|
|
229
|
+
pip install msal requests
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
If `msal` or `requests` are not installed, the script prints the install command and exits.
|
|
233
|
+
IMPORTANT: you must work with current date (get it from sh/bash)
|