aidp 0.1.0 → 0.3.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.
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "base"
4
-
5
- module Aidp
6
- module Shared
7
- module Providers
8
- class MacOSUI < Base
9
- def self.available?
10
- RUBY_PLATFORM.include?("darwin")
11
- end
12
-
13
- def name = "macos"
14
-
15
- def send(prompt:, session: nil)
16
- raise "macOS UI not available on this platform" unless self.class.available?
17
-
18
- # Use macOS UI for interactive mode
19
- cmd = ["osascript", "-e", "display dialog \"#{prompt}\" with title \"Aidp\" buttons {\"OK\"} default button \"OK\""]
20
- system(*cmd)
21
- :ok
22
- end
23
- end
24
- end
25
- end
26
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "fileutils"
4
-
5
- module Aidp
6
- module Shared
7
- # Synchronization utilities
8
- class Sync
9
- def self.ensure_workspace_sync
10
- # Placeholder for workspace synchronization logic
11
- true
12
- end
13
- end
14
- end
15
- end
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "fileutils"
4
-
5
- module Aidp
6
- module Shared
7
- # Utility functions shared between execute and analyze modes
8
- class Util
9
- def self.which(cmd)
10
- exts = ENV["PATHEXT"] ? ENV["PATHEXT"].split(";") : [""]
11
- ENV["PATH"].split(File::PATH_SEPARATOR).each do |path|
12
- exts.each do |ext|
13
- exe = File.join(path, "#{cmd}#{ext}")
14
- return exe if File.executable?(exe) && !File.directory?(exe)
15
- end
16
- end
17
- nil
18
- end
19
-
20
- def self.ensure_dirs(output_files, project_dir)
21
- output_files.each do |file|
22
- dir = File.dirname(File.join(project_dir, file))
23
- FileUtils.mkdir_p(dir) unless dir == "."
24
- end
25
- end
26
-
27
- def self.safe_file_write(path, content)
28
- FileUtils.mkdir_p(File.dirname(path))
29
- File.write(path, content)
30
- end
31
-
32
- def self.project_root?(dir = Dir.pwd)
33
- File.exist?(File.join(dir, ".git")) ||
34
- File.exist?(File.join(dir, "package.json")) ||
35
- File.exist?(File.join(dir, "Gemfile")) ||
36
- File.exist?(File.join(dir, "pom.xml")) ||
37
- File.exist?(File.join(dir, "build.gradle"))
38
- end
39
- end
40
- end
41
- end
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "fileutils"
4
- require "digest"
5
-
6
- module Aidp
7
- module Shared
8
- # Workspace management utilities
9
- class Workspace
10
- def self.current
11
- Dir.pwd
12
- end
13
-
14
- def self.ensure_project_root
15
- unless Aidp::Shared::Util.project_root?
16
- raise "Not in a project root directory. Please run from a directory with .git, package.json, Gemfile, etc."
17
- end
18
- end
19
- end
20
- end
21
- end