studiograph 1.2.0-beta.7 → 1.2.0-beta.9

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 (36) hide show
  1. package/dist/agent/orchestrator.d.ts +1 -0
  2. package/dist/agent/orchestrator.js +3 -1
  3. package/dist/agent/orchestrator.js.map +1 -1
  4. package/dist/agent/skills/bundled/enrich-entities.md +124 -0
  5. package/dist/agent/skills/bundled/gather-context.md +46 -0
  6. package/dist/agent/skills/sync-setup.md +17 -1
  7. package/dist/agent/tools/sync-tools.d.ts +9 -1
  8. package/dist/agent/tools/sync-tools.js +257 -1
  9. package/dist/agent/tools/sync-tools.js.map +1 -1
  10. package/dist/cli/commands/start.js +3 -1
  11. package/dist/cli/commands/start.js.map +1 -1
  12. package/dist/core/graph.d.ts +2 -0
  13. package/dist/core/graph.js +4 -4
  14. package/dist/core/graph.js.map +1 -1
  15. package/package.json +1 -1
  16. package/dist/core/migration-runner.d.ts +0 -42
  17. package/dist/core/migration-runner.js +0 -232
  18. package/dist/core/migration-runner.js.map +0 -1
  19. package/dist/core/migration-types.d.ts +0 -101
  20. package/dist/core/migration-types.js +0 -21
  21. package/dist/core/migration-types.js.map +0 -1
  22. package/dist/core/migrations/20260219-formalize-memory-location.d.ts +0 -2
  23. package/dist/core/migrations/20260219-formalize-memory-location.js +0 -35
  24. package/dist/core/migrations/20260219-formalize-memory-location.js.map +0 -1
  25. package/dist/core/migrations/20260220-add-workspace-metadata.d.ts +0 -12
  26. package/dist/core/migrations/20260220-add-workspace-metadata.js +0 -65
  27. package/dist/core/migrations/20260220-add-workspace-metadata.js.map +0 -1
  28. package/dist/core/migrations/20260220-add-workspace-readme.d.ts +0 -11
  29. package/dist/core/migrations/20260220-add-workspace-readme.js +0 -82
  30. package/dist/core/migrations/20260220-add-workspace-readme.js.map +0 -1
  31. package/dist/core/migrations/20260220-migrate-yaml-to-json.d.ts +0 -9
  32. package/dist/core/migrations/20260220-migrate-yaml-to-json.js +0 -64
  33. package/dist/core/migrations/20260220-migrate-yaml-to-json.js.map +0 -1
  34. package/dist/core/migrations/index.d.ts +0 -11
  35. package/dist/core/migrations/index.js +0 -23
  36. package/dist/core/migrations/index.js.map +0 -1
@@ -1,64 +0,0 @@
1
- import { join } from 'path';
2
- import * as yaml from 'js-yaml';
3
- /**
4
- * Migration: Convert legacy YAML workspace config to JSON
5
- *
6
- * Early versions of Studiograph used config.yml for workspace configuration.
7
- * This migration converts any remaining YAML configs to the new workspace.json
8
- * format and removes the legacy file.
9
- */
10
- export const migration = {
11
- id: '20260220-migrate-yaml-to-json',
12
- description: 'Convert legacy YAML workspace config to JSON format',
13
- targetVersion: '1.2.0',
14
- async up(context) {
15
- const yamlPath = join(context.workspacePath, '.studiograph', 'config.yml');
16
- const jsonPath = join(context.workspacePath, '.studiograph', 'workspace.json');
17
- // Check if YAML config exists
18
- if (!context.fileExists(yamlPath)) {
19
- context.log('No legacy YAML config found - skipping');
20
- return;
21
- }
22
- // If JSON config already exists, we've likely already migrated
23
- if (context.fileExists(jsonPath)) {
24
- context.warn('Both YAML and JSON configs exist - removing YAML backup');
25
- context.deleteFile(yamlPath);
26
- return;
27
- }
28
- context.log('Converting YAML config to JSON...');
29
- // Read and parse YAML config
30
- const yamlContent = context.readFile(yamlPath);
31
- const config = yaml.load(yamlContent);
32
- // Ensure required fields exist
33
- if (!config.version)
34
- config.version = '1.0.0';
35
- if (!config.created_at)
36
- config.created_at = new Date().toISOString();
37
- if (!config.repos)
38
- config.repos = [];
39
- // Write as JSON
40
- context.writeFile(jsonPath, JSON.stringify(config, null, 2));
41
- context.log(`✓ Converted YAML config to workspace.json`);
42
- // Remove legacy YAML file
43
- context.deleteFile(yamlPath);
44
- context.log(`✓ Removed legacy config.yml`);
45
- },
46
- async down(context) {
47
- const yamlPath = join(context.workspacePath, '.studiograph', 'config.yml');
48
- const jsonPath = join(context.workspacePath, '.studiograph', 'workspace.json');
49
- // Rollback: convert JSON back to YAML
50
- if (context.fileExists(jsonPath)) {
51
- const jsonContent = context.readFile(jsonPath);
52
- const config = JSON.parse(jsonContent);
53
- const yamlContent = yaml.dump(config);
54
- context.writeFile(yamlPath, yamlContent);
55
- context.log('Rollback: Restored config.yml from workspace.json');
56
- }
57
- },
58
- async shouldRun(context) {
59
- const yamlPath = join(context.workspacePath, '.studiograph', 'config.yml');
60
- // Only run if YAML config exists
61
- return context.fileExists(yamlPath);
62
- },
63
- };
64
- //# sourceMappingURL=20260220-migrate-yaml-to-json.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"20260220-migrate-yaml-to-json.js","sourceRoot":"","sources":["../../../src/core/migrations/20260220-migrate-yaml-to-json.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,SAAS,GAAc;IAClC,EAAE,EAAE,+BAA+B;IACnC,WAAW,EAAE,qDAAqD;IAClE,aAAa,EAAE,OAAO;IAEtB,KAAK,CAAC,EAAE,CAAC,OAAO;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;QAC3E,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,cAAc,EAAE,gBAAgB,CAAC,CAAC;QAE/E,8BAA8B;QAC9B,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;YAClC,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;YACtD,OAAO;QACT,CAAC;QAED,+DAA+D;QAC/D,IAAI,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;YACjC,OAAO,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAC;YACxE,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YAC7B,OAAO;QACT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C,CAAC;YACvC,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACtC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;YACzC,OAAO,CAAC,GAAG,CAAC,mDAAmD,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,OAAO;QACrB,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;QAC3E,iCAAiC;QACjC,OAAO,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * All migrations in chronological order.
3
- * Naming convention: YYYYMMDD-kebab-case-description.ts
4
- *
5
- * Migration execution order:
6
- * 1. 20260219-formalize-memory-location — Ensures global memory directory
7
- * 2. 20260220-migrate-yaml-to-json — Converts legacy YAML configs
8
- * 3. 20260220-add-workspace-metadata — Adds tracking fields
9
- * 4. 20260220-add-workspace-readme — Creates documentation
10
- */
11
- export declare const ALL_MIGRATIONS: import("../migration-types.js").Migration[];
@@ -1,23 +0,0 @@
1
- import { migration as m20260219 } from './20260219-formalize-memory-location.js';
2
- import { migration as m20260220_yaml } from './20260220-migrate-yaml-to-json.js';
3
- import { migration as m20260220_metadata } from './20260220-add-workspace-metadata.js';
4
- import { migration as m20260220_readme } from './20260220-add-workspace-readme.js';
5
- // Future migrations added here
6
- /**
7
- * All migrations in chronological order.
8
- * Naming convention: YYYYMMDD-kebab-case-description.ts
9
- *
10
- * Migration execution order:
11
- * 1. 20260219-formalize-memory-location — Ensures global memory directory
12
- * 2. 20260220-migrate-yaml-to-json — Converts legacy YAML configs
13
- * 3. 20260220-add-workspace-metadata — Adds tracking fields
14
- * 4. 20260220-add-workspace-readme — Creates documentation
15
- */
16
- export const ALL_MIGRATIONS = [
17
- m20260219,
18
- m20260220_yaml,
19
- m20260220_metadata,
20
- m20260220_readme,
21
- // New migrations appended in chronological order
22
- ];
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/migrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACnF,+BAA+B;AAE/B;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS;IACT,cAAc;IACd,kBAAkB;IAClB,gBAAgB;IAChB,iDAAiD;CAClD,CAAC"}