@delorenj/pjangler 1.5.11 → 1.5.12

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 (25) hide show
  1. package/.mise/scripts/versioning.sh +26 -5
  2. package/README.md +25 -0
  3. package/dist/index.js +150 -27
  4. package/dist/mcp-server.js +134 -20
  5. package/dist/notebook/journal-service-main.js +4 -1
  6. package/dist/project-registry-service.js +1 -1
  7. package/package.json +1 -1
  8. package/templates/commonproject/copier.yml +102 -1
  9. package/templates/commonproject/template/.github/workflows/{% if is_obsidian_plugin %}lint.yml{% endif %} +29 -0
  10. package/templates/commonproject/template/.github/workflows/{% if is_obsidian_plugin %}release.yml{% endif %} +62 -0
  11. package/templates/commonproject/template/.mise/{% if is_obsidian_plugin %}tasks{% endif %}/plugin/link +27 -0
  12. package/templates/commonproject/template/AGENTS.md.jinja +67 -0
  13. package/templates/commonproject/template/{% if is_obsidian_plugin %}.editorconfig{% endif %} +15 -0
  14. package/templates/commonproject/template/{% if is_obsidian_plugin %}.npmrc{% endif %} +1 -0
  15. package/templates/commonproject/template/{% if is_obsidian_plugin %}esbuild.config.mjs{% endif %} +49 -0
  16. package/templates/commonproject/template/{% if is_obsidian_plugin %}eslint.config.mts{% endif %} +38 -0
  17. package/templates/commonproject/template/{% if is_obsidian_plugin %}manifest.json{% endif %}.jinja +9 -0
  18. package/templates/commonproject/template/{% if is_obsidian_plugin %}package-lock.json{% endif %}.jinja +5053 -0
  19. package/templates/commonproject/template/{% if is_obsidian_plugin %}package.json{% endif %}.jinja +28 -0
  20. package/templates/commonproject/template/{% if is_obsidian_plugin %}src{% endif %}/main.ts.jinja +105 -0
  21. package/templates/commonproject/template/{% if is_obsidian_plugin %}src{% endif %}/settings.ts.jinja +38 -0
  22. package/templates/commonproject/template/{% if is_obsidian_plugin %}styles.css{% endif %} +8 -0
  23. package/templates/commonproject/template/{% if is_obsidian_plugin %}tsconfig.json{% endif %} +19 -0
  24. package/templates/commonproject/template/{% if is_obsidian_plugin %}version-bump.mjs{% endif %} +17 -0
  25. package/templates/commonproject/template/{% if is_obsidian_plugin %}versions.json{% endif %} +3 -0
@@ -0,0 +1,15 @@
1
+ # top-most EditorConfig file
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ end_of_line = lf
7
+ insert_final_newline = true
8
+ indent_style = tab
9
+ indent_size = 4
10
+ quote_type = single
11
+ tab_width = 4
12
+
13
+ # YAML forbids tab indentation (workflows, .copier-answers.yml, BMAD config).
14
+ [*.{yml,yaml}]
15
+ indent_style = space
@@ -0,0 +1,49 @@
1
+ import esbuild from 'esbuild';
2
+ import process from 'process';
3
+ import { builtinModules } from 'node:module';
4
+
5
+ const banner = `/*
6
+ THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
7
+ if you want to view the source, please visit the github repository of this plugin
8
+ */
9
+ `;
10
+
11
+ const prod = process.argv[2] === 'production';
12
+
13
+ const context = await esbuild.context({
14
+ banner: {
15
+ js: banner,
16
+ },
17
+ entryPoints: ['src/main.ts'],
18
+ bundle: true,
19
+ external: [
20
+ 'obsidian',
21
+ 'electron',
22
+ '@codemirror/autocomplete',
23
+ '@codemirror/collab',
24
+ '@codemirror/commands',
25
+ '@codemirror/language',
26
+ '@codemirror/lint',
27
+ '@codemirror/search',
28
+ '@codemirror/state',
29
+ '@codemirror/view',
30
+ '@lezer/common',
31
+ '@lezer/highlight',
32
+ '@lezer/lr',
33
+ ...builtinModules,
34
+ ],
35
+ format: 'cjs',
36
+ target: 'es2021',
37
+ logLevel: 'info',
38
+ sourcemap: prod ? false : 'inline',
39
+ treeShaking: true,
40
+ outfile: 'main.js',
41
+ minify: prod,
42
+ });
43
+
44
+ if (prod) {
45
+ await context.rebuild();
46
+ process.exit(0);
47
+ } else {
48
+ await context.watch();
49
+ }
@@ -0,0 +1,38 @@
1
+ import obsidianmd from 'eslint-plugin-obsidianmd';
2
+ import globals from 'globals';
3
+ import { globalIgnores, defineConfig } from 'eslint/config';
4
+
5
+ export default defineConfig(
6
+ globalIgnores([
7
+ 'node_modules',
8
+ 'dist',
9
+ 'esbuild.config.mjs',
10
+ 'version-bump.mjs',
11
+ 'versions.json',
12
+ 'main.js',
13
+ 'package.json',
14
+ 'package-lock.json',
15
+ 'tsconfig.json',
16
+ // CommonProject tooling: agent CLI roots, .mise, .github, the BMAD
17
+ // method tree and Hermes role dirs. None of it ships in the plugin.
18
+ '.*',
19
+ '_bmad',
20
+ '_bmad-output',
21
+ 'agents',
22
+ ]),
23
+ {
24
+ languageOptions: {
25
+ globals: {
26
+ ...globals.browser,
27
+ },
28
+ parserOptions: {
29
+ projectService: {
30
+ allowDefaultProject: ['eslint.config.mts', 'manifest.json'],
31
+ },
32
+ tsconfigRootDir: import.meta.dirname,
33
+ extraFileExtensions: ['.json'],
34
+ },
35
+ },
36
+ },
37
+ ...obsidianmd.configs.recommended,
38
+ );
@@ -0,0 +1,9 @@
1
+ {
2
+ "id": {{ plugin_id | tojson }},
3
+ "name": {{ plugin_name | tojson }},
4
+ "version": "1.0.0",
5
+ "minAppVersion": "1.0.0",
6
+ "description": {{ plugin_description | tojson }},
7
+ "author": {{ plugin_author | tojson }},
8
+ "isDesktopOnly": false
9
+ }